/* =========================================================
   DigiGovah — Concept 04 «کالیبره» / Precision instrument
   ========================================================= */
:root {
  --white: #F4F5F2;
  --paper: #FBFBF9;
  --graphite: #2B2F33;
  --graphite-2: #353A3F;
  --graphite-3: #1F2226;
  --yellow: #F2C230;
  --blue: #2F6FDE;
  --blue-ink: #1F57BD;
  --scale: #C9CDC6;
  --scale-2: #E3E5E0;
  --ink: #23272B;
  --muted: #565C62;
  --on-dark: #E9EBE6;
  --on-dark-muted: #A9AFA8;
  --lcd: #D3D8CF;
  --lcd-ink: #1E2327;
  --line: #CFD3CC;
  --r: 6px;
  --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ff: "Vazirmatn", Tahoma, sans-serif;
  --fd: "Handjet", "Vazirmatn", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.22; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.num { font-family: var(--fd); font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Vernier scroll gauge (top) ---------- */
.vernier {
  position: fixed; inset: 0 0 auto 0; height: 12px; z-index: 60;
  background:
    linear-gradient(to left, var(--graphite) 1px, transparent 1px) 0 0 / 50px 12px,
    linear-gradient(to left, rgba(43,47,51,.55) 1px, transparent 1px) 0 0 / 10px 6px,
    var(--paper);
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--scale);
  pointer-events: none;
}
.vernier__slide {
  position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 12px;
  transform-origin: right center;
  transform: scaleX(var(--p, 0));
  background: rgba(47,111,222,.14);
  border-inline-end: 2px solid var(--blue);
}
.vernier__read {
  position: absolute; top: 12px; inset-inline-end: 10px;
  font-family: var(--fd); font-size: 13px; line-height: 1;
  background: var(--graphite); color: var(--yellow); padding: 3px 6px 4px; border-radius: 0 0 4px 4px;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 12px; z-index: 50;
  background: rgba(244,245,242,.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand b { font-size: 1.22rem; font-weight: 900; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r);
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem;
}
.nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--scale); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.nav a:hover { background: var(--scale-2); }
.nav a[aria-current="page"]::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,222,.2); }
.head-cta { flex-shrink: 0; }
.nav__cta { display: none; }
.menu-btn {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper); align-items: center; justify-content: center;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--graphite); position: relative; transition: transform .25s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--graphite); transition: transform .25s var(--ease); }
.menu-btn span::before { transform: translateY(-6px); }
.menu-btn span::after { transform: translateY(6px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --edge: var(--blue-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 0;
  box-shadow: inset 0 -3px 0 var(--edge), 0 1px 0 rgba(0,0,0,.08);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.3;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { --bg: #3A7BEA; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--edge); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --edge: var(--scale); border: 1px solid var(--graphite); box-shadow: inset 0 -3px 0 var(--scale); }
.btn--ghost:hover { --bg: var(--scale-2); }
.btn--yellow { --bg: var(--yellow); --fg: var(--graphite); --edge: #C99A12; }
.btn--yellow:hover { --bg: #F6CD4D; }
.btn--dark { --bg: var(--graphite); --fg: #fff; --edge: #111; }
.btn--dark:hover { --bg: #3A3F45; }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: .93rem; }
.btn .led { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px rgba(0,0,0,.18); }

/* ---------- Ruler divider ---------- */
.ruler {
  height: 28px; position: relative; color: var(--muted);
  border-top: 1px solid var(--graphite);
  background:
    linear-gradient(to left, var(--graphite) 1px, transparent 1px) right top / 80px 16px repeat-x,
    linear-gradient(to left, rgba(43,47,51,.7) 1px, transparent 1px) right top / 40px 10px repeat-x,
    linear-gradient(to left, rgba(43,47,51,.45) 1px, transparent 1px) right top / 8px 6px repeat-x;
}
.ruler--draw { transform-origin: right; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.ruler--draw.is-in { transform: scaleX(1); }
.ruler__tag {
  position: absolute; top: 4px; inset-inline-start: 0; font-family: var(--fd); font-size: 14px; line-height: 1;
  background: var(--white); padding: 2px 6px 2px 8px; color: var(--graphite);
}

/* ---------- Section frame ---------- */
.sec { padding-block: clamp(56px, 7vw, 112px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head p { margin: 0; color: var(--muted); }
.sec-head--stack { grid-template-columns: 1fr; max-width: 760px; }
.dim {
  display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; margin-bottom: 10px;
}
.dim::before, .dim::after { content: ""; height: 9px; border-inline: 1px solid var(--graphite); flex: 0 0 28px; background: linear-gradient(var(--graphite), var(--graphite)) center / 100% 1px no-repeat; }
.dim::after { flex: 1 1 auto; max-width: 120px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .16em; background: var(--yellow); z-index: -1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--graphite); }
.hero__facts li { padding: 12px 0 0; padding-inline-end: 12px; font-size: .88rem; color: var(--muted); position: relative; line-height: 1.6; }
.hero__facts li::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 1px; height: 12px; background: var(--graphite); }
.hero__facts b { display: block; font-family: var(--fd); font-size: 1.9rem; font-weight: 600; color: var(--ink); line-height: 1.1; }

/* Instrument case */
.case {
  position: relative; background: var(--graphite); color: var(--on-dark); border-radius: 22px;
  padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 48px -28px rgba(31,34,38,.6), 0 2px 0 #15181B;
}
.screws { position: relative; }
.screws::before, .screws::after {
  content: ""; position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: #4A5056; box-shadow: inset 0 0 0 1px #1C1F22, inset 1px 1px 0 rgba(255,255,255,.2);
  background-image: linear-gradient(45deg, transparent 44%, #1C1F22 44% 56%, transparent 56%);
}
.screws::before { inset-inline-start: 9px; }
.screws::after { inset-inline-end: 9px; }
.case__plate { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 16px 12px; font-size: .78rem; color: var(--on-dark-muted); }
.case__plate b { color: var(--on-dark); font-weight: 600; }
.case__plate .num { font-size: 15px; color: var(--yellow); }
.dial {
  position: relative; background: var(--paper); border-radius: 14px; color: var(--ink);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 1px #9AA09A;
  padding: 6px 6px 0;
}
.dial svg { width: 100%; height: auto; overflow: visible; }
.tk-M { stroke: var(--graphite); stroke-width: 2.4; }
.tk-m { stroke: var(--graphite); stroke-width: 1.5; }
.tk-s { stroke: #6B716C; stroke-width: .9; }
.dial-num { font-family: var(--fd); font-size: 19px; font-weight: 500; fill: var(--graphite); text-anchor: middle; }
.dial-cap { font-family: var(--ff); font-size: 13px; font-weight: 700; fill: var(--graphite); text-anchor: middle; }
.dial-sub { font-family: var(--ff); font-size: 9.5px; fill: #5A605B; text-anchor: middle; }
.needle { transform-box: view-box; transform-origin: 220px 220px; transform: rotate(-120deg); will-change: transform; }
.needle-shadow { transform-box: view-box; transform-origin: 223px 224px; transform: rotate(-120deg); will-change: transform; }

.lcd {
  position: relative; background: var(--lcd); color: var(--lcd-ink); border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.28), inset 0 0 0 1px #9BA196;
  font-family: var(--fd); line-height: 1;
}
.lcd__ghost { position: absolute; opacity: .09; pointer-events: none; }
.case__read { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.case__read .lcd { padding: 10px 14px 8px; min-width: 128px; text-align: center; }
.case__read .lcd .big { font-size: 54px; font-weight: 600; display: block; position: relative; }
.case__read .lcd .big .lcd__ghost { inset: 0; }
.case__read .lcd small { font-family: var(--ff); font-size: .7rem; display: block; margin-top: 4px; opacity: .75; }
.verdict { background: var(--graphite-3); border-radius: 8px; padding: 12px 16px; box-shadow: inset 0 0 0 1px #3D4349; min-height: 100%; }
.verdict__state { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: 4px; }
.verdict__state i { width: 10px; height: 10px; border-radius: 50%; background: #5B6168; box-shadow: 0 0 0 2px #15181B; flex-shrink: 0; transition: background .3s; }
.verdict[data-zone="low"] .verdict__state i { background: #E2683C; box-shadow: 0 0 0 2px #15181B, 0 0 10px rgba(226,104,60,.7); }
.verdict[data-zone="mid"] .verdict__state i { background: var(--yellow); box-shadow: 0 0 0 2px #15181B, 0 0 10px rgba(242,194,48,.7); }
.verdict[data-zone="high"] .verdict__state i { background: #4C8BF5; box-shadow: 0 0 0 2px #15181B, 0 0 10px rgba(76,139,245,.8); }
.verdict p { margin: 0 0 10px; font-size: .9rem; color: var(--on-dark-muted); line-height: 1.7; }
.verdict a.btn { min-height: 40px; font-size: .9rem; padding: 6px 14px; }

.switches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.switches li { background: var(--graphite-2); border-radius: 10px; padding: 12px 10px 12px; box-shadow: inset 0 0 0 1px #434A50; text-align: center; }
.switches .q { display: block; font-size: .84rem; line-height: 1.55; color: var(--on-dark); min-height: 2.9em; margin-bottom: 8px; }

/* Toggle switch (role=switch) */
.tgl {
  position: relative; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; color: var(--on-dark-muted); font-size: .78rem;
}
.tgl__track {
  position: relative; width: 62px; height: 30px; border-radius: 15px; background: #16191C;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08);
}
.tgl__lever {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #C9CDC6 60%, #8E948E);
  box-shadow: 0 2px 3px rgba(0,0,0,.5);
  transition: transform .28s cubic-bezier(.3, 1.6, .5, 1);
}
.tgl__led { width: 7px; height: 7px; border-radius: 50%; background: #444A50; transition: background .2s, box-shadow .2s; }
.tgl[aria-checked="true"] .tgl__lever { transform: translateX(-32px); }
.tgl[aria-checked="true"] .tgl__led { background: var(--yellow); box-shadow: 0 0 8px rgba(242,194,48,.8); }
.tgl[aria-checked="true"] .tgl__off, .tgl[aria-checked="false"] .tgl__on { display: none; }
.tgl[aria-checked="true"] { color: #fff; }
/* light-surface toggle */
.tgl--light { color: var(--muted); }
.tgl--light .tgl__track { background: var(--scale); box-shadow: inset 0 2px 3px rgba(0,0,0,.25); }
.tgl--light[aria-checked="true"] .tgl__track { background: var(--blue); }
.tgl--light[aria-checked="true"] { color: var(--ink); }

/* ---------- Tuner (goal finder) ---------- */
.tuner { background: var(--paper); border: 1px solid var(--graphite); border-radius: var(--r-lg); overflow: hidden; }
.tuner__band { position: relative; padding: 20px clamp(14px, 3vw, 32px) 0; background: var(--graphite); color: var(--on-dark); }
.tuner__scale {
  position: relative; height: 34px; margin-bottom: 4px;
  background:
    linear-gradient(to left, var(--on-dark) 1px, transparent 1px) right bottom / 10% 18px repeat-x,
    linear-gradient(to left, rgba(233,235,230,.45) 1px, transparent 1px) right bottom / 2% 9px repeat-x;
  border-bottom: 1px solid var(--on-dark-muted);
}
.tuner__ptr {
  position: absolute; top: -8px; left: 0; width: 2px; height: 50px; background: #FF5B3A;
  box-shadow: 0 0 8px rgba(255,91,58,.6); transform: translateX(0); transition: transform .65s cubic-bezier(.3, 1.35, .45, 1);
}
.tuner__stations { list-style: none; display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; }
.tuner__stations::-webkit-scrollbar { display: none; }
.tuner__stations button {
  background: none; border: 0; color: var(--on-dark-muted); font-size: .86rem; padding: 6px 8px; border-radius: 4px; white-space: nowrap; font-weight: 500;
}
.tuner__stations button:hover { color: #fff; }
.tuner__stations button[aria-checked="true"] { color: var(--graphite); background: var(--yellow); font-weight: 700; }
.tuner__out { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; }
.tuner__out > div { padding: clamp(18px, 3vw, 32px); }
.tuner__out > div + div { border-inline-start: 1px dashed var(--scale); }
.tuner__stds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.tuner__stds li { font-weight: 700; border: 1px solid var(--graphite); border-radius: 4px; padding: 4px 10px; font-size: .93rem; background: #fff; }
.tuner__stds li:first-child { background: var(--blue); color: #fff; border-color: var(--blue); }
.spec { display: grid; grid-template-columns: auto 1fr; margin: 0; font-size: .92rem; }
.spec dt, .spec dd { padding: 8px 0; border-bottom: 1px solid var(--scale-2); margin: 0; }
.spec dt { color: var(--muted); padding-inline-end: 18px; }
.spec dd { font-weight: 600; }
.swap { transition: opacity .25s; }
.swap.is-swapping { opacity: 0; }

/* ---------- Modules (categories) ---------- */
.rack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.mod {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px;
  text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease);
}
.mod:hover { border-color: var(--graphite); transform: translateY(-3px); }
.mod--w7 { grid-column: span 7; }
.mod--w5 { grid-column: span 5; }
.mod--w6 { grid-column: span 6; }
.mod__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mod__ico { width: 64px; height: 64px; flex-shrink: 0; }
.mod__count { font-family: var(--fd); font-size: 15px; background: var(--lcd); border-radius: 4px; padding: 4px 8px 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); line-height: 1; }
.mod h3 { margin: 6px 0 0; font-size: 1.2rem; }
.mod p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.75; }
.mod__std { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--scale); }
.mod__std span { font-size: .8rem; color: var(--ink); background: var(--scale-2); padding: 2px 8px; border-radius: 3px; direction: ltr; }
.mod--dark { background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); }
.mod--dark p { color: var(--on-dark-muted); }
.mod--dark .mod__std { border-color: #4A5056; }
.mod--dark .mod__std span { background: #3B4146; color: var(--on-dark); }
.mod--dark:hover { border-color: var(--yellow); }

/* ---------- Tender signal chain ---------- */
.chain-sec { background: var(--graphite); color: var(--on-dark); position: relative; overflow: hidden; }
.chain-sec h2 { color: #fff; }
.chain-sec .sec-head p { color: var(--on-dark-muted); }
.chain { position: relative; }
.chain__rack { position: relative; padding-bottom: 40px; }
.chain__cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chain__cables path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.chain.is-in .chain__cables path { stroke-dashoffset: 0; }
.chain.is-in .chain__cables path:nth-child(2) { transition-delay: .25s; }
.chain.is-in .chain__cables path:nth-child(3) { transition-delay: .5s; }
.chain.is-in .chain__cables path:nth-child(4) { transition-delay: .75s; }
.chain ol { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: ch; }
.chain li {
  position: relative; background: var(--graphite-3); border-radius: 10px; padding: 18px 16px 16px;
  box-shadow: inset 0 0 0 1px #40464C; counter-increment: ch;
}
.chain li::before { content: counter(ch, persian); font-family: var(--fd); font-size: 15px; color: var(--yellow); display: block; margin-bottom: 4px; }
.chain li h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.chain li p { font-size: .86rem; color: var(--on-dark-muted); margin: 0 0 10px; line-height: 1.7; }
.chain .jack { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #111; box-shadow: 0 0 0 3px #555B61, 0 0 0 4px #222; transform: translateY(-50%); }
.chain .jack--in { inset-inline-start: -7px; }
.chain .jack--out { inset-inline-end: -7px; }
.chain li:first-child .jack--in, .chain li:last-child .jack--out { display: none; }
.chain .lcd { display: inline-block; padding: 4px 8px 3px; font-size: 15px; border-radius: 4px; }
.chain__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding-top: 24px; border-top: 1px solid #454B51; }
.chain__foot p { margin: 0; color: var(--on-dark-muted); max-width: 62ch; }
.chain__foot strong { color: var(--yellow); }

/* ---------- Process (tape + caliper) ---------- */
.caliper { width: 100%; max-width: 760px; margin: 0 0 30px; }
.caliper .jaw { transform: translateX(calc(var(--open, 0) * -280px)); transition: transform .1s linear; will-change: transform; }
.tape { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--graphite); counter-reset: st; }
.tape li { position: relative; padding: 26px 0 0; padding-inline-end: 16px; counter-increment: st; }
.tape li::before {
  content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 2px; height: 20px; background: var(--graphite);
}
.tape li::after { content: counter(st, persian); position: absolute; top: -30px; inset-inline-start: -4px; font-family: var(--fd); font-size: 20px; color: var(--graphite); line-height: 1; }
.tape h3 { font-size: 1rem; margin-bottom: 4px; }
.tape p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.7; }
.tape .t { display: inline-block; margin-bottom: 6px; font-family: var(--fd); font-size: 15px; background: var(--yellow); padding: 1px 6px; border-radius: 3px; line-height: 1.3; }
.tape-wrap { position: relative; padding-top: 36px; background:
  linear-gradient(to left, rgba(43,47,51,.4) 1px, transparent 1px) right 36px / calc(100% / 35) 8px repeat-x; }

/* ---------- Traceability ---------- */
.trace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.trace__chain { list-style: none; position: relative; }
.trace__chain li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.trace__chain li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 27px; top: 50px; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--graphite) 0 6px, transparent 6px 10px); }
.trace__node { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--graphite); background: var(--paper); display: grid; place-items: center; font-family: var(--fd); font-size: 18px; position: relative; z-index: 1; }
.trace__chain li:last-child .trace__node { background: var(--blue); border-color: var(--blue); color: #fff; }
.trace__chain h3 { margin: 6px 0 2px; font-size: 1.05rem; }
.trace__chain p { margin: 0; font-size: .92rem; color: var(--muted); }
.meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meter { background: var(--graphite); color: var(--on-dark); border-radius: 12px; padding: 16px 18px; }
.meter .lcd { padding: 10px 12px 6px; font-size: 44px; font-weight: 600; text-align: end; position: relative; }
.meter .lcd .lcd__ghost { inset: 10px 12px 6px auto; }
.meter > span { display: block; font-size: .86rem; margin-top: 10px; color: var(--on-dark-muted); }
.note { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.verify {
  margin-top: 22px; border: 1px solid var(--graphite); border-radius: 10px; padding: 18px; background: var(--paper);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
}
.verify svg { width: 54px; height: 54px; }
.verify p { margin: 0; font-size: .93rem; }

/* ---------- Industry stickers ---------- */
.stickers { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.sticker {
  position: relative; background: #fff; border-radius: 8px; overflow: hidden; transform: rotate(var(--rot, 0deg));
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 14px -10px rgba(0,0,0,.35); border: 1px solid #D9DCD5;
  transition: transform .25s var(--ease);
}
.sticker:hover { transform: rotate(0deg) translateY(-2px); }
.sticker__head { display: flex; justify-content: space-between; align-items: center; background: var(--yellow); padding: 6px 12px; font-weight: 800; font-size: .95rem; color: var(--graphite); }
.sticker__head svg { width: 22px; height: 22px; }
.sticker dl { margin: 0; padding: 8px 12px 12px; font-size: .83rem; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.sticker dt { color: var(--muted); }
.sticker dd { margin: 0; font-weight: 600; }
.sticker::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: radial-gradient(circle at 5px 5px, var(--white) 2px, transparent 2.5px) 0 0 / 10px 10px repeat-x; }
.sticker--blue .sticker__head { background: var(--blue); color: #fff; }
.sticker--gray .sticker__head { background: var(--graphite); color: #fff; }

/* ---------- Reports (articles) ---------- */
.reports { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.report {
  grid-column: span 5; position: relative; background: #fff; border: 1px solid var(--line); padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  background-image: linear-gradient(var(--scale-2) 1px, transparent 1px); background-size: 100% 28px; background-position: 0 92px;
}
.report--lead { grid-column: span 7; grid-row: span 2; background-color: var(--paper); }
.report--lead h3 { font-size: 1.45rem; }
.report__meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); border-bottom: 2px solid var(--graphite); padding-bottom: 8px; margin-bottom: 14px; }
.report__meta .num { font-size: 15px; color: var(--ink); }
.report h3 a { color: var(--ink); text-decoration: none; }
.report h3 a::after { content: ""; position: absolute; inset: 0; }
.report:hover { border-color: var(--graphite); }
.report:hover h3 a { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.report p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.report__stamp { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--blue-ink); font-weight: 700; }
.report__stamp i { width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.reports .report:nth-child(4) { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 0; font-weight: 700; font-size: 1.04rem; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 44px; height: 22px; border-radius: 11px; background: var(--scale) radial-gradient(circle at 11px 11px, #fff 7px, transparent 7.5px) no-repeat;
  background-position: 22px 0; transition: background-color .2s, background-position .25s var(--ease);
}
.faq details[open] summary::after { background-color: var(--blue); background-position: 0 0; }
.faq .a { padding: 0 0 20px; color: var(--muted); max-width: 72ch; }
.faq .a p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.formpanel { background: var(--graphite); color: var(--on-dark); border-radius: 22px; padding: clamp(20px, 4vw, 44px); }
.formpanel h2, .formpanel h3 { color: #fff; }
.formpanel .lead, .formpanel p { color: var(--on-dark-muted); }
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); }
.contact__lines { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.contact__lines li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #454B51; font-size: .95rem; }
.contact__lines span { color: var(--on-dark-muted); }
.contact__lines a { color: #fff; text-decoration: none; }
.contact__lines a:hover { color: var(--yellow); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 600; color: var(--on-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border-radius: 8px; border: 1px solid #5B6168; background-color: var(--graphite-3); color: #fff; padding: 10px 14px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.35);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark) 50%), linear-gradient(-45deg, transparent 50%, var(--on-dark) 50%); background-position: 18px 22px, 24px 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8C938C; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #FF8A65; }
.field .err { font-size: .82rem; color: #FFB199; min-height: 1.2em; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.form-actions small { color: var(--on-dark-muted); font-size: .82rem; }
.success {
  display: none; align-items: flex-start; gap: 14px; background: var(--graphite-3); border: 1px solid var(--yellow); border-radius: 10px; padding: 18px; margin-top: 16px; color: #fff;
}
.success.is-on { display: flex; }
.success svg { width: 40px; height: 40px; flex-shrink: 0; }
.success p { margin: 0; color: var(--on-dark); }
/* light form variant */
.form-light .field label { color: var(--ink); }
.form-light .field input, .form-light .field select, .form-light .field textarea { background-color: #fff; color: var(--ink); border-color: #A7ADA6; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.form-light .field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); }
.form-light .field input:focus, .form-light .field select:focus { outline-color: var(--blue); }
.form-light .field .err { color: #B3361B; }
.form-light .field input[aria-invalid="true"] { border-color: #B3361B; }
.form-light .success { background: #fff; color: var(--ink); border-color: var(--blue); }
.form-light .success p { color: var(--ink); }
.form-light .form-actions small { color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--graphite-3); color: var(--on-dark-muted); padding-top: 0; font-size: .9rem; }
.foot .ruler { border-top-color: #4B5157; background:
  linear-gradient(to left, #7B827B 1px, transparent 1px) right top / 80px 16px repeat-x,
  linear-gradient(to left, #5B6168 1px, transparent 1px) right top / 8px 6px repeat-x; }
.foot__grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 48px 36px; }
.foot h2 { font-size: .95rem; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot a { color: var(--on-dark-muted); text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot .brand { color: #fff; }
.foot .brand small { color: var(--on-dark-muted); }
.foot__about p { margin: 14px 0; line-height: 1.8; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #3B4146; padding-block: 18px 90px; font-size: .8rem; }
.foot__base .num { color: var(--yellow); font-size: 14px; }

/* ---------- Floating contact ---------- */
.fab {
  position: fixed; inset-inline-start: 14px; bottom: 14px; z-index: 55; display: flex; gap: 6px;
  background: var(--graphite); padding: 6px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
}
.fab a { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.fab a svg { width: 22px; height: 22px; }
.fab .wa { background: #1F8F55; }
.fab .call { background: #3B4146; }
.fab a:hover { filter: brightness(1.12); }

/* =========================================================
   services.html
   ========================================================= */
.page-head { padding-block: clamp(28px, 4vw, 56px) 28px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--scale); }
.crumbs a { color: var(--muted); }
.selector {
  position: sticky; top: 92px; z-index: 30; background: var(--graphite); color: var(--on-dark); border-radius: 16px; padding: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  box-shadow: 0 16px 30px -24px rgba(0,0,0,.6);
}
.selector__dial { width: 84px; height: 84px; position: relative; }
.selector__dial svg { width: 100%; height: 100%; }
.selector__dial .knob-rot { transform-box: view-box; transform-origin: 50px 50px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.selector__main { display: grid; gap: 10px; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--graphite-3); border-radius: 10px; padding: 4px; }
.seg button {
  flex-shrink: 0; background: none; border: 0; color: var(--on-dark-muted); padding: 7px 12px; border-radius: 7px; font-size: .87rem; white-space: nowrap; font-weight: 500;
}
.seg button:hover { color: #fff; background: #30353A; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--scale); }
.seg button .n { font-family: var(--fd); font-size: 14px; margin-inline-start: 6px; opacity: .7; }
.search { position: relative; }
.search input {
  width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid #555B61; background: var(--graphite-3); color: #fff;
  padding: 8px 46px 8px 14px; box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
.search input::placeholder { color: #8C938C; }
.search input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--on-dark-muted); }
.selector__read { text-align: center; }
.selector__read .lcd { padding: 8px 12px 6px; min-width: 104px; }
.selector__read .lcd b { font-size: 40px; font-weight: 600; display: block; position: relative; }
.selector__read .lcd b .lcd__ghost { inset: 0; }
.selector__read small { display: block; font-size: .72rem; color: var(--on-dark-muted); margin-top: 6px; }

.pack {
  margin-block: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  border: 2px solid var(--graphite); border-radius: 14px; padding: 18px 22px; background: var(--paper);
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(242,194,48,.18) 14px 28px); background-size: 40px 100%; background-repeat: repeat-y; background-position: right top;
}
.pack svg { width: 64px; height: 64px; }
.pack h2 { font-size: 1.25rem; margin: 0 0 4px; }
.pack p { margin: 0; color: var(--muted); font-size: .93rem; }

.log { margin-top: 10px; }
.log__group { margin-bottom: 28px; }
.log__group[hidden] { display: none; }
.log__gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 2px solid var(--graphite); }
.log__gh h2 { font-size: 1.2rem; margin: 0; }
.log__gh .num { font-size: 16px; color: var(--muted); }
.svc-list { list-style: none; }
.svc {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px 120px; gap: 6px 22px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line); position: relative;
}
.svc[hidden] { display: none; }
.svc:hover { background: linear-gradient(to left, rgba(47,111,222,.05), transparent); }
.svc__code { font-weight: 800; font-size: .98rem; color: var(--ink); justify-self: start; unicode-bidi: plaintext; letter-spacing: .01em; }
.svc__title { font-size: 1rem; margin: 0 0 2px; }
.svc__desc { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; }
.svc__cat { color: var(--muted); width: 100%; }
.svc__time { font-family: var(--fd); font-size: 15px; background: var(--lcd); padding: 1px 7px; border-radius: 3px; line-height: 1.4; }
.tag-core { background: var(--yellow); color: var(--graphite); font-weight: 700; padding: 1px 8px; border-radius: 3px; }
.svc--core .svc__code::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; margin-inline-end: 8px; box-shadow: 0 0 0 2px var(--graphite); vertical-align: middle; }
.svc__go { justify-self: end; font-size: .88rem; font-weight: 700; text-decoration: none; padding: 8px 12px; border: 1px solid var(--graphite); border-radius: 6px; color: var(--ink); white-space: nowrap; }
.svc__go:hover { background: var(--graphite); color: #fff; }
.svc mark { background: rgba(242,194,48,.55); color: inherit; padding: 0 1px; border-radius: 2px; }
.empty { display: none; text-align: center; padding: 48px 16px; border: 1px dashed var(--graphite); border-radius: 14px; margin-top: 20px; }
.empty.is-on { display: block; }
.empty svg { width: 120px; margin: 0 auto 12px; }

/* =========================================================
   iso-9001.html
   ========================================================= */
.datasheet { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sheet { background: #fff; border: 1px solid var(--graphite); border-radius: 4px; font-size: .92rem; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--graphite); color: #fff; font-weight: 700; }
.sheet__head .num { color: var(--yellow); font-size: 16px; font-weight: 500; }
.sheet dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.sheet dt, .sheet dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--scale-2); }
.sheet dt { color: var(--muted); border-inline-end: 1px solid var(--scale-2); }
.sheet dd { font-weight: 600; }
.sheet__foot { padding: 12px 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.principles { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--graphite); border-radius: 10px; overflow: hidden; background: var(--paper); }
.principles li { padding: 18px 14px; border-inline-start: 1px solid var(--line); position: relative; }
.principles li:first-child { border-inline-start: 0; }
.principles svg { width: 40px; height: 40px; margin-bottom: 10px; }
.principles h3 { font-size: .98rem; margin-bottom: 4px; }
.principles p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.7; }

.roadmap { background: var(--paper); border: 1px solid var(--graphite); border-radius: 14px; padding: clamp(14px, 3vw, 28px); }
.roadmap__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sw3 { display: inline-flex; background: var(--scale-2); border-radius: 10px; padding: 4px; gap: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.15); position: relative; }
.sw3 button { position: relative; z-index: 1; background: none; border: 0; padding: 8px 16px; border-radius: 7px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.sw3 button[aria-checked="true"] { background: var(--graphite); color: #fff; box-shadow: inset 0 -2px 0 #111; }
.roadmap__total .lcd { display: inline-block; padding: 6px 10px 4px; font-size: 26px; }
.gantt { position: relative; }
.gantt__axis { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.gantt__ticks { position: relative; height: 34px; border-bottom: 2px solid var(--graphite);
  background: linear-gradient(to left, var(--graphite) 1px, transparent 1px) right bottom / var(--wk, 4.1666%) 10px repeat-x; }
.gantt__ticks span { position: absolute; bottom: 12px; font-family: var(--fd); font-size: 14px; transform: translateX(50%); line-height: 1; color: var(--muted); transition: opacity .3s; }
.gantt__rows { list-style: none; }
.gantt__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; border-bottom: 1px dashed var(--scale); }
.gantt__row button {
  background: none; border: 0; text-align: start; padding: 10px 0; padding-inline-end: 10px; font-size: .9rem; font-weight: 600; display: flex; gap: 8px; align-items: baseline; color: var(--ink);
}
.gantt__row button .num { font-size: 15px; color: var(--blue-ink); min-width: 1.2em; }
.gantt__row button:hover { color: var(--blue-ink); }
.gantt__row[aria-current="step"] button { color: var(--blue-ink); }
.gantt__track { position: relative; height: 26px; overflow: hidden;
  background: linear-gradient(to left, var(--scale-2) 1px, transparent 1px) right top / var(--wk, 4.1666%) 100% repeat-x; }
.gantt__fill {
  position: absolute; inset: 5px 0; background: var(--graphite); transform-origin: right center;
  transform: translateX(calc(var(--s, 0) * -100%)) scaleX(var(--w, .1));
  transition: transform .8s cubic-bezier(.3, 1.15, .4, 1);
}
.gantt__row[aria-current="step"] .gantt__fill { background: var(--blue); }
.gantt__row--after .gantt__fill { background: repeating-linear-gradient(-45deg, var(--yellow) 0 6px, #D9A915 6px 12px); }
.gantt__detail { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; background: var(--graphite); color: var(--on-dark); border-radius: 10px; padding: 18px 20px; }
.gantt__detail .lcd { padding: 8px 10px 6px; font-size: 30px; min-width: 90px; text-align: center; }
.gantt__detail h3 { color: #fff; margin-bottom: 4px; }
.gantt__detail p { margin: 0; color: var(--on-dark-muted); font-size: .93rem; }

.clauses { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.knob-box { background: var(--graphite); border-radius: 20px; padding: 18px; color: var(--on-dark); }
.knob { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin-inline: auto; touch-action: none; cursor: grab; border-radius: 50%; }
.knob:active { cursor: grabbing; }
.knob svg { width: 100%; height: 100%; }
.knob .knob-rot { transform-box: view-box; transform-origin: 150px 150px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.knob.is-drag .knob-rot { transition: none; }
.knob:focus-visible { outline-offset: 6px; border-radius: 50%; }
.knob-lbl { font-family: var(--fd); font-size: 20px; fill: var(--on-dark-muted); text-anchor: middle; cursor: pointer; }
.knob-lbl.is-on { fill: var(--yellow); font-weight: 700; }
.knob-help { text-align: center; font-size: .8rem; color: var(--on-dark-muted); margin: 10px 0 0; }
.clause { border-top: 2px solid var(--graphite); padding-top: 16px; }
.clause__no { font-family: var(--fd); font-size: 64px; line-height: 1; color: var(--blue); }
.clause h3 { font-size: 1.5rem; }
.clause ul { list-style: none; display: grid; gap: 6px; margin: 12px 0; }
.clause li { padding-inline-start: 22px; position: relative; }
.clause li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 12px; height: 2px; background: var(--graphite); }
.clause__docs { font-size: .88rem; background: var(--scale-2); padding: 10px 14px; border-radius: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.checklist { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--graphite); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; margin-top: 4px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .9rem; }
.factors { list-style: none; display: grid; gap: 10px; }
.factor { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.factor b { display: block; }
.factor span { font-size: .87rem; color: var(--muted); }
.factor .w { height: 10px; background: linear-gradient(to left, var(--graphite) 1px, transparent 1px) right / 12px 100%, var(--scale-2); border-radius: 2px; position: relative; overflow: hidden; }
.factor .w i { position: absolute; inset: 0; background: var(--blue); transform-origin: right; transform: scaleX(var(--v)); }
.time-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.time-band div { background: var(--graphite); color: var(--on-dark); border-radius: 10px; padding: 14px 16px; }
.time-band .lcd { padding: 6px 10px 4px; font-size: 30px; display: inline-block; margin-bottom: 6px; }
.time-band span { display: block; font-size: .86rem; color: var(--on-dark-muted); }

/* =========================================================
   start.html (wizard)
   ========================================================= */
.wiz { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.wiz__side { position: sticky; top: 100px; background: var(--graphite); color: var(--on-dark); border-radius: 18px; padding: 18px; }
.wiz__side h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.chan { list-style: none; display: grid; gap: 4px; }
.chan li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: .88rem; color: var(--on-dark-muted); }
.chan li i { width: 10px; height: 10px; border-radius: 50%; background: #474D53; box-shadow: 0 0 0 2px #16191C; transition: background .2s, box-shadow .2s; }
.chan li.is-done i { background: var(--blue); box-shadow: 0 0 0 2px #16191C, 0 0 8px rgba(76,139,245,.7); }
.chan li.is-now { background: var(--graphite-3); color: #fff; }
.chan li.is-now i { background: var(--yellow); box-shadow: 0 0 0 2px #16191C, 0 0 8px rgba(242,194,48,.8); }
.chan li span.v { font-size: .76rem; color: var(--on-dark-muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz__meter { margin-top: 16px; }
.wiz__meter .lcd { padding: 8px 12px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.wiz__meter .lcd b { font-size: 32px; font-weight: 600; }
.wiz__meter .lcd small { font-family: var(--ff); font-size: .72rem; }
.wiz__scale { margin-top: 10px; position: relative; height: 22px; border-bottom: 1px solid var(--on-dark-muted);
  background: linear-gradient(to left, var(--on-dark-muted) 1px, transparent 1px) right bottom / calc(100% / 7) 12px repeat-x; }
.wiz__scale i { position: absolute; bottom: -1px; inset-inline-start: 0; width: 100%; height: 3px; background: var(--yellow); transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }

.wiz__main { background: var(--paper); border: 1px solid var(--graphite); border-radius: 18px; padding: clamp(18px, 3.5vw, 40px); min-height: 520px; }
.step[hidden] { display: none; }
.step { animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.step__no { font-family: var(--fd); font-size: 18px; color: var(--blue-ink); }
.step h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 6px; }
.step > p { color: var(--muted); margin-bottom: 22px; }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.key {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; text-align: start;
  background: #fff; border: 1px solid #B8BDB6; border-radius: 10px; padding: 14px; min-height: 76px;
  box-shadow: inset 0 -3px 0 var(--scale-2); transition: border-color .15s, transform .1s;
}
.key:hover { border-color: var(--graphite); }
.key:active { transform: translateY(1px); }
.key svg { width: 34px; height: 34px; }
.key b { display: block; font-size: .96rem; }
.key span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.key::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--scale); }
.key[aria-checked="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue), inset 0 -3px 0 rgba(47,111,222,.25); }
.key[aria-checked="true"]::after { background: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,222,.22); }
.ind { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; }
.ind .knob-box { padding: 14px; }
.ind__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ind__list button { width: 100%; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .92rem; display: flex; gap: 8px; align-items: center; }
.ind__list button .num { font-size: 15px; color: var(--muted); }
.ind__list button[aria-checked="true"] { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.ind__list button[aria-checked="true"] .num { color: var(--yellow); }
.slider-box { background: var(--graphite); color: var(--on-dark); border-radius: 14px; padding: 20px; }
.slider-box__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.slider-box label { font-weight: 700; color: #fff; }
.slider-box .lcd { padding: 8px 12px 6px; font-size: 40px; font-weight: 600; min-width: 130px; text-align: center; }
.slider-box .band { font-size: .85rem; color: var(--yellow); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; direction: rtl; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: #16191C; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: #16191C; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 38px; margin-top: -15px; border-radius: 5px; background: linear-gradient(to left, #9EA49E, #F1F2EF 45%, #C9CDC6 55%, #8E948E); border: 1px solid #111; box-shadow: 0 3px 5px rgba(0,0,0,.5); }
.range::-moz-range-thumb { width: 22px; height: 38px; border-radius: 5px; background: linear-gradient(to left, #9EA49E, #F1F2EF 45%, #C9CDC6 55%, #8E948E); border: 1px solid #111; }
.range:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--fd); font-size: 14px; color: var(--on-dark-muted); padding-top: 4px;
  background: linear-gradient(to left, #6C736C 1px, transparent 1px) right top / 10% 6px repeat-x; padding-top: 10px; }
.stepper { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #454B51; flex-wrap: wrap; }
.stepper .lbl { font-weight: 700; color: #fff; margin-inline-end: auto; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: radial-gradient(circle at 40% 35%, #F4F5F2, #B9BEB7 70%); color: var(--graphite); font-size: 1.4rem; font-weight: 700; line-height: 1; box-shadow: 0 3px 4px rgba(0,0,0,.45); }
.stepper button:active { transform: translateY(1px); }
.stepper output { font-family: var(--fd); font-size: 32px; min-width: 64px; text-align: center; background: var(--lcd); color: var(--lcd-ink); border-radius: 6px; padding: 2px 8px 0; line-height: 1.3; }
.sel3 { display: grid; gap: 12px; }
.sel3 .sw3 { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sel3 .sw3 button { padding: 14px 10px; }
.sel3 .sw3 button small { display: block; font-weight: 400; font-size: .76rem; opacity: .8; }
.sel3__desc { font-size: .92rem; color: var(--muted); min-height: 3em; }
.stdlist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.stdlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stdlist li.is-rec { border-color: var(--blue); }
.stdlist b { display: block; }
.stdlist span { display: block; font-size: .78rem; color: var(--muted); }
.stdlist em { font-style: normal; font-size: .72rem; background: var(--blue); color: #fff; padding: 0 6px; border-radius: 3px; margin-inline-start: 6px; }
.wiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz__hint { color: #B3361B; font-size: .88rem; min-height: 1.4em; margin-top: 10px; }

/* Certificate / test report */
.cert { background: #fff; border: 1px solid var(--graphite); position: relative; padding: clamp(18px, 3vw, 34px); }
.cert::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--scale); pointer-events: none; }
.cert__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 2px solid var(--graphite); padding-bottom: 14px; }
.cert__head svg { width: 52px; height: 52px; }
.cert__head h2 { font-size: 1.3rem; margin: 0; }
.cert__head small { color: var(--muted); }
.cert__no { text-align: end; font-size: .8rem; color: var(--muted); }
.cert__no .num { display: block; font-size: 20px; color: var(--ink); }
.cert__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--scale); }
.cert__grid div { padding: 10px 0; padding-inline-end: 12px; font-size: .88rem; border-bottom: 1px dashed var(--scale-2); }
.cert__grid span { display: block; color: var(--muted); font-size: .76rem; }
.cert h3 { font-size: 1rem; margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.cert h3::before { content: ""; width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--graphite); }
.cert table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cert th, .cert td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--scale-2); vertical-align: top; }
.cert th { background: var(--scale-2); font-weight: 700; font-size: .8rem; }
.cert td .ltr { font-weight: 700; }
.cert__gantt { list-style: none; display: grid; gap: 4px; }
.cert__gantt li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: .84rem; }
.cert__gantt .tr { position: relative; height: 14px; background: linear-gradient(to left, var(--scale) 1px, transparent 1px) right / 8.333% 100%; overflow: hidden; }
.cert__gantt .tr i { position: absolute; inset: 2px 0; background: var(--graphite); transform-origin: right; transform: translateX(calc(var(--s) * -100%)) scaleX(var(--w)); }
.cert__gantt li:last-child .tr i { background: var(--blue); }
.cert__gantt .num { font-size: 15px; text-align: end; }
.cert__total { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 18px; padding: 14px; background: var(--graphite); color: var(--on-dark); }
.cert__total .lcd { padding: 8px 12px 4px; font-size: 40px; font-weight: 600; }
.cert__total p { margin: 0; font-size: .88rem; color: var(--on-dark-muted); }
.cert__total strong { color: #fff; }
.cert__seal { width: 90px; height: 90px; transform: rotate(-8deg); }
.cert__sign { display: flex; justify-content: space-between; gap: 18px; margin-top: 20px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.cert__sign span { border-top: 1px solid var(--graphite); padding-top: 6px; min-width: 180px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }

/* ---------- Reveal (used sparingly) ---------- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav a { padding: 8px 8px; font-size: .9rem; }
  .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .principles li:nth-child(5) { border-inline-start: 0; }
  .principles li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .svc { grid-template-columns: 130px minmax(0, 1fr) 170px; }
  .svc__go { grid-column: 3; justify-self: start; }
  .svc__meta { grid-column: 3; grid-row: 1; }
}
@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .head-cta { display: none; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; margin: 0; background: var(--paper); border-bottom: 2px solid var(--graphite);
    padding: 12px var(--gutter) 22px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility 0s .25s; box-shadow: 0 20px 30px -20px rgba(0,0,0,.4);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px 4px; font-size: 1.05rem; }
  .nav .nav__cta { display: block; border: 0; padding-top: 14px; }
  .nav .nav__cta a { justify-content: center; }
  .nav .nav__cta a::before { display: none; }
  .hero__grid, .trace, .contact, .datasheet, .clauses, .two { grid-template-columns: 1fr; }
  .wiz { grid-template-columns: 1fr; }
  .wiz__side { position: static; }
  .chan { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .chan li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 6px 2px; font-size: .72rem; line-height: 1.4; }
  .chan li span.v { display: none; }
  .chain ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain .jack, .chain__cables { display: none; }
  .chain__rack { padding-bottom: 0; }
  .tape { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 56px; }
  .tape-wrap { background: none; }
  .mod, .mod--w7, .mod--w5 { grid-column: span 6; }
  .reports .report, .reports .report--lead, .reports .report:nth-child(4) { grid-column: span 6; grid-row: auto; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__about { grid-column: 1 / -1; }
  .selector { top: 82px; grid-template-columns: minmax(0, 1fr) auto; }
  .selector__dial { display: none; }
  .gantt__axis, .gantt__row { grid-template-columns: 170px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .site-head__in { min-height: 60px; }
  .nav { inset-block-start: 72px; }
  .brand small { display: none; }
  .sec-head { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr 1fr 1fr; }
  .hero__facts b { font-size: 1.5rem; }
  .switches { grid-template-columns: 1fr; }
  .switches li { display: flex; align-items: center; justify-content: space-between; text-align: start; gap: 10px; }
  .switches .q { min-height: 0; margin: 0; }
  .case__read { grid-template-columns: 1fr; }
  .case__plate .hide-sm { display: none; }
  .tuner__out { grid-template-columns: 1fr; }
  .tuner__out > div + div { border-inline-start: 0; border-top: 1px dashed var(--scale); }
  .tuner__stations { justify-content: flex-start; }
  .mod, .mod--w7, .mod--w5, .mod--w6 { grid-column: 1 / -1; }
  .chain ol { grid-template-columns: 1fr; }
  .tape { grid-template-columns: 1fr; border-top: 0; border-inline-start: 2px solid var(--graphite); row-gap: 0; }
  .tape li { padding: 0 0 22px; padding-inline-start: 46px; padding-inline-end: 0; }
  .tape li::before { top: 8px; inset-inline-start: -2px; width: 20px; height: 2px; }
  .tape li::after { top: 0; inset-inline-start: 26px; inset-inline-start: 24px; }
  .tape li::after { content: none; }
  .tape h3::before { content: attr(data-n); font-family: var(--fd); color: var(--blue-ink); margin-inline-end: 8px; }
  .meters { grid-template-columns: 1fr 1fr; }
  .meter .lcd { font-size: 34px; }
  .reports .report, .reports .report--lead, .reports .report:nth-child(4) { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
  .contact__lines li { grid-template-columns: 90px 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .fab a span { display: none; }
  .fab a { padding: 0 12px; }
  .pack { grid-template-columns: 1fr; text-align: start; }
  .pack svg { display: none; }
  .selector { position: static; grid-template-columns: 1fr; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .selector__read { display: flex; align-items: center; gap: 12px; text-align: start; }
  .selector__read .lcd b { font-size: 30px; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; }
  .svc__code { grid-column: 1; }
  .svc__body { grid-column: 1 / -1; grid-row: 2; }
  .svc__meta { grid-column: 1 / -1; grid-row: 3; }
  .svc__cat { width: auto; }
  .svc__go { grid-column: 2; grid-row: 1; justify-self: end; padding: 5px 10px; font-size: .8rem; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li { border-inline-start: 0 !important; border-top: 1px solid var(--line); }
  .principles li:nth-child(-n+2) { border-top: 0; }
  .principles li:nth-child(even) { border-inline-start: 1px solid var(--line) !important; }
  .gantt__axis, .gantt__row { grid-template-columns: 112px minmax(0, 1fr); }
  .gantt__row button { font-size: .8rem; line-height: 1.5; }
  .gantt__ticks span:nth-child(even) { opacity: 0; }
  .gantt__detail { grid-template-columns: 1fr; }
  .ind { grid-template-columns: 1fr; }
  .ind .knob { max-width: 220px; }
  .factor { grid-template-columns: minmax(0, 1fr) 80px; }
  .time-band { grid-template-columns: 1fr; }
  .cert__head { grid-template-columns: auto minmax(0, 1fr); }
  .cert__no { grid-column: 1 / -1; text-align: start; }
  .cert__grid { grid-template-columns: 1fr 1fr; }
  .cert__gantt li { grid-template-columns: minmax(0, 1fr) 74px; }
  .cert__gantt .tr { grid-column: 1 / -1; grid-row: 2; }
  .cert__total { grid-template-columns: 1fr; }
  .cert__seal { display: none; }
  .cert table th:nth-child(3), .cert table td:nth-child(3) { display: none; }
  .wiz__nav .btn { flex: 1; }
}
@media (max-width: 420px) {
  .hero__facts li { font-size: .78rem; }
  .meters { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .chan li { font-size: 0; }
  .chan li i { width: 12px; height: 12px; }
  .sel3 .sw3 { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) { .fab { inset-inline-start: 20px; bottom: 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .ruler--draw { transform: none; }
}

@media print {
  .vernier, .site-head, .foot, .fab, .wiz__side, .wiz__nav, .result-actions, #leadForm, .page-head, .skip { display: none !important; }
  body { background: #fff; }
  .wiz { display: block; }
  .wiz__main { border: 0; padding: 0; }
  .cert { break-inside: avoid; }
  .cert__total { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
