/* GENERATED by tools/build.js from assets/css/*.css — do not edit this file directly. */
/* ===== variables.css ===== */
/*
 * Design tokens — Arta Food Casings.
 * Accent red and steel grey are sampled from the current Arta logo (assets/images/logo/arta-logo.png).
 * They are working values, not approved brand guidelines: replace them here when Arta supplies an official palette.
 */
:root {
  /* Colour */
  --c-ink: #121821;          /* graphite: header, dark sections, headings */
  --c-ink-2: #1b2430;
  --c-ink-3: #263241;
  --c-text: #1a222d;
  --c-muted: #5f6b7a;        /* 5.3:1 on white */
  --c-muted-light: #a9b3bf;  /* on dark surfaces */
  --c-line: #e2e6eb;
  --c-line-dark: #334154;
  --c-surface: #f4f6f8;
  --c-surface-2: #eceff3;
  --c-bg: #ffffff;
  --c-accent: #c8151e;       /* Arta red — white text 5.9:1 */
  --c-accent-hover: #a51018;
  --c-accent-soft: #fbeaea;
  --c-steel: #8c96a3;        /* logo grey */
  --c-success: #1d7a46;
  --c-warn: #8a5a00;
  --c-warn-bg: #fff6e0;
  --c-focus: #2f6fed;

  /* Typography — font stacks are switched per language below */
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: var(--font-body);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --lh-tight: 1.15;
  --lh-head: 1.25;
  --lh-body: 1.65;
  --tracking-eyebrow: 0.12em;

  /* Spacing (4px scale) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 2.5rem; --s-8: 3rem; --s-9: 4rem; --s-10: 5rem; --s-11: 6.5rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* Layout */
  --container: 1320px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --header-h: 76px;

  /* Shape & depth — deliberately restrained */
  /* Radius scale — smooth, consistent, not playful: small UI 8 · controls 10 · cards 14 · large panels 20 · hero/media 28 */
  --radius-sm: 8px;
  --radius-control: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  /* Soft, layered shadows (ink-tinted) */
  --shadow-sm: 0 1px 2px rgba(18, 24, 33, 0.05), 0 1px 1px rgba(18, 24, 33, 0.03);
  --shadow: 0 2px 6px -2px rgba(18, 24, 33, 0.08), 0 14px 32px -16px rgba(18, 24, 33, 0.2);
  --shadow-lg: 0 4px 12px -4px rgba(18, 24, 33, 0.1), 0 32px 64px -28px rgba(18, 24, 33, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);   /* natural ease-out */
  --dur: 280ms;
  --dur-slow: 480ms;

  /* Breakpoints (reference only — CSS media queries cannot read variables):
     sm 640px · md 768px · lg 1024px · xl 1280px */
}

:root:lang(fa) {
  --font-body: "Vazirmatn", "IBM Plex Sans", Tahoma, "Segoe UI", sans-serif;
  --lh-body: 1.85;
  --tracking-eyebrow: 0;
}
:root:lang(ar) {
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, "Segoe UI", sans-serif;
  --lh-body: 1.8;
  --tracking-eyebrow: 0;
}
:root:lang(ru), :root:lang(de) {
  /* Long compound words / Cyrillic: slightly smaller display sizes */
  --fs-3xl: clamp(2rem, 1.45rem + 2.4vw, 3.35rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; --dur-slow: 0ms; }
}

/* ===== base.css ===== */
/* Base: reset, typography, focus, utilities */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); --header-offset: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: var(--lh-head); color: var(--c-ink); letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }
:lang(fa) :is(h1, h2, h3, h4), :lang(ar) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
dl, dd { margin: 0; }
details summary { cursor: pointer; }
dialog { color: inherit; }
::selection { background: var(--c-accent); color: #fff; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 200; background: var(--c-accent); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }
[hidden] { display: none !important; }

.code { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--c-accent); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.code--lg { font-size: 0.95rem; }
.note { font-size: var(--fs-xs); color: var(--c-muted); display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-4); }
.note .icon { margin-top: 0.15em; }
.note--light { color: var(--c-muted-light); }
.narrow { max-width: var(--container-narrow); }

.prose p { color: var(--c-text); }
.prose h2 { font-size: var(--fs-lg); margin: var(--s-7) 0 var(--s-3); }
.prose h2.section-title { font-size: var(--fs-2xl); margin-top: 0; }
.prose--light p { color: #d5dbe2; }
.prose--light h2 { color: #fff; }
/* Long words (Russian and German compounds, codes, e-mail addresses) wrap instead of pushing the page sideways on small phones */
p, li, dd, dt, td, th, label, figcaption, blockquote, a { overflow-wrap: break-word; }
:lang(ru) p, :lang(de) p, :lang(es) p, :lang(ru) li, :lang(de) li, :lang(es) li { hyphens: auto; }

/* ===== layout.css ===== */
/* Layout: container, header, navigation, mega-menu, language switcher, footer, sections, grids */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; color: var(--c-text); border-bottom: 1px solid var(--c-line); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 360ms var(--ease); }
/* Hide on scroll down, show on scroll up (assets/js/navigation.js). Sticky asides follow via --header-offset. */
.site-header.is-hidden { transform: translateY(-100%); }
html.header-hidden { --header-offset: 0px; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.site-header--overlay { background: #fff; margin-bottom: calc(-1 * var(--header-h)); }
.site-header.is-scrolled, .nav-open .site-header, .site-header.has-open-menu { background: #fff; box-shadow: 0 1px 0 var(--c-line), 0 10px 30px -20px rgba(18,24,33,0.22); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; transition: background-color var(--dur) var(--ease); }
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn .icon { width: 22px; height: 22px; }

/* ---------- Main navigation (desktop ≥ 1200px; drawer below — see responsive.css) ---------- */
.nav { display: flex; align-items: center; height: 100%; }
.nav__list { display: flex; align-items: stretch; height: 100%; gap: var(--s-1); }
.nav__item { display: flex; align-items: center; }
.nav__link { display: flex; align-items: center; height: 100%; padding-inline: var(--s-3); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; position: relative; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; inset-inline: var(--s-3); bottom: 18px; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-accent); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; margin-inline-start: calc(-1 * var(--s-2)); padding: 0; border: 0; background: none; color: var(--c-muted); border-radius: var(--radius-sm); }
.nav__toggle .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.nav__item--mega.is-open .nav__toggle .icon { transform: rotate(180deg); }
.nav__mobile-extra { display: none; }

/* ---------- Mega-menu ---------- */
.mega { position: absolute; inset-inline: var(--gutter); top: calc(100% + 6px); background: #fff; color: var(--c-text); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); max-width: 1320px; margin-inline: auto; }
.nav__item--mega.is-open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); padding: var(--s-6); }
.mega .container.mega__inner { max-width: none; padding-inline: var(--s-6); }
/* Family cards */
.mega__families { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0 0 var(--s-5); list-style: none; border-bottom: 1px solid var(--c-line); }
.mega-card { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; padding: var(--s-2); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; transition: background-color var(--dur) var(--ease); }
.mega-card:hover, .mega-card:focus-visible { background: var(--c-surface); }
.mega-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-control); background: var(--c-surface-2); }
.mega-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.mega-card:hover .mega-card__img { transform: scale(1.04); }
.mega-card__body { display: grid; gap: 2px; padding-inline: var(--s-1); }
.mega-card__title { font-weight: 600; font-size: var(--fs-base); line-height: 1.3; }
.mega-card:hover .mega-card__title { color: var(--c-accent); }
.mega-card__text { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Detailed links */
.mega__col--groups { grid-column: span 2; }
.mega__title { display: block; font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.02em; color: var(--c-ink); text-decoration: none; margin-bottom: var(--s-2); }
.mega__title:hover { color: var(--c-accent); }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-6); }
.mega__list li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--c-line); }
.mega__link { text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: color var(--dur) var(--ease); }
.mega__link:hover { color: var(--c-accent); }
.mega__variants { display: flex; gap: var(--s-2); flex: none; }
.mega__variants a { font-size: var(--fs-xs); color: var(--c-muted); text-decoration: none; padding: 1px var(--s-2); border: 1px solid var(--c-line); border-radius: 999px; white-space: nowrap; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.mega__variants a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.mega__sub li a { display: block; padding-block: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); text-decoration: none; border-bottom: 1px solid var(--c-line); transition: color var(--dur) var(--ease); }
.mega__sub li a:hover { color: var(--c-accent); }
/* Promo panel */
.mega__promo { background: var(--c-ink); color: #d5dbe2; padding: var(--s-5); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.mega__promo-title { font-weight: 600; color: #fff; font-size: var(--fs-base); margin: 0; }
.mega__promo-text { font-size: var(--fs-xs); margin: 0; line-height: 1.5; }
.mega__promo-links { display: grid; gap: var(--s-2); margin-top: auto; }
.mega__all { color: #fff; font-size: var(--fs-sm); display: inline-flex; gap: var(--s-2); align-items: center; text-decoration: none; }
.mega__all .icon { width: 16px; height: 16px; }
.mega__all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch__btn { display: inline-flex; align-items: center; gap: var(--s-2); height: 44px; padding-inline: var(--s-3); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.04); color: #fff; font-size: var(--fs-sm); }
.lang-switch__btn:hover { border-color: rgba(255, 255, 255, 0.45); }
.lang-switch__btn .icon { width: 18px; height: 18px; }
.lang-switch__code { display: none; font-family: var(--font-mono); font-size: var(--fs-xs); }
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .site-header__actions .lang-switch__name { display: none; }
  .site-header__actions .lang-switch__code { display: inline; }
  .nav__link { padding-inline: var(--s-2); font-size: 0.875rem; }
  .nav__link::after { inset-inline: var(--s-2); }
  .site-header__inner { gap: var(--s-4); }
}
.lang-switch__chev { width: 14px !important; height: 14px !important; transition: transform var(--dur) var(--ease); }
.lang-switch.is-open .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 190px; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s-2); z-index: 120; }
.lang-switch__menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); text-decoration: none; font-size: var(--fs-sm); }
.lang-switch__menu a:hover, .lang-switch__menu a:focus-visible { background: var(--c-surface); }
.lang-switch__menu a[aria-current] { font-weight: 600; color: var(--c-accent); }
.lang-switch__menu a[lang="fa"], .lang-switch__menu a[lang="ar"] { font-family: "Vazirmatn", "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.lang-switch__menu .icon { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
/* ---------- Footer (option A: CTA-topped) ----------
   Pages ending with a .cta-band (inside .cta-wrap, components.css) get body.has-cta-band: the band sits on the seam above the footer as its
   opening panel (components.css). Link columns are <details> sections: always open on desktop, collapsible on phones. */
.site-footer { position: relative; background: var(--c-ink); color: var(--c-muted-light); font-size: var(--fs-sm); padding-top: var(--s-10); }
.has-cta-band .site-footer { padding-top: var(--s-9); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)) 1.5fr; gap: var(--s-7); padding-bottom: var(--s-9); }
.footer__brand img { height: 52px; width: auto; margin-bottom: var(--s-5); }
.footer__brand p { max-width: 34ch; line-height: 1.7; }
.footer__cert { display: inline-flex; gap: var(--s-2); align-items: center; margin-top: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: var(--radius-control); border: 1px solid var(--c-line-dark); background: rgba(255, 255, 255, 0.03); color: #d5dbe2; font-size: var(--fs-xs); font-family: var(--font-mono); line-height: 1.5; }
.footer__cert .icon { width: 16px; height: 16px; color: var(--c-accent); flex: none; }
.footer__title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: #fff; margin: 0 0 var(--s-4); font-weight: 600; }
.footer__summary { display: flex; align-items: center; justify-content: space-between; list-style: none; }
.footer__summary::-webkit-details-marker { display: none; }
.footer__summary .icon { display: none; width: 18px; height: 18px; color: var(--c-muted-light); transition: transform var(--dur) var(--ease); }
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li + li { margin-top: var(--s-3); }
.footer__col a, .footer__contact a { color: var(--c-muted-light); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer__col a:hover, .footer__contact a:hover, .footer__legal a:hover, .footer__langs a:hover { color: #fff; }
.footer__links a:focus-visible, .footer__contact a:focus-visible, .footer__langs a:focus-visible, .footer__legal a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.footer__contact { display: grid; gap: var(--s-3); font-style: normal; }
.footer__contact p { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; }
.footer__contact .icon { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: var(--radius-control); background: rgba(255, 255, 255, 0.05); color: var(--c-accent); }
.footer__contact p > span, .footer__contact p > a { padding-top: 6px; }
.footer__contact a[href^="mailto"] { overflow-wrap: anywhere; }
.footer__col--contact .footer__lead, .footer__col--contact .portal-link { margin-top: var(--s-4); }
.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-4); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--c-line-dark); font-size: var(--fs-xs); }
.footer__langs { display: flex; flex-wrap: wrap; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.footer__langs a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: var(--s-3); border-radius: 999px; color: var(--c-muted-light); text-decoration: none; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.footer__langs a:hover { background: rgba(255, 255, 255, 0.06); }
.footer__langs a[aria-current] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.08); }
.footer__legal { margin: 0; }
.footer__legal a { color: var(--c-muted-light); }
/* Desktop: sections are plain columns (summary not interactive). */
@media (min-width: 769px) {
  .footer__summary { pointer-events: none; cursor: default; }
}
/* Tablet: brand across the top, then the four columns. */
@media (max-width: 1280px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-7); align-items: center; }
  .footer__brand img { grid-row: span 2; margin: 0; }
  .footer__brand p { max-width: 60ch; margin: 0; }
  .footer__cert { justify-self: start; }
}
/* Phones: brand, then collapsible sections, then contact. */
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: var(--s-7); }
  .footer__brand { display: block; padding-bottom: var(--s-6); }
  .footer__brand img { margin-bottom: var(--s-4); }
  .footer__section { border-top: 1px solid var(--c-line-dark); }
  .footer__section:last-of-type { border-bottom: 1px solid var(--c-line-dark); }
  .footer__summary { min-height: 56px; cursor: pointer; }
  .footer__summary .footer__title { margin: 0; }
  .footer__summary .icon { display: block; }
  .footer__section[open] .footer__summary .icon { transform: rotate(180deg); }
  .footer__section .footer__links { padding-bottom: var(--s-5); }
  .footer__col--contact { padding-top: var(--s-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sections & grids ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: var(--s-8); }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-ink); color: #d5dbe2; }
.section--dark .section-title, .section--dark h3 { color: #fff; }
.section--dark .section-lead { color: var(--c-muted-light); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__text { max-width: 620px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.section-head { max-width: 760px; margin-bottom: var(--s-8); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--c-accent); margin-bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-3); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; flex: none; }
.eyebrow--light { color: #ff6b70; }
.section-title { font-size: var(--fs-2xl); }
.section-title--sm { font-size: var(--fs-xl); margin-bottom: var(--s-5); }
.section-lead { font-size: var(--fs-md); color: var(--c-muted); margin-top: var(--s-4); }


/* ---------- Header: segmented navigation (desktop ≥1200px) ----------
   The links sit in a soft rounded track; a highlight pill (.nav__indicator, added by navigation.js) glides to the
   hovered or focused item and rests on the current section. Without JavaScript the pill is drawn per link instead.
   The mobile drawer (<1200px, responsive.css) is unchanged. */
@media (min-width: 1200px) {
  .nav { height: auto; }
  .nav__list { height: auto; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); }
  .site-header.is-scrolled .nav__list, .site-header.has-open-menu .nav__list { background: var(--c-surface-2); }
  .nav__item { border-radius: 999px; }
  .nav__link, .nav__toggle { position: relative; z-index: 1; }
  .nav__link { height: 38px; padding-inline: 14px; border-radius: 999px; color: var(--c-text); transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .nav__link::after { display: none; }
  .nav__item--mega .nav__link { padding-inline-end: 6px; }
  .nav__toggle { height: 38px; width: 30px; margin: 0; padding-inline-end: 6px; border-radius: 999px; }
  .mega { top: 100%; z-index: 2; max-height: calc(100dvh - var(--header-h) - 1rem); overflow-y: auto; }
  .nav__item:hover .nav__link, .nav__item:focus-within .nav__link, .nav__link[aria-current="page"], .nav__item--mega.is-open .nav__link { color: var(--c-accent); }
  html:not(.js) .nav__link:hover, html:not(.js) .nav__link[aria-current="page"] { background: rgba(255, 255, 255, 0.12); }
  .nav__indicator { position: absolute; z-index: 0; top: 0; left: 0; height: 38px; width: 0; border-radius: 999px; background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-line); opacity: 0; pointer-events: none;
    transition: transform 320ms var(--ease), width 320ms var(--ease), opacity 200ms var(--ease); }
  .nav__indicator.is-current { background: rgba(200, 21, 30, 0.22); box-shadow: inset 0 0 0 1px rgba(227, 38, 47, 0.45); }
  .nav__indicator.no-anim { transition: none; }
  .site-header__cta { border-radius: 999px; padding-inline: var(--s-5); }
  .site-header__actions .icon-btn { border: 1px solid var(--c-line); background: #fff; width: 42px; height: 42px; }
  .site-header__actions .icon-btn:hover { background: var(--c-surface-2); }
  .site-header__actions .lang-switch__btn { height: 42px; color: var(--c-text); background: #fff; border-color: var(--c-line); }
  .site-header__actions .lang-switch__btn:hover, .site-header__actions .lang-switch.is-open .lang-switch__btn { background: var(--c-surface-2); }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .nav__link { padding-inline: 10px; font-size: 0.875rem; }
  .nav__item--mega .nav__link { padding-inline-end: 4px; }
  .nav__toggle { width: 26px; }
}
@media (min-width: 1200px) { .nav__indicator { display: block; } }
@media (max-width: 1199px) { .nav__indicator { display: none; } }

/* Side-panel parts (icons, panel head, Home link, page dimmer) only exist in the mobile/tablet panel: see responsive.css */
.nav__icon, .nav__head, .nav-scrim, .nav__item--home { display: none; }

/* Customer system (CRM) login — white pill beside the quote button */
.portal-btn { display: inline-flex; align-items: center; gap: var(--s-2); height: 42px; padding-inline: var(--s-5); border-radius: 999px; background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.portal-btn .icon { width: 18px; height: 18px; color: var(--c-accent); }
.portal-btn:hover, .portal-btn:focus-visible { background: #f1f3f5; color: var(--c-ink); box-shadow: 0 0 0 3px rgba(200, 21, 30, .35); }
@media (max-width: 1280px) { .portal-btn { padding-inline: var(--s-4); } }
@media (max-width: 1359.98px) {
  .portal-btn { width: 44px; padding: 0; justify-content: center; }
  .portal-btn span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.site-header__cta { white-space: nowrap; }

/* ===== components.css ===== */
/* Components */

/* ---------- Buttons ---------- */
.btn { --bh: 46px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--bh); padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--radius-control); font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; text-align: center; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn .icon { width: 18px; height: 18px; }
.btn:hover .icon--dir { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon--dir { transform: scaleX(-1) translateX(3px); }
.btn--sm { --bh: 40px; padding: 0 var(--s-4); }
.btn--lg { --bh: 54px; padding: 0 var(--s-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-ink-3); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-surface-2); }
.btn--outline { background: transparent; border-color: #c4cbd4; color: var(--c-ink); }
.btn--outline:hover { border-color: var(--c-ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--c-accent); transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--c-accent); }
.icon--dir { transition: transform var(--dur) var(--ease); }

/* ---------- Chips, pills, tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip { min-height: 40px; padding: 0 var(--s-4); border: 1px solid #c9d0d8; border-radius: 999px; background: #fff; font-size: var(--fs-sm); font-weight: 500; color: var(--c-text); }
.chip:hover { border-color: var(--c-ink); }
.chip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 var(--s-2); border-radius: var(--radius-sm); background: var(--c-surface-2); color: var(--c-ink-3); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.pill .icon { width: 14px; height: 14px; }
.pill--accent { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag { padding: var(--s-2) var(--s-3); border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: var(--fs-sm); background: #fff; }
.verify-tag { display: inline-block; margin-inline-start: var(--s-2); padding: 0 6px; border: 1px dashed #c78a00; border-radius: var(--radius-sm); background: var(--c-warn-bg); color: var(--c-warn); font: 500 0.6875rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; vertical-align: middle; cursor: help; }
.draft-tag { display: inline-block; margin-top: var(--s-3); padding: 2px 8px; background: var(--c-warn-bg); color: var(--c-warn); font-size: var(--fs-xs); border-radius: var(--radius-sm); position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card:hover { border-color: #d3d9e0; box-shadow: var(--shadow); transform: translateY(-2px); }
.card:focus-within { border-color: var(--c-ink); }
.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--c-focus); outline-offset: -3px; border-radius: var(--radius); }

.product-card__media { aspect-ratio: 4 / 3; background: var(--c-surface); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.product-photo { position: relative; }
.product-photo::before { content: ""; position: absolute; z-index: 4; inset-block-start: 5%; inset-inline-end: 5%; width: clamp(27px, 18%, 76px); aspect-ratio: 1.8; border-radius: var(--radius-sm); background: var(--c-ink) url("../images/logo/arta-logo.png") center / 79% auto no-repeat; pointer-events: none; }
.mega-card__media.product-photo::before, .compare-head__photo.product-photo::before { border-radius: 4px; }
@media (max-width: 1199.98px) { .mega-card__media.product-photo::before { display: none; } }
.card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.product-card__title { font-size: var(--fs-md); }
.product-card__title a:hover { color: var(--c-accent); }
.product-card__text { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.product-card--compact .product-card__body { padding: var(--s-4); }

.family-card__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--c-surface); }
.family-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .family-card__media img { transform: scale(1.04); }
.family-card__index { position: absolute; inset-inline-start: var(--s-4); top: var(--s-4); font: 500 var(--fs-xs)/1 var(--font-mono); color: #fff; background: rgba(18, 24, 33, 0.75); padding: 6px 8px; border-radius: var(--radius-sm); }
.family-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.family-card__title { font-size: var(--fs-lg); }
.family-card__body p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.family-card__more { margin-top: auto !important; padding-top: var(--s-4); border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-xs) !important; }
.family-card__more .link-arrow { font-family: var(--font-body); }
.card:hover .link-arrow .icon--dir { transform: translateX(3px); }
[dir="rtl"] .card:hover .link-arrow .icon--dir { transform: scaleX(-1) translateX(3px); }

.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.article-card__body > p:not(.article-card__meta) { color: var(--c-muted); font-size: var(--fs-sm); }
.article-card__meta { display: flex; gap: var(--s-4); font-size: var(--fs-xs); color: var(--c-muted); margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.article-card__meta span:first-child { color: var(--c-accent); font-weight: 600; }
.article-card__title { font-size: var(--fs-md); }

/* ---------- Hero (home) ---------- */
/* Editorial split: headline + proof stats | framed product photo with badge and spec card; trust rail below */


/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: var(--s-6); font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1) 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; color: var(--c-muted-light); }
.breadcrumb li + li::before { content: "/"; margin-inline: var(--s-2); opacity: 0.6; }
.breadcrumb a { color: #e7ebf0; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--c-muted-light); }

/* ---------- Stats ---------- */
.stats-bar { position: relative; z-index: 2; }
.stats-bar--plain { background: var(--c-ink-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-bar--plain .stats { background: transparent; border: 0; box-shadow: none; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-2); padding: var(--s-6); border-inline-start: 1px solid var(--c-line); }
.stat:first-child { border-inline-start: 0; }
.stat__value { font: 600 var(--fs-2xl)/1 var(--font-head); color: var(--c-ink); letter-spacing: -0.02em; }
.stat__label { font-size: var(--fs-sm); color: var(--c-muted); }
.stat--dark { border-color: var(--c-line-dark); }
.stat--dark .stat__value { color: #fff; }
.stat--dark .stat__label { color: var(--c-muted-light); }

/* ---------- Features, steps, check list ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--c-line); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature { padding: var(--s-6) var(--s-6) var(--s-6) 0; border-bottom: 1px solid var(--c-line); }
[dir="rtl"] .feature { padding: var(--s-6) 0 var(--s-6) var(--s-6); }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: var(--s-4); }
.feature__title { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.feature p { color: var(--c-muted); font-size: var(--fs-sm); }
.section--dark .feature { border-color: var(--c-line-dark); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); counter-reset: s; }
.steps--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps--compact { grid-template-columns: 1fr; gap: 0; }
.step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--c-ink); }
.steps--compact .step { padding: var(--s-4) 0; border-top: 1px solid var(--c-line); display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--s-3); }
.steps--compact .step p { grid-column: 2; }
.step__n { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--c-accent); display: block; margin-bottom: var(--s-3); }
.step__title { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-sm); color: var(--c-muted); }

.check-list { display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.check-list .icon { color: var(--c-accent); margin-top: 0.2em; width: 20px; height: 20px; }

/* ---------- Panels, notes ---------- */
.panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s-6); }
.panel + .panel { margin-top: var(--s-5); }
.panel__title { font-size: var(--fs-md); margin-bottom: var(--s-4); }
.panel--dark { background: var(--c-ink); color: #c9d1da; border-color: var(--c-ink); }
.panel--dark .panel__title { color: #fff; }
.panel--dark p { margin-bottom: var(--s-5); }
.note-box { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); background: var(--c-surface); border-inline-start: 3px solid var(--c-ink); border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.note-box .icon { margin-top: 0.15em; flex: none; }
.note-box--warn { background: var(--c-warn-bg); border-color: #c78a00; color: #4d3500; }
.pending { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border: 1px dashed #c78a00; background: var(--c-warn-bg); color: #4d3500; border-radius: var(--radius); font-size: var(--fs-sm); margin-block: var(--s-5); }
.pending .icon { color: var(--c-warn); margin-top: 0.15em; flex: none; }
.pending strong { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-1); }
.pending p { color: inherit !important; margin: 0; }
.empty { padding: var(--s-8); text-align: center; color: var(--c-muted); background: #fff; border: 1px dashed var(--c-line); border-radius: var(--radius); }
.empty p { margin-bottom: var(--s-4); }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--c-line); margin-bottom: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tabs__tab { flex: none; padding: var(--s-3) var(--s-4); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: var(--fs-sm); font-weight: 500; color: var(--c-muted); white-space: nowrap; }
.tabs__tab:hover { color: var(--c-ink); }
.tabs__tab[aria-selected="true"] { color: var(--c-ink); border-color: var(--c-accent); font-weight: 600; }
.no-js .tabs__panel[hidden] { display: block !important; margin-top: var(--s-6); }

/* ---------- Layer diagram (illustrative) ---------- */
.layer-diagram { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.layer-stack { display: flex; flex-direction: column; gap: 4px; padding: var(--s-5); background: linear-gradient(135deg, var(--c-surface), var(--c-surface-2)); border-radius: var(--radius); transform: perspective(700px) rotateX(18deg) rotateY(-14deg); box-shadow: var(--shadow); }
[dir="rtl"] .layer-stack { transform: perspective(700px) rotateX(18deg) rotateY(14deg); }
.layer { position: relative; height: 30px; border-radius: 3px; display: flex; align-items: center; padding-inline: var(--s-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.layer__n { font: 500 0.75rem/1 var(--font-mono); color: rgba(255, 255, 255, 0.9); }
.layer--outer { background: #2f3b4a; }
.layer--tie { background: #c3cad3; height: 12px; }
.layer--tie .layer__n { display: none; }
.layer--core { background: #6f7c8c; height: 38px; }
.layer--evoh { background: var(--c-accent); height: 34px; }
.layer--inner { background: #9aa6b4; }
.layer-stack--five .layer--core { height: 58px; }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel .layer { animation: layer-in 420ms var(--ease) both; }
  .tabs__panel .layer:nth-child(2) { animation-delay: 40ms; } .tabs__panel .layer:nth-child(3) { animation-delay: 80ms; }
  .tabs__panel .layer:nth-child(4) { animation-delay: 120ms; } .tabs__panel .layer:nth-child(5) { animation-delay: 160ms; }
  .tabs__panel .layer:nth-child(6) { animation-delay: 200ms; } .tabs__panel .layer:nth-child(7) { animation-delay: 240ms; }
}
@keyframes layer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.layer-legend { display: grid; gap: var(--s-3); font-size: var(--fs-sm); }
.layer-legend li { display: flex; gap: var(--s-3); align-items: center; }
.swatch { width: 18px; height: 12px; border-radius: 2px; flex: none; padding: 0; }
.swatch.layer--tie { height: 6px; }
.layer-diagram .note { margin-top: var(--s-4); }

/* ---------- Spec & document tables ---------- */
.spec-table { font-size: var(--fs-sm); table-layout: fixed; }
.spec-table th, .spec-table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); text-align: start; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.spec-table th { width: 44%; font-weight: 500; color: var(--c-muted); padding-inline-end: var(--s-4); }
.spec-table td { color: var(--c-ink); font-weight: 500; }
.spec-table tr:last-child > * { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.doc-table { font-size: var(--fs-sm); min-width: 640px; }
.doc-table th, .doc-table td { padding: var(--s-4); text-align: start; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.doc-table thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); background: var(--c-surface); font-weight: 600; }
.doc-table tbody th { font-weight: 600; color: var(--c-ink); }
.doc-table tbody th .icon { display: inline; vertical-align: -4px; color: var(--c-muted); margin-inline-end: var(--s-2); }
.doc-table a { display: inline-flex; gap: var(--s-2); align-items: center; color: var(--c-accent); font-weight: 600; text-decoration: none; }
.doc-table a:hover { text-decoration: underline; }
.doc-table tr:last-child > * { border-bottom: 0; }
.meta-list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.meta-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-3); }
.meta-list dt { color: var(--c-muted); }
.meta-list dd { color: var(--c-ink); font-weight: 500; }

/* ---------- Accordion ---------- */
.accordions { border-top: 1px solid var(--c-line); }
.accordion { border-bottom: 1px solid var(--c-line); }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5) 0; font-weight: 600; color: var(--c-ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform var(--dur) var(--ease); flex: none; }
.accordion[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding-bottom: var(--s-5); color: var(--c-muted); max-width: 70ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-6); }
.form__required-note { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.form__section { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__legend { font-size: var(--fs-md); font-weight: 600; color: var(--c-ink); padding: 0; margin-bottom: var(--s-5); width: 100%; padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { font-weight: 500; font-size: var(--fs-sm); color: var(--c-ink); }
.req { color: var(--c-accent); }
.opt { color: var(--c-muted); font-weight: 400; font-size: var(--fs-xs); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea, .finder textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1px solid #c4cbd4; border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-base); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea, .finder textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; padding-inline-end: 40px; }
[dir="rtl"] .field select { background-position: left 12px center; }
.field :is(input, select, textarea):hover { border-color: #8c96a3; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.25); }
.field [aria-invalid="true"] { border-color: var(--c-accent) !important; background-color: #fff8f8 !important; }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.field__error { font-size: var(--fs-xs); color: var(--c-accent-hover); font-weight: 600; margin: 0; }
.field input[type="file"] { padding: var(--s-3); border: 1px dashed #c4cbd4; border-radius: var(--radius-sm); background: var(--c-surface); font-size: var(--fs-sm); }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-accent); flex: none; }
.field--check label { flex: 1; min-width: 0; }
.field--check .field__error { flex-basis: 100%; }
.file-list { display: grid; gap: var(--s-1); font-size: var(--fs-xs); color: var(--c-muted); }
.file-list li { display: flex; gap: var(--s-2); align-items: center; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { padding: var(--s-4) var(--s-5); border-inline-start: 3px solid var(--c-accent); background: #fff4f4; color: var(--c-accent-hover); font-weight: 600; font-size: var(--fs-sm); }
.form__summary ul { margin-top: var(--s-2); font-weight: 400; padding-inline-start: var(--s-5); list-style: disc; }
.form__summary a { color: inherit; }
.form__status { padding: var(--s-5); border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface); }
.form__status h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); display: flex; gap: var(--s-2); align-items: center; }
.form__status.is-warn { background: var(--c-warn-bg); border-color: #e4c27a; }
.form__status.is-warn h3 { color: #6b4500; }
.form__status.is-success { background: #eef8f2; border-color: #a6d8b8; }
.form__status.is-error { background: #fff4f4; border-color: #f0b4b6; }
.form__status .btn-row { margin-top: var(--s-4); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-ink); color: #c9d1da; padding-block: var(--s-10); position: relative; overflow: hidden; margin: 0 var(--gutter) var(--section); border-radius: var(--radius-xl); }
/* As the footer's opening panel: .cta-wrap paints a split backdrop — top half = the section above (white, grey or
   dark), bottom half = the footer — so the panel always sits on the seam and no stray white strip shows. */
.cta-wrap { --cta-top: var(--c-bg); padding-top: var(--s-8); background: linear-gradient(to bottom, var(--cta-top) 0 50%, var(--c-ink) 50% 100%); }
.section--surface + .cta-wrap { --cta-top: var(--c-surface); }
.section--dark + .cta-wrap { --cta-top: var(--c-ink); padding-top: 0; }
.cta-wrap .cta-band { margin: 0 max(var(--gutter), calc((100% - 1320px) / 2)); padding-block: var(--s-9); background: var(--c-ink-2); border: 1px solid var(--c-line-dark); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.section--dark + .cta-wrap .cta-band { box-shadow: none; }
@media (max-width: 768px) { .cta-wrap { padding-top: var(--s-6); } .cta-wrap .cta-band { padding-block: var(--s-7); } }
.cta-band::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
[dir="rtl"] .cta-band::after { mask-image: linear-gradient(to right, #000, transparent); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-7); }
.cta-band__title { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--s-3); max-width: 24ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); flex: none; }

/* ---------- Search dialog ---------- */
.search-dialog { width: min(720px, calc(100vw - 2rem)); max-height: min(80vh, 720px); margin: 10vh auto auto; padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(10, 14, 20, 0.6); backdrop-filter: blur(2px); }
.search-dialog__panel { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.search-dialog__head { display: flex; justify-content: space-between; align-items: center; }
.search-dialog__title { font-size: var(--fs-md); }
.search-dialog__field { display: flex; align-items: center; gap: var(--s-3); border: 1px solid #c4cbd4; border-radius: var(--radius); padding-inline: var(--s-4); }
.search-dialog__field:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.25); }
.search-dialog__field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; font-size: var(--fs-md); }
.search-dialog__hint { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }
.search-results { overflow-y: auto; max-height: 50vh; display: grid; gap: var(--s-1); }
.search-results a { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-3); border-radius: var(--radius-sm); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible, .search-results a.is-active { background: var(--c-surface); outline: none; }
.search-results .sr-type { grid-row: span 2; align-self: start; font: 500 0.6875rem/1 var(--font-mono); text-transform: uppercase; padding: 5px 6px; border-radius: var(--radius-sm); background: var(--c-surface-2); color: var(--c-muted); }
.search-results .sr-title { font-weight: 600; color: var(--c-ink); }
.search-results .sr-text { font-size: var(--fs-xs); color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: #ffe9a8; color: inherit; }
.search-results .sr-empty { padding: var(--s-4); color: var(--c-muted); }

/* ---------- Lightbox & gallery ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 11, 16, 0.9); }
.lightbox__figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s-9) var(--s-5) var(--s-5); gap: var(--s-3); }
.lightbox__image { max-width: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { color: #d5dbe2; font-size: var(--fs-sm); text-align: center; }
.lightbox__close { position: fixed; top: var(--s-4); inset-inline-end: var(--s-4); color: #fff; background: rgba(255, 255, 255, 0.1); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item, .cert-card__media, .pgallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; position: relative; }
.gallery__item { aspect-ratio: 1; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; inset-inline-end: var(--s-5); bottom: var(--s-5); z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: var(--c-ink); color: #fff; box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.to-top.is-visible { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--c-accent); }

/* ---------- Reveal on scroll (only when JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}


/* ---------- RFQ product lines ---------- */
.items { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.items__title { font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); margin: 0; }
.items__list { display: grid; gap: var(--s-3); counter-reset: item; }
.item-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s-3) var(--s-4); align-items: end; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.item-row__remove { align-self: end; min-height: 48px; }
.items__add { justify-self: start; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--c-accent); padding-inline: var(--s-3); }
.btn--ghost:hover { color: var(--c-accent-hover); text-decoration: underline; }

/* ---------- Product comparison ---------- */
.compare-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start; margin-top: var(--s-3); padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-ink); font: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.compare-toggle:hover { border-color: var(--c-ink); }
.compare-toggle[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.compare-toggle .icon { width: 16px; height: 16px; }
.compare-tray { position: fixed; z-index: 95; inset-inline-start: var(--s-5); bottom: var(--s-5); display: flex; align-items: center; gap: var(--s-2); padding: 6px 6px 6px var(--s-4); padding-inline: var(--s-4) 6px; border-radius: 999px; background: var(--c-ink); color: #fff; box-shadow: var(--shadow); font-size: var(--fs-sm); }
.compare-tray[hidden] { display: none; }
.compare-tray a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.compare-tray a:hover { text-decoration: underline; }
.compare-tray button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; }
.compare-tray button:hover { background: var(--c-accent); }
.compare-msg { margin: 0 0 var(--s-4); }
.compare-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: end; margin-bottom: var(--s-5); }
.compare-tools .field { min-width: min(320px, 100%); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; font-size: var(--fs-sm); }
.compare-table th, .compare-table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); text-align: start; vertical-align: top; min-width: 180px; }
.compare-table thead th { background: var(--c-surface); vertical-align: bottom; }
.compare-table tbody th[scope="row"], .compare-table thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--c-surface); min-width: 140px; max-width: 180px; font-weight: 600; color: var(--c-ink); }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-head { display: grid; gap: var(--s-2); }
.compare-head__photo { justify-self: start; }
.compare-head img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); background: var(--c-surface-2); }
.compare-head a { color: var(--c-ink); font-weight: 600; }
.compare-na { color: var(--c-muted); font-style: italic; }
.compare-table ul { display: grid; gap: 2px; }


/* ---------- Customer system link (shown only when site.json → customerPortal.url is set) ---------- */
.portal-link { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.portal-link .icon { width: 18px; height: 18px; }

/* ---------- Footer: catalogue-via-Telegram link (opens the lead popup, assets/js/lead-capture.js) ---------- */
.footer__lead a { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.footer__lead .icon { width: 18px; height: 18px; }


/* 7-band layer motif (casing structure) */
.chero__layers { display: grid; gap: 3px; width: 132px; margin-bottom: var(--s-5); }
.chero__layers i { display: block; height: 4px; border-radius: 2px; background: #8c96a3; transform-origin: left; }
[dir="rtl"] .chero__layers i { transform-origin: right; }
.chero__layers i:nth-child(1) { background: var(--ch-red); width: 100%; }
.chero__layers i:nth-child(2) { background: #8c96a3; width: 78%; }
.chero__layers i:nth-child(3) { background: #dfe5eb; width: 92%; }
.chero__layers i:nth-child(4) { background: #f39a1e; width: 64%; }
.chero__layers i:nth-child(5) { background: #dfe5eb; width: 88%; }
.chero__layers i:nth-child(6) { background: #8c96a3; width: 72%; }
.chero__layers i:nth-child(7) { background: #c8151e; width: 96%; }
/* Export route strip */
.chero__route { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(9, 13, 19, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chero__route-inner { display: flex; align-items: center; gap: var(--s-4) var(--s-7); padding-block: var(--s-5); }
.chero__route-label { flex: none; display: flex; align-items: center; gap: var(--s-2); margin: 0; color: #fff; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
:lang(fa) .chero__route-label, :lang(ar) .chero__route-label { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.chero__route-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: #c9d1da; }
.chero__route-list li { display: inline-flex; align-items: center; gap: var(--s-2); }
.chero__code { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ch-red); font-weight: 600; }
/* Route line: thin rule along the top of the strip with a red pulse travelling outwards from the start side */
.chero__route-line { position: absolute; inset-inline: 0; top: -1px; height: 2px; overflow: hidden; }
.chero__route-line::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, var(--ch-red), #ff8a90, transparent); opacity: 0; }
.btn--catalog { background: rgba(201, 169, 110, 0.12); color: #f3e3c3; border: 1px solid #c9a96e; }
.btn--catalog:hover { background: #c9a96e; color: #121821; border-color: #c9a96e; }

/* Motion — only when the visitor has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .chero__layers i { animation: chero-extrude 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, chero-breathe 5s ease-in-out 2.2s infinite; }
  .chero__layers i:nth-child(1) { animation-delay: 0.45s, 2.2s; }
  .chero__layers i:nth-child(2) { animation-delay: 0.52s, 2.4s; }
  .chero__layers i:nth-child(3) { animation-delay: 0.59s, 2.6s; }
  .chero__layers i:nth-child(4) { animation-delay: 0.66s, 2.8s; }
  .chero__layers i:nth-child(5) { animation-delay: 0.73s, 3s; }
  .chero__layers i:nth-child(6) { animation-delay: 0.8s, 3.2s; }
  .chero__layers i:nth-child(7) { animation-delay: 0.87s, 3.4s; }
  .chero__route-line::after { animation: chero-travel 4.5s cubic-bezier(0.5, 0, 0.3, 1) 1.5s infinite; }
  .chero__route-list li { animation: chero-fade 0.5s ease both; animation-delay: calc(1.3s + var(--i, 0) * 0.12s); }
  @keyframes chero-kenburns { from { scale: 1.14; } to { scale: 1; } }
  @keyframes chero-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
  @keyframes chero-fade { from { opacity: 0; } }
  @keyframes chero-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes chero-extrude { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  @keyframes chero-breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.82); } }
  @keyframes chero-travel { 0% { inset-inline-start: -22%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { inset-inline-start: 100%; opacity: 0; } }
}

/* ---------- Homepage: custom manufacturing (tools/lib/pages.js → home(); texts: home.custom, technology.services) ---------- */
.custom-mfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-8); align-items: center; }
.custom-mfg__services { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.custom-mfg__services li { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); }
.custom-mfg__services .icon { width: 18px; height: 18px; color: var(--c-accent); }
.custom-mfg__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.custom-mfg .btn-row { margin-top: var(--s-6); }
@media (max-width: 900px) { .custom-mfg { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
@media (max-width: 480px) { .custom-mfg__cards { grid-template-columns: minmax(0, 1fr); } }

/* ===== pages.css ===== */
/* Page-specific layouts */

/* ---------- Home ---------- */
.finder-strip { margin-top: var(--s-7); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5) var(--s-6); border: 1px solid var(--c-line); border-inline-start: 4px solid var(--c-accent); border-radius: var(--radius); background: #fff; }
.finder-strip__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface); color: var(--c-accent); }
.finder-strip__icon .icon { width: 26px; height: 26px; }
.finder-strip__title { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.finder-strip p { color: var(--c-muted); font-size: var(--fs-sm); }

.app-list { display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.app-item { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); }
.app-item__n { font: 500 var(--fs-xs)/1.9 var(--font-mono); color: var(--c-accent); }
.app-item h3 { font-size: var(--fs-base); margin-bottom: var(--s-1); }
.app-item p { font-size: var(--fs-sm); color: var(--c-muted); }
.photo-stack { position: relative; padding-bottom: var(--s-9); }
.photo-stack img { border-radius: var(--radius); object-fit: cover; }
.photo-stack__a { width: 88%; aspect-ratio: 3 / 2; }
.photo-stack__b { position: absolute; inset-inline-end: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 2; border: 6px solid var(--c-surface); box-shadow: var(--shadow); }

.quality-teaser { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-9); align-items: center; }
.quality-teaser .section-head { margin-bottom: var(--s-6); }
.cert-minis { display: grid; gap: var(--s-3); }
.cert-mini { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-line); border-inline-start: 4px solid var(--c-ink); border-radius: var(--radius-sm); background: #fff; }
.cert-mini__std { font-weight: 600; color: var(--c-ink); }
.cert-mini__body { font-size: var(--fs-xs); color: var(--c-muted); text-align: end; }

.markets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.markets li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--c-line-dark); border-radius: var(--radius-sm); color: #fff; font-weight: 500; }
.market__code { font: 500 var(--fs-xs)/1 var(--font-mono); padding: 5px 6px; background: var(--c-accent); color: #fff; border-radius: 2px; direction: ltr; }
.markets--light { margin-top: var(--s-5); }
.markets--light li { color: var(--c-ink); border-color: var(--c-line); }

/* ---------- Catalogue ---------- */
.catalogue { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.catalogue__aside { position: sticky; top: calc(var(--header-offset) + var(--s-5)); }
.catalogue__main .section-title { margin-bottom: var(--s-5); }
.toolbar { display: grid; grid-template-columns: 1fr 240px; gap: var(--s-3); margin-bottom: var(--s-4); }
.toolbar__search { display: flex; align-items: center; gap: var(--s-2); padding-inline: var(--s-4); background: #fff; border: 1px solid #c4cbd4; border-radius: var(--radius-sm); color: var(--c-muted); }
.toolbar__search:focus-within { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.25); }
.toolbar__search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--c-text); }
.toolbar__select select { width: 100%; height: 50px; padding-inline: var(--s-4) 40px; border: 1px solid #c4cbd4; border-radius: var(--radius-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; appearance: none; }
[dir="rtl"] .toolbar__select select { background-position: left 12px center; padding-inline: var(--s-4) 40px; }
.catalogue__count { font-size: var(--fs-xs); color: var(--c-muted); font-family: var(--font-mono); margin-bottom: var(--s-4); }
.tree { font-size: var(--fs-sm); display: grid; gap: var(--s-3); }
.tree ul { list-style: none; padding-inline-start: var(--s-4); border-inline-start: 1px solid var(--c-line); margin-top: var(--s-2); display: grid; gap: var(--s-1); }
.tree a { text-decoration: none; color: var(--c-text); }
.tree a:hover { color: var(--c-accent); text-decoration: underline; }
.tree__family { font-weight: 600; color: var(--c-ink) !important; }
.tree li > span:first-child { color: var(--c-muted); font-weight: 500; }
.tree .code { font-size: 0.6875rem; color: var(--c-muted); margin-inline-start: var(--s-1); }

/* ---------- Family page ---------- */
.family-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; }
.family-aside { position: sticky; top: calc(var(--header-offset) + var(--s-5)); }
.group-list { display: grid; gap: var(--s-4); }
.group-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-2) var(--s-6); padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; scroll-margin-top: calc(var(--header-h) + 1rem); }
.group-row:target { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.group-row__media { grid-row: span 2; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface); }
.group-row__media img { width: 100%; height: 100%; object-fit: cover; }
.group-row__title { font-size: var(--fs-lg); margin: var(--s-2) 0; }
.group-row__body p { color: var(--c-muted); font-size: var(--fs-sm); }
.group-row__variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-2); align-self: end; }
.variant-link { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.variant-link .icon { margin-inline-start: auto; width: 18px; height: 18px; color: var(--c-accent); }
.variant-link:hover { border-color: var(--c-ink); background: var(--c-surface); }
.variant-link.is-current { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.variant-link.is-current .code { color: #ff8a8e; }
.variant-link.is-current .pill { margin-inline-start: auto; background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- Product detail ---------- */
.detail-hero { padding-block: var(--s-6) var(--s-8); background: linear-gradient(to bottom, var(--c-surface), #fff); border-bottom: 1px solid var(--c-line); }
.detail-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); align-items: start; }
.detail-hero__info { padding-top: var(--s-4); }
.detail-hero__title { font-size: var(--fs-2xl); margin: var(--s-2) 0 var(--s-4); }
.detail-hero__summary { font-size: var(--fs-md); color: var(--c-muted); }
.detail-hero__info .product-card__meta { margin-top: var(--s-4); }
.detail-toc { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); }
.detail-toc a { color: var(--c-muted); text-decoration: none; }
.detail-toc a:hover { color: var(--c-accent); text-decoration: underline; }
.pgallery__main { aspect-ratio: 1; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.pgallery__zoom { height: 100%; background: #fff; }
.pgallery__img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__zoom-icon { position: absolute; inset-inline-end: var(--s-3); bottom: var(--s-3); width: 40px; height: 40px; display: grid; place-items: center; background: rgba(18, 24, 33, 0.8); color: #fff; border-radius: var(--radius-sm); }
.pgallery__thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.pgallery__thumb { width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface); }
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb[aria-pressed="true"] { border-color: var(--c-accent); }
.pgallery__note { margin: var(--s-3) 0 0; color: var(--c-muted-light); font-size: var(--fs-xs); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s-9); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--header-offset) + var(--s-5)); }
.detail-section + .detail-section { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--c-line); }
.detail-section__title { font-size: var(--fs-lg); margin-bottom: var(--s-5); }
.detail-main .prose p { font-size: var(--fs-md); }
.variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3); }

/* ---------- Product finder ---------- */
.finder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); align-items: start; }
.finder { padding: var(--s-7); }
.finder__progress { height: 4px; background: var(--c-surface-2); border-radius: 2px; margin-bottom: var(--s-6); overflow: hidden; }
.finder__progress span { display: block; height: 100%; width: 25%; background: var(--c-accent); transition: width var(--dur-slow) var(--ease); }
.finder__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.finder__q { font-size: var(--fs-xl); font-weight: 600; color: var(--c-ink); padding: 0; margin-bottom: var(--s-5); line-height: var(--lh-head); }
.finder__count { display: block; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--c-accent); margin-bottom: var(--s-3); text-transform: uppercase; letter-spacing: 0.06em; }
:lang(fa) .finder__count, :lang(ar) .finder__count { font-family: var(--font-body); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-3) var(--s-4); border: 1px solid #c4cbd4; border-radius: var(--radius-sm); font-weight: 500; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.option span::before { content: ""; width: 18px; height: 18px; border: 2px solid #8c96a3; border-radius: 50%; flex: none; transition: all var(--dur) var(--ease); }
.option input[type="checkbox"] + span::before { border-radius: 3px; }
.option input:hover + span { border-color: var(--c-ink); }
.option input:checked + span { border-color: var(--c-ink); background: var(--c-surface); }
.option input:checked + span::before { border-color: var(--c-accent); background: var(--c-accent); box-shadow: inset 0 0 0 3px #fff; }
.option input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.finder__nav { display: flex; gap: var(--s-3); justify-content: flex-end; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.finder__nav [data-finder-back] { margin-inline-end: auto; }
.finder-aside .note-box { border-color: var(--c-accent); }
.finder-results { margin-top: var(--s-8); }
.finder-results:focus { outline: none; }
.result-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.result { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-4); border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.result__media { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-surface); }
.result__media img { width: 100%; height: 100%; object-fit: cover; }
.result__title { font-size: var(--fs-md); margin: var(--s-1) 0 var(--s-2); }
.result__title a { text-decoration: none; }
.result__title a:hover { color: var(--c-accent); }
.result__why { font-size: var(--fs-sm); color: var(--c-muted); }
.result__why strong { color: var(--c-ink); font-weight: 600; }
.result__why ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); }
.result__why li { display: inline-flex; gap: 4px; align-items: center; font-size: var(--fs-xs); background: var(--c-surface); padding: 2px 8px; border-radius: var(--radius-sm); }
.result__why li .icon { width: 14px; height: 14px; color: var(--c-success); }
.result__score { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--c-muted); text-align: center; }
.result__score b { display: block; font-size: var(--fs-lg); color: var(--c-ink); margin-bottom: 4px; }

/* ---------- Technology ---------- */
.tech-card { padding: var(--s-7); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); position: relative; overflow: hidden; }
.tech-card__n { position: absolute; inset-inline-end: var(--s-5); top: -0.15em; font: 600 7rem/1 var(--font-mono); color: var(--c-surface-2); margin: 0; pointer-events: none; }
.tech-card h2 { font-size: var(--fs-xl); margin-bottom: var(--s-4); position: relative; }
.tech-card p { color: var(--c-muted); position: relative; }
.tech-card .link-arrow { margin-top: var(--s-4); position: relative; }
.service { padding: var(--s-6); border: 1px solid var(--c-line-dark); border-radius: var(--radius); background: var(--c-ink-2); }
.service__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--c-accent); color: #fff; border-radius: var(--radius-sm); margin-bottom: var(--s-4); }
.service h3 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.service p { font-size: var(--fs-sm); color: var(--c-muted-light); }

/* ---------- Quality ---------- */
.cert-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.cert-card__media { aspect-ratio: 4 / 3; border-radius: 0; background: var(--c-surface-2); }
.cert-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.cert-card__title { font-size: var(--fs-md); margin-bottom: var(--s-4); }
.cert-card__description { color: var(--c-muted); margin-bottom: var(--s-5); }
.cert-card__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Insights ---------- */
.resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.resource { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.resource > .icon { width: 28px; height: 28px; color: var(--c-accent); }
.resource__type { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.resource__title { font-weight: 600; color: var(--c-ink); margin: 0; }
.article__header { padding-block: var(--s-7) var(--s-6); background: var(--c-surface); }
.article__title { font-size: var(--fs-3xl); line-height: var(--lh-tight); margin-bottom: var(--s-4); }
:lang(fa) .article__title, :lang(ar) .article__title { line-height: 1.4; }
.article__lead { font-size: var(--fs-md); color: var(--c-muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--c-muted); margin-top: var(--s-5); }
.article__header .note-box { margin-top: var(--s-5); margin-bottom: 0; }
.article__figure { margin: var(--s-7) 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-surface); }
.article__figure img { width: 100%; height: 100%; object-fit: cover; }
.article__body { padding-bottom: var(--s-9); }
.article__body p { font-size: var(--fs-md); }

/* ---------- Global ---------- */
.partner { padding: var(--s-6); border: 1px solid var(--c-line); border-radius: var(--radius); border-top: 3px solid var(--c-accent); }
.partner .icon { width: 32px; height: 32px; color: var(--c-accent); margin-bottom: var(--s-4); }
.partner h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.partner p { color: var(--c-muted); font-size: var(--fs-sm); }

/* ---------- Forms pages ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-9); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-offset) + var(--s-5)); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.form-aside .panel + .panel { margin-top: 0; }
.aside-item + .aside-item { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.aside-item h3, .aside-item__title { font-size: var(--fs-base); margin-bottom: var(--s-2); }
.aside-item p { font-size: var(--fs-sm); color: var(--c-muted); }
.contact-list { display: grid; gap: var(--s-4); font-size: var(--fs-sm); }
.contact-list div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px var(--s-3); }
.contact-list .icon { grid-row: span 2; color: var(--c-accent); margin-top: 2px; }
.contact-list dt { color: var(--c-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list dd { color: var(--c-ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { color: var(--c-ink); }

/* ---------- Root language page & 404 ---------- */
.root-page { background: var(--c-surface); color: var(--c-text); min-height: 100vh; display: grid; place-items: center; }
.root { width: min(720px, 100% - 2rem); padding: var(--s-9) 0; text-align: center; }
.root__logo { margin: 0 auto var(--s-6); height: 64px; width: auto; }
.root__title { color: #fff; font-size: var(--fs-2xl); }
.root__text { margin-top: var(--s-3); color: var(--c-muted-light); }
.root-lang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-8); }
.root-lang a { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: var(--shadow-sm); text-decoration: none; font-size: var(--fs-md); font-weight: 500; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.root-lang a:hover, .root-lang a:focus-visible { border-color: var(--c-accent); background: var(--c-accent-soft); }
.root-lang a.is-suggested { border-color: var(--c-accent); }
.root-lang a[lang="fa"] { font-family: "Vazirmatn", sans-serif; }
.root-lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.root-lang__code { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--c-accent); }
.root__code { font: 600 5rem/1 var(--font-mono); color: var(--c-accent); margin-bottom: var(--s-6); }
.nf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); text-align: start; }
.nf-list li { padding: var(--s-5); border: 1px solid var(--c-line-dark); border-radius: var(--radius); }
.nf-list li[lang="fa"] { font-family: "Vazirmatn", sans-serif; }
.nf-list li[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.nf-list h2 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--s-2); }
.nf-list p { font-size: var(--fs-sm); }
.nf-list a { color: #fff; }

/* ---------- Product documents panel and catalogue access ---------- */
.resources--compact { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--s-4); }
.resources--compact .resource { grid-template-columns: auto 1fr; padding: var(--s-3) var(--s-4); }
.resources--compact .resource .btn { grid-column: 1 / -1; justify-self: start; }
.btn-col { display: grid; gap: var(--s-3); }

/* ---------- Homepage product families: bento grid (tools/lib/components.js → bentoTile, pages.js → home) ----------
   Large feature tile for sausage casings (largest range) spanning two rows, three family tiles and the product finder
   as a dark tile. Photos fill each tile; text sits on a dark fade. 2 columns ≤1023px, 1 column ≤560px. */
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, minmax(290px, auto)); gap: var(--s-4); }
.bento__tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 290px; border-radius: var(--radius-lg); background: var(--c-ink); color: #fff; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.bento__tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bento__tile:focus-within { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.bento__tile--feature { grid-row: span 2; }
.bento__media { position: absolute; inset: 0; z-index: -1; }
.bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.bento__tile:hover .bento__media img { transform: scale(1.05); }
.bento__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 18, 25, 0.94) 0%, rgba(13, 18, 25, 0.62) 42%, rgba(13, 18, 25, 0.08) 78%); }
.bento__body { display: grid; gap: var(--s-2); padding: var(--s-5) var(--s-6); }
.bento__index { position: absolute; top: var(--s-4); inset-inline-start: var(--s-4); padding: 6px 10px; border-radius: 999px; background: rgba(13, 18, 25, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 var(--fs-xs)/1 var(--font-mono); color: #fff; }
.bento__title { margin: 0; color: #fff; font-size: var(--fs-lg); line-height: 1.25; }
.bento__tile--feature .bento__title { font-size: var(--fs-xl); }
.bento__title a { color: inherit; text-decoration: none; }
.bento__text { margin: 0; max-width: 42ch; color: #c9d1da; font-size: var(--fs-sm); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento__tile--feature .bento__text { -webkit-line-clamp: 3; font-size: var(--fs-base); }
.bento__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin: var(--s-2) 0 0; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.16); color: #a9b3bf; font-size: var(--fs-xs); }
.bento__go { display: inline-flex; align-items: center; gap: var(--s-2); color: #fff; font-weight: 600; font-size: var(--fs-sm); }
.bento__go .icon { width: 18px; height: 18px; color: #ff6b72; }
.bento__tile:hover .bento__go .icon--dir { transform: translateX(4px); }
[dir="rtl"] .bento__tile:hover .bento__go .icon--dir { transform: scaleX(-1) translateX(4px); }
/* Product finder tile */
.bento__tile--finder { justify-content: flex-start; gap: var(--s-3); padding: var(--s-6); background: radial-gradient(circle at 100% 0%, rgba(200, 21, 30, 0.32), transparent 58%), var(--c-ink); }
[dir="rtl"] .bento__tile--finder { background: radial-gradient(circle at 0% 0%, rgba(200, 21, 30, 0.32), transparent 58%), var(--c-ink); }
.bento__finder-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-control); background: rgba(255, 255, 255, 0.08); color: #ff6b72; }
.bento__finder-icon .icon { width: 24px; height: 24px; }
.bento__tile--finder .bento__text { -webkit-line-clamp: 4; }
.bento__tile--finder .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .bento__tile { min-height: 260px; }
  .bento__tile--feature { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .bento__tile { min-height: 240px; }
  .bento__tile--feature { min-height: 320px; }
  .bento__body { padding: var(--s-4) var(--s-5); }
  .bento__tile--finder { padding: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { .bento__tile:hover { transform: none; } }
/* Keep the hover lift and shadow working together with the shared reveal-on-scroll transition. */
.js .bento__tile[data-reveal] { transition: opacity 600ms var(--ease), transform 600ms var(--ease), box-shadow var(--dur) var(--ease); }
.js .bento__tile[data-reveal].is-visible:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .js .bento__tile[data-reveal].is-visible:hover { transform: none; } }

/* ---------------------------------------------------------------- Home: exploded 3D layer view (.xl)
   Built by layerExplode() in tools/lib/pages.js. Slabs sit in a CSS 3D stack (isometric tilt); each slab is lifted by
   --z × --gap. Hovering a legend row or a slab lifts that layer group further (CSS :has, no JS). */
.section-head--center { margin-inline: auto; text-align: center; }
.xl-section .tabs__list { justify-content: center; flex-wrap: wrap; overflow: visible; border-bottom: 0; gap: var(--s-2); margin-bottom: var(--s-6); }
.xl-section .tabs__tab { border: 1px solid var(--c-line); border-radius: 999px; background: #fff; margin: 0; padding: var(--s-2) var(--s-5); transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.xl-section .tabs__tab[aria-selected="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.xl-cta { display: flex; justify-content: center; margin-top: var(--s-7); }

.xl { --gap: 26px; --size: min(280px, 60vw); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); align-items: center;
  background: #fff; border: 1px solid var(--c-line); border-radius: calc(var(--radius) * 1.4); padding: var(--s-6) var(--s-7); box-shadow: var(--shadow); }
.xl--five { --gap: 34px; }
.xl-stage { position: relative; height: 400px; display: grid; place-items: center; perspective: 1600px; }
.xl-stack { position: relative; width: var(--size); height: var(--size); transform-style: preserve-3d;
  transform: translateY(calc(var(--n) * var(--gap) * 0.32)) rotateX(58deg) rotateZ(-42deg); }
[dir="rtl"] .xl-stack { transform: translateY(calc(var(--n) * var(--gap) * 0.32)) rotateX(58deg) rotateZ(42deg); }
.xl-floor { position: absolute; left: 50%; bottom: 36px; width: 70%; height: 46px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 24, 33, 0.18), transparent); filter: blur(4px); }

.xl-slab { --c: #6f7c8c; --lift: 0px; position: absolute; inset: 0; border-radius: 16px; transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) * var(--gap) + var(--lift)));
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 70%, #000);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 0 transparent;
  opacity: 0.94; transition: transform 380ms var(--ease), filter 300ms var(--ease), opacity 300ms var(--ease); }
/* front edges = slab thickness */
.xl-slab::before, .xl-slab::after { content: ""; position: absolute; background: color-mix(in srgb, var(--c) 70%, #000); }
.xl-slab::before { left: 10px; right: 10px; bottom: 0; height: 7px; transform-origin: bottom; transform: rotateX(90deg); }
.xl-slab::after { top: 10px; bottom: 10px; right: 0; width: 7px; transform-origin: right; transform: rotateY(-90deg); background: color-mix(in srgb, var(--c) 55%, #000); }
[dir="rtl"] .xl-slab::after { right: auto; left: 0; transform-origin: left; transform: rotateY(90deg); }
.xl-slab--outer { --c: #2f3b4a; }
.xl-slab--tie { --c: #c3cad3; }
.xl-slab--core { --c: #7a8696; }
.xl-slab--evoh { --c: #c8151e; }
.xl-slab--inner { --c: #a9b4c1; }

.xl-note { margin: var(--s-4) 0 0; padding-inline: var(--s-4); font-size: var(--fs-xs, 0.8rem); color: var(--c-muted); font-style: italic; }
.xl-legend { display: grid; gap: var(--s-1); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.xl-legend__item { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-2) var(--s-4); border-radius: 12px; border: 1px solid transparent; cursor: default;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
.xl-legend__item strong { display: block; font-weight: 600; color: var(--c-ink); }
.xl-legend__desc { display: block; font-size: var(--fs-sm); color: var(--c-muted); margin-top: 2px; }
.xl-legend__n { flex: none; display: grid; place-items: center; min-width: 44px; height: 32px; padding-inline: 8px; border-radius: 8px;
  font: 600 0.8rem/1 var(--font-mono); color: #fff; background: var(--c); }
.xl-swatch--outer { --c: #2f3b4a; } .xl-swatch--tie { --c: #8e98a5; color: #fff; } .xl-swatch--core { --c: #6f7c8c; }
.xl-swatch--evoh { --c: #c8151e; } .xl-swatch--inner { --c: #8794a3; }

/* hover / focus: highlight one group, dim the rest */
.xl:has(.xl-legend__item:hover) .xl-slab, .xl:has(.xl-slab:hover) .xl-slab { opacity: 0.35; filter: saturate(0.6); }
.xl:has(.xl-legend__item[data-g="1"]:hover) .xl-slab[data-g="1"], .xl:has(.xl-slab[data-g="1"]:hover) .xl-slab[data-g="1"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="1"]:hover) .xl-legend__item[data-g="1"], .xl-legend__item[data-g="1"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="2"]:hover) .xl-slab[data-g="2"], .xl:has(.xl-slab[data-g="2"]:hover) .xl-slab[data-g="2"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="2"]:hover) .xl-legend__item[data-g="2"], .xl-legend__item[data-g="2"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="3"]:hover) .xl-slab[data-g="3"], .xl:has(.xl-slab[data-g="3"]:hover) .xl-slab[data-g="3"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="3"]:hover) .xl-legend__item[data-g="3"], .xl-legend__item[data-g="3"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="4"]:hover) .xl-slab[data-g="4"], .xl:has(.xl-slab[data-g="4"]:hover) .xl-slab[data-g="4"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="4"]:hover) .xl-legend__item[data-g="4"], .xl-legend__item[data-g="4"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="5"]:hover) .xl-slab[data-g="5"], .xl:has(.xl-slab[data-g="5"]:hover) .xl-slab[data-g="5"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="5"]:hover) .xl-legend__item[data-g="5"], .xl-legend__item[data-g="5"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="6"]:hover) .xl-slab[data-g="6"], .xl:has(.xl-slab[data-g="6"]:hover) .xl-slab[data-g="6"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="6"]:hover) .xl-legend__item[data-g="6"], .xl-legend__item[data-g="6"]:hover { background: var(--c-surface); border-color: var(--c-line); }
.xl:has(.xl-legend__item[data-g="7"]:hover) .xl-slab[data-g="7"], .xl:has(.xl-slab[data-g="7"]:hover) .xl-slab[data-g="7"] { --lift: 22px; opacity: 1; filter: none; }
.xl:has(.xl-slab[data-g="7"]:hover) .xl-legend__item[data-g="7"], .xl-legend__item[data-g="7"]:hover { background: var(--c-surface); border-color: var(--c-line); }

@media (prefers-reduced-motion: no-preference) {
  .tabs__panel:not([hidden]) .xl-slab { animation: xl-explode 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d); }
  .tabs__panel:not([hidden]) .xl-legend__item { animation: xl-fade 500ms var(--ease) both; animation-delay: calc(var(--d) + 250ms); }
}
@keyframes xl-explode { from { transform: translateZ(0); opacity: 0; } }
@keyframes xl-fade { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 860px) {
  .xl { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5) var(--s-4); --size: min(200px, 46vw); --gap: min(20px, 5vw); overflow: hidden; }
  .xl--five { --gap: min(26px, 6.5vw); }
  .xl-stage { height: min(300px, 78vw); }
  .xl-section .tabs__tab { padding: var(--s-2) var(--s-4); }
}

/* ---------------------------------------------------------------- Home: knowledge-based company (.kb)
   Dark band: licence statement (start side) + glass "why it matters" card (end side). Red glow top-start as decoration. */
.kb { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #1a222d, var(--c-ink) 60%); }
.kb::before { content: ""; position: absolute; z-index: -1; inset-inline-start: -180px; top: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 21, 30, 0.28), rgba(200, 21, 30, 0.06) 70%, transparent); }
.kb .eyebrow { color: #ff6b70; }
.kb__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.kb__badge { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--s-5); border-radius: 18px;
  color: #fff; background: linear-gradient(145deg, rgba(200, 21, 30, 0.35), rgba(200, 21, 30, 0.12)); border: 1px solid rgba(255, 107, 112, 0.35);
  box-shadow: 0 10px 30px -12px rgba(200, 21, 30, 0.6); }
.kb__badge .icon { width: 30px; height: 30px; }
.kb .section-lead { line-height: 1.85; max-width: 62ch; }
.kb__licence { display: flex; gap: var(--s-4); align-items: flex-start; margin-top: var(--s-6); padding: var(--s-5) var(--s-6);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-inline-start: 3px solid var(--c-accent); border-radius: var(--radius); }
.kb__licence-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(200, 21, 30, 0.16); color: #ff6b70; }
.kb__licence-title { margin: 0 0 var(--s-2); font-size: 1.1rem; line-height: 1.5; color: #fff; }
.kb__licence-field { margin: 0; font-size: var(--fs-sm); color: var(--c-muted-light); }
.kb__card { padding: var(--s-7); border-radius: calc(var(--radius) * 1.5); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6); }
.kb__card-title { margin: 0 0 var(--s-5); font-size: 1.25rem; color: #fff; }
.kb__card .check-list { gap: var(--s-4); margin-bottom: var(--s-6); color: #d5dbe2; }
.kb__card .check-list .icon { color: #ff6b70; }
@media (max-width: 860px) {
  .kb__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .kb__card { padding: var(--s-5); }
  .kb__licence { padding: var(--s-4); }
  .kb::before { width: 380px; height: 380px; top: -160px; }
}

/* Hero: knowledge-based company badge (links to the .kb section further down) */
/* ---------- Page hero (inner pages) ----------
   tools/lib/components.js → pageHero(). Dark panel with the red accent bar and 7-band layer motif (.chero__layers),
   the photo (when given) filling the end side behind a soft fade, optional buttons, and an optional bottom strip that
   includes an optional navigation strip (.chero__route*). ≤900 px: the photo becomes a band above the text. */
.page-hero { --ch-bg: #0d1219; --ch-red: #e3262f; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: var(--ch-bg); color: #c9d1da; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 60%); mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 60%); }
[dir="rtl"] .page-hero::before { -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 60%); mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 60%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(200, 21, 30, 0.24), transparent 70%); }
[dir="rtl"] .page-hero::after { background: radial-gradient(ellipse 60% 70% at 0% 0%, rgba(200, 21, 30, 0.24), transparent 70%); }
.page-hero__media { position: absolute; inset-block: var(--s-3) 0; inset-inline-end: 0; width: 50%; z-index: -1; overflow: hidden; border-start-start-radius: var(--radius-xl); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to right, var(--ch-bg) 0%, rgba(13, 18, 25, 0.4) 14%, transparent 36%),
  linear-gradient(to bottom, transparent 62%, rgba(13, 18, 25, 0.8) 100%); }
[dir="rtl"] .page-hero__media::after { background:
  linear-gradient(to left, var(--ch-bg) 0%, rgba(13, 18, 25, 0.4) 14%, transparent 36%),
  linear-gradient(to bottom, transparent 62%, rgba(13, 18, 25, 0.8) 100%); }
.page-hero__inner { position: relative; display: flex; flex-direction: column; padding-block: var(--s-6) var(--s-9); }
.page-hero--image .page-hero__inner { min-height: clamp(440px, 62vh, 600px); }
.page-hero--image .page-hero__text { margin-block: auto; max-width: min(600px, 46%); }
.page-hero__text { position: relative; max-width: 760px; padding-inline-start: var(--s-6); }
.page-hero__text::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 0; width: 4px; border-radius: 2px; background: linear-gradient(to bottom, #ff4a52, var(--ch-red) 40%, #8f0d14); transform-origin: top; }
.page-hero .chero__layers { width: 112px; margin-bottom: var(--s-4); }
.page-hero .breadcrumb { margin-bottom: var(--s-6); }
.page-hero__title { margin: 0; color: #fff; font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch; }
:lang(fa) .page-hero__title, :lang(ar) .page-hero__title { line-height: 1.4; letter-spacing: 0; }
:lang(ru) .page-hero__title, :lang(de) .page-hero__title, :lang(es) .page-hero__title { max-width: 24ch; hyphens: auto; }
.page-hero__intro { margin: var(--s-4) 0 0; max-width: 36em; font-size: var(--fs-md); line-height: 1.6; color: #c9d1da; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.page-hero .btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
/* Bottom strip (families, groups, certificates, markets): items may be links */
.page-hero__strip .chero__route-list a { display: inline-flex; align-items: center; gap: var(--s-2); color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
.page-hero__strip .chero__route-list a:hover { color: #fff; }
.page-hero__strip .chero__route-list a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 900px) {
  .page-hero__media { position: relative; order: -1; inset: auto; width: auto; height: clamp(200px, 50vw, 340px); border-radius: 0; }
  .page-hero__media::after, [dir="rtl"] .page-hero__media::after { background: linear-gradient(to bottom, rgba(13, 18, 25, 0.25) 0%, transparent 35%, var(--ch-bg) 100%); }
  .page-hero--image .page-hero__inner { min-height: 0; margin-top: calc(-1 * var(--s-8)); padding-top: 0; }
  .page-hero--image .page-hero__text { max-width: none; }
  .page-hero__inner { padding-block-end: var(--s-8); }
}
@media (max-width: 600px) {
  .page-hero__actions .btn { width: 100%; }
  .page-hero__strip .chero__route-inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero__media img { animation: chero-kenburns 14s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .page-hero__text::before { animation: chero-draw 0.8s cubic-bezier(0.6, 0, 0.2, 1) 0.3s both; }
  .page-hero__text > :not(.chero__layers) { animation: chero-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .page-hero__text > :nth-child(2) { animation-delay: 0.2s; }
  .page-hero__text > :nth-child(3) { animation-delay: 0.3s; }
  .page-hero__text > :nth-child(4) { animation-delay: 0.42s; }
  .page-hero__text > :nth-child(5) { animation-delay: 0.55s; }
  .page-hero .breadcrumb { animation: chero-fade 0.6s ease both; }
}

/* ---------- Product detail & article headers ---------- */
.detail-hero, .article__header { --ch-bg: #0d1219; --ch-red: #e3262f; position: relative; isolation: isolate; overflow: hidden; color: #c9d1da; border-bottom: 0;
  background: radial-gradient(ellipse 55% 70% at 100% 0%, rgba(200, 21, 30, 0.22), transparent 70%), var(--ch-bg); }
[dir="rtl"] .detail-hero, [dir="rtl"] .article__header { background: radial-gradient(ellipse 55% 70% at 0% 0%, rgba(200, 21, 30, 0.22), transparent 70%), var(--ch-bg); }
.detail-hero::before, .article__header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent); mask-image: linear-gradient(to bottom, #000 20%, transparent); }
.detail-hero .chero__layers, .article__header .chero__layers { width: 112px; margin-bottom: var(--s-4); }
.detail-hero__info { position: relative; padding-inline-start: var(--s-6); }
.detail-hero__info::before { content: ""; position: absolute; inset-block: var(--s-4) 4px; inset-inline-start: 0; width: 4px; border-radius: 2px; background: linear-gradient(to bottom, #ff4a52, var(--ch-red) 40%, #8f0d14); }
.detail-hero__title, .article__title { color: #fff; }
.detail-hero__summary, .article__lead { color: #c9d1da; }
.article__meta { color: #a9b3bf; }
.detail-hero .code { color: #ff6b72; }
.detail-hero .pill { background: rgba(255, 255, 255, 0.08); color: #e8edf2; }
.detail-hero .pill--accent { background: rgba(227, 38, 47, 0.18); color: #ff8a90; }
.detail-hero .btn--ghost, .detail-hero .btn--ghost:hover { color: #fff; }
.detail-hero .compare-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.detail-hero .compare-toggle:hover { border-color: #fff; }
.detail-hero .compare-toggle[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--c-ink); }
.detail-hero .detail-toc { border-top-color: rgba(255, 255, 255, 0.12); }
.detail-hero .detail-toc a { color: #a9b3bf; }
.detail-hero .detail-toc a:hover { color: #fff; }
.detail-hero .pgallery__main { border-color: transparent; box-shadow: var(--shadow-lg); }
.detail-hero .pgallery__thumb { background: rgba(255, 255, 255, 0.06); }
.detail-hero .btn:focus-visible, .detail-hero a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .detail-hero__info > :not(.chero__layers), .article__header .narrow > :not(.chero__layers) { animation: chero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .detail-hero__info::before { animation: chero-draw 0.8s cubic-bezier(0.6, 0, 0.2, 1) 0.2s both; }
  .detail-hero .pgallery { animation: chero-fade 0.8s ease 0.1s both; }
}

/* ===== Contact — split panel ===== */
@media (min-width: 901px) {
  .page-contact .page-hero__inner { min-height: clamp(320px, 44vh, 420px); }
}
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px -32px rgba(18, 24, 33, 0.35); }
.contact-split__form { padding: var(--s-8) var(--s-8) var(--s-7); min-width: 0; }
.contact-split__form .section-title { margin-bottom: var(--s-2); }
.contact-split__lead { color: var(--c-muted); margin-bottom: var(--s-5); }
.contact-split__hint { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--c-ink-2); padding: var(--s-3) var(--s-4); border-inline-start: 3px solid var(--c-accent); background: var(--c-surface); margin-bottom: var(--s-6); }
.contact-split__hint .icon { flex: none; margin-top: 0.2em; color: var(--c-accent); }
.contact-split__hint a { display: inline-flex; align-items: center; gap: 4px; color: var(--c-accent); font-weight: 600; white-space: nowrap; text-decoration: none; }
.contact-split__hint a:hover { text-decoration: underline; }
.contact-split__hint a .icon { width: 0.9em; height: 0.9em; vertical-align: -0.1em; margin: 0; }
.form__section--step .form__legend { display: flex; align-items: center; gap: var(--s-3); border-bottom: 0; padding-bottom: 0; margin-bottom: var(--s-4); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-accent); }
.form__step { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: var(--fs-xs); letter-spacing: 0; }
.form__section--step + .form__section--step { padding-top: var(--s-5); border-top: 1px dashed var(--c-line); }
.contact-split__aside { position: relative; background: var(--c-ink); color: #c9d1da; padding: var(--s-8) var(--s-5); border-inline-start: 4px solid var(--c-accent); }
.contact-split__aside::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.contact-split__aside > * { position: relative; }
.contact-split__title { color: #fff; font-size: var(--fs-md); margin-bottom: var(--s-5); }
.contact-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.contact-tile { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4); border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
a.contact-tile:hover, a.contact-tile:focus-visible { background: rgba(200,21,30,.12); border-color: rgba(200,21,30,.55); transform: translateY(-1px); }
.contact-tile__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: rgba(200,21,30,.16); color: #ff5a5f; }
.contact-tile__icon .icon { width: 1.15rem; height: 1.15rem; }
.contact-tile__label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: #8f9aa8; margin-bottom: 2px; }
.contact-tile__value { display: block; color: #fff; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.contact-tile__link { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-2); font-size: var(--fs-xs); color: #ff5a5f; font-weight: 600; }
.contact-tile__link .icon { width: 0.9em; height: 0.9em; }
[dir="rtl"] .form__section--step .form__legend, [dir="rtl"] .contact-tile__label { letter-spacing: 0; text-transform: none; }
@media (max-width: 1024px) {
  .contact-split { grid-template-columns: minmax(0, 1fr); }
  .contact-split__aside { order: -1; border-inline-start: 0; border-bottom: 4px solid var(--c-accent); padding: var(--s-6) var(--s-5); }
  .contact-tiles { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .contact-split__form { padding: var(--s-6) var(--s-5); }
}
@media (max-width: 640px) {
  .contact-split__aside, .contact-split__form { padding: var(--s-5) var(--s-4); }
  .contact-tile { gap: var(--s-3); padding: var(--s-3); }
  .contact-tile > span:last-child { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .contact-tile { transition: none; } a.contact-tile:hover { transform: none; } }
.contact-tile__value[dir="ltr"] { font-size: var(--fs-sm); overflow-wrap: normal; word-break: break-word; }

/* Hero photo seam fix: the fade overlay overlaps the photo's inner edge by 3px with solid background,
   so no anti-aliased sliver of the (zooming) photo shows as a bright vertical line. */
@media (min-width: 901px) {
  .page-hero__media { transform: translateZ(0); }
  .page-hero__media::after { inset-inline-start: -1px; background:
    linear-gradient(to right, var(--ch-bg) 0, var(--ch-bg) 4px, rgba(13, 18, 25, 0.4) 14%, transparent 36%),
    linear-gradient(to bottom, transparent 62%, rgba(13, 18, 25, 0.8) 100%); }
  [dir="rtl"] .page-hero__media::after { background:
    linear-gradient(to left, var(--ch-bg) 0, var(--ch-bg) 4px, rgba(13, 18, 25, 0.4) 14%, transparent 36%),
    linear-gradient(to bottom, transparent 62%, rgba(13, 18, 25, 0.8) 100%); }
}
/* The background grid used to fade out at 60%, so a grid line landed just beside the photo edge (50%) and read as a
   bright seam. Fade it out fully before the photo begins. */
@media (min-width: 901px) {
  .page-hero::before { -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 44%); mask-image: linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 44%); }
  [dir="rtl"] .page-hero::before { -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 44%); mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.5) 25%, transparent 44%); }
}

/* ===== catalogue.css ===== */
/* =====================================================================================================
   Online catalogue: flipbook (tools/lib/catalogue-book.js, assets/js/catalogue-book.js)
   Each page is a size container, so all type scales with the page (cqw units): flipbook, phone list
   and A4 print all look the same.
   ===================================================================================================== */
.page-catalog {
  --cb-bg: #0c1016; --cb-page: #141a22; --cb-page-2: #1a212b; --cb-ink: #f3efe7; --cb-muted: #a8a397;
  --cb-gold: #c9a96e; --cb-red: #c8151e; --cb-line: rgba(201, 169, 110, .28); --cb-hair: rgba(201, 169, 110, .14);
  --cb-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
:root[lang="fa"] .page-catalog, :root[lang="ar"] .page-catalog { --cb-serif: var(--font-body); }

/* ---------- Stage, heading, toolbar ---------- */
.cbook-stage { background: radial-gradient(120% 80% at 50% 0%, #1b2330 0%, var(--cb-bg) 60%); color: var(--cb-ink); padding: var(--s-6) 0 var(--s-8); overflow: hidden; }
.cbook-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
.cbook-head__back { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-bottom: var(--s-2); color: var(--cb-ink); }
.cbook-head__back .icon { rotate: 180deg; }
.cbook-head__eyebrow { color: var(--cb-gold); letter-spacing: .22em; text-transform: uppercase; font-size: var(--fs-xs); margin: 0 0 var(--s-2); }
.cbook-head__title { font-family: var(--cb-serif); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; margin: 0; color: var(--cb-ink); }
.cbook-head__intro { color: var(--cb-muted); max-width: 60ch; margin: var(--s-3) 0 0; }
.cbook-head__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cbook-head__actions small { opacity: .75; font-weight: 400; }
.cbook-bar { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.cbook-bar__jump { background: rgba(255, 255, 255, .06); color: var(--cb-ink); border: 1px solid var(--cb-line); border-radius: 999px; padding: .55em 1.1em; font: inherit; font-size: var(--fs-sm); min-height: 44px; max-width: 100%; }
.cbook-bar__jump option { color: #121821; background: #fff; }
.cbook-bar__nav { display: flex; align-items: center; gap: var(--s-3); }
.cbook-bar [hidden] { display: none !important; }
.cbook-bar__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cb-line); background: rgba(255, 255, 255, .04); color: var(--cb-ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cbook-bar__btn:hover:not(:disabled) { background: var(--cb-gold); border-color: var(--cb-gold); color: #121821; }
.cbook-bar__btn:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .cbook-bar__nav .cbook-bar__btn span { display: inline-block; transform: scaleX(-1); }
.cbook-bar__count { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--cb-muted); min-width: 7ch; text-align: center; }
.cbook-hint { text-align: center; color: var(--cb-muted); font-size: var(--fs-xs); margin-top: var(--s-5); }
.cbook-hint[hidden] { display: none; }
.cbook-stage:fullscreen { padding: var(--s-5) 0; overflow: auto; }
.cbook-stage:fullscreen .cbook-head, .cbook-stage:fullscreen .cbook-hint { display: none; }

/* ---------- Book: flip mode (wide screens) ---------- */
.cbook-viewport { display: flex; justify-content: center; }
.cbook {
  --pw: min(40vw, calc((100vh - 230px) * .7071), 540px); --ph: calc(var(--pw) * 1.4142);
  position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 2800px;
  transition: transform .8s cubic-bezier(.3, .1, .2, 1);
}
.cbook-stage:fullscreen .cbook { --pw: min(46vw, calc((100vh - 110px) * .7071)); }
.cbook:not(.is-linear)[data-pos="start"] { transform: translateX(-25%); }
.cbook:not(.is-linear)[data-pos="end"] { transform: translateX(25%); }
[dir="rtl"] .cbook:not(.is-linear)[data-pos="start"] { transform: translateX(25%); }
[dir="rtl"] .cbook:not(.is-linear)[data-pos="end"] { transform: translateX(-25%); }
.cbook:not(.is-linear) .cbook__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.35, .08, .2, 1); }
.cbook:not(.is-linear) .cbook__leaf.is-flipped { transform: rotateY(-180deg); }
[dir="rtl"] .cbook:not(.is-linear) .cbook__leaf { left: 0; transform-origin: right center; }
[dir="rtl"] .cbook:not(.is-linear) .cbook__leaf.is-flipped { transform: rotateY(180deg); }
.cbook:not(.is-linear) .cbook__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); cursor: pointer; }
.cbook:not(.is-linear) .cbook__face--back { transform: rotateY(180deg); }
.cbook:not(.is-linear) { touch-action: pan-y pinch-zoom; }
.cbook.is-jumping, .cbook.is-jumping .cbook__leaf { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .cbook, .cbook:not(.is-linear) .cbook__leaf { transition: none; }
}
.cbook:not(.is-linear) .cbook__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.cbook:not(.is-linear) .cbook__face--front::after { background: linear-gradient(90deg, rgba(60, 45, 20, .28), transparent 8%); }
.cbook:not(.is-linear) .cbook__face--back::after { background: linear-gradient(270deg, rgba(60, 45, 20, .28), transparent 8%); }
[dir="rtl"] .cbook:not(.is-linear) .cbook__face--front::after { background: linear-gradient(270deg, rgba(60, 45, 20, .28), transparent 8%); }
[dir="rtl"] .cbook:not(.is-linear) .cbook__face--back::after { background: linear-gradient(90deg, rgba(60, 45, 20, .28), transparent 8%); }

/* ---------- Book: list mode (phones, no JavaScript) ---------- */
.cbook.is-linear { display: grid; gap: var(--s-5); width: min(100%, 640px); height: auto; padding-inline: var(--s-4); }
.cbook.is-linear .cbook__leaf { display: contents; }
.cbook.is-linear .cbook__face { position: relative; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
.cbook.is-linear .cbook__face:has(.cpage--blank) { display: none; }

/* ---------- Page: ivory & gold ---------- */
/* The face is a size container too, so the page's own font-size (in cqw) scales with the page, not the window. */
.cbook__face { container-type: size; }
.cpage {
  /* Ivory pages */
  --pg: #f7f2e8; --pg-2: #efe7d8; --ink: #17181b; --muted: #6b645a; --gold: #9c7a40; --gold-soft: #c9a96e;
  --line: rgba(156, 122, 64, .45); --hair: rgba(156, 122, 64, .22);
  container-type: size; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 20% 0%, #fbf8f1 0%, var(--pg) 45%, var(--pg-2) 100%);
  color: var(--ink); font-size: 2.65cqw; line-height: 1.6; overflow: hidden;
}
/* Full-bleed photo pages (cover, family openers, back cover) */
.cpage--cover, .cpage--divider, .cpage--back {
  --ink: #ffffff; --muted: #ece4d3; --gold: #dcc08a; --line: rgba(220, 192, 138, .55); --hair: rgba(220, 192, 138, .3);
  background: #0e0f12;
}
/* Fine double gold frame */
.cpage::before { content: ""; position: absolute; inset: 3.2cqw; border: 1px solid var(--hair); outline: 1px solid var(--hair); outline-offset: -1.1cqw; pointer-events: none; z-index: 4; }
.cpage--blank { background: var(--pg); }
.cpage--blank::before { display: none; }
/* Watermark monogram */
.cpage__mono { position: absolute; z-index: 0; inset-inline-end: -6cqw; bottom: -14cqw; font-family: var(--cb-serif); font-weight: 600; font-size: 92cqw; line-height: 1; color: var(--gold); opacity: .06; pointer-events: none; user-select: none; }
.cpage p { margin: 0 0 .9em; }
.cpage a { color: inherit; }
.cpage img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.cpage__inner { position: relative; z-index: 2; padding: 10cqw 10cqw 0; }
.cpage__kicker { display: flex; align-items: center; gap: 1.2em; font-size: 1.9cqw; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 2.2cqw !important; }
.cpage__kicker span { font-family: var(--font-mono); color: #b3141c; letter-spacing: 0; }
.cpage__title { font-family: var(--cb-serif); font-weight: 500; font-size: 8cqw; line-height: 1.02; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.cpage__rule { display: flex; align-items: center; gap: 1.4cqw; width: 22cqw; height: auto; margin: 3.6cqw 0 4cqw; }
.cpage__rule::before { content: ""; flex: 1; height: 1px; background: var(--gold); }
.cpage__rule::after { content: ""; width: 1.3cqw; height: 1.3cqw; transform: rotate(45deg); border: 1px solid var(--gold); }
.cpage__lead { font-family: var(--cb-serif); font-size: 3.6cqw; line-height: 1.4; font-style: italic; color: var(--ink); }
:root[lang="fa"] .cpage__lead, :root[lang="ar"] .cpage__lead { font-size: 3cqw; line-height: 1.8; font-style: normal; }
.cpage__small { font-size: 2.2cqw; color: var(--muted); }
.cpage__media { position: relative; overflow: hidden; flex: none; }
.cpage--text { font-size: 2.55cqw; }
.cpage__bg { position: absolute !important; inset: 0; z-index: 0; }
.cpage__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 9, 12, .5) 0%, rgba(8, 9, 12, .12) 30%, rgba(8, 9, 12, .35) 55%, rgba(8, 9, 12, .94) 82%); }
/* Back cover: the contact block is tall, so darken the whole photo for legibility. */
.cpage--back .cpage__veil { background: linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, rgba(8, 9, 12, .82) 30%, rgba(8, 9, 12, .9) 60%, rgba(8, 9, 12, .96) 100%); }
.cpage__foot { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 2.6cqw 10cqw 5.4cqw; font-size: 1.7cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cpage__foot span:last-child { font-family: var(--cb-serif); font-size: 2.4cqw; letter-spacing: .08em; color: var(--gold); }
:root[lang="fa"] .cpage__kicker, :root[lang="ar"] .cpage__kicker, :root[lang="fa"] .cpage__foot, :root[lang="ar"] .cpage__foot { letter-spacing: 0; }

/* Cover and back cover */
.cpage--cover, .cpage--back { justify-content: space-between; }
.cover__top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 10cqw 10cqw 0; }
.cpage .cover__logo { width: 22cqw; height: auto; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
.cover__year { font-size: 1.9cqw; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); border-block: 1px solid var(--line); padding: .7em 0; }
.cover__body, .back__body { position: relative; z-index: 2; padding: 0 10cqw; margin-top: auto; }
.cover__title { font-family: var(--cb-serif); font-weight: 500; font-size: 11.5cqw; line-height: .96; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.cover__tag { font-size: 3cqw; color: var(--muted); max-width: 34em; }
.cover__foot { position: relative; z-index: 2; margin: 0 !important; padding: 4.5cqw 10cqw 8.5cqw; font-size: 1.85cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.back__body .cover__logo { margin-bottom: 5cqw; }
.back__body .cover__title { font-size: 8.6cqw; }
.back__body > p { font-size: 2.8cqw; color: var(--muted); }
.back__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw 5cqw; margin: 4cqw 0 5cqw; padding-top: 3cqw; border-top: 1px solid var(--hair); }
.back__contact dt { font-size: 1.8cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .4em; }
.back__contact dd { margin: 0; font-size: 2.5cqw; color: var(--ink); overflow-wrap: anywhere; }
.back__contact a { text-decoration: none; }

/* Contents */
.ctoc { list-style: none; margin: 0; padding: 0; }
.ctoc li { border-bottom: 1px solid var(--hair); }
.ctoc a { display: flex; align-items: baseline; gap: 1.4cqw; padding: 1.7cqw 0; text-decoration: none; font-size: 2.75cqw; transition: color .2s; }
.ctoc a:hover { color: var(--gold); }
.ctoc i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.3em); }
.ctoc b { font-family: var(--cb-serif); font-weight: 600; font-size: 1.15em; color: var(--gold); }
.ctoc .is-family a { font-family: var(--cb-serif); font-size: 3.6cqw; font-weight: 500; padding-inline-start: 2cqw; }

/* About, factory, technology, quality */
.cstats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 3.4cqw 4cqw; margin: 4cqw 0 0; padding: 0; }
.cstats li { border-top: 1px solid var(--line); padding-top: 2cqw; }
.cstats strong { display: block; font-family: var(--cb-serif); font-size: 8.4cqw; line-height: 1; color: var(--gold); font-weight: 500; margin-bottom: .2em; }
.cstats span { font-size: 2.2cqw; color: var(--muted); }
.cmosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 25cqw 25cqw; gap: 1.6cqw; margin: 3cqw 0 3.4cqw; }
.cmosaic figure { margin: 0; overflow: hidden; }
.cmosaic figure:first-child { grid-row: span 2; }
.cmosaic figure:nth-child(n+4) { display: none; }
.cstacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw; margin: 3.4cqw 0 3cqw; }
.cstack { margin: 0; text-align: center; }
.cstack__bars { display: grid; gap: .5cqw; padding: 2cqw; border: 1px solid var(--line); background: #fffdf8; }
.cl { display: block; height: 2.1cqw; border-radius: 1px; }
.cstack figcaption { margin-top: 1.8cqw; font-size: 2.2cqw; color: var(--ink); }
.cl--outer { background: linear-gradient(90deg, #b3141c, #d9383f); }
.cl--tie { background: #5b6472; height: 1.1cqw; }
.cl--core { background: linear-gradient(90deg, #8e7748, #c9a96e); }
.cl--evoh { background: linear-gradient(90deg, #2f6fed, #6b9cff); }
.cl--inner { background: linear-gradient(90deg, #e3d9c4, #f4ede0); box-shadow: inset 0 0 0 1px rgba(156, 122, 64, .35); }
.clegend { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4cqw; font-size: 2.15cqw; color: var(--muted); }
.clegend li { display: flex; align-items: center; gap: 1.6cqw; }
.clegend .cl { width: 5cqw; flex: none; }
.ccerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; margin: 3cqw 0 4cqw; }
.ccerts figure { margin: 0; }
.ccerts img { height: 22cqw; object-fit: cover; object-position: top; border: 1px solid var(--line); background: #fff; box-shadow: 0 1cqw 2.4cqw -1cqw rgba(60, 45, 20, .35); }
.ccerts figcaption { margin-top: 1.6cqw; font-size: 1.95cqw; color: var(--muted); line-height: 1.4; }
.ccerts strong { display: block; color: var(--ink); font-size: 2.2cqw; }

/* Family divider: full-bleed photo */
.cpage--divider { justify-content: flex-end; }
.divider__body { position: relative; z-index: 2; padding: 0 10cqw 13cqw; }
.divider__no { display: block; font-family: var(--cb-serif); font-weight: 500; font-size: 24cqw; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 3cqw; }
.divider__title { font-family: var(--cb-serif); font-weight: 500; font-size: 9.8cqw; line-height: 1; margin: 0; color: var(--ink); }
.divider__body p { font-size: 2.7cqw; color: var(--muted); }

/* Product page */
.cpage__media--product { height: 34%; }
.cpage__media--product.product-photo::before { inset-inline: 7cqw auto; inset-block-start: 6.5cqw; width: 14cqw; }
.cpage__media--product::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, rgba(247, 242, 232, .9)); }
.cprod__code { position: absolute; z-index: 5; top: 6.5cqw; inset-inline-end: 7cqw; font-family: var(--font-mono); font-size: 2.1cqw; letter-spacing: .14em; background: #17181b; color: #e8cf9c; padding: .6em 1.1em; border: 1px solid rgba(220, 192, 138, .6); }
.cpage--product .cpage__inner { padding-top: 3cqw; }
.cprod__name { font-family: var(--cb-serif); font-weight: 500; font-size: 7cqw; line-height: 1.04; margin: 0; color: var(--ink); }
.cpage--product .cpage__rule { margin: 2.6cqw 0 2.8cqw; }
.cprod__summary { font-family: var(--cb-serif); font-style: italic; font-size: 3cqw; line-height: 1.4; color: var(--ink); }
:root[lang="fa"] .cprod__summary, :root[lang="ar"] .cprod__summary { font-style: normal; font-size: 2.6cqw; line-height: 1.7; }
.cprod__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; margin-top: 2.6cqw; }
.cprod__cols h4 { font-size: 1.8cqw; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.3cqw; font-weight: 600; }
:root[lang="fa"] .cprod__cols h4, :root[lang="ar"] .cprod__cols h4 { letter-spacing: 0; font-size: 2.2cqw; }
.cprod__cols h4 + * { margin-bottom: 2.4cqw; }
.cprod__list { list-style: none; padding: 0; margin: 0; font-size: 2.2cqw; color: var(--ink); }
.cprod__list li { position: relative; padding-inline-start: 2.8cqw; margin-bottom: .8cqw; line-height: 1.4; }
.cprod__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: .9cqw; height: .9cqw; transform: rotate(45deg); border: 1px solid var(--gold); }
.cprod__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1cqw; }
.cprod__tags li { font-size: 1.95cqw; border: 1px solid var(--line); padding: .35em .9em; color: var(--ink); background: rgba(255, 255, 255, .45); }
.cprod__specs { width: 100%; border-collapse: collapse; font-size: 1.85cqw; }
.cprod__specs th, .cprod__specs td { text-align: start; vertical-align: top; padding: .95cqw 0; border-bottom: 1px solid var(--hair); line-height: 1.35; }
.cprod__specs th { color: var(--muted); font-weight: 500; width: 42%; padding-inline-end: 1.6cqw; }
.cprod__cta { position: relative; z-index: 3; margin-top: .6cqw; display: inline-flex; align-items: center; gap: .8em; font-size: 1.95cqw; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gold) !important; border-bottom: 1px solid var(--gold); padding-bottom: .3em; }
:root[lang="fa"] .cprod__cta, :root[lang="ar"] .cprod__cta { letter-spacing: 0; }
.cprod__cta:hover { color: var(--ink) !important; border-color: var(--ink); }
[dir="rtl"] .cprod__arrow { display: inline-block; transform: scaleX(-1); }
.cprod__cta--solid { margin-top: 0; background: transparent; color: var(--gold) !important; border: 1px solid var(--gold); padding: 1em 1.8em; }
.cprod__cta--solid:hover { background: var(--gold); color: #17181b !important; border-color: var(--gold); }

/* Comparison chart */
.ccomp { width: 100%; border-collapse: collapse; font-size: 1.95cqw; margin: 1cqw 0 3cqw; }
.ccomp th { text-align: start; font-size: 1.7cqw; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; padding: 0 1.2cqw 1.4cqw 0; border-bottom: 1px solid var(--gold); }
:root[lang="fa"] .ccomp th, :root[lang="ar"] .ccomp th { letter-spacing: 0; }
.ccomp td { padding: .85cqw 1.6cqw .85cqw 0; border-bottom: 1px solid var(--hair); vertical-align: top; line-height: 1.3; }
.ccomp td:first-child { color: var(--ink); font-weight: 500; }
.ccomp td:nth-child(2) { font-family: var(--cb-serif); font-size: 1.3em; text-align: center; color: var(--gold); }
.ccomp__code { display: block; font-family: var(--font-mono); font-size: 1.6cqw; color: #b3141c; letter-spacing: .08em; font-weight: 400; }
.ccomp tbody tr:nth-child(even) td { background: rgba(156, 122, 64, .05); }

/* Let the scrolling edition grow with its text and keep the A4 layout for print and flipbook measurement. */
@media screen {
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) { grid-template-columns: minmax(0, 1fr); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cbook__face { aspect-ratio: auto; container-type: inline-size; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cpage {
    container-type: inline-size; height: auto; min-height: 100%; padding-block-end: var(--s-3);
    font-size: max(1rem, 2.65cqw); overflow-wrap: anywhere;
  }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cpage__inner { zoom: 1 !important; padding: var(--s-6) 8cqw var(--s-4); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cpage__foot { position: static; gap: var(--s-3); margin-top: auto; padding: var(--s-3) 8cqw; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) :is(.cpage--cover, .cpage--divider, .cpage--back) { min-height: clamp(380px, 125cqw, 620px); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cpage__media--product { height: auto; aspect-ratio: 16 / 8; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cprod__cols { grid-template-columns: repeat(auto-fit, minmax(min(185px, 100%), 1fr)); gap: var(--s-4); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) :is(.cpage__lead, .cprod__summary, .cover__tag, .divider__body p, .back__body > p, .ctoc a) { font-size: max(1rem, 3cqw); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) :is(.cprod__list, .cprod__specs, .back__contact dd, .ccomp, .cstats li, .cpage__small) { font-size: max(.875rem, 2.2cqw); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) :is(.cprod__tags li, .cprod__cols h4, .cprod__code, .back__contact dt, .ccomp th, .ccomp__code, .cpage__kicker, .cpage__foot, .cpage__foot span:last-child, .cover__foot, .cover__year, .cstack figcaption, .clegend, .ccerts figcaption, .ccerts strong) { font-size: max(.75rem, 1.95cqw); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) :is(.ctoc a, .cprod__cta) { min-height: 44px; align-items: center; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .cprod__cta { font-size: max(.875rem, 1.95cqw); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .back__body { min-width: 0; width: 100%; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .back__contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .ccomp { table-layout: fixed; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .ccomp th:first-child { width: 46%; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .ccomp th:nth-child(2) { width: 19%; }
  html:not(.is-pdf) .cbook.is-linear:not(.is-measuring) .ccomp :is(th, td) { overflow-wrap: anywhere; }
}

/* ---------- Print / PDF: one page per A4 sheet, nothing else ---------- */
@media print {
  @page catalogue { size: A4; margin: 0; }
  body.page-catalog { page: catalogue; background: #f7f2e8 !important; }
  /* Exactly one A4 width everywhere: anything wider shifts right-to-left pages (fa, ar) sideways. */
  .page-catalog, .page-catalog main, .cbook-stage, .cbook-viewport { width: 210mm !important; max-width: 210mm !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
  .page-catalog main > :not(.cbook-stage), .page-catalog .cta-wrap, .cbook-head, .cbook-bar, .cbook-hint { display: none !important; }
  .cbook-stage { padding: 0 !important; background: none !important; overflow: visible !important; }
  .cbook-viewport { display: block !important; }
  .cbook, .cbook.is-linear { display: block !important; width: 210mm !important; height: auto !important; padding: 0 !important; gap: 0 !important; transform: none !important; }
  .cbook .cbook__leaf { display: contents !important; }
  .cbook .cbook__face { position: relative !important; display: block; width: 210mm !important; height: 297mm !important; aspect-ratio: auto !important; transform: none !important; box-shadow: none !important; border-radius: 0 !important; break-after: page; page-break-after: always; overflow: hidden; }
  .cbook .cbook__face::after { display: none !important; }
  .cbook .cbook__face:has(.cpage--blank) { display: none !important; }
  .page-catalog * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ===== rtl.css ===== */
/*
 * Right-to-left adjustments (Persian, Arabic).
 * Most layout already uses logical properties (margin-inline, inset-inline, text-align: start),
 * so only direction-specific visuals are handled here.
 */
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .nav__link, [dir="rtl"] .btn { letter-spacing: 0; }
[dir="rtl"] .article-card__meta, [dir="rtl"] .doc-table thead th, [dir="rtl"] .contact-list dt, [dir="rtl"] .resource__type, [dir="rtl"] .footer__title { text-transform: none; letter-spacing: 0; }
[dir="rtl"] .mega { transform-origin: top right; }
[dir="rtl"] .link-arrow:hover .icon--dir { transform: scaleX(-1) translateX(3px); }
/* Latin-only technical strings keep LTR order inside RTL text */
[dir="rtl"] .code, [dir="rtl"] .market__code, [dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"], [dir="rtl"] input[type="tel"] { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="url"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="number"] { text-align: right; }
[dir="rtl"] .spec-table th { padding-inline-end: var(--s-4); }
[dir="rtl"] .layer__n { direction: ltr; }

/* ===== responsive.css ===== */
/* Responsive rules — desktop-first breakpoints: 1280, 1200 (nav), 1024, 768, 640, 430 */

@media (max-width: 1280px) {
  .steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-7); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-7); }
}

/* Navigation becomes an off-canvas drawer below 1200px */
@media (max-width: 1199.98px) {
  .site-header__inner { gap: var(--s-3); }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; height: auto; flex-direction: column; align-items: stretch; background: #fff; color: var(--c-text); overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--gutter) var(--s-8); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; height: auto; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
  .nav__link { height: auto; padding: var(--s-4) 0; font-size: var(--fs-md); flex: 1; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: #ff8a8e; }
  .nav__toggle { width: 48px; height: 48px; margin: 0; color: #eef1f4; }
  .nav__toggle .icon { width: 20px; height: 20px; }
  .mega { position: static; flex-basis: 100%; visibility: visible; opacity: 1; transform: none; display: none; border-top: 0; box-shadow: none; background: transparent; color: #d5dbe2; transition: none; }
  .nav__item--mega.is-open .mega { display: block; }
  .mega { inset-inline: auto; max-width: none; margin: 0; border: 0; border-radius: 0; }
  .mega__inner, .mega .container.mega__inner { grid-template-columns: 1fr; gap: var(--s-5); padding: 0 0 var(--s-5); }
  .mega__families { grid-template-columns: 1fr 1fr; gap: var(--s-2); padding-bottom: var(--s-4); border-color: var(--c-line-dark); }
  .mega-card { flex-direction: row; align-items: center; gap: var(--s-3); padding: var(--s-2); color: #fff; background: rgba(255, 255, 255, 0.04); }
  .mega-card:hover, .mega-card:focus-visible { background: rgba(255, 255, 255, 0.08); }
  .mega-card__media { flex: none; width: 44px; aspect-ratio: 1; border-radius: var(--radius-sm); }
  .mega-card__title { font-size: var(--fs-sm); }
  .mega-card__text { display: none; }
  .mega__col--groups { grid-column: auto; }
  .mega__sub li a { border-color: var(--c-line-dark); }
  .mega .container { padding-inline: 0; }
  .mega__title { color: #fff; font-size: var(--fs-base); }
  .mega__list { grid-template-columns: 1fr; }
  .mega__list li { border-color: var(--c-line-dark); }
  .mega__link, .mega__sub li a { color: #c9d1da; }
  .mega__variants a { color: #c9d1da; border-color: var(--c-line-dark); }
  .mega__promo { display: none; }
  .nav__mobile-extra { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
  .nav__mobile-extra .lang-switch__btn { width: 100%; justify-content: flex-start; height: 52px; }
  .nav__mobile-extra .lang-switch__chev { margin-inline-start: auto; }
  .nav__mobile-extra .lang-switch__menu { position: static; margin-top: var(--s-2); box-shadow: none; width: 100%; }
  .site-header__actions .lang-switch { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-toggle__close { display: none; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .nav-open { overflow: hidden; }
}
@media (min-width: 1200px) { .nav-toggle { display: none; } }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .quality-teaser { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .split--reverse > :first-child { order: 0; }
  .split__text { max-width: none; }
  .catalogue, .family-layout, .finder-layout, .form-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .catalogue__aside, .family-aside, .detail-aside, .form-aside { position: static; }
  .catalogue__aside { order: 2; }
  .detail-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; }
  .pgallery__main { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .stat--dark:nth-child(n+3) { border-color: var(--c-line-dark); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .resources { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; --section: clamp(2.5rem, 7vw, 3.5rem); }
  .brand img { height: 38px; }
  .site-header__cta { display: none; }
  .stat { padding: var(--s-5); }
  .features, .features--2, .features--4 { grid-template-columns: minmax(0, 1fr); }
  .feature, [dir="rtl"] .feature { padding-inline: 0; }
  .steps, .steps--6 { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .finder-strip { grid-template-columns: minmax(0, 1fr); text-align: start; }
  .finder-strip__icon { display: none; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .group-row { grid-template-columns: 96px minmax(0, 1fr); padding: var(--s-3); }
  .group-row__media { grid-row: auto; }
  .group-row__variants { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .variant-link { overflow-wrap: anywhere; }
  .variant-link > span:nth-child(2) { min-width: 0; }
  .form__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .options { grid-template-columns: minmax(0, 1fr); }
  .finder { padding: var(--s-5); }
  .finder__nav { flex-wrap: wrap; }
  .result { grid-template-columns: 88px minmax(0, 1fr); }
  .result__score { grid-column: 1 / -1; text-align: start; display: flex; gap: var(--s-2); align-items: baseline; }
  .result__score b { display: inline; }
  .layer-diagram { grid-template-columns: minmax(0, 1fr); }
  .meta-list div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-teaser .cert-mini { flex-direction: column; align-items: flex-start; }
  .cert-mini__body { text-align: start; }
  /* Document table becomes stacked cards */
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .doc-table { min-width: 0; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-table tr { display: block; padding: var(--s-4); margin-bottom: var(--s-3); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
  .doc-table th, .doc-table td { display: block; padding: var(--s-1) 0; border: 0; }
  .doc-table td::before { content: attr(data-label) ": "; color: var(--c-muted); font-size: var(--fs-xs); }
  .doc-table tbody th { margin-bottom: var(--s-2); }
  .detail-toc { gap: var(--s-2) var(--s-4); overflow-wrap: anywhere; }
  .tabs__list { flex-wrap: wrap; gap: var(--s-2); overflow: visible; }
  .tabs__tab { max-width: 100%; margin: 0; padding: var(--s-2) var(--s-3); white-space: normal; overflow-wrap: anywhere; }
  .article-card__meta { flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
  .contact-split__hint > span { min-width: 0; }
  .contact-split__hint a { display: inline; white-space: normal; }
  .contact-split__hint a .icon { display: inline-block; }
  .search-dialog { max-height: 88dvh; margin-block-start: 4dvh; }
  .search-dialog__panel { padding: var(--s-4); }
  .search-results { max-height: 55dvh; }
  .search-results a { grid-template-columns: minmax(0, 1fr); }
  .search-results .sr-type { grid-row: auto; justify-self: start; }
  .search-results .sr-title { overflow-wrap: anywhere; }
  .lightbox { height: 100dvh; max-height: 100dvh; }
  .lightbox__figure img { max-height: calc(100dvh - 8rem); }
  .nf-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat__value { font-size: var(--fs-xl); }
  .stat__label { font-size: var(--fs-xs); }
  .markets { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions .btn, .detail-hero__info .btn-row .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .photo-stack { padding-bottom: var(--s-7); }
  .resource { grid-template-columns: auto 1fr; }
  .resource .btn { grid-column: 1 / -1; }
  .root-lang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: var(--s-5); }
  .site-footer, .has-cta-band .site-footer { padding-top: var(--s-7); }
  .form-layout, .detail-layout, .detail-hero__grid, .cta-band__inner { gap: var(--s-5); }
  .form__actions > .btn { width: 100%; }
  .field input[type="file"] { width: 100%; min-height: 44px; font-size: 1rem; }
  .file-list li { overflow-wrap: anywhere; }
  .detail-hero .pill { max-width: 100%; height: auto; min-height: 26px; white-space: normal; overflow-wrap: anywhere; }
  .detail-hero__info .btn, .detail-hero__info .compare-toggle { max-width: 100%; overflow-wrap: anywhere; }
  .tech-card { padding: var(--s-5); }
  .tech-card__n { font-size: 5rem; }
}

@media (max-width: 430px) {
  :root { --gutter: 1rem; }
  .site-header__actions { gap: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-inline-start: 0 !important; border-top: 1px solid var(--c-line); }
  .stat:first-child { border-top: 0; }
  .btn--lg { --bh: 52px; padding-inline: var(--s-5); }
  .pgallery__thumb { width: 64px; height: 64px; }
  .panel { padding: var(--s-5) var(--s-4); }
  /* Specification table: label above value on small phones */
  .spec-table tr { display: block; padding-block: var(--s-3); border-bottom: 1px solid var(--c-line); }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table th, .spec-table td { display: block; width: auto; padding: 0; border: 0; }
  .spec-table th { font-size: var(--fs-xs); margin-bottom: 2px; }
  .result { grid-template-columns: minmax(0, 1fr); }
  .result__media { aspect-ratio: 16 / 9; }
}

@media print {
  .site-header, .site-footer, .cta-band, .cta-wrap, .to-top, .search-dialog, .lightbox, .detail-toc, .btn { display: none !important; }
  .detail-layout, .detail-hero__grid { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}

/* ---------- RFQ lines and comparison: small screens ---------- */
@media (max-width: 640px) {
  .item-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .item-row__product { grid-column: 1 / -1; }
  .item-row__remove { grid-column: 1 / -1; justify-self: start; min-height: 40px; }
  .compare-tray { inset-inline-start: var(--s-3); bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 2 * var(--s-3)); }
  .compare-tray a { min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
  .compare-tray button { flex: 0 0 44px; width: 44px; height: 44px; }
  .to-top { inset-inline-end: var(--s-3); bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px)); }
  body:has(.compare-tray:not([hidden])) .to-top { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
  .compare-tools .field { flex: 1 1 100%; }
  .compare-tools .btn { flex: 1 1 auto; }
  .compare-table { min-width: 100%; }
  .compare-table th, .compare-table td { min-width: 150px; padding: var(--s-2) var(--s-3); overflow-wrap: anywhere; }
  .compare-table tbody th[scope="row"], .compare-table thead th:first-child { min-width: 96px; max-width: 108px; }
}
@media print {
  .site-header, .site-footer, .to-top, .compare-tray, .skip-link, .cta-band, .cta-wrap { display: none !important; }
  a[href]::after { content: none; }
}


/* ---------- Touch targets (phones and tablets) ---------- */
@media (pointer: coarse), (max-width: 768px) {
  .footer__links li + li { margin-top: 0; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__langs a { min-height: 44px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; }
  .breadcrumb ol { row-gap: var(--s-3); }
  .chero__route-list a, .tree a, .detail-toc a, .tech-card .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }
  .detail-toc { row-gap: 0; }
  .compare-toggle, .chip, .tabs__tab, .item-row__remove { min-height: 44px; }
  .btn--sm { --bh: 44px; }
  .field--check label { min-height: 44px; }
  .brand { min-height: 44px; }
}

/* ---------- Inner-page hero on phones ---------- */
@media (max-width: 768px) {
  .page-hero__text, .detail-hero__info { padding-inline-start: var(--s-4); }
  .page-hero__text::before, .detail-hero__info::before { width: 3px; }
  .page-hero .chero__layers, .detail-hero .chero__layers, .article__header .chero__layers { width: 84px; gap: 2px; }
  .page-hero .chero__layers i, .detail-hero .chero__layers i, .article__header .chero__layers i { height: 3px; }
  .page-hero__title, .detail-hero__title, .article__title { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .page-hero__intro { font-size: var(--fs-sm); }
  .page-hero__actions { margin-top: var(--s-5); gap: var(--s-2); }
  .page-hero__actions .btn { flex: 1 1 160px; --bh: 48px; padding: 0 var(--s-3); font-size: var(--fs-sm); }
  .detail-hero { padding-block: var(--s-4) var(--s-7); }
  .detail-hero__info .btn-row .btn { flex: 1 1 160px; }
}

/* Product tree codes: never below 12px on phones */
@media (max-width: 640px) { .tree .code { font-size: 0.75rem; } }
/* Catalogue product names: full-height tap rows on phones */
/* Product page: photo and details side by side down to tablets; stacked on phones */
@media (max-width: 640px) { .detail-hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- Mobile & tablet navigation (<1200px): floating glass side panel ----------
   Slides in from the start side (left in LTR, right in RTL) over a dimmed page. Each link is a glass pill with an icon
   tile; the current section is a white tab that runs into the panel edge with curved corners. Simplified for ease of
   use: "Menu" title + close button, large rows, Products as a short list, swipe towards the edge to close. */
@media (max-width: 1199.98px) {
  .nav-scrim { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 1; background: rgba(5, 8, 12, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s linear 300ms; }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

  .nav { --np: 14px; --pill: 16px; z-index: 2; inset-block: calc(var(--header-h) + 10px) 12px; inset-inline: 12px auto; width: min(300px, calc(100vw - 24px)); height: auto; display: flex; flex-direction: column; align-items: stretch; padding-block: var(--np); padding-inline: var(--np) 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
    border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(120% 55% at 50% 0%, rgba(200, 21, 30, 0.34), transparent 62%), linear-gradient(180deg, rgba(27, 36, 48, 0.97), rgba(10, 14, 20, 0.98));
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateX(-24px); transition: opacity 280ms var(--ease), transform 320ms var(--ease), width 320ms var(--ease), visibility 0s linear 320ms; }
  [dir="rtl"] .nav { transform: translateX(24px); }
  .nav-open .nav, [dir="rtl"] .nav-open .nav { transform: none; }
  .nav::-webkit-scrollbar { display: none; }

  /* Items: glass pills with an icon tile */
  .nav__list { flex: none; gap: 8px; }
  .nav__item, .nav__item--home { display: flex; align-items: center; flex-wrap: wrap; position: relative; margin-inline-end: var(--np); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: var(--pill); background: rgba(255, 255, 255, 0.05); transition: background-color var(--dur) var(--ease); }
  .nav__item:hover { background: rgba(255, 255, 255, 0.09); }
  .nav__link { flex: 1; min-width: 0; gap: var(--s-3); height: auto; min-height: 50px; padding: 7px; font-size: var(--fs-sm); font-weight: 600; color: #eef1f4; border-radius: var(--pill); }
  .nav__link:hover { color: #fff; }
  .nav__link:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .nav__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .nav__icon .icon { width: 19px; height: 19px; }
  .nav__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 200ms var(--ease); }
  .nav__toggle { width: 44px; height: 44px; margin-inline-end: 3px; border-radius: 12px; }

  /* Current section: white tab running into the panel edge, with concave corners above and below */
  .nav__item.is-current { margin-inline-end: 0; background: #fff; border-color: #fff; border-start-end-radius: 0; border-end-end-radius: 0; }
  .nav__item.is-current::before, .nav__item.is-current::after { content: ""; position: absolute; inset-inline-end: -1px; width: var(--pill); height: var(--pill); pointer-events: none; }
  .nav__item.is-current::before { bottom: calc(100% + 1px); background: radial-gradient(circle at 0 0, transparent calc(var(--pill) - 0.5px), #fff var(--pill)); }
  .nav__item.is-current::after { top: calc(100% + 1px); background: radial-gradient(circle at 0 100%, transparent calc(var(--pill) - 0.5px), #fff var(--pill)); }
  [dir="rtl"] .nav__item.is-current::before { background: radial-gradient(circle at 100% 0, transparent calc(var(--pill) - 0.5px), #fff var(--pill)); }
  [dir="rtl"] .nav__item.is-current::after { background: radial-gradient(circle at 100% 100%, transparent calc(var(--pill) - 0.5px), #fff var(--pill)); }
  .nav__item.is-current > .nav__link { color: var(--c-ink); }
  .nav__item.is-current .nav__icon { background: var(--c-accent); border-color: var(--c-accent); }
  .nav__item.is-current > .nav__toggle { color: var(--c-ink); }
  .nav__item.is-current > .nav__link:focus-visible { outline-color: var(--c-ink); }

  /* Products accordion inside the panel: its own dark card, so it reads on the white tab too */
  .nav__item--mega .mega { margin: 0 6px 6px; padding: var(--s-3); border-radius: 12px; background: rgba(8, 12, 18, 0.72); }
  .nav__item--mega.is-current .mega { margin-inline-end: calc(6px + var(--np)); }
  .mega__families { grid-template-columns: minmax(0, 1fr); }

  .nav__mobile-extra { margin-top: auto; padding-top: var(--s-5); padding-inline-end: var(--np); }
  .nav__mobile-extra .lang-switch__btn { border-radius: var(--pill); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
  .nav__mobile-extra .lang-switch__btn:hover, .nav__mobile-extra .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
  .nav__mobile-extra .btn { border-radius: var(--pill); }
  .nav__mobile-extra .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); white-space: normal; }

}
@media (max-width: 1199.98px) and (prefers-reduced-motion: no-preference) {
  .nav-open .nav__item { animation: chero-rise 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .nav-open .nav__item:nth-child(2) { animation-delay: 40ms; }
  .nav-open .nav__item:nth-child(3) { animation-delay: 80ms; }
  .nav-open .nav__item:nth-child(4) { animation-delay: 120ms; }
  .nav-open .nav__item:nth-child(5) { animation-delay: 160ms; }
  .nav-open .nav__item:nth-child(6) { animation-delay: 200ms; }
  .nav-open .nav__item:nth-child(7) { animation-delay: 240ms; }
  .nav-open .nav__item:nth-child(8) { animation-delay: 280ms; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* ---------- Side panel: simplified (head, large rows, short Products list) ---------- */
@media (max-width: 1199.98px) {
  .nav { width: min(320px, calc(100vw - 24px)); }
  .nav__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-inline: 6px var(--np); margin-bottom: var(--s-4); }
  .nav__head-title { color: #fff; font-size: var(--fs-lg); font-weight: 700; }
  .nav__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
  .nav__close:hover { background: rgba(255, 255, 255, 0.16); }
  .nav__close .icon { width: 20px; height: 20px; }
  .nav__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* Large, easy rows */
  .nav__list { gap: 6px; }
  .nav__link { min-height: 56px; padding: 8px; font-size: var(--fs-base); }
  .nav__label { white-space: normal; overflow-wrap: anywhere; }
  .nav__icon { width: 40px; height: 40px; }
  .nav__icon .icon { width: 20px; height: 20px; }
  .nav__toggle { width: 48px; height: 48px; }
  /* Products: just the four families + "All products" / "Request a quote" links */
  .nav .mega__col--groups, .nav .mega__col--shrink, .nav .mega__promo-title, .nav .mega__promo-text, .nav .mega__promo > .btn { display: none !important; }
  .nav .mega__promo { display: block !important; padding: 0; background: none; border: 0; }
  .nav .mega__promo-links { display: grid; gap: 4px; margin-top: 4px; }
  .nav .mega__all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-inline: var(--s-3); border-radius: 10px; color: #fff; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, 0.06); }
  .nav .mega__all .icon { width: 18px; height: 18px; }
  .nav .mega__families { gap: 4px; padding-bottom: 0; border: 0; }
  .nav .mega-card { min-height: 52px; padding: 6px; border-radius: 10px; }
  .nav .mega-card__media { width: 40px; }
  .nav .mega-card__title { font-size: var(--fs-sm); }
  .nav .mega__inner { gap: 4px; padding: 0; }
}

/* ===== home-hero.css ===== */
/* Homepage product discovery */
.home-hero {
  --hero-paper: #f1eee8;
  --hero-ink: #201f21;
  --hero-accent: #8f2730;
  --hero-line: #e0dcd4;
  --hero-inset: clamp(1rem, 3.6vw, 3.75rem);
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(.65rem, 1.5vw, 1.4rem) var(--gutter) clamp(1rem, 3vw, 2rem);
  color: var(--hero-ink);
}

.home-hero__scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(435px, 37vw, 545px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--hero-line);
  border-radius: clamp(1.125rem, 2.3vw, 2.125rem);
  background: var(--hero-paper);
}
.home-hero__media { position: absolute; z-index: -1; inset: 0; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 58%; }
.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1eee8 0%, #f1eee8f5 25%, #f1eee8e8 39%, #f1eee86b 56%, transparent 73%);
}
[dir="rtl"] .home-hero__media img { transform: scaleX(-1); }
[dir="rtl"] .home-hero__media::after { transform: scaleX(-1); }
.home-hero__copy { width: min(61%, 790px); padding: var(--hero-inset) 0 calc(var(--hero-inset) + 1.85rem); margin-inline-start: var(--hero-inset); }
.home-hero__label { margin: 0 0 .55rem; color: var(--hero-accent); font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .105em; text-transform: uppercase; }
.home-hero h1 { color: var(--hero-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.7rem, 4.5vw, 5.15rem); line-height: 1; letter-spacing: -.062em; text-wrap: balance; }
.home-hero h1 em { color: var(--hero-accent); font-weight: inherit; }
[dir="rtl"] .home-hero h1 { font-family: var(--font-head); font-size: clamp(2.3rem, 4vw, 4.7rem); font-weight: 700; line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] .home-hero h1 em { font-style: normal; }
[dir="rtl"] .home-hero__label { letter-spacing: 0; }
.home-hero__intro { max-width: 39ch; margin: 1rem 0 0; color: #423d3d; font-size: clamp(.98rem, 1.4vw, 1.18rem); line-height: 1.55; }
.home-hero__credential { display: inline-flex; align-items: center; gap: .55rem; max-width: 100%; min-height: 44px; margin-block-start: .85rem; padding: .45rem .8rem; border: 1px solid #8f273054; border-radius: .85rem; background: #fffdf9dc; color: var(--hero-accent); font-size: .83rem; font-weight: 700; line-height: 1.45; text-decoration: none; }
.home-hero__credential:hover { border-color: var(--hero-accent); background: #fff; }
.home-hero__credential span { min-width: 0; overflow-wrap: anywhere; }
.home-hero__credential:hover span { text-decoration: underline; }
.home-hero__credential .icon { width: 1.125rem; height: 1.125rem; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: .55rem .75rem; margin-top: clamp(1rem, 2.4vw, 2rem); }
.home-hero__credential + .home-hero__actions { margin-top: .85rem; }
.home-hero .btn { min-height: 48px; height: auto; border-radius: 999px; text-align: center; white-space: normal; }
.home-hero__catalog { border-color: #6c5f5a66; background: #f8f5efc9; color: var(--hero-ink); }
.home-hero__catalog:hover { border-color: var(--hero-accent); background: #fff; color: var(--hero-accent); }

.home-hero__search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.36fr) auto;
  align-items: center;
  gap: .35rem;
  width: min(calc(100% - 2 * var(--hero-inset)), 920px);
  margin: -2.05rem auto 1rem;
  padding: .5rem;
  border: 1px solid #fff;
  border-radius: 2rem;
  background: #fffdf9f5;
  box-shadow: 0 12px 26px #2c24251c, 0 0 0 1px #29231d12;
}
.home-hero__field { display: flex; align-items: center; gap: .7rem; min-width: 0; padding-inline: .75rem; }
.home-hero__field + .home-hero__field { border-inline-start: 1px solid var(--hero-line); }
.home-hero__field > .icon { color: var(--hero-accent); }
.home-hero__field > div { flex: 1; min-width: 0; }
.home-hero__field label { display: block; color: var(--hero-ink); font-size: .77rem; font-weight: 700; line-height: 1.25; }
.home-hero__field input, .home-hero__field select { display: block; width: 100%; min-width: 0; min-height: 30px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #4c4746; font-size: .95rem; }
.home-hero__field select { cursor: pointer; text-overflow: ellipsis; }
.home-hero__field input::placeholder { color: #625b59; opacity: 1; }
.home-hero__search .btn { padding-inline: clamp(.9rem, 2vw, 1.45rem); }

.home-hero__links { display: grid; grid-template-columns: 1.22fr 1fr .91fr; gap: .8rem; margin-inline: clamp(0px, 1.25vw, 1.15rem); }
.home-hero__preview { display: grid; }
.home-hero__feature, .home-hero__resources, .home-hero__quote { min-width: 0; border: 1px solid var(--hero-line); border-radius: 1.15rem; }
.home-hero__feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: .85rem; align-items: stretch; padding: .5rem; background: #fffdf9; text-decoration: none; }
.home-hero__feature-media { position: relative; min-height: 118px; overflow: hidden; border-radius: .72rem; }
.home-hero__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero__feature-body { align-self: center; padding: .45rem .3rem; }
.home-hero__feature h2 { font-size: clamp(1rem, 1.5vw, 1.38rem); line-height: 1.22; }
.home-hero__feature-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; color: var(--hero-accent); font-size: .82rem; font-weight: 700; }
.home-hero__feature:hover { border-color: var(--hero-accent); }
.home-hero__feature:hover .home-hero__feature-link { text-decoration: underline; }
.home-hero__resources { display: grid; align-content: center; gap: .1rem; padding: .45rem .7rem; background: var(--hero-paper); }
.home-hero__resources a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; min-height: 44px; padding: .2rem; border-radius: .5rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
.home-hero__resources a:hover { background: #fffdf9; color: var(--hero-accent); }
.home-hero__tile-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: .55rem; background: #fffdf9; color: var(--hero-accent); }
.home-hero__resources a > .icon { width: 17px; height: 17px; }
.home-hero__quote { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 1.2rem; isolation: isolate; overflow: hidden; padding: .9rem 1rem; border-color: #29292b; background: #29292b; color: #fff; text-decoration: none; }
.home-hero__quote img, .home-hero__quote::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero__quote img { z-index: -2; object-fit: cover; object-position: center 47%; }
.home-hero__quote::before { z-index: -1; content: ""; background: linear-gradient(180deg, #24232875, #1c1b20f5); }
.home-hero__quote-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--hero-ink); }
.home-hero__quote-text { display: grid; gap: .2rem; }
.home-hero__quote-text > span { color: #f1e8e0; font-size: .77rem; }
.home-hero__quote-text strong { font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.25; }
.home-hero__quote:hover .home-hero__quote-text strong { text-decoration: underline; }

@media screen and (prefers-reduced-motion: no-preference) {
  .home-hero__media img { animation: home-hero-photo-settle 2.1s var(--ease) both; }
  .home-hero__copy { animation: home-hero-rise .65s var(--ease) both; }
  .home-hero__search { animation: home-hero-rise .5s var(--ease) .18s both; }
  .home-hero__feature:not([hidden]) .home-hero__feature-body { animation: home-hero-preview-in .28s var(--ease) both; }
  .home-hero__copy:focus-within, .home-hero__search:focus-within, .home-hero__feature:focus-visible .home-hero__feature-body { animation: none; }

  @keyframes home-hero-photo-settle {
    from { scale: 1.065; }
    to { scale: 1; }
  }

  @keyframes home-hero-rise {
    from { opacity: .45; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }

  @keyframes home-hero-preview-in {
    from { opacity: .55; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (max-width: 900px) {
  .home-hero { --hero-inset: clamp(1rem, 3.4vw, 2rem); }
  .home-hero__scene { grid-template-rows: clamp(190px, 52vw, 390px) auto; min-height: 0; }
  .home-hero__copy { grid-row: 2; width: auto; margin: 0; padding: var(--hero-inset); }
  .home-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6.5vw, 4.35rem); }
  [dir="rtl"] .home-hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
  .home-hero__media { position: relative; grid-row: 1; align-self: stretch; overflow: hidden; background: #e1dad1; }
  .home-hero__media img { object-position: 75% 58%; animation: none; }
  .home-hero__media::after { display: none; }
  .home-hero__search { margin-block-start: var(--s-3); }
  .home-hero__field input, .home-hero__field select { min-height: 44px; font-size: 1rem; }
  .home-hero__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero__quote { grid-column: 1 / -1; min-height: 118px; }
}

@media (max-width: 620px) {
  .home-hero__media img { position: absolute; inset-block: 0; inset-inline-end: 0; width: 124%; max-width: none; object-position: right 58%; }
  .home-hero__actions .btn { flex: 1 1 9rem; padding-inline: .75rem; }
  .home-hero__search { grid-template-columns: minmax(0, 1fr); gap: .4rem; width: 100%; border-radius: 1.15rem; padding: .65rem; }
  .home-hero__field { padding: .3rem .4rem; }
  .home-hero__field + .home-hero__field { border-inline-start: 0; border-top: 1px solid var(--hero-line); }
  .home-hero__links { grid-template-columns: minmax(0, 1fr); }
  .home-hero__quote { grid-column: auto; }
  .home-hero__feature-media { min-height: 106px; }
}
