:root {
  --bg-deep: #0f0d0c;
  --bg-card: rgba(34, 29, 25, 0.65);
  --line: rgba(209, 154, 102, 0.22);
  --text: #f3eadf;
  --muted: #b8a089;
  --accent: #d19a66;
  --accent-soft: rgba(209, 154, 102, 0.12);
  --ok: #89b36e;
  --bad: #e06c75;
  --glow: rgba(209, 154, 102, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 15% -20%, rgba(209, 154, 102, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(137, 179, 110, 0.08), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(60, 45, 35, 0.5), var(--bg-deep));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(15, 13, 12, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent) 0%, #8a5b32 100%);
  box-shadow: 0 4px 20px var(--glow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--bg-deep);
}

.brand-mark-icon {
  padding: 0;
  overflow: hidden;
  background: rgba(18, 16, 15, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(209, 154, 102, 0.24),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.brand-mark-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.nav-link-docs {
  color: var(--accent);
  font-weight: 600;
  padding: 4px 12px;
  margin: -4px -4px;
  border-radius: 999px;
  border: 1px solid rgba(209, 154, 102, 0.35);
  background: var(--accent-soft);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.nav-links a.nav-link-docs:hover {
  color: var(--text);
  background: rgba(209, 154, 102, 0.2);
  border-color: rgba(209, 154, 102, 0.5);
}

.nav-links a.nav-link-docs:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.badge-version {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 auto 28px;
  max-width: 54ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-lead-stack {
  margin: 0 auto 28px;
  max-width: 54ch;
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--muted);
}

.hero-lead-stack p {
  margin: 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}

.hero-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(165deg, #e8a86f 0%, var(--accent) 45%, #9a6840 100%);
  color: #1a1614;
  box-shadow: 0 10px 32px rgba(209, 154, 102, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(209, 154, 102, 0.32);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-flow-wrap {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  margin-top: 8px;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 12px;
  column-gap: 6px;
  max-width: none;
  margin-inline: 0;
  margin-top: 0;
  /* Ниже отступ под кнопку «Подробнее» в углу wrap (не перекрывает чипы) */
  padding: 22px 22px 52px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 120% 100% at 50% -20%, rgba(209, 154, 102, 0.12), transparent 55%),
    var(--bg-card);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.hero-flow-kicker {
  position: relative;
  z-index: 0;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #928577;
  opacity: 0.62;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(120, 105, 90, 0.45);
  background: rgba(18, 16, 15, 0.35);
  margin-inline-end: 2px;
}

.hero-flow-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  border: 1px solid rgba(209, 154, 102, 0.22);
  background: rgba(34, 29, 25, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.2);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.hero-flow-chip:hover {
  border-color: rgba(209, 154, 102, 0.38);
}

.hero-flow-chip-wide {
  padding-inline: 12px;
}

.hero-flow-slash {
  opacity: 0.55;
  padding: 0 0.06em;
  font-weight: 400;
}

/* Передний / средний / задний — чёткая разница: размер, яркость, толщина рамки, свечение */
.hero-flow .hero-flow-chip-plane1 {
  z-index: 3;
  padding: 11px 19px;
  font-size: clamp(0.8rem, 1.95vw, 0.9225rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f0c896;
  border: 2px solid rgba(237, 191, 140, 0.88);
  background: linear-gradient(168deg, rgba(255, 198, 140, 0.38), rgba(80, 55, 38, 0.58));
  box-shadow:
    inset 0 2px 0 rgba(255, 245, 230, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 6px 26px rgba(209, 154, 102, 0.52),
    0 14px 48px rgba(0, 0, 0, 0.62);
  text-shadow:
    0 0 22px rgba(209, 154, 102, 0.65),
    0 1px 1px rgba(0, 0, 0, 0.55);
}

.hero-flow .hero-flow-chip-plane1:hover {
  border-color: rgba(255, 222, 180, 0.98);
  color: #fff4e6;
}

.hero-flow .hero-flow-chip-plane1-soft {
  z-index: 3;
  padding: 10px 18px;
  font-size: clamp(0.785rem, 1.82vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0.026em;
  color: #f7ead8;
  border: 2px solid rgba(220, 195, 168, 0.62);
  background: linear-gradient(168deg, rgba(243, 224, 200, 0.28), rgba(55, 46, 40, 0.62));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.42),
    0 6px 24px rgba(209, 154, 102, 0.32),
    0 10px 42px rgba(0, 0, 0, 0.55);
  text-shadow: 0 0 26px rgba(255, 240, 225, 0.4);
}

.hero-flow .hero-flow-chip-plane1-soft:hover {
  border-color: rgba(236, 210, 185, 0.82);
  color: #fff;
}

.hero-flow .hero-flow-chip-plane2 {
  z-index: 1;
  padding: 7px 13px;
  font-size: clamp(0.69rem, 1.52vw, 0.7825rem);
  font-weight: 530;
  color: #bfb3a5;
  border: 1px solid rgba(150, 135, 120, 0.58);
  background: rgba(38, 33, 30, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 14px rgba(0, 0, 0, 0.45);
  text-shadow: none;
}

.hero-flow .hero-flow-chip-plane2:hover {
  border-color: rgba(175, 160, 140, 0.72);
  color: #d8cdc0;
}

.hero-flow .hero-flow-chip-plane3 {
  z-index: 0;
  padding: 6px 12px;
  font-size: clamp(0.63rem, 1.38vw, 0.7175rem);
  font-weight: 440;
  color: #6d6259;
  border: 1px solid rgba(90, 82, 74, 0.5);
  background: rgba(20, 18, 16, 0.58);
  box-shadow: none;
  opacity: 0.86;
  text-shadow: none;
}

.hero-flow .hero-flow-chip-plane3:hover {
  opacity: 0.95;
  border-color: rgba(105, 95, 86, 0.58);
  color: #8a7b6f;
}

.hero-flow .hero-flow-arr {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 3px;
  flex-shrink: 0;
  color: rgba(232, 186, 138, 0.98);
  opacity: 1;
  transform: none;
}

.hero-flow .hero-flow-arr::before {
  content: "→";
  font-size: clamp(0.9rem, 1.75vw, 1.1rem);
  line-height: 1;
  font-weight: 650;
  text-shadow:
    0 0 12px rgba(209, 154, 102, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-flow-help-btn {
  position: absolute;
  z-index: 5;
  top: auto;
  bottom: 12px;
  right: 12px;
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(209, 154, 102, 0.45);
  background: rgba(34, 29, 25, 0.85);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hero-flow-help-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.hero-flow-help-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-flow-help-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(209, 154, 102, 0.2);
}

@media (max-width: 520px) {
  .hero-flow {
    flex-direction: column;
    padding: 18px 16px 54px;
    row-gap: 0;
  }

  .hero-flow-help-btn {
    bottom: 12px;
    right: 12px;
  }

  .hero-flow .hero-flow-arr::before {
    content: "↓";
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  }

  .hero-flow .hero-flow-arr {
    width: auto;
    min-height: 1rem;
    padding: 6px 0;
  }

  .hero-flow-kicker {
    margin-inline-end: 0;
    margin-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flow-chip {
    transition: none;
  }
}

.hero-flow-desc {
  max-width: 68ch;
  margin: 20px auto 0;
  padding: 0 12px;
  text-align: left;
}

.hero-flow-desc p {
  margin: 0 0 1rem;
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--muted);
}

.hero-flow-desc p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .hero-flow-desc {
    text-align: center;
  }

  .hero-flow-desc p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 64ch;
  }
}

.hero-flow-strong {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-weight: 600;
}

.hero-flow-term {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 78%, var(--accent));
  white-space: nowrap;
}

body.hero-explainer-open {
  overflow: hidden;
}

.hero-flow-explainer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(14px, 3vw);
  box-sizing: border-box;
}

.hero-flow-explainer[hidden] {
  display: none;
}

.hero-flow-explainer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.76);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hero-flow-explainer-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(209, 154, 102, 0.38);
  background: linear-gradient(180deg, rgba(34, 29, 25, 0.97), rgba(18, 16, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.6);
  outline: none;
}

.hero-flow-explainer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(14px, 3.2vw, 22px) 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.hero-flow-explainer-title {
  margin: 0;
  font-size: 1.015rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-flow-explainer-close {
  width: auto;
  min-height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(34, 29, 25, 0.75);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.hero-flow-explainer-close:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.hero-flow-explainer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-flow-explainer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px clamp(14px, 3.2vw, 22px) 24px;
}

.hero-flow-explainer .hero-flow-desc {
  margin: 0;
  padding: 0;
  max-width: none;
  text-align: left;
}

.hero-flow-explainer .hero-flow-desc p {
  text-align: left;
  margin: 0 0 1.05rem;
  font-size: 0.95rem;
  line-height: 1.72;
}

.hero-flow-explainer .hero-flow-desc p.hero-flow-explainer-foot {
  margin-top: 1.35rem;
  margin-bottom: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(209, 154, 102, 0.2);
}

.hero-flow-explainer .hero-flow-term {
  white-space: normal;
}

body.job-yaml-modal-open {
  overflow: hidden;
}

.flow-job-yaml-triggers {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
}

.flow-job-yaml-btn {
  min-width: 52px;
  height: 28px;
  padding: 0 9px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(209, 154, 102, 0.42);
  background: rgba(34, 29, 25, 0.78);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.flow-job-yaml-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.flow-job-yaml-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.flow-job-yaml-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(209, 154, 102, 0.18);
}

.job-yaml-explainer {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(20px, 4vw);
  box-sizing: border-box;
}

.job-yaml-explainer[hidden] {
  display: none;
}

.job-yaml-explainer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.job-yaml-explainer-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 960px);
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 1px solid rgba(209, 154, 102, 0.38);
  background: linear-gradient(180deg, rgba(34, 29, 25, 0.97), rgba(18, 16, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 90px rgba(0, 0, 0, 0.6);
  outline: none;
}

.job-yaml-explainer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px clamp(18px, 4vw, 26px) 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.job-yaml-explainer-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.job-yaml-explainer-close {
  width: auto;
  min-height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(34, 29, 25, 0.75);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.job-yaml-explainer-close:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.job-yaml-explainer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.job-yaml-explainer-body {
  overflow: hidden;
  padding: clamp(14px, 3vw, 20px);
  flex: 1;
  min-height: 0;
}

.job-yaml-pre {
  margin: 0;
  padding: 14px clamp(14px, 3vw, 18px);
  overflow: auto;
  max-height: min(74vh, 820px);
  border-radius: 10px;
  border: 1px solid rgba(209, 154, 102, 0.2);
  background: color-mix(in srgb, #1b1818 92%, var(--accent) 8%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.job-yaml-pre code.hljs {
  display: block;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 36px;
  color: var(--muted);
}

.section-sub.value-intro {
  max-width: min(64ch, 100%);
  text-align: left;
}

.section-sub.value-intro p {
  margin: 0 0 1rem;
}

.section-sub.value-intro p:last-child {
  margin-bottom: 0;
}

.value-intro-strong {
  color: var(--text);
  font-weight: 650;
}

.value-kern {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--accent);
  white-space: nowrap;
}

.value-deep {
  margin-top: 28px;
  align-items: stretch;
}

.value-deep .split-block.card {
  display: flex;
  flex-direction: column;
}

.value-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.value-list li {
  margin-bottom: 0.65rem;
}

.value-list li:last-child {
  margin-bottom: 0;
}


/* Distribution: rollout phases */
.distribution-rollout {
  margin-top: 36px;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.rollout-title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.rollout-lead {
  margin: 0 0 22px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 68ch;
}

.rollout-phases {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rollout-n;
}

@media (min-width: 900px) {
  .rollout-phases {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
  }
}

.rollout-phase {
  counter-increment: rollout-n;
  position: relative;
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 35%, rgba(34, 29, 25, 0.55));
}

.rollout-phase::before {
  content: counter(rollout-n);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(160deg, rgba(209, 154, 102, 0.28), rgba(138, 91, 50, 0.2));
  color: var(--accent);
}

.rollout-phase-label {
  display: block;
  margin: 0 0 12px;
  padding-left: 38px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rollout-phase ul {
  margin: 0;
  padding: 0 0 0 1.25rem;
  font-size: 0.8625rem;
  line-height: 1.52;
  color: var(--muted);
}

.rollout-phase li + li {
  margin-top: 0.42rem;
}

/* Cards grid */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(209, 154, 102, 0.45);
  transform: translateY(-2px);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.card-icon.card-icon-emoji {
  font-size: 1.42rem;
  line-height: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 650;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

/* Pipeline: single horizontal line */
.flow-line {
  margin: 28px auto 0;
  max-width: 100%;
}

.flow-line-head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.flow-line-badge {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.flow-line-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 2px 16px;
  margin: 0 -6px;
  scrollbar-color: rgba(209, 154, 102, 0.45) rgba(22, 19, 17, 0.4);
}

.flow-steps {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: min(1080px, max-content);
}

.flow-step {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 0 min(168px, 19vw);
  min-width: 156px;
}

.flow-step:not(:last-child)::after {
  content: "→";
  flex: 0 0 auto;
  align-self: center;
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1;
  text-shadow: 0 0 12px rgba(209, 154, 102, 0.28);
}

.flow-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, rgba(22, 19, 17, 0.92) 88%, var(--accent-soft));
  backdrop-filter: blur(10px);
  padding: 12px 13px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
  min-height: 100%;
}

.flow-card:hover {
  border-color: rgba(209, 154, 102, 0.45);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.flow-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: linear-gradient(160deg, rgba(209, 154, 102, 0.28), rgba(138, 91, 50, 0.2));
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-card h4 {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.flow-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

@media (min-width: 1100px) {
  .flow-line-scroll {
    overflow-x: visible;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .flow-steps {
    min-width: 0;
  }

  .flow-step {
    flex: 1 1 0;
  }
}

@media (max-width: 780px) {
  .flow-steps {
    flex-direction: column;
    min-width: 0 !important;
  }

  .flow-step {
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0 !important;
    width: 100%;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .flow-step:not(:last-child) .flow-card::after {
    content: "↓";
    display: block;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--accent);
    opacity: 0.8;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

/* Tags */
.two-col-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}

.split-block h3 {
  margin: 0 0 14px;
  font-size: 1.0625rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: rgba(34, 29, 25, 0.5);
  color: var(--text);
}

.tag.source {
  border-color: rgba(137, 179, 110, 0.35);
  color: #c5e6b8;
}

.tag.destination {
  border-color: rgba(209, 154, 102, 0.4);
  color: var(--accent);
}

/* Roadmap: запланированные направления */
.section-roadmap {
  padding-top: 48px;
}

.section-roadmap .roadmap-intro {
  max-width: min(56ch, 100%);
  margin-bottom: 20px;
}

.roadmap-banner {
  margin: 0 0 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(209, 154, 102, 0.38);
  background: rgba(209, 154, 102, 0.1);
  font-size: 0.925rem;
  line-height: 1.52;
  color: var(--muted);
}

.roadmap-banner strong {
  color: var(--text);
}

.card-roadmap-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  font-size: 0.625rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237, 191, 140, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(209, 154, 102, 0.45);
  background: rgba(34, 29, 25, 0.88);
}

.roadmap-cards {
  align-items: stretch;
}

.card-roadmap {
  position: relative;
  border-style: dashed;
  border-color: rgba(209, 154, 102, 0.32);
  background: rgba(22, 19, 17, 0.48);
}

.card-roadmap h3 {
  padding-right: min(96px, 28%);
}

.card-roadmap .card-icon {
  margin-top: 0;
}

.roadmap-providers {
  margin-top: 40px;
}

.roadmap-expand-lead {
  max-width: min(60ch, 100%);
  margin-bottom: 26px !important;
}

.roadmap-expand-col {
  backdrop-filter: blur(12px);
}

.panel-quick-checks-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Panel strip */
.strip-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(209, 154, 102, 0.08), rgba(22, 19, 17, 0.8));
}

.strip-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px;
}

@media (min-width: 720px) {
  .strip-panel-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

.strip-panel h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.strip-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  text-align: center;
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-panel .hero-lead code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(209, 154, 102, 0.12);
  border: 1px solid var(--line);
}

/* Panel Lite gallery + lightbox */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.shot-card {
  margin: 0;
}

.shot-card figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.shot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(22, 19, 17, 0.6);
  cursor: zoom-in;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.shot-trigger:hover {
  border-color: rgba(209, 154, 102, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

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

.shot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: stretch;
}

.lightbox:not([hidden]) {
  display: grid;
}

.lightbox:not([hidden]) .lightbox-backdrop {
  animation: lb-fade-in 0.22s ease forwards;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: min(48px, 4vw);
  padding-top: min(72px, 9vh);
}

.lightbox-stage {
  pointer-events: auto;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 24px 64px rgba(0, 0, 0, 0.55));
}

.lightbox-img {
  max-width: calc(100vw - min(96px, 8vw));
  max-height: calc(100vh - min(112px, 14vh));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1a1715;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 7, 6, 0.94);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  border: none;
  padding: 0;
  margin: 0;
  appearance: none;
}

@keyframes lb-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-close {
  position: fixed;
  top: min(20px, 3vh);
  right: min(20px, 3vw);
  z-index: 3;
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(34, 29, 25, 0.92);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.lightbox-close:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

body.lightbox-open {
  overflow: hidden;
}

/* Главная: русские подписи на схеме и глоссарий под ней (tz.site §1.4) */
.hero-flow .hero-flow-chip-ru {
  white-space: normal;
  text-align: center;
  line-height: 1.28;
  max-width: min(10.2rem, 31vw);
  hyphens: auto;
}

.hero-flow-desc-glossary-wrap {
  margin: 22px auto 0;
  max-width: 56rem;
  padding: 0 12px;
  text-align: left;
}

.hero-flow-glossary {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

.hero-flow-glossary li {
  margin: 0 0 0.55rem;
}

.hero-flow-glossary li:last-child {
  margin-bottom: 0;
}

.hero-flow-tech-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(209, 154, 102, 0.18);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.capabilities-modular-note {
  margin-top: -6px !important;
  margin-bottom: 0 !important;
  max-width: min(62ch, 100%) !important;
}

.capabilities-list {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  font-size: 0.94rem;
  line-height: 1.58;
}

.capabilities-tech-ids {
  margin: 0 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.52;
  color: var(--muted);
}

.examples-warning-box {
  max-width: 76ch;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(209, 154, 102, 0.45);
  background: rgba(209, 154, 102, 0.08);
  font-size: 0.925rem;
  line-height: 1.55;
}

.examples-group {
  margin-bottom: 40px;
}

.examples-group-intro {
  margin: 0 0 18px;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.examples-row {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.examples-filename {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 650;
}

.examples-pick-section {
  margin-top: 12px;
  padding-top: 8px;
}

.examples-pick-section ol {
  margin: 10px 0 16px;
  padding-left: 1.35rem;
  max-width: 72ch;
  line-height: 1.58;
  color: var(--muted);
}

.examples-docs-tail {
  margin: 0;
  max-width: 72ch;
  font-size: 0.94rem;
  color: var(--muted);
}

.ex-viewer-guide {
  margin: 0 0 22px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(209, 154, 102, 0.28);
  background: rgba(34, 29, 25, 0.45);
}

.ex-viewer-h2 {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.ex-viewer-guide > .ex-viewer-h2:first-child {
  margin-top: 0;
}

.ex-viewer-warn {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--muted);
}

.ex-docs-link {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ex-wrap pre {
  margin-top: 0;
}

@media (max-width: 520px) {
  .hero-flow .hero-flow-chip-ru {
    max-width: 100%;
  }
}
