@font-face {
  font-family: "Kozha IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Kozha Manrope";
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F;
}

@font-face {
  font-family: "Kozha Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

@media (max-width: 64rem) {
  .breadcrumbs__list {
    width: 100%;
    scrollbar-width: none;
  }

  .breadcrumbs__list::-webkit-scrollbar {
    display: none;
  }
}

.kozha-case {
  --kozha-white: #ffffff;
  --kozha-paper: #f6f7f6;
  --kozha-paper-strong: #ecefed;
  --kozha-line: #cbd1ce;
  --kozha-muted: #68736f;
  --kozha-body: #46504d;
  --kozha-ink: #222a28;
  --kozha-coral: #f45c3e;
  --kozha-coral-dark: #c43e18;
  --kozha-coral-soft: #fff1ed;
  --kozha-page-x: clamp(1.25rem, 5vw, 6rem);
  --kozha-section-y: clamp(6rem, 12vw, 10.5rem);
  --kozha-content-width: 90rem;
  --kozha-content-inset: max(var(--kozha-page-x), calc((100% - var(--kozha-content-width)) / 2));
  --kozha-body-measure: 44rem;
  --kozha-radius-panel: clamp(1rem, 2vw, 1.75rem);
  --kozha-font-mono: "Kozha IBM Plex Mono", Consolas, monospace;
  --kozha-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --kozha-hero-progress: 0;
  --kozha-page-progress: 0;
}

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

.kozha-case {
  background: var(--kozha-white);
  color: var(--kozha-ink);
  scroll-behavior: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.kozha-case {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: "Kozha Manrope", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 1vw, 1.125rem);
  line-height: 1.6;
  background: var(--kozha-white);
  color: var(--kozha-body);
}

.kozha-case button,
.kozha-case a {
  color: inherit;
  font: inherit;
}

.kozha-case button {
  border: 0;
}

.kozha-case a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.kozha-case img,
.kozha-case svg {
  display: block;
  max-width: 100%;
}

.kozha-case h1,
.kozha-case h2,
.kozha-case h3,
.kozha-case p {
  margin-block: 0;
}

.kozha-case h1,
.kozha-case h2,
.kozha-case h3 {
  color: var(--kozha-ink);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.kozha-case ::selection {
  color: var(--kozha-ink);
  background: #ffb3a3;
}

.kozha-case :where(a, button):focus-visible {
  outline: 3px solid var(--kozha-ink);
  outline-offset: 4px;
}

.kozha-scene--ink :where(a, button):focus-visible,
.kozha-scene--closing :where(a, button):focus-visible {
  outline-color: var(--kozha-white);
}

.kozha-skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--kozha-white, #ffffff);
  background: var(--kozha-ink, #222a28);
  transform: translateY(-180%);
  transition: transform 180ms var(--kozha-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.kozha-skip-link:focus {
  transform: translateY(0);
}

.kozha-skip-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -6px;
}

.kozha-reading-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgb(34 42 40 / 8%);
  pointer-events: none;
}

.kozha-reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--kozha-coral);
  transform: scaleX(var(--kozha-page-progress));
  transform-origin: left;
}

.kozha-scene-indicator {
  position: fixed;
  z-index: 70;
  right: clamp(0.75rem, 2vw, 2rem);
  top: 50%;
  display: grid;
  grid-template-columns: auto 2.25rem auto;
  align-items: center;
  gap: 0.5rem;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(90deg) translateX(50%);
  transform-origin: right center;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.kozha-scene-indicator__rule {
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.kozha-scene-indicator__label {
  grid-column: 1 / -1;
  justify-self: end;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kozha-hero {
  position: relative;
  height: 148svh;
  background: var(--kozha-white);
}

.kozha-hero__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  overflow: clip;
  background: var(--kozha-white);
}

.kozha-hero__field {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  padding: clamp(2rem, 4vw, 4rem) var(--kozha-content-inset) clamp(2rem, 4vw, 3.75rem);
}

.kozha-hero__title {
  align-self: center;
  max-width: 72rem;
  font-size: clamp(3.05rem, 7vw, 6rem);
  line-height: 0.96;
  text-wrap: balance;
  transform: translate3d(0, calc(var(--kozha-hero-progress) * -18px), 0);
  transition: transform 80ms linear;
}

.kozha-hero__title em {
  color: var(--kozha-coral);
  font-style: italic;
  font-weight: 720;
}

.kozha-hero__support {
  display: grid;
  grid-template-columns: minmax(0, 38rem) auto;
  gap: 2rem;
  align-items: end;
  transform: translate3d(0, calc(var(--kozha-hero-progress) * -10px), 0);
}

.kozha-hero__support p {
  max-width: 38rem;
  color: var(--kozha-body);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.kozha-scroll-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  justify-self: end;
  color: var(--kozha-ink);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
}

.kozha-scroll-action svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms var(--kozha-ease);
}

.kozha-scroll-action:hover svg {
  transform: translateY(0.25rem);
}

.kozha-evidence-ribbon {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: clamp(14.5rem, 26svh, 18.5rem);
  padding-inline: var(--kozha-content-inset);
  overflow: hidden;
  color: var(--kozha-white);
  background: var(--kozha-coral-dark);
  transform: translate3d(0, calc(var(--kozha-hero-progress) * -10px), 0);
  transform-origin: center bottom;
}

.kozha-hero-metric {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 3.5vw, 3.25rem);
}

.kozha-hero-metric:first-child {
  padding-left: 0;
}

.kozha-hero-metric:last-child {
  padding-right: 0;
}

.kozha-hero-metric + .kozha-hero-metric {
  border-left: 1px solid rgb(255 255 255 / 28%);
}

.kozha-hero-metric__value {
  color: var(--kozha-white);
  font-size: clamp(4.5rem, 8.5vw, 8rem);
  font-weight: 620;
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.kozha-hero-metric h2 {
  margin-top: clamp(1.4rem, 2vw, 2rem);
  color: var(--kozha-white);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kozha-hero-metric p {
  margin-top: 0.65rem;
  color: var(--kozha-white);
  font-family: var(--kozha-font-mono);
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  line-height: 1.35;
}

.kozha-hero__handoff {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: clamp(2.5rem, 8vh, 5rem);
  overflow: hidden;
  background: rgb(255 255 255 / 34%);
  transform: translateX(-50%);
}

.kozha-hero__handoff span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--kozha-white);
  transform: scaleY(var(--kozha-hero-progress));
  transform-origin: top;
}

.kozha-scene {
  position: relative;
  padding-block: var(--kozha-section-y);
}

.kozha-scene--white {
  background: var(--kozha-white);
}

.kozha-scene--paper {
  background: var(--kozha-paper);
}

#kozha-traffic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: clamp(2.5rem, 6vw, 5rem);
  background: var(--kozha-coral);
  transform: translateX(-50%);
}

.kozha-scene--ink {
  color: #dfe4e1;
  background: var(--kozha-ink);
}

.kozha-scene--closing {
  display: grid;
  min-height: 100svh;
  align-items: center;
  color: var(--kozha-white);
  background: var(--kozha-ink);
}

.kozha-scene__inner {
  width: min(var(--kozha-content-width), calc(100% - (2 * var(--kozha-page-x))));
  margin-inline: auto;
}

.kozha-scene__heading {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(17rem, 3fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
}

.kozha-scene__heading.kozha-scene__heading--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.kozha-scene__heading h2 {
  max-width: 65rem;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 0.99;
  text-wrap: balance;
}

.kozha-scene__heading p {
  max-width: var(--kozha-body-measure);
  color: var(--kozha-body);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.kozha-scene__heading--light h2,
.kozha-scene__heading--light p {
  color: var(--kozha-white);
}

.kozha-scene__heading--light p {
  opacity: 0.74;
}

.kozha-comparison-statement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--kozha-line);
}

.kozha-comparison-statement__metric {
  display: grid;
  min-width: 0;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-content: end;
}

.kozha-comparison-statement__number {
  color: var(--kozha-coral);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 620;
  line-height: 0.78;
  letter-spacing: -0.04em;
}

.kozha-comparison-statement__number--muted {
  color: var(--kozha-ink);
}

.kozha-comparison-statement__label {
  max-width: 24rem;
  color: var(--kozha-body);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.kozha-chart-stage {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding: clamp(1.25rem, 3.5vw, 3.5rem);
  border-radius: var(--kozha-radius-panel);
  background: var(--kozha-paper);
}

.kozha-chart-stage--paper {
  background: var(--kozha-white);
}

.kozha-chart-stage__topline {
  display: flex;
  min-height: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.kozha-chart-stage__topline > p:first-child {
  color: var(--kozha-ink);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 680;
  letter-spacing: -0.015em;
}

.kozha-chart-stage__big {
  color: var(--kozha-coral);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.kozha-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
}

.kozha-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.kozha-legend-swatch {
  display: inline-block;
  width: 1.75rem;
  height: 0.25rem;
  border-radius: 999px;
}

.kozha-legend-swatch--coral {
  background: var(--kozha-coral);
}

.kozha-legend-swatch--ink {
  background: var(--kozha-ink);
}

.kozha-chart {
  position: relative;
  min-height: clamp(20rem, 38vw, 34rem);
}

.kozha-chart--large {
  min-height: clamp(22rem, 42vw, 38rem);
}

.kozha-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.kozha-chart-grid-line {
  stroke: var(--kozha-paper-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.kozha-chart-axis-label,
.kozha-chart-value-label,
.kozha-chart-direct-label {
  fill: var(--kozha-muted);
  font-family: "Kozha IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
}

.kozha-chart-value-label {
  fill: var(--kozha-body);
  font-size: 13px;
  font-weight: 600;
}

.kozha-chart-direct-label {
  font-size: 14px;
  font-weight: 700;
}

.kozha-chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.kozha-chart-line--coral {
  stroke: var(--kozha-coral);
}

.kozha-chart-line--ink {
  stroke: var(--kozha-ink);
}

.kozha-chart-area {
  fill: var(--kozha-coral);
  opacity: 0.1;
}

.kozha-chart-point {
  transform-box: fill-box;
  transform-origin: center;
}

.kozha-chart-point__halo {
  fill: var(--kozha-white);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.kozha-chart-point__halo--coral {
  stroke: var(--kozha-coral);
}

.kozha-chart-point__halo--ink {
  stroke: var(--kozha-ink);
}

.kozha-chart-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
}

.kozha-chart-bar--organic {
  fill: var(--kozha-coral);
}

.kozha-chart-bar--cpc {
  fill: var(--kozha-ink);
}

.kozha-chart-focus-band {
  fill: var(--kozha-coral-soft);
}

.kozha-chart-stage__note {
  max-width: 58rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kozha-line);
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: clamp(0.75rem, 0.75vw, 0.8125rem);
  line-height: 1.5;
}

.kozha-chart-data {
  margin-top: 1.25rem;
  border-top: 1px solid var(--kozha-line);
}

.kozha-chart-data summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  color: var(--kozha-ink);
  font-size: 0.9375rem;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.kozha-chart-data summary::-webkit-details-marker {
  display: none;
}

.kozha-chart-data__icon {
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-left: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.kozha-chart-data__icon path:last-child {
  transition: opacity 160ms ease;
}

.kozha-chart-data[open] .kozha-chart-data__icon path:last-child {
  opacity: 0;
}

.kozha-chart-data__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.kozha-chart-fallback {
  width: 100%;
  min-width: 30rem;
  margin-top: 0.75rem;
  border-collapse: collapse;
  color: var(--kozha-ink);
  font-size: 0.875rem;
}

.kozha-chart-fallback caption {
  padding-bottom: 1rem;
  text-align: left;
  font-weight: 700;
}

.kozha-chart-fallback th,
.kozha-chart-fallback td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--kozha-line);
  text-align: right;
}

.kozha-chart-fallback th:first-child,
.kozha-chart-fallback td:first-child {
  text-align: left;
}

.kozha-no-js .kozha-chart {
  display: none;
}

.kozha-no-js .kozha-chart-data {
  margin-top: 0;
  border-top: 0;
}

.kozha-no-js .kozha-chart-data summary {
  display: none;
}

.kozha-visibility-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 7rem);
  margin-top: clamp(4rem, 8vw, 8rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--kozha-line);
  border-bottom: 1px solid var(--kozha-line);
}

.kozha-visibility-callout > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: end;
}

.kozha-visibility-callout strong {
  color: var(--kozha-coral);
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 620;
  line-height: 0.75;
  letter-spacing: -0.04em;
}

.kozha-visibility-callout span {
  max-width: 17rem;
  padding-bottom: 0.4rem;
  color: var(--kozha-body);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.25;
}

.kozha-visibility-callout small {
  display: block;
  margin-top: 0.55rem;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.kozha-visibility-callout__metric--secondary strong {
  color: var(--kozha-ink);
}

.kozha-visibility-callout + .kozha-rank-evidence {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 0;
  border-top: 0;
}

.kozha-rank-evidence {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--kozha-line);
}

.kozha-rank-evidence__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  color: var(--kozha-ink);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 680;
  letter-spacing: -0.015em;
}

.kozha-rank-evidence__heading p:last-child {
  flex: none;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.kozha-rank-evidence__timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--kozha-line);
  border-bottom: 1px solid var(--kozha-line);
  list-style: none;
}

.kozha-rank-evidence__timeline li {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.kozha-rank-evidence__timeline li + li {
  border-left: 1px solid var(--kozha-line);
}

.kozha-rank-evidence__timeline li:last-child {
  background: var(--kozha-coral-soft);
}

.kozha-rank-evidence__timeline time {
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
}

.kozha-rank-evidence__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1.25rem);
  margin-top: 1rem;
}

.kozha-rank-evidence__value {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.kozha-rank-evidence__value small {
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
}

.kozha-rank-evidence__value strong {
  color: var(--kozha-coral-dark);
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 650;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.kozha-rank-evidence__value--top10 strong {
  color: var(--kozha-ink);
}

.kozha-rank-evidence__note {
  max-width: 58rem;
  margin-top: 1.25rem;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: clamp(0.75rem, 0.75vw, 0.8125rem);
  line-height: 1.5;
}

.kozha-visibility-growth {
  display: grid;
  grid-template-columns: auto minmax(0, 18rem);
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: end;
  width: fit-content;
  max-width: 100%;
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.kozha-visibility-growth__value {
  color: var(--kozha-coral);
  font-size: clamp(3.25rem, 6vw, 6rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.kozha-visibility-growth__label {
  padding-bottom: 0.25rem;
  color: var(--kozha-body);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.25;
}

.kozha-visibility-growth__label small {
  display: block;
  margin-top: 0.55rem;
  color: var(--kozha-muted);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.45;
}

.kozha-work-steps {
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  padding: 0;
  border-top: 1px solid rgb(255 255 255 / 22%);
  list-style: none;
}

.kozha-work-step {
  --kozha-work-step-space: clamp(2.75rem, 5vw, 4.75rem);
  --kozha-work-step-delay: 0ms;
  display: grid;
  grid-template-columns: minmax(3.5rem, 1fr) minmax(16rem, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-block: var(--kozha-work-step-space);
  border-bottom: 1px solid rgb(255 255 255 / 22%);
}

.kozha-work-step:nth-child(2) {
  --kozha-work-step-delay: 240ms;
}

.kozha-work-step:nth-child(3) {
  --kozha-work-step-delay: 480ms;
}

.kozha-work-step:nth-child(4) {
  --kozha-work-step-delay: 720ms;
}

.kozha-work-step__marker {
  position: relative;
  align-self: stretch;
  color: var(--kozha-coral);
  font-family: var(--kozha-font-mono);
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.kozha-work-step:not(:last-child) .kozha-work-step__marker::after {
  position: absolute;
  top: 1.8rem;
  bottom: calc(-2 * var(--kozha-work-step-space));
  left: 0.8rem;
  width: 1px;
  background: rgb(255 101 71 / 46%);
  content: "";
}

.kozha-work-step__phase {
  margin-bottom: 0.85rem;
  color: #aeb8b4;
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kozha-work-step h3 {
  max-width: 32rem;
  color: var(--kozha-white);
  font-size: clamp(1.75rem, 2.8vw, 3.15rem);
  line-height: 1.04;
  text-wrap: balance;
}

.kozha-work-step__body {
  display: grid;
  gap: 1.25rem;
  max-width: 48rem;
  color: #d6dcda;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}

.kozha-work-step__fact {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: baseline;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.kozha-work-step__fact strong {
  flex: none;
  color: var(--kozha-coral);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 620;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.kozha-work-step__fact span {
  max-width: 24rem;
  color: #c2cac6;
  font-family: var(--kozha-font-mono);
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  line-height: 1.45;
}

.kozha-work-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr) 2.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  align-items: center;
  margin-top: clamp(0.5rem, 1vw, 1rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.kozha-work-route__item {
  display: grid;
  gap: 0.45rem;
  align-self: start;
}

.kozha-work-route__item span {
  color: #aeb8b4;
  font-family: var(--kozha-font-mono);
  font-size: 0.6875rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kozha-work-route__item strong {
  color: var(--kozha-white);
  font-size: clamp(0.9rem, 1.05vw, 1.0625rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.kozha-work-route__arrow {
  color: var(--kozha-coral);
}

.kozha-work-route__arrow svg {
  width: 100%;
  height: auto;
}

.kozha-work-route__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.kozha-js.kozha-motion-ok [data-kozha-work-path] .kozha-work-step__marker::after {
  transform: scaleY(0.001);
  transform-origin: top;
}

.kozha-js.kozha-motion-ok [data-kozha-work-path].kozha-is-work-visible .kozha-work-step__marker::after {
  transform: scaleY(1);
  transition: transform 820ms var(--kozha-ease) var(--kozha-work-step-delay);
}

.kozha-js.kozha-motion-ok [data-kozha-work-path] .kozha-work-route__arrow path {
  stroke-dasharray: 52;
  stroke-dashoffset: 52;
}

.kozha-js.kozha-motion-ok [data-kozha-work-path].kozha-is-work-visible .kozha-work-route__arrow path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 720ms var(--kozha-ease) 560ms;
}

.kozha-work-note {
  max-width: 48rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0 auto;
  color: #aeb8b4;
  font-family: var(--kozha-font-mono);
  font-size: clamp(0.75rem, 0.75vw, 0.8125rem);
  line-height: 1.5;
}

.kozha-compare__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
  margin-top: clamp(3.5rem, 6vw, 6rem);
}

.kozha-page-shot {
  min-width: 0;
}

.kozha-page-shot__label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--kozha-line);
}

.kozha-page-shot__label span {
  color: var(--kozha-ink);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -0.03em;
}

.kozha-page-shot--after .kozha-page-shot__label span {
  color: var(--kozha-coral-dark);
}

.kozha-page-shot__label p {
  color: var(--kozha-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.kozha-page-shot__viewport {
  position: relative;
  display: block;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--kozha-paper-strong);
  cursor: zoom-in;
  text-decoration: none;
}

.kozha-page-shot__viewport img {
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  will-change: auto;
}

.kozha-page-shot__open {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.65rem;
  color: var(--kozha-ink);
  font-size: 0.8125rem;
  font-weight: 720;
  text-decoration: none;
}

.kozha-page-shot__open svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms var(--kozha-ease);
}

.kozha-page-shot__open:hover svg {
  transform: translate(0.15rem, -0.15rem);
}

.kozha-compare__disclaimer {
  max-width: 48rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--kozha-line);
  color: var(--kozha-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.kozha-source-ledger {
  margin: clamp(3.5rem, 6vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--kozha-line);
  list-style: none;
}

.kozha-source-ledger li {
  border-bottom: 1px solid var(--kozha-line);
}

.kozha-source-ledger__link {
  display: grid;
  grid-template-columns: minmax(14rem, 4fr) minmax(0, 7fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-width: 0;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--kozha-body);
  text-decoration: none;
}

.kozha-source-ledger__link strong {
  color: var(--kozha-ink);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  transition: color 180ms ease;
}

.kozha-source-ledger__description {
  min-width: 0;
  color: var(--kozha-body);
  font-family: var(--kozha-font-mono);
  font-size: 0.875rem;
  line-height: 1.55;
}

.kozha-source-ledger__action,
.kozha-evidence-dialog__original {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.45rem;
  align-items: center;
  color: var(--kozha-coral-dark);
  font-size: 0.875rem;
  font-weight: 720;
  line-height: 1.3;
}

.kozha-source-ledger__action {
  justify-self: end;
  white-space: nowrap;
}

.kozha-source-ledger__action svg,
.kozha-evidence-dialog__original svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms var(--kozha-ease);
}

.kozha-source-ledger__link:hover strong,
.kozha-source-ledger__link:hover .kozha-source-ledger__action {
  color: var(--kozha-coral-dark);
}

.kozha-source-ledger__link:hover .kozha-source-ledger__action svg,
.kozha-evidence-dialog__original:hover svg {
  transform: translate(0.15rem, -0.15rem);
}

.kozha-case.kozha-evidence-dialog-open {
  overflow: hidden;
}

.kozha-evidence-dialog {
  width: min(calc(100% - 2rem), 80rem);
  max-width: none;
  height: min(calc(100dvh - 2rem), 64rem);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--kozha-radius-panel);
  color: var(--kozha-body);
  background: transparent;
}

.kozha-evidence-dialog::backdrop {
  background: rgb(20 25 24 / 82%);
}

.kozha-evidence-dialog__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  background: var(--kozha-white);
}

.kozha-evidence-dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy close";
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--kozha-line);
  background: var(--kozha-white);
}

.kozha-evidence-dialog__copy {
  grid-area: copy;
  min-width: 0;
}

.kozha-evidence-dialog__copy h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.kozha-evidence-dialog__copy p {
  max-width: 54rem;
  margin-top: 0.5rem;
  color: var(--kozha-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.kozha-evidence-dialog__original {
  margin-top: 0.5rem;
  color: var(--kozha-ink);
  text-decoration: none;
}

.kozha-evidence-dialog__close {
  grid-area: close;
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--kozha-ink);
  background: var(--kozha-paper-strong);
  cursor: pointer;
}

.kozha-evidence-dialog__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.kozha-evidence-dialog__viewport {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(0.75rem, 2vw, 2rem);
  background: var(--kozha-paper);
  scrollbar-gutter: stable;
}

.kozha-evidence-dialog__viewport img {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
  background: var(--kozha-white);
}

.kozha-evidence-dialog__status {
  max-width: 32rem;
  margin: clamp(2rem, 8vh, 6rem) auto;
  color: var(--kozha-body);
  text-align: center;
}

.kozha-evidence-dialog__status:empty {
  display: none;
}

.kozha-closing {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 72svh;
  padding-block: 4rem;
}

.kozha-closing__brand {
  color: var(--kozha-coral);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  justify-self: end;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.kozha-closing h2 {
  max-width: 74rem;
  margin-top: 0;
  color: var(--kozha-white);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  text-wrap: balance;
}

.kozha-closing__lead {
  max-width: 58rem;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
  color: #cdd4d1;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
}

.kozha-closing__action {
  display: grid;
  grid-template-columns: minmax(9rem, 3fr) minmax(0, 9fr);
  gap: clamp(2rem, 6vw, 7rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid rgb(255 255 255 / 28%);
  border-bottom: 1px solid rgb(255 255 255 / 28%);
}

.kozha-closing__action span {
  color: #aeb8b4;
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kozha-closing__action strong {
  max-width: 48rem;
  color: var(--kozha-white);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.kozha-closing__buttons {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  justify-content: space-between;
  margin-top: 2rem;
}

.kozha-closing__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kozha-closing__utility {
  display: grid;
  justify-items: end;
}

.kozha-no-js .kozha-closing__utility,
.kozha-closing__utility[hidden] {
  display: none;
}

.kozha-messenger-button,
.kozha-share-button {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.15rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms var(--kozha-ease);
}

.kozha-case .kozha-messenger-button--telegram {
  color: var(--kozha-white);
  background: var(--kozha-coral-dark);
}

.kozha-messenger-button--telegram:hover {
  background: #b93616;
  transform: translateY(-2px);
}

.kozha-messenger-button--telegram:active {
  background: #962b0d;
  transform: translateY(0);
}

.kozha-case .kozha-messenger-button--max {
  color: var(--kozha-ink);
  background: var(--kozha-white);
}

.kozha-messenger-button--max:hover {
  background: var(--kozha-paper-strong);
  transform: translateY(-2px);
}

.kozha-share-button {
  border: 1px solid rgb(255 255 255 / 35%);
  color: var(--kozha-white);
  background: transparent;
  cursor: pointer;
}

.kozha-share-button:hover {
  border-color: rgb(255 255 255 / 62%);
  background: rgb(255 255 255 / 8%);
  transform: translateY(-2px);
}

.kozha-messenger-button svg,
.kozha-share-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kozha-share-status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
  color: #cdd4d1;
  font-size: 0.8125rem;
  text-align: right;
}

.kozha-js.kozha-motion-ok .kozha-chart-line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.kozha-js.kozha-motion-ok .kozha-chart-area {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.kozha-js.kozha-motion-ok .kozha-chart-bar {
  transform: scaleY(0);
}

.kozha-js.kozha-motion-ok [data-kozha-chart-stage].kozha-is-chart-visible .kozha-chart-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--kozha-ease);
}

.kozha-js.kozha-motion-ok [data-kozha-chart-stage].kozha-is-chart-visible .kozha-chart-area {
  opacity: 0.1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 800ms var(--kozha-ease), opacity 260ms ease;
}

.kozha-js.kozha-motion-ok [data-kozha-chart-stage].kozha-is-chart-visible .kozha-chart-bar {
  transform: scaleY(1);
  transition: transform 680ms var(--kozha-ease);
  transition-delay: var(--kozha-bar-delay, 0ms);
}

.kozha-js.kozha-motion-ok [data-kozha-chart-stage].kozha-is-chart-visible .kozha-chart-point {
  animation: kozha-point-in 300ms var(--kozha-ease) both;
  animation-delay: var(--kozha-point-delay, 0ms);
}

@keyframes kozha-point-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 75rem) {
  .kozha-scene__heading {
    grid-template-columns: minmax(0, 8fr) minmax(16rem, 3fr);
  }

  .kozha-scene-indicator {
    display: none;
  }
}

@media (max-width: 63.99rem) {
  .kozha-hero {
    height: auto;
  }

  .kozha-hero__sticky {
    position: relative;
    min-height: 100svh;
  }

  .kozha-hero__field {
    min-height: 68svh;
  }

  .kozha-hero__title {
    font-size: clamp(3rem, 8.2vw, 5.25rem);
  }

  .kozha-evidence-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kozha-hero-metric {
    padding-inline: 1.5rem;
  }

  .kozha-scene__heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .kozha-scene__heading p {
    max-width: 42rem;
  }

  .kozha-work-step {
    grid-template-columns: minmax(3rem, 1fr) minmax(13rem, 4fr) minmax(0, 7fr);
    gap: clamp(1.25rem, 3vw, 3rem);
  }

  .kozha-closing__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    justify-content: normal;
  }

  .kozha-closing__utility {
    justify-items: start;
  }

  .kozha-share-status {
    text-align: left;
  }
}

@media (max-width: 47.99rem) {
  .kozha-case {
    --kozha-page-x: clamp(1.125rem, 5vw, 2rem);
    --kozha-section-y: clamp(4.5rem, 18vw, 7rem);
  }

  .kozha-hero__sticky {
    display: block;
    min-height: auto;
  }

  .kozha-hero__field {
    min-height: min(42rem, 74svh);
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
  }

  .kozha-hero__title {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 4.35rem);
    line-height: 0.95;
  }

  .kozha-hero__title br {
    display: none;
  }

  .kozha-hero__support {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kozha-hero__support p {
    max-width: 31rem;
    font-size: 0.95rem;
  }

  .kozha-scroll-action {
    justify-self: start;
  }

  .kozha-evidence-ribbon {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-inline: var(--kozha-content-inset);
  }

  .kozha-hero-metric,
  .kozha-hero-metric:first-child,
  .kozha-hero-metric:last-child {
    grid-template-columns: minmax(7.75rem, auto) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0 1.25rem;
    padding: 1.75rem 0;
  }

  .kozha-hero-metric + .kozha-hero-metric {
    border-top: 1px solid rgb(255 255 255 / 28%);
    border-left: 0;
  }

  .kozha-hero-metric__value {
    grid-row: 1 / 3;
    align-self: center;
    font-size: clamp(3.75rem, 18vw, 5.5rem);
  }

  .kozha-hero-metric h2 {
    align-self: end;
    margin-top: 0;
    font-size: 1rem;
  }

  .kozha-hero-metric p {
    align-self: start;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
  }

  .kozha-hero__handoff {
    display: none;
  }

  .kozha-scene__heading h2 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .kozha-scene__heading p {
    font-size: 1rem;
  }

  .kozha-comparison-statement {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 0;
  }

  .kozha-comparison-statement__metric {
    grid-template-columns: minmax(7.75rem, auto) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding-block: 1.5rem;
  }

  .kozha-comparison-statement__metric:first-child {
    padding-top: 0;
  }

  .kozha-comparison-statement__metric + .kozha-comparison-statement__metric {
    border-top: 1px solid var(--kozha-line);
  }

  .kozha-comparison-statement__number {
    justify-self: start;
    font-size: clamp(4.8rem, 24vw, 7.5rem);
  }

  .kozha-comparison-statement__label {
    max-width: none;
    font-size: 1rem;
    line-height: 1.25;
  }

  .kozha-chart-stage {
    margin-inline: calc(-1 * var(--kozha-page-x));
    padding: 1.25rem var(--kozha-page-x) 1.5rem;
    border-radius: 0;
  }

  .kozha-chart-stage__topline {
    display: grid;
  }

  .kozha-chart-stage__big {
    font-size: 4rem;
  }

  .kozha-chart {
    min-height: 23rem;
    overflow-x: hidden;
  }

  .kozha-chart--large {
    min-height: 25rem;
  }

  .kozha-chart-axis-label,
  .kozha-chart-value-label,
  .kozha-chart-direct-label {
    font-size: 13px;
  }

  .kozha-chart-legend,
  .kozha-chart-stage__note,
  .kozha-visibility-callout small,
  .kozha-rank-evidence__heading p:last-child,
  .kozha-rank-evidence__timeline time,
  .kozha-rank-evidence__value small,
  .kozha-rank-evidence__note,
  .kozha-visibility-growth__label small,
  .kozha-work-step__phase,
  .kozha-work-step__fact span,
  .kozha-work-route__item span,
  .kozha-work-note,
  .kozha-closing__action span,
  .kozha-closing__brand {
    font-size: 0.8125rem;
  }

  .kozha-rank-evidence__value small {
    line-height: 1.25;
  }

  .kozha-chart-fallback th,
  .kozha-chart-fallback td {
    padding: 0.625rem 0.375rem;
  }

  .kozha-visibility-callout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kozha-visibility-callout strong {
    font-size: clamp(4.5rem, 22vw, 6.5rem);
  }

  .kozha-visibility-callout span {
    max-width: none;
  }

  .kozha-visibility-callout > div + div {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--kozha-line);
  }

  .kozha-rank-evidence__heading {
    display: grid;
    gap: 0.75rem;
  }

  .kozha-rank-evidence__timeline {
    grid-template-columns: 1fr;
  }

  .kozha-rank-evidence__timeline li {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 0.75rem;
  }

  .kozha-rank-evidence__timeline li + li,
  .kozha-rank-evidence__timeline li:nth-child(odd) {
    border-left: 0;
  }

  .kozha-rank-evidence__timeline li + li,
  .kozha-rank-evidence__timeline li:nth-child(n + 3) {
    border-top: 1px solid var(--kozha-line);
  }

  .kozha-rank-evidence__values {
    gap: 0.75rem;
    margin-top: 0;
  }

  .kozha-rank-evidence__value strong {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .kozha-visibility-growth {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .kozha-visibility-growth__value {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .kozha-work-step {
    --kozha-work-step-space: clamp(2.5rem, 10vw, 3.5rem);
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.9rem 1rem;
  }

  .kozha-work-step__marker {
    grid-row: 1 / span 2;
  }

  .kozha-work-step:not(:last-child) .kozha-work-step__marker::after {
    top: 1.65rem;
    bottom: calc(-2 * var(--kozha-work-step-space));
    left: 0.75rem;
  }

  .kozha-work-step__title,
  .kozha-work-step__body {
    grid-column: 2;
  }

  .kozha-work-step__phase {
    margin-bottom: 0.65rem;
  }

  .kozha-work-step h3 {
    font-size: clamp(1.75rem, 8.5vw, 2.65rem);
  }

  .kozha-work-step__body {
    gap: 1rem;
  }

  .kozha-work-step__fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
  }

  .kozha-work-route {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }

  .kozha-work-route__arrow {
    width: 2rem;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .kozha-work-note {
    margin-left: 3.75rem;
  }

  .kozha-compare__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: clamp(3rem, 12vw, 5rem);
  }

  .kozha-page-shot__label {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    min-height: 9rem;
  }

  .kozha-page-shot__label span {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .kozha-page-shot__label p {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .kozha-page-shot__viewport {
    margin-top: 0.75rem;
    border-radius: 0.5rem;
  }

  .kozha-page-shot__open {
    gap: 0.3rem;
    font-size: 0.8125rem;
  }

  .kozha-source-ledger__link {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-block: 1.5rem;
  }

  .kozha-source-ledger__action {
    justify-self: start;
    margin-top: 0.35rem;
    white-space: normal;
  }

  .kozha-evidence-dialog {
    width: calc(100% - 1rem);
    height: calc(100dvh - 1rem);
    border-radius: 0.75rem;
  }

  .kozha-evidence-dialog__header {
    gap: 0.75rem;
  }

  .kozha-evidence-dialog__copy h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .kozha-evidence-dialog__copy p {
    font-size: 0.875rem;
  }

  .kozha-closing h2 {
    font-size: clamp(2.5rem, 8.5vw, 3.35rem);
  }

  .kozha-closing__action {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .kozha-closing__buttons {
    justify-content: stretch;
  }

  .kozha-closing__contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .kozha-closing__utility {
    justify-items: stretch;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 28%);
  }

  .kozha-share-status {
    text-align: left;
  }

  .kozha-messenger-button,
  .kozha-share-button {
    width: 100%;
  }
}

@media (max-width: 23rem) {
  .kozha-compare .kozha-scene__heading h2 {
    font-size: clamp(2.2rem, 10.5vw, 2.4rem);
  }

  .kozha-hero__field {
    min-height: 43rem;
  }

  .kozha-hero__title {
    font-size: clamp(2.5rem, 11.8vw, 3rem);
  }

  .kozha-hero-metric,
  .kozha-hero-metric:first-child,
  .kozha-hero-metric:last-child {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}

@media (max-width: 48rem), (max-height: 30rem) and (max-width: 56rem) {
  .kozha-hero-metric p,
  .kozha-chart-legend,
  .kozha-chart-stage__note,
  .kozha-visibility-callout small,
  .kozha-rank-evidence__heading p:last-child,
  .kozha-rank-evidence__timeline time,
  .kozha-rank-evidence__value small,
  .kozha-rank-evidence__note,
  .kozha-visibility-growth__label small,
  .kozha-work-step__phase,
  .kozha-work-step__fact span,
  .kozha-work-route__item span,
  .kozha-work-note,
  .kozha-page-shot__label p,
  .kozha-page-shot__open,
  .kozha-closing__action span,
  .kozha-closing__brand {
    font-size: 0.8125rem;
  }

  .kozha-chart-axis-label,
  .kozha-chart-value-label,
  .kozha-chart-direct-label {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kozha-case {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kozha-case *,
  .kozha-case *::before,
  .kozha-case *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .kozha-hero {
    height: auto;
  }

  .kozha-hero__sticky {
    position: relative;
  }

}

@media print {
  .kozha-reading-progress,
  .kozha-scene-indicator,
  .kozha-scroll-action,
  .kozha-messenger-button,
  .kozha-share-button,
  .kozha-share-status {
    display: none !important;
  }

  .kozha-hero {
    height: auto;
  }

  .kozha-hero__sticky {
    position: relative;
  }

  .kozha-scene {
    break-inside: avoid;
  }

}



/* Alexandrov.Digital shell integration */
.kozha-case {
  --kozha-shell-header: 80px;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  overflow-x: clip;
}

.kozha-case [id] {
  scroll-margin-top: calc(var(--kozha-shell-header) + 1rem);
}

.kozha-skip-link {
  top: calc(var(--kozha-shell-header, 0px) + 0.75rem);
}

.kozha-reading-progress {
  top: var(--kozha-shell-header);
}

.kozha-hero__sticky {
  top: var(--kozha-shell-header);
  min-height: calc(100svh - var(--kozha-shell-header));
}

.kozha-scene-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--kozha-ease), visibility 180ms var(--kozha-ease);
}

.kozha-case.kozha-indicator-active .kozha-scene-indicator {
  opacity: 1;
  visibility: visible;
}

.kozha-evidence-ribbon {
  color: var(--kozha-white);
}

.kozha-hero-metric__value,
.kozha-hero-metric h2 {
  color: var(--kozha-white);
}

.kozha-hero-metric + .kozha-hero-metric {
  border-color: rgb(255 255 255 / 28%);
}

.kozha-chart-readout {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  right: 0.5rem;
  max-width: min(22rem, calc(100% - 1rem));
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--kozha-white);
  background: var(--kozha-ink);
  font-family: var(--kozha-font-mono);
  font-size: 0.75rem;
  line-height: 1.35;
  pointer-events: none;
}

.kozha-chart-readout[hidden] {
  display: none;
}

.kozha-chart-point,
.kozha-chart-bar {
  cursor: pointer;
}

.kozha-chart-point:focus {
  outline: none;
}

.kozha-chart-point:focus .kozha-chart-point__halo,
.kozha-chart-point:hover .kozha-chart-point__halo {
  fill: var(--kozha-ink);
  stroke-width: 5;
}

.kozha-chart-bar-group:focus .kozha-chart-bar {
  outline: none;
  stroke: var(--kozha-white);
  stroke-width: 3;
}

[data-kozha-chart-mark]:focus {
  outline: none;
}

.kozha-chart-bar:hover {
  opacity: 0.82;
}

@media (max-width: 63.99rem) {
  .kozha-hero__sticky {
    min-height: calc(100svh - var(--kozha-shell-header));
  }
}

@media (max-width: 24.375rem) {
  .kozha-chart-axis-label,
  .kozha-chart-value-label,
  .kozha-chart-direct-label {
    font-size: 11px;
  }

  .kozha-chart-readout {
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kozha-case *,
  .kozha-case *::before,
  .kozha-case *::after {
    scroll-behavior: auto !important;
  }
}
