/* =============================================================================
   Zhengzhou KZONG Machinery Equipment Co., Ltd.
   Site stylesheet - single file, no external dependencies
   ============================================================================= */

/* --- 1. Design tokens ------------------------------------------------------ */
:root {
  --ink:        #10202E;
  --navy:       #0E2337;
  --navy-800:   #123047;
  --navy-600:   #1D4560;
  --body:       #46596A;
  --muted:      #7C8F9E;
  --line:       #E3E9EE;
  --line-soft:  #EFF3F6;
  --bg:         #FFFFFF;
  --bg-soft:    #F6F8FA;
  --bg-warm:    #FAF7F4;
  --accent:     #C0662B;
  --accent-dark:#A4521D;
  --accent-soft:#FBF1E9;
  --ok:         #1F7A4D;
  --err:        #B3261E;

  --container:  1240px;
  --radius:     3px;
  --radius-lg:  6px;

  --shadow-sm:  0 1px 2px rgba(16,32,46,.06), 0 1px 3px rgba(16,32,46,.04);
  --shadow-md:  0 6px 18px rgba(16,32,46,.07), 0 2px 6px rgba(16,32,46,.04);
  --shadow-lg:  0 18px 44px rgba(16,32,46,.11), 0 4px 12px rgba(16,32,46,.05);

  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* --- 2. Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- 3. Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section      { padding: 92px 0; }
.section--sm  { padding: 64px 0; }
.section--soft{ background: var(--bg-soft); }
.section--warm{ background: var(--bg-warm); }
.section--dark{ background: var(--navy); color: rgba(255,255,255,.76); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: #E5A878; }

.lede { font-size: 1.06rem; color: var(--body); }
.section--dark .lede { color: rgba(255,255,255,.72); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --- 4. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-600); }

.btn--outline {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--navy); background: var(--bg-soft); }

.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1EB955; }

.btn--sm { padding: 10px 18px; font-size: .84rem; }
.btn--lg { padding: 15px 32px; font-size: .96rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 5. Top bar + header --------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  letter-spacing: .01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.86); transition: color .16s ease; }
.topbar a:hover { color: #fff; }
.topbar__label { color: rgba(255,255,255,.44); margin-right: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 15px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy-600);
  border-radius: var(--radius);
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.is-active { color: var(--ink); font-weight: 650; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}

/* --- Navigation items and the Resources submenu ---------------------------- */
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 10px 15px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy-600);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-active { color: var(--ink); font-weight: 650; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.nav__item.has-sub.is-active > .nav__link { color: var(--ink); font-weight: 650; }
.nav__item.has-sub.is-active > .nav__link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.nav__caret { width: 10px; height: 6px; transition: transform .18s ease; }
.nav__item.is-open > .nav__link--sub .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 236px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 70;
}
.nav__sub::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav__sub a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-600);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav__sub a:hover { color: var(--ink); background: var(--bg-soft); }
.nav__sub a.is-active { color: var(--accent-dark); font-weight: 650; background: var(--accent-soft); }
.nav__sub a.is-active::after { display: none; }

@media (min-width: 861px) {
  .nav__item.has-sub:hover > .nav__sub,
  .nav__item.has-sub:focus-within > .nav__sub,
  .nav__item.has-sub.is-open > .nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(80vh, 700px);
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,24,38,.92) 0%, rgba(9,24,38,.74) 42%, rgba(9,24,38,.34) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 104px 0; max-width: 780px; }
.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 20ch; }
.hero__sub {
  max-width: 62ch;
  margin-bottom: 34px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255,255,255,.8);
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .82rem;
  color: rgba(255,255,255,.66);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.page-hero {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,.76);
  padding: 78px 0 72px;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p  { margin: 0; font-size: 1.03rem; color: rgba(255,255,255,.76); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.56);
}
/* Ancestors are brighter than the current step: with `a { color: inherit }` in
   the base sheet, links and the trailing current page would otherwise render
   identically and nothing would look clickable. */
.breadcrumb a { color: rgba(255,255,255,.74); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.34); }

/* --- 7. Stats -------------------------------------------------------------- */
.stats { background: var(--navy); border-top: 1px solid rgba(255,255,255,.09); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 46px 30px;
  border-left: 1px solid rgba(255,255,255,.1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -.03em;
}
.stat__suffix { font-size: .6em; color: var(--accent); font-weight: 700; }
.stat__label {
  margin-top: 12px;
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
  max-width: 24ch;
}

/* --- 8. Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card:hover {
  border-color: #D3DDE5;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-soft);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 8px; }
.card__body p  { font-size: .92rem; margin-bottom: 18px; }
.card__foot { margin-top: auto; }

.card__num {
  position: absolute;
  top: 14px; left: 14px;
  min-width: 30px; height: 30px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  font-size: .76rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 0 8px;
}
.card__tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 10px;
  background: rgba(14,35,55,.86);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
}
.link-arrow::after {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  transition: width .2s ease;
}
.link-arrow:hover::after { width: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .74rem;
  color: var(--navy-600);
}

/* --- 9. Product family (large tiles) -------------------------------------- */
.family {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.family:hover { box-shadow: var(--shadow-md); border-color: #D3DDE5; }
.family__media { position: relative; min-height: 288px; background: var(--bg-soft); }
.family__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.family__body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.family__index {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.family__body h3 { font-size: 1.3rem; margin-bottom: 12px; }
.family__body p  { font-size: .93rem; margin-bottom: 20px; }
.family__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--muted);
}

/* --- 10. Selector ---------------------------------------------------------- */
.selector {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 34px;
}
.selector__q { font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.selector__opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.selector__opt {
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .16s ease;
}
.selector__opt:hover { border-color: var(--navy-600); color: var(--ink); }
.selector__opt.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.selector__result {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.selector__result-empty { color: var(--muted); font-size: .92rem; }
.selector__picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: all .18s ease;
}
.pick:hover { background: #fff; border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.pick__model { font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); }
.pick__name { display: block; margin: 6px 0 4px; font-weight: 600; color: var(--ink); font-size: .96rem; }
.pick__note { font-size: .8rem; color: var(--muted); }

/* --- 11. Split content ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--wide-media { grid-template-columns: 1.15fr 1fr; }
.split--wide-text  { grid-template-columns: 1fr 1.15fr; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3 / 4; }

.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li {
  position: relative;
  padding: 0 0 0 28px;
  margin-bottom: 14px;
  font-size: .94rem;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 2px;
  background: var(--accent);
}
.bullet-list--check li::before {
  content: "";
  left: 0; top: 7px;
  width: 15px; height: 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.bullet-list--check li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 11px;
  width: 5px; height: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 2.5px 1px 0 0 var(--accent);
}

.panel {
  padding: 30px 32px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.panel p { font-size: .94rem; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.value h4 { margin-bottom: 10px; }
.value p { font-size: .9rem; margin: 0; }
.value__k {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* --- 12. Certificates ------------------------------------------------------ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert {
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--navy);
}
.cert h4 { margin-bottom: 8px; font-size: .98rem; }
.cert p { font-size: .86rem; margin: 0; }
.cert__meta {
  margin-top: 14px;
  font-size: .76rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- 13. Filters + catalogue ---------------------------------------------- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 34px;
}
.filterbar__group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: .86rem;
  cursor: pointer;
  transition: all .16s ease;
}
.filter-btn:hover { border-color: var(--navy-600); }
.filter-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filterbar__search {
  margin-left: auto;
  min-width: 240px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9rem;
}
.filterbar__search:focus { border-color: var(--navy-600); outline: none; }

.cat-block { margin-bottom: 64px; scroll-margin-top: 120px; }
.cat-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--line);
}
.cat-block__head h3 { font-size: 1.42rem; margin: 0 0 4px; }
.cat-block__head p { margin: 0; font-size: .9rem; color: var(--muted); max-width: 70ch; }
.cat-block__count {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}

.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

/* --- 14. Product detail ---------------------------------------------------- */
.pd {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 64px;
  align-items: start;
}
.pd__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.pd__media img { width: 100%; height: 100%; object-fit: cover; }
.pd__model {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
}
.pd__summary { font-size: 1.04rem; }
.pd__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 26px 0;
}
.pd__fact { background: #fff; padding: 15px 17px; }
.pd__fact dt { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pd__fact dd { margin: 5px 0 0; font-size: .94rem; font-weight: 600; color: var(--ink); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  width: 40%;
  font-weight: 600;
  color: var(--navy-600);
  background: var(--bg-soft);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--ink); }
.spec-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* --- 15. Forms ------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-600);
  letter-spacing: .01em;
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: .93rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-600);
  outline: none;
  box-shadow: 0 0 0 3px rgba(29,69,96,.09);
}
.field input:invalid:not(:placeholder-shown) { border-color: #E5B4B0; }

.form__note { font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  border: 1px solid transparent;
}
.alert--ok  { background: #EAF6EF; border-color: #BFE3CD; color: #16593A; }
.alert--err { background: #FDECEA; border-color: #F3C4BF; color: #8C1D18; }
.alert--info{ background: var(--bg-soft); border-color: var(--line); color: var(--body); }
.alert[hidden] { display: none; }
.alert a { text-decoration: underline; font-weight: 600; }

/* --- 16. Contact ----------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: start; }
.contact-card {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}
.contact-card h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 1rem; color: var(--ink); margin: 0; font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.contact-side { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 34px 32px; }

.steplist { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steplist li {
  position: relative;
  padding-left: 46px;
  padding-bottom: 22px;
  font-size: .92rem;
}
.steplist li:last-child { padding-bottom: 0; }
.steplist li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}
.steplist li strong { display: block; color: var(--ink); margin-bottom: 3px; }

/* --- 17. CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,.74);
  padding: 76px 0;
  overflow: hidden;
}
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.cta-band__inner {
  position: relative; z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p  { margin: 0; max-width: 62ch; color: rgba(255,255,255,.74); }

/* --- 18. Footer ------------------------------------------------------------ */
.site-footer { background: #0A1B2A; color: rgba(255,255,255,.6); padding: 72px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 52px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand .brand__mark { background: var(--accent); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub  { color: rgba(255,255,255,.5); }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.site-footer h4 {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 10px; font-size: .89rem; }
.footer__links a { transition: color .16s ease; }
.footer__links a:hover { color: #fff; }
.footer__contact li { margin-bottom: 14px; font-size: .89rem; line-height: 1.6; }
.footer__contact strong {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 3px;
  font-weight: 600;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.46);
}

/* --- 19. Floating WhatsApp ------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 15px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37,211,102,.34);
  font-size: .9rem;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.44); }
.wa-float svg { width: 21px; height: 21px; flex: none; }
.wa-float__txt { display: inline; }

/* --- 19b. Editorial: projects, news, knowledge, downloads ------------------ */

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta__cat { color: var(--accent-dark); font-weight: 700; }
.post-meta time { font-variant-numeric: tabular-nums; }

/* Article reading layout */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
}
.article__head { max-width: 780px; }
.article__figure { margin: 0 0 38px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.article__figure img { width: 100%; }

.prose { max-width: 780px; font-size: 1.02rem; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 44px;
  margin-bottom: 0;
  font-size: 1.24rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.prose p { margin: 0; }
.prose ul { margin: 0; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: .68em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.prose strong { color: var(--ink); font-weight: 650; }

/* Sticky sidebar used on article and project detail pages */
.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  background: #fff;
}
.aside-card + .aside-card { margin-top: 20px; }
.aside-card h3 { font-size: 1rem; margin-bottom: .7em; }
.aside-card p { font-size: .92rem; margin: 0 0 16px; }
.aside-sticky { position: sticky; top: 108px; }
.aside-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.aside-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a:hover { color: var(--accent-dark); }

/* Project detail facts + results */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.facts__item { background: #fff; padding: 20px 22px; }
.facts__k { display: block; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts__v { font-size: .98rem; font-weight: 600; color: var(--ink); }

.results { list-style: none; margin: 0; padding: 0; }
.results li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .98rem;
}
.results li:last-child { border-bottom: 0; }
.results li::before {
  content: "";
  position: absolute;
  left: 8px; top: 22px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.solution-block { border-left: 3px solid var(--accent); padding-left: 24px; }
.solution-block h3 { font-size: 1.02rem; }
.solution-block p { margin: 0; }

/* Downloads */
.doc-list { display: grid; gap: 16px; }
.doc-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.doc-row:hover { border-color: #CBD8E1; box-shadow: var(--shadow-md); }
.doc-row__icon {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.doc-row__body .eyebrow { margin-bottom: 6px; }
.doc-row__body h3 { margin-bottom: .35em; font-size: 1.06rem; }
.doc-row__body p { margin: 0 0 12px; font-size: .93rem; }
.doc-row__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); }
.doc-row__gate { color: var(--accent-dark); font-weight: 600; }
.doc-row__free { color: var(--ok); font-weight: 600; }
.doc-row__action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.doc-row__status { font-size: .82rem; color: var(--muted); text-align: right; max-width: 200px; }

/* Filter tabs used on listing pages */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tabs__btn {
  padding: 9px 18px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--navy-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.tabs__btn:hover { border-color: #C3D0DA; color: var(--ink); }
.tabs__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs__btn span { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* Featured lead item on listing pages */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  margin-bottom: 44px;
}
.feature__media { min-height: 320px; background: var(--bg-soft); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.feature__body h2 { font-size: 1.5rem; }
.feature__body p { font-size: 1rem; }

/* --- 20. Search form, comments, WordPress core output ---------------------- */
.kz-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kz-search__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 15px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kz-search__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.comments { margin-top: 72px; }
.comments__title { font-size: 1.35rem; margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 24px 0; border-top: 1px solid var(--line); }
.comment-list .children { margin-left: 0; padding-left: 26px; border-left: 2px solid var(--line); }
.comment-list .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.comment-list .comment-meta a { color: var(--muted); }
.comment-list .reply { font-size: .84rem; margin-top: 10px; }
.comment-list .reply a { color: var(--accent-dark); font-weight: 600; }
.comment-list .comment-body p:last-child { margin-bottom: 0; }
.comment-form .form-submit { margin: 4px 0 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; font-size: .84rem; color: var(--muted); }
.comment-form .comment-form-cookies-consent input { width: auto; margin-top: 3px; }

/* WordPress injects these classes into post content and widget output. The
   theme does not use them, but they must not render as unstyled blocks. */
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; }
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky .card__body::before { content: "Pinned"; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 21. Block editor output ----------------------------------------------- */
/* These rules style BOTH the front end and the editor canvas, because theme.css
   is enqueued in both places. Names match register_block_style() in
   inc/blocks.php — changing one without the other produces a button that looks
   broken the moment an editor clicks the variation. */

.is-style-kz-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .8em;
}
.is-style-kz-lede { font-size: 1.06rem; color: var(--body); }

.is-style-kz-check { list-style: none; padding-left: 0; }
.is-style-kz-check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.is-style-kz-check li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.is-style-kz-plain { list-style: none; padding-left: 0; margin-left: 0; }

.is-style-kz-panel {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 26px;
}
.is-style-kz-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.is-style-kz-soft-band {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 56px 36px;
}
.is-style-kz-dark-band {
  background: var(--navy); border-radius: var(--radius-lg); padding: 64px 40px;
  color: rgba(255, 255, 255, .76);
}
.is-style-kz-dark-band h2,
.is-style-kz-dark-band h3,
.is-style-kz-dark-band h4 { color: #fff; }
.is-style-kz-dark-band a { color: #fff; }
.is-style-kz-dark-band .is-style-kz-eyebrow { color: #E09A60; }

.is-style-kz-outline .wp-block-button__link {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
}
.is-style-kz-outline .wp-block-button__link:hover { border-color: var(--navy); background: var(--bg-soft); }
.is-style-kz-dark .wp-block-button__link { background: var(--navy); color: #fff; }
.is-style-kz-dark .wp-block-button__link:hover { background: var(--navy-600); }
.is-style-kz-wa .wp-block-button__link { background: #25D366; color: #fff; }
.is-style-kz-wa .wp-block-button__link:hover { background: #1EA952; }

.is-style-kz-frame img { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.is-style-kz-thick { height: 2px; background: var(--line); border: 0; }
.is-style-kz-bare { border-left: 0; padding-left: 0; font-style: normal; }

/* --- 22. Core block output -------------------------------------------------
   The stylesheet was written for hand-authored HTML, so core's own wrapper
   classes need their baseline here. theme.json supplies colours, type and
   spacing; this supplies behaviour. */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button__link {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  border-radius: var(--radius); font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus { text-decoration: none; }

.wp-block-image { margin: 0 0 1.6em; }
.wp-block-image img { border-radius: var(--radius-lg); height: auto; }

.wp-block-table { margin: 0 0 1.6em; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wp-block-table th,
.wp-block-table td { padding: 12px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.wp-block-table th {
  background: var(--bg-soft); color: var(--ink); font-weight: 600;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.wp-block-table figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; }

.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.wp-block-details { border-top: 1px solid var(--line); padding: 16px 0; }
.wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.wp-block-details summary {
  color: var(--ink); font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > *:not(summary) { margin-top: 14px; }

.wp-block-group.has-background { border-radius: var(--radius-lg); }

/* Alignments. alignwide is safe everywhere; alignfull is deliberately limited to
   the container width rather than forced to 100vw, because a 100vw break-out
   inside the page templates produces a horizontal scrollbar. Full-bleed bands
   are the job of the page templates, not of a block attribute. */
.prose > .alignwide,
.prose > .wp-block-group.alignwide,
.entry-content > .alignwide { max-width: 1240px; margin-left: auto; margin-right: auto; }
.prose > .alignfull,
.entry-content > .alignfull { max-width: none; }

@media (max-width: 860px) {
  .is-style-kz-soft-band { padding: 40px 22px; }
  .is-style-kz-dark-band { padding: 44px 24px; }
  .wp-block-columns { flex-wrap: wrap; }
  .wp-block-column { flex-basis: 100%; }
}

/* --- 23. Utilities --------------------------------------------------------- */
.u-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.u-mb-0  { margin-bottom: 0 !important; }
.u-mt-32 { margin-top: 32px; }
.u-mt-48 { margin-top: 48px; }
.u-center{ text-align: center; }
.u-muted { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, #E7EDF1 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  border-radius: var(--radius);
  color: transparent;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

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

/* --- 21. Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .split, .split--wide-media, .split--wide-text { grid-template-columns: 1fr; gap: 40px; }
  .pd { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .cert-grid, .selector__picks { grid-template-columns: repeat(2, 1fr); }
  .family { grid-template-columns: 1fr; }
  .family__media { min-height: 240px; }
  .article { grid-template-columns: 1fr; gap: 44px; }
  .aside-sticky { position: static; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 240px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section      { padding: 64px 0; }
  .section--sm  { padding: 48px 0; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header__cta .btn { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 12px; border-radius: var(--radius); }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--bg-soft); }

  /* Submenu collapses into the mobile stack. */
  .nav__item { width: 100%; }
  .nav__link { width: 100%; justify-content: space-between; padding: 13px 12px; }
  .nav__link.is-active::after,
  .nav__item.has-sub.is-active > .nav__link::after { display: none; }
  .nav__item.has-sub.is-active > .nav__link { background: var(--bg-soft); }
  .nav__sub {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    display: none;
    padding: 0 0 6px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav__sub::before { display: none; }
  .nav__item.has-sub.is-open > .nav__sub {
    display: block;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__sub a { padding: 10px 12px; color: var(--body); }
  .header__inner { position: relative; }
  .topbar__inner { justify-content: center; }
  .topbar__links { gap: 16px; justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 20px; }
  .stat:first-child { padding-left: 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 20px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .filterbar__search { margin-left: 0; width: 100%; }
  .doc-row { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .doc-row__icon { width: 54px; }
  .doc-row__action { align-items: flex-start; }
  .doc-row__status { text-align: left; max-width: none; }
  .feature__body { padding: 32px 26px; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4,
  .value-grid, .cert-grid, .selector__picks { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding: 24px 0 !important; }
  .stat + .stat { border-top: 1px solid rgba(255,255,255,.1); }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__inner { padding: 76px 0; }
  .pd__facts { grid-template-columns: 1fr; }
  .family__body, .selector { padding: 26px 22px; }
  .wa-float__txt { display: none; }
  .wa-float { padding: 15px; }
  .spec-table th, .spec-table td { padding: 11px 13px; font-size: .88rem; }
  .spec-table th { width: 46%; }
  .kz-search { flex-direction: column; align-items: stretch; }
  .kz-search .btn { width: 100%; justify-content: center; }
}

/* --- 22. Print ------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .wa-float, .cta-band, .site-footer { display: none; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
