/**
 * CHZ China — design tokens + base components (AURADESIGN / THEME BASE).
 * Page section layouts come in Page Builder. Motion IMPLEMENT adds GSAP/Three.
 */

:root {
  --chz-canvas: #ffffff;
  --chz-on-canvas: #000000;
  --chz-ink: #000000;
  --chz-on-ink: #ffffff;
  --chz-ash: #252525;
  --chz-on-ash: #ffffff;
  --chz-mist: #f5f5f5;
  --chz-on-mist: #000000;
  --chz-mute: #8a8a8a;
  --chz-elevated: #bababa;
  --chz-hairline: rgba(0, 0, 0, 0.12);
  --chz-hairline-on-dark: rgba(255, 255, 255, 0.16);
  --chz-focus: #000000;
  --chz-focus-on-dark: #ffffff;
  --chz-accent: #000000; /* B&W only — no warm/red brand tint */

  --chz-font-display: "Unbounded", "Arial Black", Arial, sans-serif;
  --chz-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --chz-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --chz-radius-block: 40px;
  --chz-radius-block-sm: 28px;
  --chz-radius-block-lg: 48px;
  --chz-radius-card: 32px;
  --chz-radius-cta: 999px;
  --chz-radius-input: 20px;
  --chz-radius-image: 28px;
  --chz-radius-art: 40px;

  --chz-space-unit: 8px;
  --chz-section-y: 96px;
  --chz-section-y-m: 64px;
  --chz-container: 1200px;
  --chz-gutter: 24px;
  --chz-gutter-m: 16px;

  --chz-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --chz-hover-ms: 240ms;
  --chz-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.06);

  --chz-header-h: 72px;
  --chz-z-header: 40;
  --chz-z-sticky: 45;
  --chz-z-cookie: 50;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--chz-font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--chz-on-canvas);
  background: var(--chz-canvas);
  -webkit-font-smoothing: antialiased;
}

body.chz-china {
  display: flex;
  flex-direction: column;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  opacity: 0.85;
}

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

.site-footer :focus-visible,
.cookie-banner :focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--chz-focus-on-dark);
}

.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;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 12px 16px;
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  border-radius: var(--chz-radius-cta);
}

.container {
  width: min(100% - (var(--chz-gutter) * 2), var(--chz-container));
  margin-inline: auto;
}

@media (max-width: 767px) {
  :root {
    --chz-gutter: var(--chz-gutter-m);
    --chz-section-y: var(--chz-section-y-m);
  }
}

/* Typography */
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--chz-font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  /* Never tear Russian words mid-lexeme (радиоэлектроники → радиоэлектрони|ки). */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

h1, .h1 {
  font-size: clamp(2rem, 5.2vw + 0.5rem, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
  /* Break inside a word only if it cannot fit the line alone. */
  overflow-wrap: break-word;
}

h2, .h2 {
  font-size: clamp(1.5rem, 2.8vw + 0.4rem, 2.75rem);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h3, .h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.4rem, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.mono,
.nav-primary__index,
[data-count],
.proof-digit {
  font-family: var(--chz-font-mono);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--chz-radius-cta);
  border: 1px solid transparent;
  font-family: var(--chz-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--chz-hover-ms) var(--chz-ease), color var(--chz-hover-ms) var(--chz-ease), border-color var(--chz-hover-ms) var(--chz-ease), transform var(--chz-hover-ms) var(--chz-ease), opacity var(--chz-hover-ms) var(--chz-ease);
}

.btn--primary {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  border-color: var(--chz-ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  opacity: 0.92;
}

.btn--secondary {
  background: var(--chz-canvas);
  color: var(--chz-ink);
  border-color: var(--chz-hairline);
}

.btn--secondary:hover,
.btn--secondary:focus-visible,
.btn--secondary[data-hover="polarity"]:hover,
.btn--secondary[data-hover="polarity"]:focus-visible {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  border-color: var(--chz-ink);
}

/* Interactive blocks (motion map hooks — CSS only in Theme Base) */
.block-interactive {
  border-radius: var(--chz-radius-card);
  transition: transform var(--chz-hover-ms) var(--chz-ease), background var(--chz-hover-ms) var(--chz-ease), color var(--chz-hover-ms) var(--chz-ease), box-shadow var(--chz-hover-ms) var(--chz-ease);
}

[data-hover="invert"]:hover,
[data-hover="invert"]:focus-visible {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
}

[data-hover="lift"]:hover,
[data-hover="lift"]:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--chz-shadow-soft);
}

[data-hover="invert-scale"]:hover,
[data-hover="invert-scale"]:focus-visible {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  transform: scale(1.02);
}

html.rm [data-hover="lift"]:hover,
html.rm [data-hover="lift"]:focus-visible,
html.rm [data-hover="invert-scale"]:hover,
html.rm [data-hover="invert-scale"]:focus-visible {
  transform: none;
}

.art-object-frame {
  position: relative;
  border-radius: var(--chz-radius-art);
  overflow: hidden;
  background: var(--chz-ash);
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.hero--home .art-object-frame {
  background: transparent;
  overflow: visible;
}

.card-visual-inline,
.form-visual-slot,
.pricing-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--chz-radius-image);
  min-height: 160px;
}

[data-transition="mist-band"] {
  background: var(--chz-mist);
}

[data-transition="rounded-wipe"] {
  border-radius: var(--chz-radius-block-lg) var(--chz-radius-block-lg) 0 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--chz-z-header);
  background: color-mix(in srgb, var(--chz-mist) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--chz-hairline);
  overflow: visible;
}

.site-header__inner.container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: var(--chz-header-h);
  min-width: 0;
  overflow: visible;
  /* Wider header track so logo + full nav fit on one line */
  width: min(100% - (var(--chz-gutter) * 2), 1480px);
  max-width: 1480px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--chz-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: none;
  order: 1;
}

.site-logo__text {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
}

.site-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  font-family: var(--chz-font-mono);
  font-size: 0.65rem;
  letter-spacing: -0.04em;
}

.site-footer__tm-disclaimer {
  margin: 16px 0 0;
  max-width: 72rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--chz-mute, #8a8a8a);
  opacity: 0.9;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

.nav-primary__list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.nav-primary__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
  padding: 10px 0;
}

.nav-primary__text {
  white-space: nowrap;
}

.nav-primary__index {
  display: none; /* compact header: more room for labels like «Как работаем» */
  font-size: 0.6875rem;
  color: var(--chz-mute);
}

.site-header__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Desktop: even gaps logo ↔ nav items ↔ CTA */
@media (min-width: 1181px) {
  .nav-primary {
    display: contents;
  }

  .nav-primary__list {
    order: 2;
    flex: 1 1 auto;
    justify-content: space-between;
    align-items: center;
    margin-inline: clamp(14px, 1.8vw, 36px);
    min-width: 0;
  }

  .site-header__cta {
    order: 3;
  }

  .nav-toggle {
    order: 4;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--chz-hairline);
  border-radius: 14px;
  background: var(--chz-canvas);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--chz-ink);
  content: "";
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(4px);
}

@media (max-width: 1280px) and (min-width: 1181px) {
  .site-header__inner.container {
    width: min(100% - (var(--chz-gutter) * 2), 1360px);
    max-width: 1360px;
  }

  .site-logo {
    font-size: 0.875rem;
  }

  .nav-primary__list {
    margin-inline: clamp(10px, 1.2vw, 24px);
  }

  .nav-primary__link {
    font-size: 0.8125rem;
  }

  .site-header__cta {
    padding-inline: 14px;
    min-height: 42px;
    font-size: 0.8125rem;
  }
}

/* Burger earlier: dense tree nav needs room */
@media (max-width: 1180px) {
  .site-header__inner.container {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
  }

  .nav-primary {
    position: fixed;
    inset: var(--chz-header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px var(--chz-gutter) 28px;
    background: var(--chz-canvas);
    border-bottom: 1px solid var(--chz-hairline);
    z-index: calc(var(--chz-z-header) + 1);
    justify-content: flex-start;
    order: 3;
  }

  .nav-primary.is-open {
    display: flex;
  }

  .nav-primary__list {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px 0;
    margin-inline: 0;
  }

  .nav-primary__link {
    font-size: 1rem;
    padding: 8px 0;
  }

  .nav-primary__index {
    display: inline;
  }

  .site-header__cta {
    width: 100%;
  }

  .site-logo__text {
    white-space: nowrap;
  }
}

/* Main shell */
.site-main {
  flex: 1 0 auto;
  padding-block: var(--chz-section-y);
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.page-shell__title,
.blog-shell__title,
.single-shell__title,
.error-404__title {
  font-family: var(--chz-font-display);
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* Footer — ink polarity */
.site-footer {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  padding-block: 64px 32px;
  border-top: 1px solid var(--chz-hairline-on-dark);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 0.75;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 1023px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.site-footer__entity {
  font-family: var(--chz-font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.site-footer__legal-name,
.site-footer__zone,
.site-footer__copy {
  margin: 0 0 8px;
  color: var(--chz-elevated);
  font-size: 0.875rem;
}

.site-footer__cta {
  margin-top: 20px;
}

.footer-nav__title,
.footer-legal__title {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chz-elevated);
}

.footer-nav__list,
.footer-legal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--chz-hairline-on-dark);
}

/* Cookie banner — ink bar, always above sticky CTA */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--chz-z-cookie);
  padding: 14px 16px;
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  border-top: 1px solid var(--chz-hairline-on-dark);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: min(100%, var(--chz-container));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__accept {
  flex: 0 0 auto;
  background: var(--chz-canvas) !important;
  color: var(--chz-ink) !important;
  border-color: var(--chz-canvas) !important;
}
.cookie-banner__accept:hover,
.cookie-banner__accept:focus-visible {
  background: var(--chz-mist) !important;
}

/* Mobile sticky CTA — below cookie z-index conflict: sticky lower than cookie */
.mobile-sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--chz-z-sticky);
  display: none;
}

.mobile-sticky-cta:not([hidden]) {
  display: block;
}

.mobile-sticky-cta .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

body.has-cookie-banner .mobile-sticky-cta:not([hidden]) {
  bottom: 110px;
}

/* Forms shell tokens (Page Builder fills fields) */
.form-panel,
.mist-panel {
  background: var(--chz-mist);
  border-radius: var(--chz-radius-card);
  padding: 32px;
}

.input,
.form-panel input:not([type="checkbox"]):not([type="radio"]),
.form-panel select,
.form-panel textarea,
.lead-form input:not([type="checkbox"]):not([type="radio"]),
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-input);
  background: var(--chz-canvas);
  font-family: var(--chz-font-body);
  font-size: 1rem;
}

/* Compact B&W checkboxes — never inherit text-field width/height */
.form-consent input[type="checkbox"],
.form-panel input[type="checkbox"],
.lead-form input[type="checkbox"],
input[type="checkbox"].chz-check {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 18px;
  border: 1.5px solid var(--chz-ink);
  border-radius: 4px;
  background: var(--chz-canvas);
  accent-color: var(--chz-ink);
  cursor: pointer;
  vertical-align: top;
  display: inline-grid;
  place-content: center;
}
.form-consent input[type="checkbox"]::before,
.form-panel input[type="checkbox"]::before,
.lead-form input[type="checkbox"]::before,
input[type="checkbox"].chz-check::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 120ms var(--chz-ease);
  background: var(--chz-ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}
.form-consent input[type="checkbox"]:checked::before,
.form-panel input[type="checkbox"]:checked::before,
.lead-form input[type="checkbox"]:checked::before,
input[type="checkbox"].chz-check:checked::before {
  transform: scale(1);
}
.form-consent input[type="checkbox"]:focus-visible,
.form-panel input[type="checkbox"]:focus-visible,
.lead-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--chz-ink);
  outline-offset: 2px;
}

.form-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.blog-card {
  background: var(--chz-mist);
  padding: 20px;
  border-radius: var(--chz-radius-card);
}

.blog-card__link {
  text-decoration: none;
}

.blog-card__title {
  font-family: var(--chz-font-display);
  font-size: 1.125rem;
  margin: 12px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--chz-hairline);
}

/* JS progressive enhancement hooks */
html.no-js .is-motion-pending {
  opacity: 1 !important;
  transform: none !important;
}

/* === PAGE BUILDER layouts (B&W rounded) === */
.home-main,
.page-process,
.page-cases,
.page-faq,
.page-contacts {
  padding-block: 0;
}

/* Story rail: U-shaped dashed line around geo + intro */
.process-story-rail {
  position: relative;
  isolation: isolate;
  overflow: visible;
  max-width: 100%;
  /* Room for ×2.5 checkpoints + worker around the text column */
  padding-block: 48px 56px;
}

.process-story-rail .section.geo-answer,
.process-story-rail .section.intro {
  padding-inline: clamp(48px, 8vw, 96px);
}

.process-story-rail__svg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

.process-story-rail__path {
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.8 1.2;
  vector-effect: non-scaling-stroke;
}

.process-story-rail__mask {
  fill: none;
  stroke: #fff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.process-story-rail__worker {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.process-story-rail__worker.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.process-story-rail__worker-sprite {
  shape-rendering: crispEdges;
}

.process-story-rail__checkpoint {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.process-story-rail__checkpoint.is-on {
  opacity: 1;
}

.process-story-rail__checkpoint-bg {
  fill: #ffffff;
  stroke: #0a0a0a;
  stroke-width: 2;
}

.process-story-rail__checkpoint-icon {
  pointer-events: none;
}

.process-story-rail__checkpoint-icon rect[fill="#0a0a0a"],
.process-story-rail__checkpoint-icon circle[fill="#0a0a0a"] {
  fill: #0a0a0a;
}

html.rm .process-story-rail__mask {
  stroke-dashoffset: 0;
}

html.rm .process-story-rail__path {
  opacity: 0.55;
}

html.rm .process-story-rail__worker {
  display: none;
}

html.rm .process-story-rail__checkpoint {
  opacity: 1;
}

@media (max-width: 640px) {
  .process-story-rail__path {
    stroke-width: 3;
  }
}

.section {
  padding-block: var(--chz-section-y);
}

.section.narrow,
.narrow {
  max-width: 760px;
}

.container.narrow {
  width: min(100% - (var(--chz-gutter) * 2), 760px);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chz-mute);
}

.hero__support,
.section-lead {
  color: var(--chz-ash);
  max-width: 42rem;
}

.hero--home {
  padding-block: clamp(48px, 8vw, 96px) var(--chz-section-y);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
}

/* Homepage density (seoai24 law, CHZ B&W) */
.hero__grid--dense {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.hero__bullets {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 36rem;
}
.hero__bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--chz-ash);
  font-size: 1.05rem;
  line-height: 1.35;
}
.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chz-ink);
}
.hero__visual,
.hero__route {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--chz-radius-block-sm, 18px);
  background: transparent;
}
.hero__visual--qr {
  min-height: clamp(280px, 42vw, 460px);
  display: grid;
  place-items: center;
}
.hero__visual--qr .art-object-frame--home-qr {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  min-height: 280px;
  margin-inline: auto;
  background: transparent;
  overflow: visible;
  border-radius: var(--chz-radius-art);
}
.hero__visual--qr .hero-qr--svg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: clamp(20px, 6%, 40px);
}
/* Animation-only slot: never show static QR poster over the particle assemble. */
.hero__visual--qr .hero-qr--svg .hero-qr__svg {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}
/* Reduced motion / no-js: static poster only (no assemble canvas). */
html.rm .hero__visual--qr .hero-qr--svg .hero-qr__svg,
html.no-js .hero__visual--qr .hero-qr--svg .hero-qr__svg {
  opacity: 1 !important;
  visibility: visible !important;
}
.lead-capture {
  padding-block: 0 0;
  margin-top: -1.5rem;
}
.lead-capture__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
  background: var(--chz-canvas);
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block, 28px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.04);
}
.lead-capture__stat {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--chz-mute);
}
.lead-capture__copy h2 {
  margin-bottom: 0.4em;
}
.lead-form--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form--compact .form-field--full,
.lead-form--compact .form-consent,
.lead-form--compact .form-error,
.lead-form--compact [data-form-submit],
.lead-form--compact .form-success {
  grid-column: 1 / -1;
}
.offer-rail-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.offer-rail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 16px;
  align-items: center;
  padding: 20px 56px 20px 22px;
  background: var(--chz-canvas);
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.offer-rail__idx {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--chz-mute);
}
.offer-rail__copy h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}
.offer-rail__copy p {
  margin: 0;
  color: var(--chz-mute);
  max-width: 36rem;
}
.offer-rail__visual {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--chz-mist);
}
.offer-rail__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}
.offer-rail__arrow {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--chz-hairline);
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--chz-mist);
}
.deadline-panel {
  background: var(--chz-mist);
  border-radius: var(--chz-radius-block);
  padding: clamp(20px, 4vw, 36px);
}
@media (max-width: 899px) {
  .hero__grid--dense,
  .lead-capture__panel,
  .offer-rail {
    grid-template-columns: 1fr;
  }
  .offer-rail {
    padding-right: 22px;
  }
  .lead-form--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero--home .art-object-frame {
    max-width: min(360px, 100%);
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 899px) {
  .hero--home {
    padding-block: clamp(32px, 6vw, 64px) var(--chz-section-y);
  }
}

.hero-qr {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.hero-qr--static .hero-qr__poster,
.hero-qr__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  inset: auto;
  border-radius: inherit;
}

.hero-qr--svg {
  display: grid;
  place-items: center;
  background: transparent;
  padding: clamp(28px, 8%, 56px);
  box-sizing: border-box;
}

.hero-qr--svg .hero-qr__svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  /* Empty frame until canvas assemble starts — no static QR flash */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.rm .hero-qr--svg .hero-qr__svg {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-qr-field {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  /* Let particles fly past the QR slot / container — html/body clips at viewport */
  overflow: visible;
  contain: none;
}

.home-main {
  position: relative;
  isolation: isolate;
  max-width: 100%;
  /* Do not clip hero QR particles before they leave the screen */
  overflow: visible;
}

.home-main--dense > .hero,
.home-main--dense > .lead-capture,
.home-main--dense > .section {
  position: relative;
  z-index: 1;
}

.hero-qr-assemble-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.site-header {
  z-index: 40;
}

.hero-qr__canvas {
  display: none !important;
}

/* GSAP pending: only when .js is on; no-JS keeps content visible */
html.js [data-motion="hero-line"].is-motion-pending {
  opacity: 0;
  transform: translateY(24px);
}

html.rm [data-motion="hero-line"].is-motion-pending {
  opacity: 1;
  transform: none;
}

[data-hover="polarity"].btn--primary:hover,
[data-hover="polarity"].btn--primary:focus-visible {
  background: var(--chz-canvas);
  color: var(--chz-ink);
  border-color: var(--chz-hairline);
}

.hero__cta-row,
.dual-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.split-panel--reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split-panel--reverse .split-panel__copy {
  order: 2;
}

@media (max-width: 1023px) {
  .split-panel,
  .split-panel--reverse {
    grid-template-columns: 1fr;
  }
  .split-panel--reverse .split-panel__copy {
    order: 0;
  }
}

.proof-strip__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

@media (max-width: 1023px) {
  .proof-strip__layout {
    grid-template-columns: 1fr;
  }
}

.proof-strip__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  background: var(--chz-canvas);
  padding: 24px;
  border: 1px solid var(--chz-hairline);
}

.proof-digit {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.proof-label {
  margin: 0;
  color: var(--chz-mute);
  font-size: 0.9375rem;
}

.panel-mist,
.answer-block {
  background: var(--chz-mist);
  border-radius: var(--chz-radius-card);
  padding: 24px 28px;
}

.panel-ink {
  background: var(--chz-ink);
  color: var(--chz-on-ink);
  border-radius: var(--chz-radius-card);
  padding: 24px 28px;
  margin-top: 24px;
}

.offer-grid,
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 999px) {
  .offer-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }
}

.offer-tile,
.scenario-card {
  background: var(--chz-mist);
  padding: 20px;
  border-radius: var(--chz-radius-card);
}

.offer-tile__visual,
.scenario-card .card-visual-inline {
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--chz-canvas);
  border-radius: calc(var(--chz-radius-card) - 4px);
  position: relative;
}

.offer-tile__visual img,
.scenario-card .card-visual-inline img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 0;
}

.card-visual-inline img {
  width: 100%;
  height: auto;
  display: block;
}

.offer-tile__visual--svg {
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 180px;
}

.offer-tile__visual--svg svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.deadline-sculpture {
  background: var(--chz-mist);
  border-radius: var(--chz-radius-block);
  padding: clamp(28px, 5vw, 48px);
}

.deadline-sculpture__date {
  margin: 0 0 8px;
  font-size: clamp(2rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.deadline-sculpture__sub {
  margin: 0 0 20px;
  color: var(--chz-mute);
}

.step-list {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--chz-mist);
  border-radius: var(--chz-radius-card);
}

.step-card__index {
  font-size: 1.25rem;
  color: var(--chz-mute);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 767px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  background: var(--chz-mist);
  border-radius: var(--chz-radius-card);
  padding: 24px;
}

.compare-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.zones-list {
  display: grid;
  gap: 12px;
  padding-left: 1.1rem;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.faq-item__q {
  font-family: var(--chz-font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq-item__icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--chz-hover-ms) var(--chz-ease);
  flex: 0 0 auto;
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
  transform: rotate(-135deg);
}

.faq-item__panel[hidden] {
  display: none;
}

.faq-item__answer {
  padding: 0 0 20px;
  color: var(--chz-ash);
}

.faq-item__panel:not([hidden]) {
  display: grid;
  grid-template-rows: 1fr;
}

.blog-slot__grid,
.blog-shell__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 999px) {
  .blog-slot__grid,
  .blog-shell__grid {
    grid-template-columns: 1fr;
  }
}

.blog-card__excerpt {
  margin: 8px 0 0;
  color: var(--chz-mute);
  font-size: 0.9375rem;
}

.blog-card__cover {
  min-height: 160px;
  margin-bottom: 4px;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section-cta-soft,
.internal-links,
.eeat-note {
  margin-top: 28px;
  color: var(--chz-mute);
  font-size: 0.9375rem;
}

.eeat-note p {
  margin: 0;
}

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) 40px;
}

.page-hero--sparse {
  padding-bottom: 24px;
}

.process-support-visual {
  margin-top: 24px;
  max-width: 720px;
}

.scenario-meta {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}

.calculator-panel {
  max-width: 880px;
  margin-inline: auto;
}

.form-fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-fieldset legend {
  grid-column: 1 / -1;
  font-family: var(--chz-font-display);
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 699px) {
  .form-fieldset {
    grid-template-columns: 1fr;
  }
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--chz-mute);
  cursor: pointer;
}
.form-consent span,
.form-consent > :not(input) {
  flex: 1 1 auto;
  min-width: 0;
}
.form-consent a {
  color: var(--chz-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #000;
  background: #fff;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-input);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.form-success {
  margin-top: 16px;
  padding: 24px;
  background: var(--chz-canvas);
  border-radius: var(--chz-radius-card);
}

.lead-form.is-loading [data-form-submit] {
  opacity: 0.7;
  pointer-events: none;
}

.contacts-mini-qr {
  max-width: 280px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  background: var(--chz-ash);
}

.contacts-mini-qr img {
  min-height: 100%;
  object-fit: cover;
}

.single-shell__footer {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-legal.container {
  display: flex;
  justify-content: center;
}

.legal-article {
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.legal-article .page-shell__header,
.legal-article .entry-content {
  text-align: center;
}

.legal-article h1,
.legal-article h2,
.legal-article h3,
.legal-article .section-lead,
.legal-article p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.legal-article .section-lead {
  max-width: 40rem;
}

.btn--primary[data-hover="polarity"]:hover,
.btn--primary[data-hover="polarity"]:focus-visible {
  background: var(--chz-canvas);
  color: var(--chz-ink);
  border-color: var(--chz-ink);
}

/* Zoom / wide / narrow hardening */
.container,
.container.narrow {
  max-width: 100%;
  min-width: 0;
}

.section,
.page-hero,
.hero--home,
.proof-strip,
.offer-grid,
.process-steps,
.page-process,
.page-cases,
.page-faq,
.page-contacts {
  max-width: 100%;
  min-width: 0;
}

.answer-block,
.panel-mist,
.step-card,
.proof-card,
.scenario-card,
.blog-card {
  min-width: 0;
  max-width: 100%;
}

.hero__copy,
.split-panel__copy {
  min-width: 0;
  max-width: 100%;
}

.hero__cta-row .btn,
.dual-cta__row .btn {
  max-width: 100%;
}

@media (max-width: 767px) {
  .answer-block,
  .panel-mist {
    padding: 18px 16px;
    border-radius: var(--chz-radius-block-sm);
  }

  .site-logo {
    font-size: 0.8125rem;
  }

  .art-object-frame {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  h1, .h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .btn {
    width: 100%;
  }

  .hero__cta-row,
  .dual-cta__row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Very wide / browser zoom-out: keep readable measure */
@media (min-width: 1600px) {
  :root {
    --chz-container: 1280px;
  }
}

/* Dropdown nav (site tree) */
.nav-primary__item {
  position: relative;
}

.nav-primary__item--has-children > .nav-primary__link {
  gap: 4px;
}

.nav-primary__chev {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--chz-mute);
  flex: 0 0 auto;
}

/* Invisible hover bridge so menu does not close while moving to items */
.nav-primary__item--has-children::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  height: 18px;
  display: none;
  z-index: calc(var(--chz-z-header) + 4);
}

.nav-primary__item--has-children:hover::before,
.nav-primary__item--has-children:focus-within::before {
  display: block;
}

.nav-primary__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: calc(var(--chz-z-header) + 5);
  display: none;
  min-width: 280px;
  max-width: min(92vw, 360px);
  max-height: min(70vh, 480px);
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--chz-canvas);
  border: 1px solid var(--chz-hairline);
  border-radius: 16px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--chz-ink) 12%, transparent);
}

.nav-primary__item--has-children:hover > .nav-primary__dropdown,
.nav-primary__item--has-children:focus-within > .nav-primary__dropdown {
  display: block;
}

.nav-primary__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--chz-ink);
}

.nav-primary__dropdown a:hover,
.nav-primary__dropdown a:focus-visible {
  background: color-mix(in srgb, var(--chz-mist) 70%, var(--chz-canvas));
}

@media (max-width: 1180px) {
  .nav-primary__item--has-children::before {
    display: none !important;
  }

  .nav-primary__item--has-children {
    width: 100%;
  }

  .nav-primary__dropdown {
    position: static;
    display: block;
    max-width: none;
    max-height: none;
    margin: 6px 0 10px;
    padding: 0 0 0 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-primary__dropdown a {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--chz-mute);
  }

  .nav-primary__chev {
    display: none;
  }
}

/* Depth pages */
.page-depth__problem .split-panel__aside h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.page-depth__problem .split-panel__aside p {
  margin: 0;
  color: var(--chz-mute);
  line-height: 1.45;
}

.page-depth__bullets {
  margin: 16px 0 0;
  padding-left: 1.15rem;
  color: var(--chz-mute);
  line-height: 1.5;
}

.page-depth__bullets li + li {
  margin-top: 6px;
}

.page-depth__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.page-depth__card {
  padding: 20px 18px;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  background: color-mix(in srgb, var(--chz-mist) 55%, var(--chz-canvas));
}

.page-depth__card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.page-depth__card p {
  margin: 0;
  color: var(--chz-mute);
  line-height: 1.45;
}

.page-depth__steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: none;
}

.page-depth__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  background: var(--chz-canvas);
}

.page-depth__step-num {
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  color: var(--chz-mute);
  padding-top: 4px;
}

.page-depth__step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.page-depth__step p {
  margin: 0;
  color: var(--chz-mute);
  line-height: 1.45;
}

.page-depth__fit p {
  color: var(--chz-mute);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .page-depth__cards,
  .page-depth__steps-list {
    grid-template-columns: 1fr;
  }
}

.page-depth__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.page-depth__tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  overflow: hidden;
  background: var(--chz-canvas);
}

.page-depth__tile-visual {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--chz-mist);
  overflow: hidden;
}

.page-depth__tile-img,
.page-depth__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-depth__tile-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
}

.page-depth__tile-title {
  font-family: var(--chz-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.page-depth__tile-lead {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--chz-mute);
}

.page-depth__visual {
  min-height: 240px;
  border-radius: var(--chz-radius-block-sm, 18px);
  overflow: hidden;
  background: var(--chz-mist);
}

/* Density fill: anchored cards / steps / CTA */
.page-depth__cards--anchored {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.page-depth__cards--anchored.page-depth__cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.page-depth__cards--anchored.page-depth__cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-depth__card--media {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  background: var(--chz-canvas);
}
.page-depth__card-visual {
  aspect-ratio: 4 / 3;
  background: var(--chz-mist);
  overflow: hidden;
}
.page-depth__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}
.page-depth__card-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 6px;
}
.page-depth__card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.page-depth__card-body p {
  margin: 0;
  color: var(--chz-mute);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.page-depth__steps-list--icons .page-depth__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.page-depth__step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--chz-hairline);
  background: var(--chz-mist);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chz-ink);
}
.page-depth__step-icon svg {
  width: 22px;
  height: 22px;
}
.depth-screen--cta-anchored .dual-cta__row {
  justify-content: flex-start;
}
.depth-steps-split {
  align-items: start;
}
@media (max-width: 767px) {
  .page-depth__cards--anchored.page-depth__cards--2,
  .page-depth__cards--anchored.page-depth__cards--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .page-depth__triad,
  .page-depth__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .page-depth__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Unique depth layouts — distinct section chrome per recipe */
.page-depth__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-depth__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-depth__cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-depth__cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page-depth__hero--centered {
  text-align: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.page-depth__hero--centered > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Shrink-to-content + center: width:100% made lead look left of the tall H1 stack */
.page-depth__hero--centered .eyebrow,
.page-depth__hero--centered h1,
.page-depth__hero--centered .hero__support {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}
.page-depth__hero--centered .eyebrow {
  display: block;
}
.page-depth__hero--centered .eyebrow a {
  display: inline-block;
  text-align: center;
}
.page-depth__hero--centered h1 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.4vw + 0.55rem, 2.85rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.page-depth__hero--centered .hero__support {
  max-width: min(34rem, 100%);
  text-wrap: pretty;
}
.page-depth__hero--centered .hero__cta-row {
  display: flex;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

/* Stoimost (service-stack + centered): 3rd screen checklist — centered column */
.layout-service-stack.hero-centered .depth-screen--checklist {
  text-align: center;
}
.layout-service-stack.hero-centered .depth-screen--checklist > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.layout-service-stack.hero-centered .depth-screen--checklist h2 {
  max-width: 40rem;
  margin-inline: auto;
  text-wrap: balance;
}
.layout-service-stack.hero-centered .depth-screen--checklist .depth-check {
  width: min(100%, 44rem);
  margin-inline: auto;
  text-align: left;
}

.page-depth__hero--mist {
  /* Neutral B&W only — no warm/red accent wash */
  background: linear-gradient(180deg, var(--chz-mist), var(--chz-canvas));
  padding-block: clamp(40px, 7vw, 88px);
}
.depth-hero-mist {
  max-width: min(48rem, 100%);
}

.page-depth__hero h1,
.page-hero h1,
.hero h1 {
  text-wrap: balance;
}

/* Long category/service H1s: slightly smaller so whole words fit a line */
@media (max-width: 767px) {
  .page-depth__hero h1,
  .page-hero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.2rem);
    letter-spacing: -0.03em;
  }
}

.page-hero--sparse {
  padding-block: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--chz-hairline);
}

.split-panel--reverse { direction: rtl; }
.split-panel--reverse > * { direction: ltr; }

.page-depth__steps-list--ladder {
  grid-template-columns: 1fr;
  max-width: 48rem;
  margin-inline: auto;
  gap: 0;
}
.page-depth__steps-list--ladder .page-depth__step {
  border-radius: 0;
  border-bottom: none;
  position: relative;
  padding-left: 28px;
}
.page-depth__steps-list--ladder .page-depth__step:first-child {
  border-radius: var(--chz-radius-block-sm, 18px) var(--chz-radius-block-sm, 18px) 0 0;
}
.page-depth__steps-list--ladder .page-depth__step:last-child {
  border-radius: 0 0 var(--chz-radius-block-sm, 18px) var(--chz-radius-block-sm, 18px);
  border-bottom: 1px solid var(--chz-hairline);
}
.page-depth__steps-list--ladder .page-depth__step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 28px;
  bottom: -16px;
  width: 2px;
  background: color-mix(in srgb, var(--chz-accent, #000000) 35%, var(--chz-hairline));
}
.page-depth__steps-list--ladder .page-depth__step:last-child::before { display: none; }

.depth-timeline {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid color-mix(in srgb, var(--chz-accent, #000000) 40%, var(--chz-hairline));
}
.depth-timeline__item {
  position: relative;
  padding: 0 0 28px 28px;
  display: grid;
  gap: 6px;
}
.depth-timeline__item:last-child { padding-bottom: 0; }
.depth-timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--chz-canvas);
  border: 2px solid var(--chz-accent, #000000);
}
.depth-timeline__date {
  font-family: var(--chz-font-mono);
  font-size: 0.8125rem;
  color: var(--chz-accent, #000000);
}
.depth-timeline__text {
  color: var(--chz-mute);
  line-height: 1.5;
}

.depth-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
}
.depth-duel__side {
  padding: 24px 20px;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  background: color-mix(in srgb, var(--chz-mist) 70%, var(--chz-canvas));
}
.depth-duel__side h3 { margin: 0 0 10px; font-size: 1.2rem; }
.depth-duel__side p { margin: 0; color: var(--chz-mute); line-height: 1.5; }
.depth-duel__vs {
  align-self: center;
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chz-mute);
}

.depth-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.depth-ba__col {
  padding: 28px 22px;
  border-radius: var(--chz-radius-block-sm, 18px);
  border: 1px solid var(--chz-hairline);
}
.depth-ba__col--before {
  background: color-mix(in srgb, var(--chz-mist) 85%, var(--chz-ink));
}
.depth-ba__col--after {
  background: var(--chz-canvas);
}
.depth-ba__label {
  margin: 0 0 8px;
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chz-mute);
}
.depth-ba__col h2 { margin: 0 0 12px; font-size: 1.35rem; }
.depth-ba__col p { margin: 0; color: var(--chz-mute); line-height: 1.5; }

.depth-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.depth-proof__card {
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--chz-hairline);
  border-radius: var(--chz-radius-block-sm, 18px);
  background: var(--chz-canvas);
}
.depth-proof__value {
  margin: 0 0 6px;
  font-family: var(--chz-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.depth-proof__label {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--chz-mute);
  line-height: 1.35;
}

.depth-check {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 44rem;
}
.depth-check__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--chz-hairline);
  border-radius: 14px;
  background: var(--chz-canvas);
  color: var(--chz-mute);
  line-height: 1.45;
}
.depth-check__mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  border: 2px solid var(--chz-accent, #000000);
  background:
    linear-gradient(135deg, transparent 45%, var(--chz-accent, #000000) 45%, var(--chz-accent, #000000) 55%, transparent 55%);
}

.depth-route {
  display: grid;
  gap: 0;
  margin-top: 28px;
  max-width: 40rem;
}
.depth-route__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.depth-route__step:last-child { padding-bottom: 0; }
.depth-route__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--chz-font-mono);
  font-size: 0.8125rem;
  background: var(--chz-accent, #000000);
  color: #fff;
  z-index: 1;
}
.depth-route__line {
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--chz-hairline);
}
.depth-route__step h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.depth-route__step p { margin: 0; color: var(--chz-mute); line-height: 1.45; }

.depth-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.depth-rail__item {
  padding: 22px 18px;
  border-top: 3px solid var(--chz-accent, #000000);
  border-right: 1px solid var(--chz-hairline);
  border-bottom: 1px solid var(--chz-hairline);
  border-left: 1px solid var(--chz-hairline);
  border-radius: 0 0 16px 16px;
  background: var(--chz-canvas);
}
.depth-rail__num {
  display: block;
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  color: var(--chz-mute);
  margin-bottom: 10px;
}
.depth-rail__item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.depth-rail__item p { margin: 0; color: var(--chz-mute); line-height: 1.45; }

.depth-index {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.depth-index li + li { border-top: 1px solid var(--chz-hairline); }
.depth-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  padding: 18px 4px;
  text-decoration: none;
  color: inherit;
}
.depth-index__num {
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--chz-font-mono);
  font-size: 0.875rem;
  color: var(--chz-mute);
}
.depth-index__title {
  font-family: var(--chz-font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.depth-index__lead {
  color: var(--chz-mute);
  font-size: 0.875rem;
  line-height: 1.4;
}

.depth-answer {
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--chz-radius-block, 24px);
  max-width: 46rem;
}
.depth-answer h2 { margin: 0 0 12px; }
.depth-answer p { margin: 0; color: var(--chz-mute); line-height: 1.55; font-size: 1.05rem; }

.depth-screen--verdict .depth-verdict {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 28px 24px;
  border: 1px dashed color-mix(in srgb, var(--chz-accent, #000000) 45%, var(--chz-hairline));
  border-radius: var(--chz-radius-block-sm, 18px);
  background: color-mix(in srgb, var(--chz-mist) 50%, var(--chz-canvas));
}
.depth-verdict__label {
  margin: 0 0 10px;
  font-family: var(--chz-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chz-mute);
}
.depth-verdict__text {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.5;
  font-family: var(--chz-font-display);
}
.depth-verdict__rule {
  margin: 14px 0 0;
  color: var(--chz-mute);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Layout rhythm differences */
.layout-hub-bento .depth-screen--children { padding-block: clamp(40px, 6vw, 72px); }
.layout-hub-index .depth-screen--index { background: var(--chz-mist); }
.layout-compare-duel .depth-screen--duel { background: color-mix(in srgb, var(--chz-mist) 40%, var(--chz-canvas)); }
.layout-case-report .depth-screen--ba,
.layout-scenario-story .depth-screen--ba { padding-block: clamp(48px, 7vw, 88px); }
.layout-category-timeline .depth-screen--timeline { background: var(--chz-mist); }
.layout-service-proof .depth-screen--proof,
.layout-about-stats .depth-screen--proof,
.layout-landing-guarantee .depth-screen--proof {
  background: linear-gradient(180deg, var(--chz-mist), var(--chz-canvas));
}
.layout-process-ladder .depth-screen--steps { background: var(--chz-mist); }
.layout-legal-plain .page-depth__hero { max-width: 40rem; margin-inline: auto; }

@media (max-width: 1023px) {
  .depth-duel { grid-template-columns: 1fr; }
  .depth-duel__vs { justify-self: center; }
  .depth-ba { grid-template-columns: 1fr; }
  .depth-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depth-rail { grid-template-columns: 1fr; }
  .page-depth__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .depth-proof { grid-template-columns: 1fr 1fr; }
  .page-depth__cards--3,
  .page-depth__grid--2,
  .page-depth__grid--4 { grid-template-columns: 1fr; }
  .split-panel--reverse { direction: ltr; }
}
