/* ==========================================================================
   HAMILUX — Design system (prototype)
   Direction: "engineered light" — charcoal + signal yellow, technical precision
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #101317;
  --ink-2: #16191f;
  --ink-3: #1f232b;
  --ink-4: #2a2f38;
  --paper: #f7f7f4;
  --white: #ffffff;
  --text: #191d24;
  --muted: #5c6470;
  --muted-2: #8b929d;
  --y: #ffd400;
  --y-soft: #fff3b8;
  --y-deep: #d4ae00;
  --line: rgba(18, 22, 28, 0.09);
  --line-2: rgba(18, 22, 28, 0.14);
  --line-d: rgba(255, 255, 255, 0.10);
  --line-d2: rgba(255, 255, 255, 0.18);
  --wrap: 1240px;
  --r: 14px;
  --r-sm: 8px;
  --shadow-1: 0 2px 4px rgba(16, 19, 23, .04), 0 12px 28px rgba(16, 19, 23, .06);
  --shadow-2: 0 18px 50px rgba(16, 19, 23, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.mono {
  font-family: 'Consolas', ui-monospace, 'SFMono-Regular', monospace;
  letter-spacing: .08em;
  font-size: 12.5px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

/* stretched link: makes a whole card clickable */
.stretch { position: absolute; inset: 0; z-index: 1; }

/* ---------- utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--y); border-radius: 2px;
}
.eyebrow.on-dark { color: rgba(255, 255, 255, .62); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(25px, 3vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); max-width: 46ch; margin-top: 12px; font-size: 15px; }
.section-head .head-link { flex: 0 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-primary { background: var(--y); color: #14171c; box-shadow: 0 10px 26px rgba(255, 212, 0, .22); }
.btn-primary:hover { background: #ffdf3d; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 212, 0, .3); }
.btn-dark { background: var(--ink-2); color: #fff; }
.btn-dark:hover { background: #232831; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-d2); color: #fff; background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--y); color: var(--y); transform: translateY(-2px); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  transition: background .3s, box-shadow .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(247, 247, 244, .88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(16, 19, 23, .06);
}
.head-inner { display: flex; align-items: center; gap: 18px; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px; background: var(--y);
  display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(255, 212, 0, .28);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 17px; font-weight: 800; letter-spacing: .16em; }
.brand-txt span { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--muted); }
.site-head.on-hero .brand-txt b, .site-head:not(.is-stuck) .brand-txt b { color: #fff; }
.site-head.on-hero .brand-txt span, .site-head:not(.is-stuck) .brand-txt span { color: rgba(255, 255, 255, .55); }
.site-head.on-hero .nav > li > a, .site-head:not(.is-stuck) .nav > li > a { color: rgba(255, 255, 255, .8); }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: #2a2f38;
  transition: color .2s, background .2s;
}
.nav > li > a:hover { color: var(--text); background: rgba(0, 0, 0, .045); }
.nav > li > a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--y); opacity: 0; transition: opacity .2s; }
.nav > li > a:hover .dot { opacity: 1; }
.head-actions { display: flex; align-items: center; gap: 9px; margin-inline-start: auto; flex: 0 0 auto; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #2a2f38; }
.head-phone svg { width: 15px; height: 15px; color: var(--y-deep); }
.site-head:not(.is-stuck) .head-phone { color: rgba(255, 255, 255, .85); }
.lang-chip {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); cursor: pointer;
  background: transparent; transition: .2s;
}
.site-head:not(.is-stuck) .lang-chip { border-color: var(--line-d2); color: rgba(255, 255, 255, .7); }
.lang-chip:hover { border-color: var(--y); color: var(--y-deep); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-block: 138px 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 720px; height: 720px; border-radius: 50%;
  inset-inline-end: -140px; inset-block-start: -220px;
  background: radial-gradient(circle, rgba(255, 212, 0, .16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block-end: 56px;
}
.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.28; font-weight: 800;
  margin-block: 20px 22px; letter-spacing: -0.01em;
}
.hero-copy h1 em { font-style: normal; color: var(--y); position: relative; white-space: nowrap; }
.hero-copy h1 em::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-end: 4px; height: 8px;
  background: rgba(255, 212, 0, .16); border-radius: 4px; z-index: -1;
}
.hero-copy p.lead { color: rgba(255, 255, 255, .72); font-size: clamp(15px, 1.2vw, 17px); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-block-start: 34px; font-size: 13px; color: rgba(255, 255, 255, .58); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--y); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; display: block; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-d);
}
.hero-stats div { padding: 26px 22px 30px; border-inline-start: 1px solid var(--line-d); }
.hero-stats div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.hero-stats b i { font-style: normal; color: var(--y); }
.hero-stats small { font-size: 12.5px; color: rgba(255, 255, 255, .52); }

/* ---------- families ---------- */
.families { padding-block: clamp(64px, 8vw, 110px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip.is-active { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.chip.is-active::after { content: ' •'; color: var(--y); }

.fam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fam-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 24px; transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
  overflow: hidden;
}
.fam-card::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--y); transform: scaleX(0); transform-origin: inline-start; transition: transform .3s var(--ease);
}
.fam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.fam-card:hover::before { transform: scaleX(1); }
.fam-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(255, 212, 0, .16); display: grid; place-items: center; margin-bottom: 20px; }
.fam-icon svg { width: 24px; height: 24px; color: #8f7400; }
.fam-card .code { font-size: 11.5px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; }
.fam-card h3 { font-size: 19px; margin-block: 6px 8px; }
.fam-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.fam-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 18px 20px; }
.tag { font-size: 11.5px; color: #3d444e; background: #f2f2ee; border-radius: 5px; padding: 4px 8px; font-weight: 600; }
.fam-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.fam-foot small { font-size: 12px; color: var(--muted-2); }
.fam-foot span { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fam-foot svg { width: 14px; height: 14px; color: var(--y-deep); transition: transform .25s; }
.fam-card:hover .fam-foot svg { transform: translateX(-4px); }

/* ---------- spec / feature block ---------- */
.spec-block { background: var(--ink-2); color: #fff; padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.spec-block::before {
  content: ''; position: absolute; inset-block-start: -30%; inset-inline-start: -10%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255, 212, 0, .10), transparent 65%);
}
.spec-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 58px; align-items: center; }
.spec-copy h2 { font-size: clamp(25px, 3vw, 38px); margin-block: 16px 18px; }
.spec-copy p { color: rgba(255, 255, 255, .68); font-size: 15px; }
.spec-list { margin-block: 26px 30px; display: grid; gap: 14px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255, 255, 255, .82); }
.spec-list svg { width: 18px; height: 18px; color: var(--y); flex: 0 0 auto; margin-top: 6px; }

.panel {
  background: linear-gradient(180deg, #1d222a, #171b21);
  border: 1px solid var(--line-d2); border-radius: 16px; padding: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line-d); }
.panel-top b { font-size: 15px; }
.panel-top span { font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.badge-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--y); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 212, 0, .16); }

.spec-table { width: 100%; border-collapse: collapse; margin-block: 8px 4px; }
.spec-table th {
  text-align: start; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .45); padding: 14px 10px 10px; border-bottom: 1px solid var(--line-d);
}
.spec-table td { font-size: 12.8px; padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); }
.spec-table td.code { font-family: Consolas, monospace; font-size: 12px; color: var(--y); letter-spacing: .04em; }
.spec-table tr:hover td { background: rgba(255, 255, 255, .03); }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; flex-wrap: wrap; }
.panel-foot small { font-size: 11.5px; color: rgba(255, 255, 255, .42); }
.dl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600;
  padding: 7px 11px; border-radius: 6px; border: 1px solid var(--line-d2);
  color: rgba(255, 255, 255, .78); transition: .2s;
}
.dl:hover { border-color: var(--y); color: var(--y); }
.dl svg { width: 13px; height: 13px; }

/* ---------- why ---------- */
.why { padding-block: clamp(64px, 8vw, 108px); background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.why-cell { background: var(--white); padding: 32px 28px; transition: background .25s; }
.why-cell:hover { background: #fcfcf9; }
.why-cell .num { font-size: 12px; font-weight: 700; color: var(--muted-2); letter-spacing: .12em; }
.why-cell h3 { font-size: 16.5px; margin-block: 10px 8px; }
.why-cell p { font-size: 13.5px; color: var(--muted); }
.why-ico { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-2); color: var(--y); margin-bottom: 18px; }
.why-ico svg { width: 20px; height: 20px; }

/* ---------- applications ---------- */
.apps { padding-block: clamp(64px, 8vw, 110px); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-card {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 210px;
  background: linear-gradient(160deg, #22262e, #14171c); color: #fff;
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--line-d); transition: transform .3s var(--ease), box-shadow .3s;
}
.app-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, transparent 55%, rgba(255, 212, 0, .10) 55%, rgba(255, 212, 0, .10) 56%, transparent 56%);
  opacity: .7; transition: opacity .3s;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.app-card:hover::before { opacity: 1; }
.app-card svg { width: 26px; height: 26px; color: var(--y); margin-bottom: 14px; }
.app-card h3 { font-size: 17px; position: relative; }
.app-card p { font-size: 12.8px; color: rgba(255, 255, 255, .6); margin-top: 6px; position: relative; }

/* ---------- projects ---------- */
.projects { padding-block: clamp(64px, 8vw, 108px); background: var(--white); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white);
  transition: .28s var(--ease); display: flex; flex-direction: column;
}
.proj:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: transparent; }
.proj-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #eceae4; position: relative; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: saturate(.9); }
.proj:hover .proj-thumb img { transform: scale(1.04); }
.proj-tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; background: var(--y); color: #14171c; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 5px; }
.proj-body { padding: 18px 20px 22px; }
.proj-body h3 { font-size: 16px; }
.proj-body p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- catalogue ---------- */
.catalogue {
  background: var(--ink); color: #fff; padding-block: clamp(64px, 8vw, 110px);
  position: relative; overflow: hidden;
}
.catalogue::before {
  content: ''; position: absolute; inset-block-end: -40%; inset-inline-end: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 212, 0, .12), transparent 62%);
}
.cat-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cat-copy h2 { font-size: clamp(25px, 3.2vw, 40px); margin-block: 16px 18px; }
.cat-copy p { color: rgba(255, 255, 255, .68); font-size: 15px; max-width: 46ch; }
.cat-facts { display: flex; gap: 34px; margin-block: 28px 32px; }
.cat-facts b { display: block; font-size: 22px; }
.cat-facts small { font-size: 12px; color: rgba(255, 255, 255, .5); }
.cat-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-stack { position: relative; height: 340px; }
.cat-stack img {
  position: absolute; width: 74%; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); transition: transform .45s var(--ease);
}
.cat-stack img:nth-child(1) { inset-block-start: 0; inset-inline-start: 6%; transform: rotate(-6deg); }
.cat-stack img:nth-child(2) { inset-block-start: 74px; inset-inline-start: 18%; transform: rotate(-1deg); }
.cat-stack img:nth-child(3) { inset-block-start: 148px; inset-inline-start: 30%; transform: rotate(5deg); }
.cat-stack:hover img:nth-child(1) { transform: rotate(-8deg) translateY(-8px); }
.cat-stack:hover img:nth-child(3) { transform: rotate(7deg) translateY(8px); }

/* ---------- rfq ---------- */
.rfq { padding-block: clamp(64px, 8vw, 110px); }
.rfq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.rfq-copy h2 { font-size: clamp(25px, 3vw, 38px); margin-block: 16px 16px; }
.rfq-copy p { color: var(--muted); font-size: 15px; }
.contact-mini { margin-block-start: 30px; display: grid; gap: 12px; }
.contact-mini a, .contact-mini span {
  display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #2a2f38;
  width: fit-content;
}
.contact-mini .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; }
.contact-mini svg { width: 17px; height: 17px; color: var(--y-deep); }
.contact-mini small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  box-shadow: var(--shadow-1);
}
.form-card h3 { font-size: 17px; margin-bottom: 4px; }
.form-card > p { font-size: 12.8px; color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: #3d444e; }
.field label i { color: #b9b3a3; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: #fbfbf9; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--y-deep); background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, .2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-foot small { font-size: 11.5px; color: var(--muted-2); max-width: 30ch; }

/* ---------- contact / map ---------- */
.contact { background: var(--ink-2); color: #fff; padding-block: clamp(64px, 8vw, 104px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact h2 { font-size: clamp(24px, 2.8vw, 34px); margin-block: 14px 18px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-block-start: 28px; }
.contact-block h4 { font-size: 13px; color: var(--y); letter-spacing: .04em; margin-bottom: 10px; }
.contact-block p, .contact-block a { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.9; display: block; }
.contact-block a:hover { color: #fff; }
.map {
  border-radius: 16px; border: 1px solid var(--line-d2); overflow: hidden; min-height: 320px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(140deg, #1b2028, #13161b);
  position: relative; display: grid; place-items: center;
}
.map::before {
  content: ''; position: absolute; inset-block-start: 34%; inset-inline: -10%; height: 10px;
  background: rgba(255, 212, 0, .12); transform: rotate(-8deg);
}
.map-pin { position: relative; text-align: center; }
.map-pin .dot {
  width: 16px; height: 16px; border-radius: 50%; background: var(--y); margin: 0 auto 12px;
  box-shadow: 0 0 0 8px rgba(255, 212, 0, .14), 0 0 0 18px rgba(255, 212, 0, .07);
}
.map-pin b { display: block; font-size: 14px; }
.map-pin small { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding-block: 56px 28px; border-top: 1px solid var(--line-d); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { font-size: 13px; line-height: 1.95; max-width: 34ch; margin-block-start: 16px; color: rgba(255, 255, 255, .5); }
.foot-col h4 { font-size: 12.5px; color: #fff; margin-bottom: 14px; letter-spacing: .04em; }
.foot-col a { display: block; font-size: 13px; padding-block: 5px; transition: color .2s; }
.foot-col a:hover { color: var(--y); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-d);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .42);
}
.totop {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-d2);
  display: grid; place-items: center; color: #fff; transition: .2s;
}
.totop:hover { border-color: var(--y); color: var(--y); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 200; inset-block-end: 26px; inset-inline-start: 26px;
  background: var(--ink-2); color: #fff; border: 1px solid var(--line-d2); border-inline-start: 3px solid var(--y);
  padding: 14px 18px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .head-phone { display: none; }
}

@media (max-width: 1080px) {
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid, .spec-grid, .rfq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-stack { height: 300px; }
  .nav { display: none; }
  .burger { display: block; }
  .head-phone { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block-start: 118px; }
  .hero-grid { gap: 28px; padding-block-end: 40px; }
  .hero-visual { order: -1; max-width: 420px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { border-inline-start: 0; padding-inline: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .fam-grid, .app-grid, .why-grid, .proj-grid, .form-row, .contact-cols { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .panel { padding: 18px; }
  .spec-table td, .spec-table th { padding-inline: 6px; font-size: 11.5px; }
}

/* ---------- mobile menu panel ---------- */
@media (max-width: 1080px) {
  body.menu-open { overflow: hidden; }
  body.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset-block-start: 78px; inset-inline: 0;
    margin: 0; padding: 8px 18px 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(16, 19, 23, .12);
    max-height: calc(100dvh - 78px); overflow: auto;
  }
  body.menu-open .nav > li > a {
    color: var(--text) !important; font-weight: 600; font-size: 15px;
    padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }
  body.menu-open .nav > li:last-child > a { border-bottom: 0; }
  body.menu-open .burger { border-color: var(--y); color: var(--y-deep); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Inner pages — products index & product detail
   ========================================================================== */

/* ---------- page head ---------- */
.page-head {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink); padding-block: 126px 54px;
}
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(110% 90% at 80% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(110% 90% at 80% 0%, #000 10%, transparent 72%);
}
.page-head::after {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  inset-inline-end: -160px; inset-block-start: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 212, 0, .14), transparent 62%);
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 44px); margin-block: 16px 16px; letter-spacing: -0.01em; }
.page-head .lead { color: rgba(255, 255, 255, .7); font-size: clamp(14px, 1.1vw, 16px); max-width: 64ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--y); }
.crumbs .sep { opacity: .4; }
.crumbs b { color: rgba(255, 255, 255, .85); font-weight: 600; }

.head-stats {
  display: flex; flex-wrap: wrap; gap: 20px 44px;
  margin-block-start: 34px; padding-block-start: 24px; border-top: 1px solid var(--line-d);
}
.head-stats b { display: block; font-size: 21px; font-weight: 800; }
.head-stats b i { font-style: normal; color: var(--y); }
.head-stats small { font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------- finder (products index) ---------- */
.finder { padding-block: clamp(40px, 5vw, 60px) clamp(64px, 8vw, 104px); }
.finder-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block-end: 20px; margin-block-end: 40px; border-bottom: 1px solid var(--line);
}
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search svg {
  position: absolute; inset-inline-start: 14px; inset-block-start: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-2); pointer-events: none;
}
.search input {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 12px 18px 12px 42px; transition: border-color .2s, box-shadow .2s;
}
.search input:focus {
  outline: none; border-color: var(--y-deep); box-shadow: 0 0 0 3px rgba(255, 212, 0, .2);
}
.finder-bar .chips { margin: 0; }
.finder-count { font-size: 12.5px; color: var(--muted); margin-inline-start: auto; }
.finder-count b { color: var(--text); }

.fgroup { margin-block-end: clamp(44px, 5vw, 64px); scroll-margin-top: 96px; }
.fgroup-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-block-end: 14px; margin-block-end: 22px; border-bottom: 2px solid var(--ink);
}
.fgroup-head .idx {
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted-2);
}
.fgroup-head h2 { font-size: clamp(20px, 2.2vw, 28px); margin-block: 6px 6px; }
.fgroup-head p { font-size: 13.5px; color: var(--muted); max-width: 62ch; }
.fgroup-head .fcount { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); }

.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.series {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 20px; overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.series::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: var(--y); transform: scaleX(0); transform-origin: inline-start; transition: transform .3s var(--ease);
}
.series:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.series:hover::before { transform: scaleX(1); }
.series .s-code { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: var(--muted-2); }
.series h3 { font-size: 16.5px; margin-block: 5px 6px; }
.series > p { font-size: 12.8px; color: var(--muted); }
.series dl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  margin-block: 16px 18px; padding-block-start: 16px; border-top: 1px solid var(--line);
}
.series dt { font-size: 11px; color: var(--muted-2); }
.series dd { margin: 0; font-size: 12.8px; font-weight: 600; }
.series .s-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; padding-block-start: 14px; border-top: 1px solid var(--line);
}
.series .s-foot svg { width: 14px; height: 14px; color: var(--y-deep); transition: transform .25s; }
.series:hover .s-foot svg { transform: translateX(-4px); }
.series .s-flag {
  position: absolute; inset-block-start: 16px; inset-inline-end: 18px;
  font-size: 10.5px; font-weight: 700; color: #6d5a00; background: rgba(255, 212, 0, .2);
  border-radius: 4px; padding: 3px 7px;
}
.is-hidden { display: none !important; }
.is-plain { border-style: dashed; background: transparent; }
.is-plain:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.is-plain::before { display: none; }
.is-plain .s-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.is-plain .s-foot svg { width: 14px; height: 14px; color: var(--y-deep); }
.finder-empty {
  padding: 46px 24px; text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
}

/* ---------- code anatomy ---------- */
.anatomy { background: var(--ink-2); color: #fff; padding-block: clamp(56px, 7vw, 92px); position: relative; overflow: hidden; }
.anatomy::before {
  content: ''; position: absolute; inset-block-end: -50%; inset-inline-start: -10%;
  width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 212, 0, .1), transparent 64%);
}
.anatomy .wrap { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.anatomy h2 { font-size: clamp(23px, 2.8vw, 34px); margin-block: 14px 14px; }
.anatomy p { color: rgba(255, 255, 255, .66); font-size: 14.5px; }
.code-card {
  background: linear-gradient(180deg, #1d222a, #171b21); border: 1px solid var(--line-d2);
  border-radius: 16px; padding: 30px 28px 24px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.code-line {
  direction: ltr; display: flex; justify-content: center; align-items: flex-end; gap: 0;
  font-family: Consolas, ui-monospace, monospace; font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: .04em; color: #fff; margin-block-end: 18px;
}
.code-line span { position: relative; padding-block-end: 10px; }
.code-line span b { color: var(--y); font-weight: 700; }
.code-line span::after {
  content: ''; position: absolute; inset-inline: 2px; inset-block-end: 0; height: 2px;
  background: rgba(255, 212, 0, .45);
}
.code-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: 10px; overflow: hidden; }
.code-parts div { background: #1b2028; padding: 14px 16px; }
.code-parts small { display: block; font-size: 11px; color: rgba(255, 255, 255, .45); }
.code-parts b { font-size: 13.5px; }
.code-parts i { font-style: normal; font-family: Consolas, monospace; font-size: 11.5px; color: var(--y); display: block; margin-block-start: 2px; letter-spacing: .06em; }
.code-note { font-size: 11.5px; color: rgba(255, 255, 255, .42); margin-block-start: 16px; text-align: center; }

/* ---------- product detail ---------- */
.pdp { padding-block: clamp(34px, 4vw, 48px) clamp(8px, 1vw, 16px); }
.pdp-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: start; }
.gal-main {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; display: grid; place-items: center; aspect-ratio: 5 / 4;
}
.gal-main svg { width: 100%; height: auto; }
.gal-view { display: none; }
.gal-view.is-active { display: block; }
.gal-thumbs { display: flex; gap: 10px; margin-block-start: 12px; }
.gal-thumbs button {
  flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 8px; cursor: pointer; transition: .2s; color: var(--muted);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
}
.gal-thumbs button.is-active { border-color: var(--y); color: var(--text); box-shadow: 0 0 0 3px rgba(255, 212, 0, .18); }

.pdp-info .model { font-family: Consolas, monospace; font-size: 12.5px; letter-spacing: .12em; color: var(--y-deep); font-weight: 700; }
.pdp-info h1 { font-size: clamp(24px, 2.9vw, 36px); margin-block: 10px 10px; }
.pdp-info .pdp-lead { font-size: 14.5px; color: var(--muted); }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 16px; }
.pdp-tags .tag.on-dark { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }

.kv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-block: 20px;
}
.kv div { background: var(--white); padding: 13px 15px; }
.kv small { display: block; font-size: 11px; color: var(--muted-2); }
.kv b { font-size: 13.5px; font-weight: 600; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 4px; }
.pdp-links { display: flex; flex-wrap: wrap; gap: 16px; margin-block-start: 16px; font-size: 12.5px; }
.pdp-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); border-bottom: 1px solid transparent; }
.pdp-links a:hover { color: var(--text); border-bottom-color: var(--y); }
.pdp-links svg { width: 13px; height: 13px; }

/* ---------- sub nav + spec sections ---------- */
.subnav {
  position: sticky; inset-block-start: 77px; z-index: 50;
  background: rgba(247, 247, 244, .92); backdrop-filter: saturate(150%) blur(12px);
  border-block: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 15px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--text); border-bottom-color: var(--y); }

.psec { padding-block: clamp(48px, 6vw, 78px); border-top: 1px solid var(--line); scroll-margin-top: 128px; }
.psec:first-of-type { border-top: 0; }
.psec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-block-end: 26px; }
.psec-head h2 { font-size: clamp(21px, 2.4vw, 30px); margin-block-start: 10px; }
.psec-head p { font-size: 13.5px; color: var(--muted); max-width: 58ch; margin-block-start: 8px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background: var(--white); }
.ot { width: 100%; min-width: 760px; border-collapse: collapse; }
.ot th {
  text-align: start; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--muted);
  background: #faf9f5; padding: 13px 15px; border-bottom: 1px solid var(--line-2);
}
.ot td { padding: 14px 15px; font-size: 13px; border-bottom: 1px solid var(--line); }
.ot tr:last-child td { border-bottom: 0; }
.ot tbody tr:hover td { background: #fcfcf6; }
.ot td.code { font-family: Consolas, monospace; font-size: 12.5px; font-weight: 700; color: var(--y-deep); letter-spacing: .04em; white-space: nowrap; }
.ot td b { font-weight: 600; }
.ot .muted { color: var(--muted); }
.ot .row-dl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ot .row-dl:hover { color: var(--y-deep); }
.ot .row-dl svg { width: 13px; height: 13px; }
.psec-note { font-size: 11.5px; color: var(--muted-2); margin-block-start: 14px; }

.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tech-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.tech-card h3 { font-size: 15px; margin-block-end: 4px; }
.tech-card > p { font-size: 12.5px; color: var(--muted); margin-block-end: 10px; }
.tech-card svg { width: 100%; height: auto; display: block; }
.tech-card .legend { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: 10px; font-size: 11.5px; color: var(--muted); }
.tech-card .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 5px; vertical-align: middle; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-block: 12px; border-bottom: 1px dashed var(--line-2); font-size: 13.5px;
}
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 600; text-align: end; }

.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dl-card {
  display: flex; flex-direction: column; gap: 4px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.dl-card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-2); }
.dl-card .ic {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink-2); color: var(--y); margin-block-end: 12px;
}
.dl-card .ic svg { width: 18px; height: 18px; }
.dl-card b { font-size: 13.5px; }
.dl-card small { font-size: 11.5px; color: var(--muted-2); }
.dl-card .fmt { font-family: Consolas, monospace; font-size: 10.5px; letter-spacing: .1em; color: var(--y-deep); margin-block-start: 8px; }

.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: flex; position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 80;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(16, 19, 23, .96); backdrop-filter: blur(10px);
    border-block-start: 1px solid var(--line-d2);
  }
  .sticky-cta small { color: rgba(255, 255, 255, .6); font-size: 11.5px; }
  .sticky-cta .btn { padding: 11px 16px; font-size: 13px; }
  .footer { padding-block-end: 84px; }
}

/* ---------- inner pages: responsive ---------- */
@media (max-width: 1080px) {
  .series-grid { grid-template-columns: 1fr 1fr; }
  .anatomy .wrap { grid-template-columns: 1fr; gap: 36px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 34px; }
  .gal-main { aspect-ratio: 16 / 11; }
  .specs { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .fgroup-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 760px) {
  .page-head { padding-block: 106px 44px; }
  .head-stats { gap: 16px 26px; }
  .head-stats b { font-size: 18px; }
  .series-grid, .tech-grid, .kv, .dl-grid { grid-template-columns: 1fr; }
  .finder-bar { gap: 10px; }
  .search { max-width: none; }
  .finder-count { margin-inline-start: 0; }
  .code-parts { grid-template-columns: 1fr; }
  .subnav { inset-block-start: 70px; }
  .subnav a { padding: 12px 10px; font-size: 12.5px; }
  .gal-main { padding: 16px; }
  .pdp { padding-block-start: 26px; }
}


/* =====================================================================
   SITE BLOCKS (generated pages)
   ===================================================================== */
.nav a.is-current { color: #fff; }
.nav a.is-current .dot { opacity: 1; transform: scale(1); }

/* ---------- section heads ---------- */
.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-block-end: 36px;
}
.sec-head h2 { font-size: clamp(23px, 2.7vw, 34px); margin-block: 12px 10px; }
.sec-head p { font-size: 14px; color: var(--muted); max-width: 62ch; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
  color: var(--text); border-bottom: 2px solid var(--y); padding-block-end: 3px;
}
.link-more svg { width: 15px; height: 15px; transition: transform .25s; }
.link-more:hover svg { transform: translateX(-4px); }

/* ---------- hero stats (override) ---------- */
.hero-stats span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .52); }
.hero-stats b { font-size: 26px; }

/* ---------- family cards ---------- */
.fam-idx {
  position: absolute; inset-block-start: 18px; inset-inline-end: 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--muted-2);
}
.fam-card .fam-icon { margin-bottom: 18px; }
.fam-card b { font-size: 11.5px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; }
.fam-meta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted-2); font-weight: 600;
}
.fam-card p { min-height: 3.2em; }

/* ---------- why (override for 4 cards) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.why-card h3 { font-size: 16.5px; margin-block: 12px 8px; }
.why-card p { font-size: 13.2px; color: var(--muted); }
.why-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-2); color: var(--y); margin-bottom: 4px; }
.why-ic svg { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(52px, 6vw, 84px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 31px); margin-block-end: 10px; }
.cta-band p { color: rgba(255, 255, 255, .65); font-size: 14px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-dark {
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; background: transparent;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; transition: .22s;
}
.btn-ghost-dark:hover { border-color: var(--y); color: var(--y); }
.btn-ghost-dark svg { width: 15px; height: 15px; }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--text); font-size: 13.5px; font-weight: 600;
  transition: .22s;
}
.btn-line:hover { border-color: var(--ink); }
.btn-line svg { width: 15px; height: 15px; }

/* ---------- family page ---------- */
.fam-intro { padding-block: clamp(48px, 6vw, 78px); }
.fam-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.fam-intro-grid .lead { font-size: 15px; color: var(--ink-2); margin-block: 14px 20px; }
.fact-list { display: grid; gap: 10px; margin-block: 0 26px; }
.fact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.fact-list svg { width: 16px; height: 16px; color: var(--y-deep); margin-top: 5px; flex: 0 0 auto; }
.fam-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.fam-visual { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.fam-visual svg { width: 100%; height: auto; display: block; }
.fam-series { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 92px); background: var(--paper); }

/* ---------- product detail ---------- */
.pdp-head { padding-block: 122px 46px; }
.pdp { padding-block: clamp(36px, 4vw, 56px) 0; }
.pdp-grid { align-items: start; }
.gal { position: sticky; top: 96px; }
.gal-thumbs { display: flex; gap: 8px; margin-block-start: 12px; flex-wrap: wrap; }
.gal-thumb {
  border: 1px solid var(--line-2); background: #fff; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .2s;
}
.gal-thumb:hover { border-color: var(--ink); color: var(--text); }
.gal-thumb.is-active { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.pdp-code { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--muted-2); }
.pdp-title { font-size: clamp(24px, 2.8vw, 34px); margin-block: 8px 12px; }
.pdp-lead { font-size: 14.5px; color: var(--muted); margin-block-end: 18px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-block-end: 22px; }
.pdp-tags .tag { background: #f2f2ee; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 24px; }
.inquiry-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 26px 24px;
}
.inquiry-box b { display: block; font-size: 16px; margin-block-end: 6px; }
.inquiry-box span { font-size: 13.5px; color: var(--muted); }

/* ---------- quality steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.step-n { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--y-deep); }
.step-card h3 { font-size: 16px; margin-block: 10px 8px; }
.step-card p { font-size: 13.2px; color: var(--muted); }

/* ---------- solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; }
.sol-ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 212, 0, .16); color: #8f7400; margin-block-end: 16px; }
.sol-ic svg { width: 22px; height: 22px; }
.sol-card h3 { font-size: 17px; margin-block-end: 8px; }
.sol-card p { font-size: 13.4px; color: var(--muted); margin-block-end: 18px; }
.sol-card .s-foot { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--y-deep); display: inline-flex; align-items: center; gap: 6px; }
.sol-card .s-foot svg { width: 14px; height: 14px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid .lead { margin-block: 14px 18px; }
.about-grid p { font-size: 14px; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.about-facts div { background: var(--white); padding: 26px 22px; }
.about-facts b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.about-facts span { font-size: 12.5px; color: var(--muted-2); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.contact-card h3 { font-size: 15.5px; margin-block: 10px 8px; }
.contact-card p { font-size: 13.4px; color: var(--muted); line-height: 1.9; }
.contact-side { display: grid; gap: 14px; }
.rfq-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.rfq-form h2 { font-size: clamp(20px, 2.2vw, 27px); margin-block-end: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-block-end: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-block-end: 7px; }
.field > span em { font-style: normal; color: var(--muted-2); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--y-deep); box-shadow: 0 0 0 3px rgba(255, 212, 0, .18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #d08a84; }
.btn-block { width: 100%; justify-content: center; margin-block-start: 6px; }
.form-note { font-size: 12px; color: var(--muted-2); margin-block-start: 12px; text-align: center; }
.form-note.is-ok { color: #1c6b3a; font-weight: 600; }
.form-note.is-err { color: #b3261e; font-weight: 600; }

/* ---------- downloads ---------- */
.dl-hero {
  display: flex; align-items: center; gap: 20px; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 26px 28px; transition: .25s;
}
.dl-hero:hover { background: #171b21; }
.dl-hero .ic { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--y); color: var(--ink); flex: 0 0 auto; }
.dl-hero .ic svg { width: 24px; height: 24px; }
.dl-hero b { display: block; font-size: 16.5px; margin-block-end: 5px; }
.dl-hero span { font-size: 13px; color: rgba(255, 255, 255, .62); }
.dl-hero .fmt { margin-inline-start: auto; font-family: Consolas, monospace; font-size: 11px; letter-spacing: .12em; color: var(--y); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fam-intro-grid, .about-grid, .contact-grid, .pdp-grid { grid-template-columns: 1fr; gap: 34px; }
  .gal { position: static; }
  .why-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .why-grid, .steps-grid, .solutions, .contact-cards, .field-row, .about-facts, .fam-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .dl-hero { flex-wrap: wrap; }
  .dl-hero .fmt { margin-inline-start: 0; }
  .sec-head { margin-block-end: 24px; }
}
