:root {
  color-scheme: light;
  --ink: #101217;
  --ink-soft: #3d444d;
  --white: #ffffff;
  --cool-25: #fbfefe;
  --cool-50: #f5fafa;
  --cool-100: #eaf4f3;
  --line: #cfe1e0;
  --line-strong: #9ab9b7;
  --burgundy: #74183a;
  --burgundy-dark: #551129;
  --burgundy-pale: #f8edf1;
  --turquoise: #087a78;
  --turquoise-bright: #18b9b2;
  --turquoise-pale: #e7f8f7;
  --orange: #f36a2d;
  --orange-pale: #ffffff;
  --lime: #b7e23a;
  --lime-pale: #ffffff;
  --danger: #c53645;
  --shadow: 0 18px 48px rgba(16, 18, 23, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --content: 1280px;
  --wide: 1440px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: balance;
}

p,
li,
blockquote,
summary {
  overflow-wrap: anywhere;
}

h1,
.display {
  font-family: "Arial Black", "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 15ch;
  margin-bottom: 28px;
  font-size: clamp(3rem, 7.2vw, 7rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

small,
.small {
  font-size: 0.82rem;
}

.mono,
.eyebrow,
.section-index,
.passport-code,
.meta-row,
.status,
.technical-label {
  font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-shell,
.wide-shell {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.wide-shell {
  width: min(calc(100% - 48px), var(--wide));
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 76px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 5px;
  border: 2px solid var(--turquoise);
  border-radius: 50%;
}

.brand-mark::after {
  top: 50%;
  right: -8px;
  width: 12px;
  height: 2px;
  background: var(--orange);
}

.brand em {
  color: var(--burgundy);
  font-style: normal;
}

/* Фирменный логотип шапки: SVG-модуль + надпись agents effect .com и салатовая точка */
.brand-logo {
  width: 34px;
  height: 28px;
  flex: none;
}

.brand-text {
  color: var(--turquoise);
}

.brand-text,
.footer-brand-text {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.footer-brand-text {
  color: var(--turquoise);
}

.brand-domain {
  color: var(--turquoise);
}

.brand:hover .brand-text {
  color: var(--turquoise-bright);
}

/* Надпись agents в подвале: при наведении светло-бирюзовый */
.site-footer .brand:hover .footer-brand-text {
  color: var(--turquoise-bright);
}

.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 5px;
  margin-right: 0;
  border-radius: 50%;
  background: var(--lime);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.primary-nav a,
.mobile-nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 7px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button {
  gap: 10px;
  padding: 0 20px;
}

.button:hover,
.icon-button:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.button-primary:hover {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--white);
}

.final-cta .button-primary:hover,
.final-cta .button-primary:focus-visible,
.final-cta .button-primary:active {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--white);
}

.final-cta .button-primary:active {
  transform: translateY(0);
}

.button-secondary:hover {
  border-color: var(--turquoise);
  background: var(--white);
  color: var(--turquoise);
}

.button-lime {
  border-color: var(--lime);
  background: var(--lime);
}
.button-lime:hover {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--white);
}

.button-small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.85rem;
}

.icon-button {
  width: 46px;
  padding: 0;
}

.language-button {
  width: auto;
  min-width: 46px;
  gap: 7px;
  padding-inline: 12px;
  border-color: var(--turquoise);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.language-button::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-button[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: fixed;
  z-index: 1100;
  width: min(216px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16, 18, 23, 0.16);
}

.language-menu[hidden] {
  display: none;
}

.language-list {
  display: grid;
  gap: 2px;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.language-option:hover,
.language-option:focus-visible {
  background: var(--cool-100);
  color: var(--turquoise);
}

.language-option[aria-current="page"] {
  background: var(--turquoise-pale);
  color: var(--turquoise);
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: grid;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.section {
  position: relative;
  padding-block: clamp(80px, 9vw, 144px);
}

.section-compact {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-cool {
  background: var(--cool-50);
}

.section-composition {
  background:
    radial-gradient(circle at 16% 10%, rgba(243, 106, 45, 0.09), transparent 34%),
    radial-gradient(circle at 84% 38%, rgba(24, 185, 178, 0.1), transparent 40%),
    linear-gradient(135deg, #fffaf3 0%, #f4fbfa 52%, #fff 100%);
}

.section-workflow {
  background: var(--white);
}

.section-workflow .section-head h2,
.section-workflow .workflow-step h3 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 100px minmax(0, 8fr) minmax(260px, 3fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 52px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-title-stack .eyebrow {
  margin-bottom: 10px;
  color: var(--turquoise);
}

.section-index {
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-index b {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.section-lead {
  max-width: 38ch;
  color: var(--ink-soft);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
}

.hero {
  overflow: hidden;
  padding: clamp(64px, 7vw, 108px) 0 clamp(56px, 7vw, 104px);
  background: var(--white);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(540px, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: center;
}

.hero-stage > * {
  min-width: 0;
}

.hero-poster {
  position: relative;
  padding-left: clamp(18px, 2.2vw, 32px);
}

.hero-poster::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--burgundy);
  content: "";
}

.hero-poster h1 {
  max-width: 14ch;
  margin-bottom: 34px;
  font-size: clamp(3.5rem, 5.25vw, 5.4rem);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.hero-kicker span {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: none;
}

.hero-verb-research {
  color: var(--turquoise-bright);
  --accent-shadow: var(--turquoise);
}

.hero-verb-invent {
  color: var(--burgundy);
  --accent-shadow: var(--burgundy-dark);
}

.hero-verb-review {
  color: var(--orange);
  --accent-shadow: #a83d12;
}

.hero-verb-together {
  color: var(--lime);
  --accent-shadow: #769b0c;
}

.hero-verb,
.short-answer-word {
  text-shadow: 0 2px 2px color-mix(in srgb, var(--accent-shadow) 28%, transparent);
}

.hero-lead {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.product-machine {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--burgundy) 28%, var(--line));
  border-radius: 20px 20px 64px 20px;
  background-color: var(--white);
  background-image:
    linear-gradient(color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 28px 70px rgba(116, 24, 58, 0.12);
}

.product-machine::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--burgundy) 25% 50%, var(--orange) 50% 75%, var(--lime) 75% 100%);
  content: "";
}

.product-machine-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-machine-head strong,
.product-machine-head span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-machine-head span {
  color: var(--turquoise);
  font-weight: 800;
  text-align: right;
}

.product-machine-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.product-machine-step {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  padding: 12px 20px 12px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--step-accent, var(--turquoise));
  border-radius: 14px;
  background: rgba(251, 254, 254, 0.96);
}

.product-machine-step:nth-child(2) { margin-left: 26px; }
.product-machine-step:nth-child(3) { margin-left: 10px; }
.product-machine-step:nth-child(4) { margin-left: 38px; }
.product-machine-step[data-tone="turquoise"] { --step-accent: var(--turquoise); }
.product-machine-step[data-tone="orange"] { --step-accent: var(--orange); }
.product-machine-step[data-tone="lime"] { --step-accent: var(--lime); }
.product-machine-step[data-tone="burgundy"] { --step-accent: var(--burgundy); }

.product-machine-step img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-machine-step small {
  display: block;
  margin-bottom: 5px;
  color: var(--burgundy);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-machine-step h2 {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.product-machine-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-copy-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.hero-copy-grid > *,
.page-hero-grid > *,
.agent-hero-layout > *,
.short-answer-layout > *,
.workflow-visual > *,
.task-lab > *,
.trust-layout > *,
.catalog-layout > *,
.article-layout > *,
.two-column > *,
.three-column > *,
.four-column > *,
.app-shell > *,
.dashboard-grid > * {
  min-width: 0;
}

.hero-title {
  grid-column: 1 / span 8;
}

.hero-title h1 {
  margin-bottom: 0;
}

.hero-intro {
  grid-column: 9 / -1;
  padding-bottom: 8px;
}

.hero-intro p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.honest-note {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero-machine {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 92px);
  padding: 30px 30px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  clip-path: none;
}

.hero-machine::before {
  position: absolute;
  z-index: 2;
  content: "";
}

.hero-machine::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--turquoise) 0 23.5%,
    transparent 23.5% 25.5%,
    var(--burgundy) 25.5% 49%,
    transparent 49% 51%,
    var(--orange) 51% 74.5%,
    transparent 74.5% 76.5%,
    var(--lime) 76.5% 100%
  );
}

.hero-machine img {
  width: 100%;
  object-fit: contain;
}

.screen-visual {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--cool-50);
}

.screen-visual .hero-machine {
  margin-top: 0;
  position: relative;
}

.screen-visual .hero-machine picture {
  display: flex;
  justify-content: center;
}

.screen-visual .machine-caption {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  z-index: 3;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.machine-caption {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
  text-align: center;
  color: var(--ink-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.machine-caption span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.machine-caption span::before {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--turquoise);
  content: "";
}

.machine-caption span:nth-child(2)::before { background: var(--burgundy); }
.machine-caption span:nth-child(3)::before { background: var(--orange); }
.machine-caption span:nth-child(4)::before { background: var(--lime); }

.short-answer {
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.short-answer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(110px, 13vw, 210px);
  height: 14px;
  background: var(--burgundy);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  content: "";
}

.short-answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(340px, 4.6fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.short-answer-copy .eyebrow {
  margin-bottom: 24px;
  color: var(--turquoise);
}

.short-answer-copy blockquote {
  max-width: 31ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.45vw, 3.55rem);
  line-height: 1.22;
  text-wrap: balance;
}

.short-answer-word {
  font-weight: 700;
}

.short-answer-word-specialized {
  color: var(--burgundy);
  --accent-shadow: var(--burgundy-dark);
}

.short-answer-word-digital {
  color: var(--turquoise-bright);
  --accent-shadow: var(--turquoise);
}

.short-answer-word-performer {
  color: var(--orange);
  --accent-shadow: #a83d12;
}

.short-answer-word-result {
  color: var(--lime);
  --accent-shadow: #769b0c;
}

.short-answer-home-link {
  color: #263d4b;
  text-decoration-color: color-mix(in srgb, #263d4b 45%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.short-answer-home-link:hover,
.short-answer-home-link:focus-visible,
.short-answer-home-link:active {
  color: #176f6b;
  text-decoration-color: currentColor;
}

.short-answer-media {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

.short-answer-picture {
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--cool-25);
  clip-path: polygon(0 0, 89% 0, 100% 11%, 100% 100%, 11% 100%, 0 89%);
}

.short-answer-picture img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.short-answer-link {
  display: inline-block;
  margin-top: 26px;
  color: var(--burgundy);
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  font-weight: 800;
  line-height: 1.28;
  text-decoration-thickness: 2px;
}

.short-answer-link:hover,
.short-answer-link:focus-visible,
.short-answer-link:active {
  color: var(--turquoise-bright);
}

.short-answer-subagent {
  display: block;
  margin-top: 0.9em;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 1.65vw, 1.6rem);
  font-weight: 750;
  line-height: 1.45;
  text-wrap: pretty;
}

.section-subagents {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(243, 106, 45, 0.1), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(116, 24, 58, 0.08), transparent 34%),
    var(--cool-50);
}

.section-head-subagents .eyebrow {
  color: var(--orange);
}

.subagent-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.subagent-card {
  position: relative;
  display: grid;
  grid-column: span 4;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(16, 18, 23, 0.06);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.subagent-card:nth-child(n+4) {
  grid-column: span 6;
  min-height: 290px;
}

.subagent-card[hidden],
.catalog-subagents[hidden] {
  display: none !important;
}

.subagent-card::before {
  position: absolute;
  top: 0;
  right: 22px;
  left: 0;
  height: 5px;
  background: var(--subagent-color);
  content: "";
}

.subagent-card:hover,
.subagent-card:focus-visible {
  border-color: color-mix(in srgb, var(--subagent-color) 55%, var(--line));
  box-shadow: 0 24px 58px rgba(16, 18, 23, 0.11);
  transform: translateY(-5px);
}

.subagent-card-top,
.subagent-card-foot {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.subagent-card-top .status {
  white-space: normal;
}

.subagent-card > img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.subagent-card-copy {
  display: block;
}

.subagent-card-copy .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--subagent-color);
}

.subagent-card-copy strong {
  display: block;
  margin-bottom: 10px;
  font-family: Unbounded, "Arial Black", sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  line-height: 1.15;
}

.subagent-card-copy > span:last-child {
  color: var(--ink-soft);
  line-height: 1.55;
}

.subagent-card-foot {
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--burgundy);
  font-weight: 800;
}

.subagent-card-foot b {
  color: var(--subagent-color);
  font-size: 1.35rem;
}

.catalog-subagent-notes {
  margin-top: clamp(28px, 4vw, 52px);
}

.catalog-subagent-notes .info-panel {
  min-height: 220px;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(22px, 2.4vw, 34px);
  align-items: start;
}

.agent-passport {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(130px, 28%, 190px);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(18px, 2.4vw, 30px);
  min-height: 450px;
  padding: 30px 30px 30px 78px;
  overflow: hidden;
  border: 1px solid #bdc8cc;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 20px 54px rgba(38, 61, 75, 0.07);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  isolation: isolate;
}

.agent-passport > * {
  position: relative;
  z-index: 2;
}

.agent-passport:hover {
  border-color: color-mix(in srgb, var(--agent-color) 54%, #8c9ba1);
  box-shadow: 0 24px 60px rgba(38, 61, 75, 0.13);
  transform: translateY(-4px);
}

.agent-passport:nth-child(1) {
  grid-column: 1 / 6;
}

.agent-passport:nth-child(2) {
  grid-column: 6 / -1;
  margin-top: 68px;
}

.agent-passport:nth-child(3) {
  grid-column: 2 / 12;
  min-height: 420px;
}

.agent-passport::before {
  position: absolute;
  z-index: 0;
  right: 18px;
  bottom: 18px;
  width: 64%;
  height: 48%;
  background-image: var(--passport-blueprint);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  content: "";
  transition: opacity 180ms ease;
  pointer-events: none;
}

.agent-passport::after {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 48px;
  border-radius: 13px 0 0 13px;
  background: var(--passport-side, var(--agent-color));
  content: "";
  pointer-events: none;
}

.agent-passport:hover::before {
  opacity: 0.1;
}

.passport-top,
.passport-foot,
.meta-row,
.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.passport-code {
  color: var(--agent-color, var(--burgundy));
  font-size: 0.7rem;
  font-weight: 800;
}

.agent-passport .passport-code {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  bottom: 0;
  display: block;
  width: 48px;
  padding: 22px 12px;
  color: #fcfeff;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: normal;
  text-align: start;
  text-shadow: none;
  writing-mode: vertical-rl;
}

.agent-passport .passport-top {
  position: static;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-content: flex-end;
  min-height: 34px;
}

.agent-passport .passport-top .status {
  position: relative;
  z-index: 2;
}

.passport-art {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  width: min(100%, 180px);
  height: 150px;
  max-height: 150px;
  margin: 4px 0 0;
  padding: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 10px 16px rgba(38, 61, 75, 0.1));
}

.agent-passport:nth-child(1) .passport-art {
  filter: drop-shadow(0 10px 16px rgba(38, 61, 75, 0.1));
}

.agent-passport .passport-copy {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
}

.agent-passport .passport-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--agent-color);
}

.agent-passport .passport-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.passport-title-link {
  color: inherit;
  text-decoration: none;
}

.passport-title-link:hover,
.passport-title-link:focus-visible {
  color: var(--agent-color, var(--card-color, var(--burgundy)));
}

.passport-copy p {
  color: var(--ink-soft);
}

.passport-points {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.passport-points li::marker {
  color: var(--agent-color, var(--burgundy));
}

.passport-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  font-size: 0.85rem;
}

.agent-passport .passport-data {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  padding: 16px;
  border: 1px solid rgba(154, 169, 175, 0.72);
  background: #fff;
}

.agent-passport:nth-child(3)::before {
  right: 28px;
  bottom: 24px;
  width: 48%;
  height: 78%;
}

.agent-passport .passport-foot {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-content: flex-start;
  align-self: end;
}

.passport-data b {
  display: block;
  margin-bottom: 4px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 800;
  text-decoration: none;
}

.status:hover,
.status:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.workflow-visual {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.visual-frame {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.visual-frame img {
  width: 100%;
  object-fit: contain;
}

.workflow-steps {
  counter-reset: workflow;
}

.workflow-visual-horizontal {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.workflow-panorama {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.workflow-panorama img {
  display: block;
  aspect-ratio: 3 / 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.workflow-steps-horizontal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  order: -1;
}

.workflow-steps-horizontal .workflow-step {
  min-width: 0;
  min-height: 190px;
  padding: 28px 18px 22px 58px;
  border: 1px solid color-mix(in srgb, var(--step-color) 32%, var(--line));
  border-top: 6px solid var(--step-color);
  border-radius: 12px;
  background: linear-gradient(100deg, #fff 0 34%, color-mix(in srgb, var(--step-color) 8%, white) 100%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.workflow-steps-horizontal .workflow-step:hover,
.workflow-steps-horizontal .workflow-step:focus-visible {
  z-index: 4;
  border-color: var(--step-color);
  border-top-color: var(--step-color);
  background: linear-gradient(100deg, #fff 0 34%, color-mix(in srgb, var(--step-color) 11%, white) 100%);
  box-shadow: 0 18px 38px rgba(38, 61, 75, 0.13);
  outline: none;
  transform: none;
}

.workflow-steps-horizontal .workflow-step::before {
  top: 28px;
  left: 12px;
}

.workflow-step-note {
  margin: 16px 0 0 -40px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--step-color) 30%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--step-color) 9%, white);
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.workflow-step-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.workflow-step-note p {
  color: inherit;
  font-size: inherit;
}

.workflow-step-note p + p {
  margin-top: 12px;
}

@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .workflow-step-note {
    z-index: 6;
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(48vw, 920px);
    min-width: 680px;
    min-height: min(58vh, 640px);
    max-height: 82vh;
    margin: 0;
    padding: clamp(36px, 3vw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    opacity: 0;
    border-color: var(--step-color);
    background: linear-gradient(125deg, #fff 0 38%, color-mix(in srgb, var(--step-color) 14%, white) 100%);
    font-size: 1rem;
    line-height: 1.62;
    box-shadow: 0 28px 80px rgba(38, 61, 75, 0.24);
    transform: translate(-50%, -46%);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
  }

  .workflow-step-note strong {
    margin-bottom: 16px;
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .workflow-step-note p + p {
    margin-top: 18px;
  }

  .workflow-step:hover .workflow-step-note,
  .workflow-step:focus-visible .workflow-step-note {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.workflow-step {
  position: relative;
  padding: 20px 0 20px 58px;
  border-bottom: 1px solid var(--line);
}

.workflow-step::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--step-color, var(--burgundy));
  color: var(--white);
  counter-increment: workflow;
  content: counter(workflow, decimal-leading-zero);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 34px;
  text-align: center;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.task-lab {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: 40px;
  align-items: stretch;
}

.task-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.task-option {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 148px;
  padding: 16px 20px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--option-color) 25%, var(--line));
  border-radius: 10px;
  background: linear-gradient(100deg, #fff 0 34%, color-mix(in srgb, var(--option-color) 8%, white) 100%);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.task-option-media {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.task-option img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: #fff;
}

.task-option-copy {
  display: grid;
  gap: 14px;
  min-height: 108px;
  padding-bottom: 28px;
  text-wrap: balance;
}

.task-option-copy strong {
  font-weight: 800;
  text-wrap: balance;
}

.task-option::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--option-color, var(--turquoise));
  content: "";
}

.task-option:hover,
.task-option:focus-visible,
.task-option[aria-current="true"] {
  border-color: var(--option-color);
  background: linear-gradient(100deg, #fff 0 34%, color-mix(in srgb, var(--option-color) 11%, white) 100%);
  box-shadow: inset 0 0 0 1px var(--option-color);
  outline: none;
  transform: translateY(-2px);
}

.task-option-cta {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--option-color) 72%, var(--ink));
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.task-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 236px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--result-color, var(--burgundy)) 54%, white);
  background: linear-gradient(108deg, #fff 0 32%, color-mix(in srgb, var(--result-color, var(--burgundy)) 13%, white) 100%);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  transition: border-color 220ms ease, background 220ms ease;
}

.task-result[hidden] {
  display: flex;
}

.task-result-detail {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--result-color, var(--burgundy)) 24%, var(--line));
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.artifact-window {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.artifact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.82rem;
}

.tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--turquoise-pale);
  box-shadow: inset 0 -4px 0 var(--turquoise);
}

.artifact-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  min-height: 360px;
}

.artifact-panel[hidden] {
  display: none;
}

.artifact-panel > div {
  padding: clamp(24px, 4vw, 48px);
}

.artifact-panel > div + div {
  border-left: 1px solid var(--line);
  background: var(--cool-50);
}

.evidence-card {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.trust-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.trust-item img {
  width: 44px;
}

.trust-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.matrix-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

.matrix th,
.matrix td {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.matrix th {
  background: var(--cool-50);
  font-size: 0.82rem;
}

.matrix tr:last-child td,
.matrix tr:last-child th {
  border-bottom: 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.article-card:first-child {
  grid-row: span 2;
  min-height: 624px;
  background: var(--turquoise-pale);
}

.article-card:hover {
  border-color: var(--turquoise);
  color: var(--ink);
}

.article-card .meta-row {
  margin-top: auto;
  padding-top: 28px;
  color: var(--ink-soft);
  font-size: 0.64rem;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 54px 24px 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  content: "+";
  font-family: monospace;
  line-height: 21px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 72ch;
  padding: 0 54px 26px 0;
  color: var(--ink-soft);
}

.final-cta {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}

/* На анкете первый экран уже занят формой, поэтому CTA идёт сразу за ней без растяжения на весь вьюпорт */
.questionnaire-page + .final-cta {
  min-height: 0;
}

.final-cta::before,
.final-cta::after {
  display: none;
}

.final-cta-frame {
  display: grid;
  gap: clamp(10px, 1.5vh, 16px);
  align-self: stretch;
  align-content: center;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
  text-align: center;
}

.final-cta-inner > .eyebrow {
  width: 100%;
  text-align: left;
}

.final-cta-actions {
  justify-content: center;
}

.final-cta-actions .button-secondary {
  background: var(--white);
}

.final-cta-visual {
  align-self: end;
  width: min(100%, 1400px);
  margin: 0 auto;
  overflow: hidden;
}

.final-cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}

.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: var(--white);
}

.site-footer a {
  color: #d7e7e6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 32px;
}

.footer-grid h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #3d444d;
  color: #aeb8bd;
  font-size: 0.75rem;
}

.search-dialog {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(16, 18, 23, 0.22);
}

.search-dialog::backdrop {
  background: rgba(16, 18, 23, 0.48);
}

.dialog-head,
.dialog-body {
  padding: 20px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.field legend {
  font-weight: 800;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-left: 4px solid var(--orange);
  background: var(--orange-pale);
}

.page-hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(44px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
  gap: 48px;
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(3rem, 6.4vw, 6rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.answer-first {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--turquoise);
  background: var(--cool-50);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.breadcrumb a {
  color: inherit;
}

.catalog-layout {
  display: block;
}

.filter-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.filter-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.filter-panel-heading .eyebrow {
  margin-bottom: 6px;
  color: var(--turquoise);
}

.filter-panel-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.filter-reset {
  padding: 6px 0;
  border: 0;
  color: var(--burgundy);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.filter-reset[hidden] {
  display: none;
}

.filter-chips {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.filter-chips legend {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-chips > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips label {
  cursor: pointer;
}

.filter-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.filter-chips span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.filter-chips input:checked + span {
  border-color: var(--burgundy);
  color: var(--white);
  background: var(--burgundy);
}

.filter-chips input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--turquoise) 40%, transparent);
  outline-offset: 3px;
}

.filter-group {
  display: grid;
  gap: 10px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

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

.catalog-entry {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(38, 61, 75, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.catalog-entry::before {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 44px;
  background: var(--entry-rail, var(--entry-color));
  content: "";
  pointer-events: none;
}

.catalog-entry > * {
  position: relative;
  z-index: 1;
}

.catalog-entry:hover {
  border-color: color-mix(in srgb, var(--entry-color) 48%, var(--line));
  box-shadow: 0 24px 58px rgba(38, 61, 75, 0.12);
  transform: translateY(-3px);
}

.catalog-entry[hidden] {
  display: none;
}

.catalog-entry-agent {
  grid-column: 1 / -1;
  grid-template-columns: 122px minmax(0, 1fr) minmax(280px, 0.72fr);
  grid-template-rows: auto 1fr auto;
  gap: 18px 26px;
  min-height: 350px;
  padding: 24px 28px 24px 70px;
}

.catalog-entry-subagent {
  grid-template-columns: 82px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 18px 20px;
  min-height: 270px;
  padding: 22px 24px 20px 66px;
}

.catalog-entry-top {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-entry-code {
  position: absolute;
  top: -2px;
  left: -54px;
  display: block;
  width: 44px;
  color: var(--white);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 800;
  writing-mode: vertical-rl;
}

.catalog-entry-art {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  max-height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(38, 61, 75, 0.1));
}

.catalog-entry-subagent .catalog-entry-art {
  max-height: 82px;
}

.catalog-entry-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.catalog-entry-copy .eyebrow {
  margin-bottom: 8px;
  color: var(--entry-color);
}

.catalog-entry-copy h3 {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.catalog-entry-subagent .catalog-entry-copy h3 {
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
}

.catalog-entry-description {
  color: var(--ink-soft);
  line-height: 1.55;
}

.catalog-entry-data {
  display: grid;
  grid-column: 3;
  grid-row: 2 / 4;
  align-self: stretch;
  gap: 0;
  padding: 4px 20px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.catalog-entry-data span {
  padding: 15px 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.catalog-entry-data span + span {
  border-top: 1px solid var(--line);
}

.catalog-entry-data b {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.catalog-entry-foot {
  display: flex;
  grid-column: 1 / 3;
  grid-row: 3;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalog-entry-subagent .catalog-entry-foot {
  grid-column: 1 / -1;
}

.catalog-entry-link {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration: none;
}

.catalog-entry-link b {
  color: var(--entry-color);
  font-size: 1.25rem;
}

.catalog-empty {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--cool-50);
}

.catalog-empty[hidden] {
  display: none;
}

/* Marketplace catalog keeps the card language from the home page. */
.catalog-marketplace {
  padding: 16px 0 72px;
}

.catalog-market-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.catalog-market-head .breadcrumb {
  margin-bottom: 0;
}

.catalog-market-head .eyebrow {
  margin-bottom: 4px;
  color: var(--turquoise);
}

.catalog-market-head h1 {
  font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.catalog-market-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 92px;
}

.catalog-sidebar-title {
  padding: 4px 0 16px;
}

.catalog-sidebar-title .eyebrow {
  margin-bottom: 4px;
  color: var(--turquoise);
  font-size: 0.7rem;
}

.catalog-sidebar-title h1 {
  font-size: clamp(1.25rem, 1.75vw, 1.4rem);
  line-height: 1.2;
}

.catalog-sidebar-title .catalog-lead {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.catalog-market-results {
  min-width: 0;
}

.catalog-marketplace .catalog-toolbar {
  min-height: 42px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.catalog-marketplace .catalog-toolbar a {
  color: var(--burgundy);
  font-weight: 800;
}

.catalog-filter {
  position: static;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.catalog-filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.catalog-filter-head h2 {
  font-size: 1.15rem;
}

.catalog-filter-head .filter-reset {
  font-size: 0.78rem;
}

.catalog-filter-field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 650;
}

.catalog-market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-market-grid .catalog-agent-passport:nth-child(n) {
  grid-column: auto;
  min-height: 540px;
  margin-top: 0;
  padding: 22px 18px 22px 62px;
  grid-template-columns: minmax(0, 1fr) 84px;
  column-gap: 10px;
}

.catalog-market-grid .catalog-agent-passport:nth-child(n)::before {
  right: 14px;
  bottom: 16px;
  width: 64%;
  height: 48%;
}

.catalog-market-grid .catalog-agent-passport .passport-art {
  width: 84px;
  height: 96px;
  max-height: 96px;
}

.catalog-market-grid .catalog-agent-passport .passport-copy h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.65rem);
}

.catalog-market-grid .catalog-agent-passport .passport-copy > p:last-child,
.catalog-market-grid .catalog-agent-passport .passport-points {
  font-size: 0.82rem;
}

.catalog-market-grid .catalog-agent-passport .passport-data {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 13px;
}

.catalog-market-grid .catalog-agent-passport .passport-foot .button {
  width: 100%;
}

.catalog-market-grid .catalog-subagent-card,
.catalog-market-grid .catalog-subagent-card:nth-child(n+4) {
  grid-column: auto;
  min-height: 310px;
}

.catalog-market-grid [data-catalog-card][hidden] {
  display: none !important;
}


.agent-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
  gap: 48px;
  align-items: start;
}

.agent-hero-art {
  position: sticky;
  top: 104px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.agent-hero-art img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.subagent-hero-art {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--subagent-color);
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.subagent-hero-art img {
  width: min(100%, 280px);
  margin-inline: auto;
  object-fit: contain;
}

.subagent-hero-art strong {
  font-family: Unbounded, "Arial Black", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.subagent-hero-art > span:last-child {
  color: var(--ink-soft);
}

.subagent-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.subagent-data-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.subagent-data-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--burgundy);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subagent-data-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.subagent-flow {
  display: grid;
  gap: 0;
  padding: 28px;
}

.subagent-flow span {
  padding: 16px 18px;
  border-left: 4px solid var(--turquoise);
  background: var(--cool-50);
  font-weight: 750;
}

.subagent-flow span:nth-of-type(2) { border-left-color: var(--orange); }
.subagent-flow span:nth-of-type(3) { border-left-color: var(--burgundy); }
.subagent-flow span:nth-of-type(4) { border-left-color: var(--lime); }

.subagent-flow b {
  padding: 6px 18px;
  color: var(--ink-soft);
}

.subagent-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 28px;
}

.subagent-metrics > div {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.subagent-hero-custom .page-hero-grid {
  align-items: start;
}

.subagent-hero-compact {
  padding: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 28px);
}

.subagent-hero-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.subagent-hero-left .eyebrow {
  margin-bottom: 0;
}

.subagent-hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subagent-hero-img img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--cool-50);
  display: block;
}

.subagent-hero-effect {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--turquoise);
  background: var(--cool-50);
}

.subagent-effect-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin-top: 8px;
  list-style: none;
}

.subagent-effect-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.subagent-effect-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  content: "";
}

.feature-list,
.numbered-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
}

.feature-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--list-color, var(--turquoise));
  content: "";
}

.two-column,
.three-column,
.four-column {
  display: grid;
  gap: 24px;
}

.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-column { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-panel {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.info-panel[data-tone="turquoise"] { border-top: 5px solid var(--turquoise); }
.info-panel[data-tone="burgundy"] { border-top: 5px solid var(--burgundy); }
.info-panel[data-tone="orange"] { border-top: 5px solid var(--orange); }
.info-panel[data-tone="lime"] { border-top: 5px solid var(--lime); }

/* Шапка карточки контакта: номер в кружке стандартного цвета + микроиконка */
.contact-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-card-top .proto-num {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.limitations {
  padding: 28px;
  border: 1px solid var(--orange);
  background: var(--orange-pale);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 28px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.prose h2 {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.prose {
  min-width: 0;
}

.prose h3 {
  margin-top: 24px;
}

.prose a,
.article-aside a {
  color: var(--ink);
  text-decoration: underline;
}

.prose a::after {
  content: "\2197";
  margin-left: 3px;
  font-size: 0.7em;
  line-height: 1;
  vertical-align: super;
}

.prose p,
.prose li {
  max-width: none;
}

.article-aside {
  position: sticky;
  top: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--cool-50);
  font-size: 0.82rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 76px);
  background: var(--cool-50);
}

.app-sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.app-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 30px;
}

.app-sidebar a {
  padding: 11px 12px;
  color: var(--ink-soft);
  text-decoration: none;
}

.app-sidebar a[aria-current="page"] {
  background: var(--turquoise-pale);
  color: var(--ink);
}

.app-main {
  padding: 40px;
}

.demo-banner {
  margin-bottom: 24px;
  padding: 14px 18px;
  border-left: 5px solid var(--orange);
  background: var(--orange-pale);
  font-size: 0.85rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.dashboard-card {
  grid-column: span 4;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.dashboard-card.wide {
  grid-column: span 8;
}

.run-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 20px;
  border-left: 2px solid var(--line);
}

.run-stage {
  position: relative;
  padding: 0 0 30px 30px;
}

.run-stage::before {
  position: absolute;
  top: 4px;
  left: -28px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.run-stage.done::before { background: var(--turquoise); }
.run-stage.current::before { background: var(--orange); }
.run-stage.waiting::before { background: var(--lime); }

.moderation-row {
  display: grid;
  grid-template-columns: 120px minmax(200px, 1.4fr) 1fr 160px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.noindex-label {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-family: monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.section-custom-development {
  background: var(--white);
}

.custom-development-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.custom-development-layout > div > p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.custom-development-data {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background-color: var(--white);
  background-image:
    linear-gradient(color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: var(--shadow);
  counter-reset: custom-development-step;
}

.custom-development-data div {
  display: grid;
  grid-template-columns: 32px 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--step-accent, var(--turquoise));
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(16, 18, 23, 0.06);
  align-items: center;
}

.custom-development-data div:nth-child(1) { --step-accent: var(--turquoise); }
.custom-development-data div:nth-child(2) { --step-accent: var(--orange); }
.custom-development-data div:nth-child(3) { --step-accent: var(--lime); }
.custom-development-data div:nth-child(4) { --step-accent: var(--burgundy); }

.custom-development-data div::before {
  counter-increment: custom-development-step;
  content: counter(custom-development-step);
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--step-accent, var(--turquoise));
  color: var(--white);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.custom-development-data dt {
  color: var(--ink);
  font-weight: 800;
}

.custom-development-data dd {
  margin: 0;
  color: var(--ink-soft);
}

/* СТРОГОЕ ПРАВИЛО: ВЕСЬ ТЕКСТ — ГРАФИТОВЫЙ (var(--ink), #101217) НА БЕЛОМ (var(--white)).
   Цвет допускается только в акцентах: цветные кружки с номерами, рамки, иконки, стандартные кнопки. */
.questionnaire-page {
  padding: 12px 0 32px;
  background: var(--white);
}

.questionnaire-page-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.questionnaire-page-head .questionnaire-eyebrow {
  margin-bottom: 0;
}

.questionnaire-title {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  grid-template-areas:
    "intro side"
    "steps side";
  gap: 12px clamp(16px, 2vw, 28px);
  align-items: start;
}

.questionnaire-intro {
  grid-area: intro;
}

.questionnaire-side {
  grid-area: side;
  display: grid;
  gap: 12px;
  align-content: start;
}

.questionnaire-steps {
  grid-area: steps;
  display: grid;
  gap: 10px;
}

.questionnaire-title h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.questionnaire-lead {
  margin: 0;
  padding: 10px 14px;
  border-left: 5px solid var(--turquoise-bright);
  color: var(--ink);
  background: var(--white);
  font-size: 0.9rem;
  line-height: 1.45;
}

.questionnaire-guide-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.questionnaire-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questionnaire-progress li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 10px;
  padding: 8px 10px;
  border-left: 4px solid var(--step-accent, var(--turquoise));
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
  font-size: 0.8rem;
}

.questionnaire-progress li:nth-child(1) { --step-accent: var(--turquoise); }
.questionnaire-progress li:nth-child(2) { --step-accent: var(--orange); }
.questionnaire-progress li:nth-child(3) { --step-accent: var(--lime); }

.questionnaire-progress span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--step-accent, var(--turquoise));
  color: var(--white);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.questionnaire-progress b {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.questionnaire-progress small {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.72;
}

.questionnaire-progress img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.questionnaire-progress li.is-active {
  background: var(--white);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--step-accent, var(--turquoise)) 20%, transparent);
}

@media (max-width: 999px) {
  .questionnaire-title {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "side"
      "steps";
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .questionnaire-progress {
    grid-template-columns: 1fr;
  }
}

.questionnaire-heading {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.questionnaire-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.questionnaire-step-indicator::before {
  flex: 0 0 auto;
  width: 26px;
  height: 8px;
  background: linear-gradient(90deg, var(--turquoise-bright) 0 33%, var(--orange) 33% 66%, var(--lime) 66% 100%);
  content: "";
}

.questionnaire-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
}

.questionnaire-eyebrow::before {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--turquoise-bright);
  content: "";
}

.questionnaire-eyebrow img {
  width: 24px;
  height: 20px;
}

.questionnaire-eyebrow-orange::before {
  background: var(--orange);
}

.questionnaire-eyebrow-lime::before {
  background: var(--lime);
}

.questionnaire-workspace {
  display: block;
}

.questionnaire-safety {
  padding: 12px 14px;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
}

.questionnaire-safety .eyebrow {
  margin-bottom: 5px;
}

.questionnaire-safety p:last-child {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
}

.questionnaire-form {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 1.8vw, 24px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 22px 60px rgba(38, 61, 75, 0.08);
}

.questionnaire-form::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--burgundy) 25% 50%, var(--orange) 50% 75%, var(--lime) 75% 100%);
  content: "";
}

.questionnaire-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.questionnaire-step[hidden],
.questionnaire-result[hidden],
.questionnaire-field[hidden] {
  display: none;
}

.questionnaire-step legend {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .questionnaire-heading {
    white-space: normal;
  }
}

.questionnaire-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.questionnaire-route {
  cursor: pointer;
}

.questionnaire-route-ready { --route-accent: var(--turquoise-bright); }
.questionnaire-route-custom { --route-accent: var(--orange); }

.questionnaire-route input {
  position: absolute;
  opacity: 0;
}

.questionnaire-route > span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 92px;
  align-content: center;
  column-gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--route-accent, var(--turquoise));
  background: var(--white);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.questionnaire-route > span img {
  grid-row: 1 / 3;
  align-self: center;
  width: 64px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.questionnaire-route b {
  color: var(--ink);
  font-family: Unbounded, "Arial Black", sans-serif;
  font-size: 1.15rem;
}

.questionnaire-route small {
  color: var(--ink);
  opacity: 0.72;
  font-size: 0.9rem;
  line-height: 1.4;
}

.questionnaire-route:hover > span {
  border-color: var(--route-accent, var(--turquoise));
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--route-accent, var(--turquoise)) 22%, transparent);
  transform: translateY(-2px);
}

.questionnaire-route input:checked + span {
  border-color: var(--route-accent, var(--turquoise));
  background: var(--white);
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--route-accent, var(--turquoise)) 30%, transparent);
  transform: translateY(-2px);
}

.questionnaire-route input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--turquoise) 40%, transparent);
  outline-offset: 3px;
}

.questionnaire-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.questionnaire-field {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.questionnaire-field-wide {
  grid-column: 1 / -1;
}

.questionnaire-field input,
.questionnaire-field select,
.questionnaire-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.questionnaire-field textarea {
  min-height: 138px;
  resize: vertical;
  line-height: 1.55;
}

.questionnaire-field input:focus,
.questionnaire-field select:focus,
.questionnaire-field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--turquoise) 34%, transparent);
  border-color: var(--turquoise);
}

.questionnaire-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 32px;
}

.questionnaire-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.questionnaire-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.questionnaire-review {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise-bright);
  background: var(--white);
}

.questionnaire-review-mark {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
}

.questionnaire-review dl {
  display: grid;
  margin: 18px 0 0;
}

.questionnaire-review dl div {
  padding: 13px 0;
}

.questionnaire-review dl div + div {
  border-top: 1px solid var(--line);
}

.questionnaire-review dt {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.questionnaire-review dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.questionnaire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.questionnaire-actions [hidden] {
  display: none !important;
}

.questionnaire-state {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: var(--burgundy);
  font-weight: 700;
}

.questionnaire-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--lime) 60%, var(--line));
  border-left: 6px solid var(--lime);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--lime-pale);
}

.questionnaire-booking-note {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.booking-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.booking-day {
  display: grid;
  gap: 2px;
  min-width: 76px;
  padding: 10px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-day small {
  color: var(--ink);
  opacity: 0.72;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-day b {
  font-size: 0.92rem;
}

.booking-day:hover:not(:disabled) {
  border-color: var(--turquoise);
  transform: translateY(-1px);
}

.booking-day.is-selected {
  border-color: var(--turquoise);
  background: var(--turquoise-pale);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--turquoise) 22%, transparent);
  transform: translateY(-1px);
}

.booking-day:disabled {
  opacity: 0.4;
  cursor: default;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.booking-slot {
  padding: 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-slot:hover {
  border-color: var(--turquoise);
  transform: translateY(-1px);
}

.booking-slot.is-selected {
  border-color: var(--turquoise);
  background: var(--turquoise-pale);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--turquoise) 30%, transparent);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .custom-development-layout,
  .questionnaire-workspace,
  .questionnaire-final-grid {
    grid-template-columns: 1fr;
  }

  .questionnaire-route-grid,
  .questionnaire-fields {
    grid-template-columns: 1fr;
  }

  .questionnaire-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .custom-development-data div {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 6px 12px;
    align-items: start;
  }

  .custom-development-data dt {
    grid-column: 2;
    grid-row: 1;
  }

  .custom-development-data dd {
    grid-column: 2;
    grid-row: 2;
  }

  .questionnaire-form {
    min-height: 0;
    padding: 16px 14px;
  }

  .questionnaire-route-grid,
  .questionnaire-fields-primary {
    grid-template-columns: 1fr;
  }

  .questionnaire-route > span {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 12px;
  }

  .questionnaire-route > span img {
    width: 52px;
    max-height: 44px;
  }

  .questionnaire-actions .button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .primary-nav a:nth-child(3),
  .primary-nav a:nth-child(4) {
    display: none;
  }

  .section-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .section-head .section-lead {
    grid-column: 2;
  }

  .hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
    gap: 24px;
  }

  .hero-poster h1 {
    font-size: clamp(3.3rem, 6vw, 4.5rem);
  }

  .product-machine {
    padding: 24px;
  }

  .passport-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agent-passport:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 470px;
  }

  .agent-passport:nth-child(2) {
    margin-top: 42px;
  }

  .agent-passport:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 400px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subagent-card,
  .subagent-card:nth-child(n+4) {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-grid > :nth-child(n+4) {
    margin-top: 20px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .site-shell,
  .wide-shell {
    width: min(calc(100% - 40px), var(--content));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .primary-nav,
  .header-actions .button,
  .header-actions [data-open-search],
  .header-actions [data-language-switch] {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-copy-grid,
  .page-hero-grid,
  .agent-hero-layout,
  .subagent-hero-two-col {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 700px;
  }

  .hero-poster h1 {
    max-width: 12ch;
  }

  .product-machine {
    min-height: 0;
    margin-top: 20px;
  }

  .hero-title,
  .hero-intro {
    grid-column: auto;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  .hero-intro {
    max-width: 600px;
    margin-top: 30px;
  }

  .hero-machine {
    padding: 16px;
  }

  .machine-caption {
    display: none;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head .section-lead {
    grid-column: auto;
  }

  .short-answer-layout,
  .workflow-visual,
  .task-lab,
  .trust-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .workflow-steps-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps-horizontal .workflow-step:nth-child(n) {
    border: 1px solid color-mix(in srgb, var(--step-color) 32%, var(--line));
    border-top: 6px solid var(--step-color);
  }

  .passport-grid,
  .editorial-grid,
  .two-column,
  .three-column,
  .four-column {
    grid-template-columns: 1fr 1fr;
  }

  .agent-passport:nth-child(n),
  .agent-passport:nth-child(3) {
    grid-column: auto;
  }

  .agent-passport:nth-child(3) {
    grid-column: 1 / -1;
  }

  .agent-passport:nth-child(2) {
    margin-top: 0;
  }

  .article-card:first-child {
    grid-row: auto;
    min-height: 360px;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-entry-agent {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .catalog-entry-data {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-entry-data span {
    padding-inline: 14px;
  }

  .catalog-entry-data span + span {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .catalog-entry-foot {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .agent-hero-art,
  .subagent-hero-art,
  .article-aside {
    position: static;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-sidebar nav {
    display: flex;
    max-width: calc(100vw - 40px);
    overflow-x: auto;
  }

  .app-sidebar a {
    white-space: nowrap;
  }

  .app-main {
    max-width: 100vw;
    min-width: 0;
    padding: 28px 20px;
  }

  .dashboard-card,
  .dashboard-card.wide {
    grid-column: span 6;
  }

  .moderation-row {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .wide-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .section {
    padding-block: 68px;
  }

  .workflow-steps-horizontal {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-steps-horizontal .workflow-step:nth-child(n) {
    padding-bottom: 20px;
    border: 1px solid color-mix(in srgb, var(--step-color) 32%, var(--line));
    border-top: 6px solid var(--step-color);
  }

  .short-answer-copy blockquote {
    font-size: 1.8rem;
    line-height: 1.24;
    overflow-wrap: normal;
    text-wrap: pretty;
  }

  .subagent-card,
  .subagent-card:nth-child(n+4) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .subagent-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 20px;
  }

  .subagent-card > img {
    width: 72px;
    height: 72px;
  }

  .subagent-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .subagent-data-grid {
    grid-template-columns: 1fr;
  }

  .agent-passport {
    grid-template-columns: minmax(0, 1fr) 96px;
    column-gap: 12px;
    padding: 24px 18px 24px 66px;
  }

  .agent-passport .passport-art {
    width: 96px;
    height: 110px;
    max-height: 110px;
  }


  .hero {
    padding-top: 48px;
  }

  .hero-poster {
    padding-left: 14px;
  }

  .hero-poster h1 {
    max-width: none;
    font-size: clamp(2.65rem, 13vw, 3.7rem);
  }

  .product-machine {
    padding: 18px 14px 24px;
    border-radius: 16px 16px 44px 16px;
    background-size: 28px 28px;
  }

  .product-machine-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .product-machine-head span {
    text-align: left;
  }

  .product-machine-step,
  .product-machine-step:nth-child(n) {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 9px;
    min-height: 106px;
    margin-left: 0;
    padding: 9px 9px 9px 5px;
  }

  .product-machine-step img {
    width: 64px;
    height: 64px;
  }

  .product-machine-step h2 {
    font-size: 1.02rem;
  }

  .product-machine-step p {
    font-size: 0.8rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.65rem, 14vw, 4.1rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-actions,
  .passport-foot,
  .catalog-toolbar,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .passport-foot .button {
    width: 100%;
  }

  .hero-machine {
    margin-inline: -8px;
    clip-path: none;
  }

  .passport-grid,
  .editorial-grid,
  .two-column,
  .three-column,
  .four-column,
  .task-options,
  .catalog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .agent-passport:nth-child(3) {
    grid-column: auto;
  }

  .agent-passport,
  .catalog-entry {
    min-height: 0;
  }

  .artifact-panel {
    grid-template-columns: 1fr;
  }

  .artifact-panel > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .filter-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-chips > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-chips span {
    width: 100%;
  }

  .catalog-entry-agent,
  .catalog-entry-subagent {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 20px 18px 20px 60px;
  }

  .catalog-entry-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-entry-code {
    left: -47px;
  }

  .catalog-entry-art,
  .catalog-entry-subagent .catalog-entry-art {
    max-height: 72px;
  }

  .catalog-entry-data {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .catalog-entry-data span {
    padding-inline: 0;
  }

  .catalog-entry-data span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .catalog-entry-foot .button {
    width: 100%;
  }

  .dashboard-card,
  .dashboard-card.wide {
    grid-column: 1 / -1;
  }

  .moderation-row {
    grid-template-columns: 1fr;
  }

  .final-cta::before {
    right: -20%;
    width: 72vw;
  }

  .final-cta::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .catalog-market-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .catalog-marketplace {
    padding-top: 20px;
  }

  .catalog-market-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-market-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
    order: -1;
  }

  .catalog-filter {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filter-head {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .catalog-filter {
    grid-template-columns: 1fr;
  }

  .catalog-filter-head {
    grid-column: auto;
  }

  .catalog-market-grid .catalog-agent-passport:nth-child(n) {
    min-height: 0;
  }
}

@media (min-width: 1000px) and (min-height: 700px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 76px);
    padding-block: clamp(20px, 3vh, 32px);
  }

  .hero-poster h1 {
    margin-bottom: clamp(20px, 2.6vh, 30px);
    font-size: clamp(3.2rem, min(4.7vw, 7vh), 4.8rem);
  }

  .hero-lead {
    font-size: clamp(0.98rem, min(1.25vw, 2vh), 1.16rem);
    line-height: 1.55;
  }

  .hero-actions {
    margin-block: clamp(16px, 2.3vh, 24px) 12px;
  }

  .product-machine {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: min(620px, calc(100svh - 124px));
  }

  .product-machine-flow {
    flex: 1;
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .product-machine-step {
    min-height: 0;
  }

  .section,
  .screen-visual,
  .page-hero {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 76px);
  }

  .section,
  .screen-visual,
  .page-hero {
    padding-block: clamp(36px, 5vh, 52px);
  }

  .section-head {
    margin-bottom: clamp(26px, 4vh, 38px);
  }

  .section > .site-shell,
  .section > .wide-shell,
  .screen-visual > .wide-shell,
  .page-hero > .site-shell,
  .final-cta > .site-shell {
    width: min(calc(100% - 64px), var(--content));
  }

  .final-cta > .wide-shell {
    width: min(calc(100% - 48px), var(--wide));
  }

  .section > .wide-shell,
  .screen-visual > .wide-shell {
    width: min(calc(100% - 48px), var(--wide));
  }

  .screen-visual .hero-machine img {
    width: auto;
    max-height: calc(100svh - 210px);
  }

  .article-card {
    min-height: 240px;
  }

  .article-card:first-child {
    min-height: 500px;
  }

  .faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

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

@media (forced-colors: active) {
  .agent-passport::before,
  .catalog-entry::before,
  .task-option label::after,
  .final-cta::before {
    background: CanvasText;
  }
}

/* ============ Super Oracle landing (dense, no forced full-screen white space) ============ */
.oracle-hero {
  padding-block: clamp(40px, 6vh, 72px);
  background: linear-gradient(180deg, var(--cool-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}

.oracle-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}

.oracle-hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  margin-bottom: 20px;
}

.oracle-hero-lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.oracle-hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 16px;
}

.oracle-hero-badges > div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.oracle-hero-badges b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.oracle-hero-badges span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.oracle-hero-methods {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid color-mix(in srgb, var(--burgundy) 28%, var(--line));
  border-radius: 20px 20px 64px 20px;
  background-color: var(--white);
  background-image:
    linear-gradient(color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 28px 70px rgba(116, 24, 58, 0.12);
}

.oracle-hero-methods::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--burgundy) 25% 50%, var(--orange) 50% 75%, var(--lime) 75% 100%);
  content: "";
}

/* Flow image in right panel */
.oracle-hero-flow-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
}

/* Local/cloud model note */
.oracle-hero-model-note {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 10px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--turquoise) 8%, var(--white));
  border-left: 3px solid var(--turquoise);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Compact badges — single-line labels */
.oracle-hero-badges-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.oracle-hero-badges-compact div {
  padding: 8px 10px;
}
.oracle-hero-badges-compact b {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.oracle-hero-badges-compact span {
  font-size: 0.78rem;
  line-height: 1.3;
}

.oracle-method-flow {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.oracle-method-flow li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(251, 254, 254, 0.96);
  border-left: 4px solid var(--turquoise);
}

.oracle-method-flow li:nth-child(1) { border-left-color: var(--turquoise); }
.oracle-method-flow li:nth-child(2) { border-left-color: var(--orange); }
.oracle-method-flow li:nth-child(3) { border-left-color: var(--burgundy); }
.oracle-method-flow li:nth-child(4) { border-left-color: var(--lime); }
.oracle-method-flow li:nth-child(5) { border-left-color: var(--turquoise); }

.oracle-method-flow li b {
  display: block;
  font-size: 0.95rem;
}

.oracle-method-flow li span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.oracle-method-flow .proto-num { color: var(--white); }
/* Question mark: absolute top-right of each step (mirrors local-transcription .proto-q) */
.oracle-method-flow .proto-q {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 10%, var(--white));
  color: color-mix(in srgb, var(--ink) 50%, var(--white));
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  z-index: 2;
}

.oracle-method-icon {
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
}

.oracle-hero-answer {
  margin-top: auto;
  padding: 14px 16px;
  border-left: 4px solid var(--burgundy);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Content sections: natural height, dense rhythm — override the full-screen media rule */
.section.oracle-section {
  display: block;
  min-height: 0;
  padding-block: clamp(44px, 6vh, 88px);
}

.oracle-qmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.oracle-qmap-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.oracle-qmap-item h3 {
  font-size: 1.05rem;
}

.oracle-qmap-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.oracle-methods-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.oracle-method-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
}

.oracle-method-card p {
  margin: 0;
}

.oracle-method-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.oracle-method-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.oracle-method-why {
  color: var(--turquoise);
}

.oracle-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.oracle-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.oracle-timeline li {
  padding-left: 0;
  font-size: 0.9rem;
}

.oracle-timeline b {
  display: inline-block;
  min-width: 96px;
  font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  color: var(--burgundy);
}

.oracle-cases {
  align-items: stretch;
}

.oracle-case {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
}

.oracle-case-task {
  font-style: italic;
  color: var(--ink-soft);
}

.oracle-case .feature-list,
.oracle-case-result {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
}

.oracle-case-result li {
  padding-left: 20px;
  position: relative;
}

.oracle-case-result li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 800;
}

.oracle-method-card[data-tone="orange"],
.oracle-qmap-item[data-tone="orange"],
.oracle-case[data-tone="orange"] { border-top-color: var(--orange); }
.oracle-method-card[data-tone="burgundy"],
.oracle-case[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.oracle-method-card[data-tone="lime"],
.oracle-case[data-tone="lime"] { border-top-color: var(--lime); }
.oracle-method-card[data-tone="turquoise"],
.oracle-case[data-tone="turquoise"] { border-top-color: var(--turquoise); }

/* FAQ: two independent columns so opening one never affects the adjacent column */
.section.oracle-faq-section {
  display: block;
  min-height: 0;
  padding-block: clamp(44px, 6vh, 88px);
}

.oracle-faq-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.oracle-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  align-items: start;
}

.oracle-faq-col {
  border-top: 1px solid var(--ink);
}

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

.oracle-faq-item > summary {
  position: relative;
  padding: 20px 48px 20px 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.oracle-faq-item > summary::-webkit-details-marker {
  display: none;
}

.oracle-faq-item > summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  content: "+";
  font-family: monospace;
  line-height: 21px;
  text-align: center;
  transform: translateY(-50%);
}

.oracle-faq-item[open] > summary::after {
  content: "\2212";
}

.oracle-faq-item .faq-answer {
  max-width: none;
  padding: 0 32px 22px 0;
}

@media (max-width: 999px) {
  .oracle-hero-grid {
    grid-template-columns: 1fr;
  }

  .oracle-qmap,
  .oracle-methods-grid,
  .oracle-artifacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .oracle-faq-col + .oracle-faq-col {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .oracle-hero-badges,
  .oracle-hero-badges-compact,
  .oracle-qmap,
  .oracle-methods-grid,
  .oracle-artifacts-grid {
    grid-template-columns: 1fr;
  }
  .oracle-hero-flow-img { display: none; }
}

/* ===== Oracle hero: one-screen + demo button + footnote + compact methods + hover popup ===== */
.oracle-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 77px);
  padding-block: clamp(16px, 2.4vh, 36px);
}
.oracle-hero-copy h1 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.oracle-hero-lead {
  margin-bottom: 16px;
  font-size: clamp(0.98rem, 1.25vw, 1.14rem);
  line-height: 1.45;
}

/* Footnote marker + text */
.footnote-mark { color: var(--burgundy); font-weight: 900; }
sup.footnote-mark { font-size: 0.7em; padding-left: 1px; }
.oracle-hero-footnote {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.oracle-hero-footnote .footnote-mark { margin-right: 4px; }

/* Demo button: burgundy default, turquoise on hover */
.button-demo { border-color: var(--burgundy); background: var(--burgundy); color: var(--white); }
.button-demo:hover,
.button-demo:focus-visible,
.button-demo:active {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: var(--white);
}

/* Methods box compact so all 5 + summary fit one screen */
.oracle-hero-methods { gap: 10px; padding: clamp(16px, 1.6vw, 22px); }
.oracle-method-flow { gap: 8px; }
.oracle-method-flow li {
  display: block;
  position: relative;
  padding: 9px 13px;
  cursor: default;
  transition: box-shadow 160ms ease;
}
.oracle-method-flow .proto-q:hover {
  background: var(--turquoise);
  color: var(--white);
}
.oracle-method-line { display: flex; align-items: center; gap: 8px; }
.oracle-method-line b { font-size: 0.95rem; line-height: 1.2; }
.oracle-method-icon { flex: none; font-size: 1.2rem; line-height: 1; }
.oracle-method-tag {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.oracle-hero-answer { margin-top: 6px; padding: 12px 14px; font-size: 0.85rem; }

/* Method note: inline on mobile, centered popup on desktop hover (mirrors home ".workflow-step-note") */
.oracle-method-note {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--turquoise) 30%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--turquoise) 9%, white);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}
.oracle-method-note strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 0.95rem; }
.oracle-method-note p { margin: 0 0 6px; color: inherit; font-size: inherit; }
.oracle-method-note p:last-child { margin-bottom: 0; }
.oracle-method-note b { color: var(--ink); }

@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .oracle-method-note {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    width: clamp(50vw, 80vw, 900px);
    max-height: 80vh;
    margin: 0;
    padding: clamp(28px, 3vw, 44px);
    overflow: auto;
    opacity: 0;
    border-color: var(--turquoise);
    background: linear-gradient(125deg, #fff 0 40%, var(--turquoise-pale) 100%);
    box-shadow: 0 32px 100px rgba(38, 61, 75, 0.32);
    font-size: 1.02rem;
    line-height: 1.6;
    transform: translate(-50%, -46%);
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
  }
  .oracle-method-note strong { margin-bottom: 14px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
  .oracle-method-note p { margin-bottom: 12px; font-size: 1rem; }
  .oracle-method-flow .proto-q:hover ~ .oracle-method-note {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}
@media (max-width: 999px) { .oracle-hero { min-height: auto; } }

/* ===== Agent pages (custdev / muse): hero по контенту, без пустых полос ===== */
.oracle-hero.agent-hero { min-height: 0; padding-block: clamp(28px, 4vh, 52px); }
.oracle-hero.agent-hero .oracle-hero-copy h1 { margin-bottom: 14px; }

/* ===== Agent Muse: one canonical landing page from .devdata/muse_landing.md ===== */
.muse-landing-hero {
  padding-block: clamp(42px, 6vw, 88px);
  background: var(--white);
}

.muse-landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}

.muse-landing-hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.muse-landing-lead {
  max-width: 62ch;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.55;
}

.muse-landing-proof {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--lime);
  background: var(--white);
  box-shadow: var(--shadow);
}

.muse-landing-proof::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--orange) 25% 50%, var(--burgundy) 50% 75%, var(--lime) 75% 100%);
  content: "";
}

.muse-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.muse-proof-grid > div {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  background: var(--white);
}

.muse-proof-grid strong {
  color: var(--burgundy);
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1;
}

.muse-proof-grid span,
.muse-proof-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.muse-proof-note {
  margin: 22px 0 0;
}

.muse-landing-copy {
  max-width: var(--content);
}

.muse-landing-copy h1 {
  display: none;
}

.muse-landing-copy h2 {
  max-width: 26ch;
  margin-top: clamp(42px, 6vw, 82px);
}

.muse-landing-copy h3 {
  max-width: 54ch;
  margin-top: 30px;
  color: var(--burgundy);
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}

.muse-landing-copy p,
.muse-landing-copy li {
  max-width: 78ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.muse-landing-copy strong {
  color: var(--ink);
}

.muse-landing-copy hr {
  margin: clamp(42px, 6vw, 82px) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.muse-landing-list {
  display: grid;
  gap: 10px;
  max-width: 78ch;
  margin: 16px 0 24px;
  padding-left: 1.3em;
}

.muse-landing-copy blockquote {
  max-width: 78ch;
  margin: 24px 0;
  padding: 22px 26px;
  border-left: 5px solid var(--lime);
  background: var(--white);
}

.muse-landing-copy blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.muse-landing-faq {
  margin-top: clamp(42px, 6vw, 82px);
}

.muse-faq-heading h2 {
  margin-top: 12px;
}

.muse-faq-heading p {
  margin-bottom: 0;
}

.muse-landing-faq .oracle-faq-toolbar {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .muse-landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .muse-landing-hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .muse-landing-hero {
    padding-block: 42px 56px;
  }

  .muse-landing-proof {
    padding: 22px 16px;
  }

  .muse-proof-grid > div {
    min-height: 100px;
    padding: 14px;
  }
}

/* ===== Workflow / Method pages: hero по контенту, без пустых полос ===== */
.oracle-hero.workflow-hero, .oracle-hero.method-hero { min-height: 0; padding-block: clamp(20px, 3vh, 40px); }
.oracle-hero.workflow-hero .oracle-hero-copy h1, .oracle-hero.method-hero .oracle-hero-copy h1 { margin-bottom: 10px; }
.oracle-hero.workflow-hero .oracle-hero-lead { margin-bottom: 0; font-size: clamp(0.95rem, 1.2vw, 1.1rem); line-height: 1.4; }
.oracle-hero.workflow-hero .hero-actions { margin-top: 10px; }
.oracle-hero.workflow-hero .honest-note { margin-top: 6px; }
.oracle-hero.workflow-hero .oracle-hero-methods { gap: 8px; padding: clamp(14px, 1.4vw, 20px); }
/* Definition line between H1 and lead */
.oracle-hero-definition { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; color: var(--ink); margin-bottom: 14px; max-width: 640px; }
/* Gate card answer text */
.gate-answer { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; }
/* Links inside lead text */
.oracle-hero-lead a { color: var(--turquoise); text-decoration: underline; text-underline-offset: 2px; }
.oracle-hero-lead a:hover { color: var(--turquoise-bright); }
/* Method hero (5 steps): compact to fit viewport */
.method-hero .oracle-hero-methods { gap: 6px; padding: clamp(12px, 1.2vw, 18px); }
.method-hero .oracle-method-flow { gap: 4px; }
.method-hero .oracle-method-flow li { padding: 6px 10px 6px 12px; }
.method-hero .oracle-method-tag { -webkit-line-clamp: 1; }

/* ===== Section 04 (Локально): ONE-SCREEN layout + colored header ===== */
#local { padding-block: clamp(36px, 4vh, 56px); }
#local .section-head { margin-bottom: 24px; }
#local .feature-list li { margin-bottom: 10px; font-size: 0.95rem; line-height: 1.45; }
.oracle-local-layout { display: grid; gap: 24px; align-items: start; }
.oracle-local-layout > * { min-width: 0; }
@media (min-width: 1000px) {
  .oracle-local-layout { grid-template-columns: minmax(240px, 0.8fr) minmax(540px, 1.2fr); }
}
.oracle-matrix { min-width: 520px; }
.oracle-matrix th, .oracle-matrix td { padding: 12px 14px; font-size: 0.88rem; line-height: 1.4; }
.oracle-matrix thead th { color: #fff; font-size: 0.9rem; font-weight: 700; padding: 13px 14px; letter-spacing: 0.01em; }
.oracle-matrix thead th:first-child { background: var(--white); color: var(--ink); }
.oracle-matrix thead th:nth-child(2) { background: #18B9B2; }
.oracle-matrix thead th:nth-child(3) { background: var(--burgundy); }
.oracle-matrix tbody th { background: var(--white); color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .oracle-matrix { min-width: 0; }
  .oracle-matrix th, .oracle-matrix td { padding: 9px 8px; font-size: 0.78rem; }
}

/* ============ Local Transcription (proto-*) — dense landing in oracle style ============ */
@media (min-width: 1000px) {
  .proto-hero .oracle-hero-copy h1 { max-width: 22ch; font-size: clamp(2.4rem, 3.9vw, 4.1rem); line-height: 1.03; }
  .proto-hero .oracle-hero-lead { max-width: 58ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
}

/* Premium panel: no flat turquoise fill — white card, hairline border, deep soft shadow, brand gradient hairline */
.proto-hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--burgundy) 28%, var(--line));
  background-color: var(--white);
  background-image:
    linear-gradient(color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 28px 70px rgba(116, 24, 58, 0.12);
}
.proto-hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--orange) 25% 50%, var(--burgundy) 50% 75%, var(--lime) 75% 100%);
}
.proto-hero-panel .oracle-method-flow li {
  border: 0;
  border-left: 4px solid var(--turquoise);
  box-shadow: none;
}
.proto-hero-panel .oracle-method-flow li:nth-child(2) { border-left-color: var(--orange); }
.proto-hero-panel .oracle-method-flow li:nth-child(3) { border-left-color: var(--burgundy); }
.proto-hero-panel .oracle-method-flow li:nth-child(4) { border-left-color: var(--lime); }
.proto-hero-panel .oracle-hero-answer {
  border: 0;
  border-left: 4px solid var(--burgundy);
  background: var(--white);
}

.proto-hero-panel .proto-hero-figure,
.proto-hero-panel .proto-q,
.proto-hero-panel .oracle-method-note {
  display: none;
}

/* Номер пункта — сплошной кружок основного цвета (без градиентов); «?» — светло-графитовый в сером кружке */
.proto-hero-panel .oracle-method-flow li { position: relative; }
.proto-hero-panel .oracle-method-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.proto-hero-panel .oracle-method-icon[data-tone="orange"] { background: var(--orange); }
.proto-hero-panel .oracle-method-icon[data-tone="burgundy"] { background: var(--burgundy); }
.proto-hero-panel .oracle-method-icon[data-tone="lime"] { background: var(--lime); }
.proto-hero-panel .oracle-method-flow li:nth-child(1) .oracle-method-icon { background: var(--turquoise); }
.proto-hero-panel .oracle-method-flow li:nth-child(2) .oracle-method-icon { background: var(--orange); }
.proto-hero-panel .oracle-method-flow li:nth-child(3) .oracle-method-icon { background: var(--lime); }
.proto-hero-panel .oracle-method-flow li:nth-child(4) .oracle-method-icon { background: var(--burgundy); }
.proto-hero-panel .proto-q {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 13%, var(--white));
  color: color-mix(in srgb, var(--ink) 60%, var(--white));
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

/* Дополнительная информация — только при наведении на «?» (десктоп) */
@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .proto-hero-panel .oracle-method-flow li:hover .oracle-method-note,
  .proto-hero-panel .oracle-method-flow li:focus-within .oracle-method-note,
  .workflow-hero .oracle-method-flow li:hover .oracle-method-note,
  .workflow-hero .oracle-method-flow li:focus-within .oracle-method-note,
  .method-hero .oracle-method-flow li:hover .oracle-method-note,
  .method-hero .oracle-method-flow li:focus-within .oracle-method-note {
    opacity: 0;
    transform: translate(-50%, -46%);
    pointer-events: none;
  }
  .proto-hero-panel .oracle-method-flow li .proto-q:hover ~ .oracle-method-note,
  .proto-hero-panel .oracle-method-flow li .proto-q:focus ~ .oracle-method-note,
  .workflow-hero .oracle-method-flow li .proto-q:hover ~ .oracle-method-note,
  .workflow-hero .oracle-method-flow li .proto-q:focus ~ .oracle-method-note,
  .method-hero .oracle-method-flow li .proto-q:hover ~ .oracle-method-note,
  .method-hero .oracle-method-flow li .proto-q:focus ~ .oracle-method-note {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}
/* ===== Info-panel cards: question-mark tooltip (mirrors .proto-hero-panel pattern) ===== */
.info-panel { position: relative; }
.info-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.info-panel-head h3 { margin: 0; }
.info-panel .proto-q {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 10%, var(--white));
  color: color-mix(in srgb, var(--ink) 50%, var(--white));
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 180ms ease, color 180ms ease;
}
.info-panel .proto-q:hover {
  background: var(--turquoise);
  color: var(--white);
}
.info-panel .proto-q-tip {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  width: clamp(50vw, 80vw, 900px);
  max-height: 80vh;
  margin: 0;
  padding: clamp(28px, 3vw, 48px);
  overflow: auto;
  opacity: 0;
  border: 2px solid var(--turquoise);
  border-radius: 16px;
  background: linear-gradient(125deg, #fff 0 40%, var(--turquoise-pale) 100%);
  box-shadow: 0 32px 100px rgba(38, 61, 75, 0.32);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  transform: translate(-50%, -46%);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.info-panel .proto-q-tip strong { display: block; margin-bottom: 10px; font-size: 1.15rem; }
.info-panel .proto-q-tip p { margin: 0 0 8px; color: var(--ink-soft); }
.info-panel .proto-q-tip p:last-child { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) and (min-width: 801px) {
  .info-panel .proto-q:hover ~ .proto-q-tip {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}
/* Mobile: tip shown inline below the card */
@media (max-width: 800px) {
  .info-panel .proto-q-tip {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 10px;
    box-shadow: none;
    border: 1px solid var(--line);
    background: var(--cool-50);
    font-size: 0.85rem;
    padding: 12px 14px;
  }
  .info-panel .proto-q-tip strong { font-size: 1rem; }
}

/* Секция 01 «Проблема»: номер пункта — сплошной кружок основного цвета (без градиентов) */
.proto-risk > .proto-num { margin-bottom: 12px; }
.proto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  flex: none;
}
.proto-num[data-tone="orange"] { background: var(--orange); }
.proto-num[data-tone="burgundy"] { background: var(--burgundy); }
.proto-num[data-tone="lime"] { background: var(--lime); }
/* Вся секция 01 вмещается в один экран (десктоп) */
@media (min-width: 1000px) {
  .proto-problem { padding-block: clamp(44px, 5.5vw, 76px); }
  .proto-problem .section-head { margin-bottom: 26px; }
  .proto-risk { padding: 18px 18px 20px; }
  .proto-risk h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.25; }
  .proto-risk > p:last-child { font-size: 0.86rem; line-height: 1.5; }
  .proto-problem .limitations { margin-top: 20px; padding: 14px 22px; }
  .proto-problem .limitations p { font-size: 0.92rem; line-height: 1.5; }
}
.proto-hero-figure {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-align: center;
}
.proto-hero-figure img {
  width: 100%;
  max-height: clamp(84px, 12vh, 132px);
  object-fit: contain;
}

.proto-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.proto-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.proto-step[data-tone="turquoise"] { border-top-color: var(--turquoise); }
.proto-step[data-tone="orange"] { border-top-color: var(--orange); }
.proto-step[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.proto-step[data-tone="lime"] { border-top-color: var(--lime); }
.proto-step h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.proto-step h2 { margin: 0; font-size: 1.05rem; }
.proto-step .proto-num { display: inline-flex; width: 26px; height: 26px; margin-bottom: 0; }
.proto-step-icon { display: inline-block; margin-bottom: 0; }
.proto-step p { margin: 2px 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); flex-basis: 100%; }
.proto-footnote { margin-top: 18px; max-width: none; }
@media (min-width: 700px) {
  .proto-footnote .fn-line { white-space: nowrap; }
}
/* ── Блоки 05–08: иконки, инфографика, тоновые акценты ── */
.proto-panel-icon { width: 54px; height: 54px; object-fit: contain; margin-bottom: 10px; }
.proto-micro { width: 30px; height: 30px; object-fit: contain; }
.proto-step h3 { margin: 0; font-size: 1.05rem; }
.proto-audience-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.proto-audience-figure { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); display: flex; align-items: center; }
.proto-audience-figure img { display: block; width: 100%; height: auto; }
.proto-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proto-section .oracle-faq-item { border-left: 4px solid var(--turquoise); padding-left: 14px; }
.proto-section .oracle-faq-item[data-tone="orange"] { border-left-color: var(--orange); }
.proto-section .oracle-faq-item[data-tone="burgundy"] { border-left-color: var(--burgundy); }
.proto-section .oracle-faq-item[data-tone="lime"] { border-left-color: var(--lime); }
.proto-section .oracle-faq-item[data-tone="orange"] > summary::after { border-color: var(--orange); color: var(--orange); }
.proto-section .oracle-faq-item[data-tone="burgundy"] > summary::after { border-color: var(--burgundy); color: var(--burgundy); }
.proto-section .oracle-faq-item[data-tone="lime"] > summary::after { border-color: var(--lime); color: var(--lime); }
@media (max-width: 900px) {
  .proto-audience-layout { grid-template-columns: 1fr; }
  .proto-audience-figure { max-width: 320px; }
}
@media (max-width: 640px) {
  .proto-audience { grid-template-columns: 1fr; }
}
.proto-step-icon { font-size: 1.5rem; line-height: 1; }

.proto-docs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.proto-doc {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.proto-doc[data-tone="turquoise"] { border-top-color: var(--turquoise); }
.proto-doc[data-tone="orange"] { border-top-color: var(--orange); }
.proto-doc[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.proto-doc[data-tone="lime"] { border-top-color: var(--lime); }
.proto-doc > .proto-num { margin-bottom: 10px; }
.proto-doc h3 { margin: 0 0 8px; font-size: 1.08rem; }
.proto-doc p { margin: 0 0 8px; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.proto-doc-who { border-top: 1px dashed var(--line); padding-top: 8px; }
.proto-doc-who b { color: var(--ink); }
.proto-sequence {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 4px solid var(--burgundy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.proto-sequence b { color: var(--ink); }

.proto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.proto-chips span {
  padding: 5px 11px;
  border: 1px solid var(--turquoise);
  border-radius: 999px;
  background: color-mix(in srgb, var(--turquoise) 8%, white);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 999px) {
  .proto-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proto-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .proto-pipeline,
  .proto-docs { grid-template-columns: 1fr; }
  .proto-hero-figure img { max-height: 120px; }
}

/* ===== Amail: shared palette only; no page-owned colors or gradients ===== */
.amail-page { background: var(--white); color: var(--ink); font-size: 17px; line-height: 1.55; }
.amail-page *, .amail-page *::before, .amail-page *::after { min-width: 0; }
.amail-shell { width: min(84vw, 1560px); margin-inline: auto; }
.amail-hero { min-height: calc(100svh - 76px); padding: clamp(30px, 3.2vw, 58px) 0; background: var(--cool-25); border-bottom: 1px solid var(--line); }
.amail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr); gap: clamp(38px, 5vw, 86px); align-items: center; }
.amail-hero-copy { padding-left: clamp(20px, 2.5vw, 40px); border-left: 5px solid var(--burgundy); }
.amail-kicker, .amail-index { margin-bottom: 18px; color: var(--burgundy); font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.amail-kicker span { display: inline-flex; margin-right: 12px; padding: 7px 11px; border: 1px solid var(--burgundy); border-radius: 999px; background: var(--burgundy); color: var(--white); }
.amail-hero h1 { max-width: none; margin-bottom: 24px; color: var(--ink); font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(3rem, 4.3vw, 5.2rem); line-height: 0.96; letter-spacing: -0.065em; }
.amail-lead { max-width: 70ch; margin-bottom: 26px; color: var(--ink-soft); font-size: clamp(1rem, 1.15vw, 1.22rem); line-height: 1.6; }
.amail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.amail-actions .button { min-height: 52px; padding-inline: 24px; }
.amail-actions .button-primary { border-color: var(--burgundy); background: var(--burgundy); color: var(--white); }
.amail-actions .button-primary:hover { border-color: var(--turquoise-bright); background: var(--turquoise-bright); color: var(--white); }
.amail-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 20px; color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; list-style: none; }
.amail-trust li { position: relative; padding-left: 15px; }
.amail-trust li::before { position: absolute; top: 0.55em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); content: ""; }
.amail-positioning { max-width: 66ch; margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--lime); background: var(--white); color: var(--ink-soft); font-size: 0.9rem; }

.amail-inbox-demo { overflow: hidden; border: 1px solid var(--line-strong); border-top: 6px solid var(--turquoise); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.amail-demo-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--cool-50); font-size: 0.74rem; }
.amail-demo-top > span { display: flex; gap: 5px; }
.amail-demo-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.amail-demo-top i:nth-child(2) { background: var(--orange); }
.amail-demo-top i:nth-child(3) { background: var(--lime); }
.amail-demo-top small { justify-self: end; color: var(--turquoise); font-weight: 800; }
.amail-demo-mail { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 24px 26px 16px; }
.amail-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: var(--radius-sm); background: var(--turquoise-pale); color: var(--turquoise); font-weight: 900; }
.amail-demo-mail strong, .amail-demo-mail span { display: block; }
.amail-demo-mail strong { font-size: 0.98rem; }
.amail-demo-mail div span { margin-top: 3px; color: var(--ink-soft); font-size: 0.74rem; }
.amail-priority { padding: 7px 10px; border: 1px solid var(--danger); border-radius: var(--radius-sm); background: var(--white); color: var(--danger); font-size: 0.76rem; font-weight: 900; }
.amail-demo-text { margin: 0 26px 16px; padding: 16px; border: 1px solid var(--line); background: var(--cool-50); color: var(--ink-soft); font-size: 0.88rem; }
.amail-demo-facts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 26px 18px; }
.amail-demo-facts span { padding: 6px 9px; border: 1px solid var(--orange); border-radius: 999px; background: var(--orange-pale); color: var(--ink); font-size: 0.7rem; font-weight: 800; }
.amail-demo-route { display: grid; grid-template-columns: 1fr 0.65fr; gap: 10px; padding: 0 26px 14px; }
.amail-demo-route div { padding: 13px 14px; border: 1px solid var(--line); background: var(--white); }
.amail-demo-route small, .amail-demo-route b, .amail-demo-decision small, .amail-demo-decision b, .amail-demo-decision span { display: block; }
.amail-demo-route small, .amail-demo-decision small { color: var(--ink-soft); font-size: 0.67rem; text-transform: uppercase; }
.amail-demo-route b { margin-top: 4px; font-size: 0.82rem; }
.amail-demo-decision { display: grid; grid-template-columns: 56px 1fr; gap: 13px; align-items: center; margin: 0 26px 20px; padding: 14px; border-left: 4px solid var(--lime); background: var(--lime-pale); }
.amail-demo-decision img { width: 56px; height: 56px; object-fit: contain; }
.amail-demo-decision b { margin: 3px 0; font-size: 0.84rem; }
.amail-demo-decision span { color: var(--burgundy); font-size: 0.7rem; font-weight: 800; }
.amail-demo-footer { display: flex; justify-content: space-between; gap: 16px; padding: 14px 26px; background: var(--burgundy); color: var(--white); font-size: 0.7rem; }

.amail-section { padding: clamp(76px, 8vw, 132px) 0; }
.amail-section-mint { background: var(--turquoise-pale); }
.amail-section-soft { background: var(--cool-50); }
.amail-problem { padding-block: clamp(64px, 6vw, 96px); }
.amail-problem-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: clamp(44px, 8vw, 130px); align-items: center; }
.amail-page h2 { max-width: 19ch; margin-bottom: 22px; color: var(--ink); font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(2.35rem, 4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.055em; }
.amail-problem-grid > div:first-child > p:last-child, .amail-section-head > p, .amail-cta-grid > div:first-child > p:not(.amail-index) { color: var(--ink-soft); }
.amail-question-card { padding: clamp(26px, 3vw, 42px); border: 1px solid var(--line); border-top: 5px solid var(--burgundy); background: var(--white); box-shadow: var(--shadow); }
.amail-question-card p { font-weight: 800; }
.amail-question-card ul, .amail-boundary ul { display: grid; gap: 8px; padding-left: 20px; color: var(--ink-soft); }
.amail-question-card strong { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--turquoise); font-size: 1.08rem; }
.amail-section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr); gap: clamp(30px, 7vw, 100px); align-items: end; margin-bottom: clamp(38px, 5vw, 70px); }
.amail-section-head h2 { margin-bottom: 0; }
.amail-section-head > p { margin: 0; }

.amail-workflow { display: grid; grid-template-columns: repeat(7, minmax(155px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.amail-workflow li { position: relative; min-height: 320px; padding: 18px; border: 1px solid var(--line); border-top: 5px solid var(--step-accent); background: var(--white); }
.amail-workflow li:nth-child(4n+1) { --step-accent: var(--turquoise); }
.amail-workflow li:nth-child(4n+2) { --step-accent: var(--orange); }
.amail-workflow li:nth-child(4n+3) { --step-accent: var(--burgundy); }
.amail-workflow li:nth-child(4n+4) { --step-accent: var(--lime); }
.amail-workflow li::after { position: absolute; z-index: 2; top: 42px; right: -10px; color: var(--burgundy); content: "→"; font-weight: 900; }
.amail-workflow li:last-child::after { display: none; }
.amail-workflow img { width: 58px; height: 58px; margin-bottom: 20px; object-fit: contain; }
.amail-workflow span, .amail-benefits span, .amail-cases span { color: var(--burgundy); font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.amail-workflow h3 { margin: 8px 0 12px; font-size: 1rem; }
.amail-workflow p, .amail-benefits p, .amail-cases p { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

.amail-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.amail-benefits article { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-top: 5px solid var(--card-accent); background: var(--white); transition: transform 180ms ease, box-shadow 180ms ease; }
.amail-benefits article[data-tone="0"] { --card-accent: var(--turquoise); }
.amail-benefits article[data-tone="1"] { --card-accent: var(--burgundy); }
.amail-benefits article[data-tone="2"] { --card-accent: var(--orange); }
.amail-benefits article[data-tone="3"] { --card-accent: var(--lime); }
.amail-benefits article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amail-benefits h3, .amail-cases h3 { margin: 22px 0 12px; font-size: 1.28rem; }

.amail-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); scrollbar-color: var(--turquoise) var(--cool-100); }
.amail-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 0.82rem; }
.amail-table th, .amail-table td { padding: 17px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.amail-table th,
.amail-table td,
.amail-table thead th,
.amail-table tbody th,
.amail-table tbody td {
  background: var(--white);
}

.amail-table thead th {
  background: var(--cool-100);
  color: var(--ink);
  font-size: clamp(0.94rem, 1vw, 1.06rem);
  font-weight: 850;
  line-height: 1.25;
  text-shadow: none;
}

.amail-table-mail thead th:first-child {
  background: var(--white);
  color: var(--turquoise);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--turquoise) 18%, transparent);
}

.amail-table-mail thead th:nth-child(2) {
  background: var(--burgundy);
  color: var(--white);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 28%, transparent);
}

.amail-table-agents thead th:first-child {
  background: var(--white);
  color: var(--burgundy);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--burgundy) 18%, transparent);
}

.amail-table-agents thead th:nth-child(2) {
  background: var(--turquoise);
  color: var(--white);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--ink) 28%, transparent);
}

.amail-table tbody td:nth-child(2) {
  color: var(--burgundy);
  font-weight: 800;
  text-shadow: 0 1px 1px color-mix(in srgb, var(--burgundy) 18%, transparent);
}

.amail-table tbody th {
  width: 170px;
  color: var(--ink);
}
.amail-quote { max-width: 1080px; margin: 34px auto 0; padding: 28px 34px; border: 1px solid var(--line); border-left: 5px solid var(--lime); background: var(--white); color: var(--ink-soft); font-size: clamp(1.1rem, 1.6vw, 1.42rem); text-align: center; }

.amail-boundary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.amail-boundary > div { padding: 28px; border: 1px solid var(--line); border-top: 5px solid var(--turquoise); background: var(--turquoise-pale); }
.amail-boundary > div:first-child { border-top-color: var(--orange); background: var(--orange-pale); }
.amail-boundary h3 { font-size: 1.15rem; }
.amail-security { background: var(--cool-25); color: var(--ink); border-block: 1px solid var(--line); }
.amail-security .amail-index { color: var(--burgundy); }
.amail-safety { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.amail-safety article { min-height: 250px; padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--safety-accent); background: var(--white); }
.amail-safety article:nth-child(4n+1) { --safety-accent: var(--turquoise); }
.amail-safety article:nth-child(4n+2) { --safety-accent: var(--burgundy); }
.amail-safety article:nth-child(4n+3) { --safety-accent: var(--orange); }
.amail-safety article:nth-child(4n+4) { --safety-accent: var(--lime); }
.amail-safety span { display: inline-grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--safety-accent); border-radius: 50%; background: var(--safety-accent); color: var(--white); font-family: monospace; font-size: 0.75rem; font-weight: 700; }
.amail-safety article:nth-child(4n+4) span { color: var(--ink); }
.amail-safety h3 { margin: 26px 0 12px; color: var(--ink); font-size: 1rem; }
.amail-safety p { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

.amail-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.amail-cases article { min-height: 290px; padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--case-accent); background: var(--white); }
.amail-cases article:nth-child(4n+1) { --case-accent: var(--turquoise); }
.amail-cases article:nth-child(4n+2) { --case-accent: var(--orange); }
.amail-cases article:nth-child(4n+3) { --case-accent: var(--burgundy); }
.amail-cases article:nth-child(4n+4) { --case-accent: var(--lime); }
.amail-cases article > div { display: flex; align-items: center; gap: 12px; }
.amail-cases img { width: 62px; height: 62px; object-fit: contain; }
.amail-cases h3 { margin-top: 30px; }
.amail-faq-section { background: linear-gradient(135deg, var(--white) 0%, var(--turquoise-bright) 100%); }
.amail-faq-toolbar { display: flex; justify-content: flex-end; margin: calc(clamp(38px, 5vw, 70px) * -0.55) 0 18px; }
.amail-faq-toolbar .button { background: var(--white); }
.amail-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.amail-faq-column { display: grid; align-content: start; gap: 18px; min-width: 0; }
.amail-faq-item { --faq-accent: var(--turquoise); border: 1px solid var(--line); border-left: 4px solid var(--faq-accent); background: var(--white); }
.amail-faq-column:first-child .amail-faq-item:nth-child(2),
.amail-faq-column:last-child .amail-faq-item:nth-child(1) { --faq-accent: var(--burgundy); }
.amail-faq-column:first-child .amail-faq-item:nth-child(3),
.amail-faq-column:last-child .amail-faq-item:nth-child(2) { --faq-accent: var(--orange); }
.amail-faq-column:last-child .amail-faq-item:nth-child(3) { --faq-accent: var(--lime); }
.amail-faq summary { display: flex; justify-content: space-between; gap: 20px; min-height: 64px; padding: 20px 22px; color: var(--ink); font-weight: 850; cursor: pointer; list-style: none; }
.amail-faq summary::-webkit-details-marker { display: none; }
.amail-faq summary span { flex: none; color: var(--faq-accent); font-size: 1.25rem; transition: transform 180ms ease; }
.amail-faq details[open] summary span { transform: rotate(45deg); }
.amail-faq-answer { background: var(--white); }
.amail-faq details p { padding: 0 22px 22px; margin: 0; color: var(--ink-soft); }

.amail-cta { padding: clamp(80px, 8vw, 126px) 0; background: var(--cool-50); border-top: 1px solid var(--line); }
.amail-cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.55fr); gap: clamp(40px, 9vw, 140px); align-items: center; }
.amail-cta h2 { max-width: 14ch; }
.amail-cta-note { display: grid; padding: 30px; border: 1px solid var(--line); border-top: 6px solid var(--burgundy); background: var(--white); box-shadow: var(--shadow); }
.amail-cta-note img { width: 100px; height: 100px; margin-bottom: 24px; object-fit: contain; }
.amail-cta-note strong { color: var(--ink); font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.2; }

@media (max-width: 1280px) {
  .amail-shell { width: min(84vw, 1180px); }
  .amail-workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .amail-workflow li { min-height: 280px; }
  .amail-workflow li:nth-child(4)::after { display: none; }
  .amail-safety { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .amail-shell { width: min(84vw, 820px); }
  .amail-hero { min-height: 0; }
  .amail-hero-grid, .amail-problem-grid, .amail-section-head, .amail-cta-grid { grid-template-columns: 1fr; }
  .amail-inbox-demo { max-width: 680px; }
  .amail-section-head { align-items: start; }
  .amail-benefits, .amail-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amail-cta-note { max-width: 440px; }
}

@media (max-width: 620px) {
  .amail-page { font-size: 16px; }
  .amail-shell { width: min(84vw, 560px); }
  .amail-hero { padding-block: 32px 48px; }
  .amail-hero-grid { gap: 22px; }
  .amail-hero-copy { display: contents; padding-left: 0; border-left: 0; }
  .amail-kicker { grid-row: 1; margin-bottom: 0; }
  .amail-hero h1 { grid-row: 2; max-width: none; margin-bottom: 0; font-size: clamp(2.2rem, 10vw, 3.1rem); overflow-wrap: break-word; word-break: normal; }
  .amail-lead { grid-row: 3; margin-bottom: 0; }
  .amail-hero .amail-actions { grid-row: 4; }
  .amail-inbox-demo { grid-row: 5; }
  .amail-trust { grid-row: 6; display: grid; grid-template-columns: 1fr 1fr; margin-block: 4px 0; }
  .amail-positioning { grid-row: 7; }
  .amail-actions { display: grid; }
  .amail-actions .button { width: 100%; text-align: center; }
  .amail-demo-top { grid-template-columns: 1fr auto; }
  .amail-demo-top > b { display: none; }
  .amail-demo-mail { padding-inline: 16px; }
  .amail-demo-text { margin-inline: 16px; }
  .amail-demo-facts, .amail-demo-route { padding-inline: 16px; }
  .amail-demo-decision { margin-inline: 16px; }
  .amail-demo-footer { display: grid; padding-inline: 16px; }
  .amail-page h2 { font-size: clamp(2.05rem, 10vw, 3rem); overflow-wrap: break-word; word-break: normal; }
  .amail-section { padding-block: 68px; }
  .amail-workflow, .amail-benefits, .amail-safety, .amail-cases, .amail-faq, .amail-boundary { grid-template-columns: 1fr; }
  .amail-workflow li, .amail-benefits article, .amail-safety article, .amail-cases article { min-height: 0; }
  .amail-workflow li::after { display: none; }
  .amail-quote { padding-inline: 20px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .amail-benefits article { transition: none; }
}

/* ── Главная, блок 05 «Запуск»: цифра в однотонном кружке ── */
.home-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.home-step-head .proto-num { width: 32px; height: 32px; font-size: 1rem; }
.home-step-head .technical-label { margin: 0; }
/* ── Главная, блок 06 «Блог»: яркий дизайн, тоновые рельсы и подложки ── */
.home-blog-grid .article-card { background: var(--white); }
.home-blog-grid .article-card[data-tone="turquoise"] { border-top: 5px solid var(--turquoise); background: linear-gradient(160deg, var(--white) 55%, var(--turquoise-pale) 100%); }
.home-blog-grid .article-card[data-tone="orange"] { border-top: 5px solid var(--orange); background: linear-gradient(160deg, var(--white) 55%, var(--orange-pale) 100%); }
.home-blog-grid .article-card[data-tone="burgundy"] { border-top: 5px solid var(--burgundy); background: linear-gradient(160deg, var(--white) 55%, var(--burgundy-pale) 100%); }
.home-blog-grid .article-card[data-tone="lime"] { border-top: 5px solid var(--lime); background: linear-gradient(160deg, var(--white) 55%, var(--lime-pale) 100%); }
.home-blog-grid .proto-panel-icon { width: 64px; height: 64px; margin-bottom: 14px; }

.home-blog-carousel {
  min-width: 0;
}

.home-blog-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-blog-carousel-head .technical-label {
  margin: 0;
}

.home-blog-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-blog-carousel-status {
  color: var(--ink-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-blog-carousel-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.home-blog-carousel-button:hover,
.home-blog-carousel-button:focus-visible {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
  outline: none;
}

.home-blog-carousel-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.home-blog-carousel-button:disabled:hover {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.home-blog-carousel-viewport {
  overflow: hidden;
}

.home-blog-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 320ms ease;
  will-change: transform;
}

.home-blog-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

.home-blog-slide .article-card,
.home-blog-slide .article-card:first-child {
  min-height: 320px;
  height: 100%;
  background: var(--white);
}

.home-blog-slide .article-card[data-tone="turquoise"] { border-top: 5px solid var(--turquoise); background: linear-gradient(160deg, var(--white) 55%, var(--turquoise-pale) 100%); }
.home-blog-slide .article-card[data-tone="orange"] { border-top: 5px solid var(--orange); background: linear-gradient(160deg, var(--white) 55%, var(--orange-pale) 100%); }
.home-blog-slide .article-card[data-tone="burgundy"] { border-top: 5px solid var(--burgundy); background: linear-gradient(160deg, var(--white) 55%, var(--burgundy-pale) 100%); }
.home-blog-slide .article-card[data-tone="lime"] { border-top: 5px solid var(--lime); background: linear-gradient(160deg, var(--white) 55%, var(--lime-pale) 100%); }
.home-blog-slide .article-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.12;
}

.home-blog-slide .article-card > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .home-blog-grid { grid-template-columns: 1fr; }
  .home-blog-slide { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 560px) {
  .home-blog-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-blog-carousel-track {
    gap: 16px;
  }

  .home-blog-slide {
    flex-basis: 100%;
  }
}
/* ── Журнал: компактный первый экран ─────────────────────────────── */
.blog-hero,
.blog-section {
  display: block;
  min-height: 0;
}

.blog-hero {
  padding: 26px 0 22px;
}

.blog-hero .breadcrumb {
  margin-bottom: 12px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 28px;
  align-items: center;
}

.blog-hero h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 2.9vw, 2.7rem);
  line-height: 1.12;
}

.blog-hero .eyebrow {
  margin-bottom: 12px;
}

.blog-hero .answer-first {
  padding: 16px 18px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.blog-section {
  padding-block: 18px 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-grid .article-card {
  min-height: 0;
  padding: 16px 18px;
  background: var(--white);
  color: var(--ink);
}

.blog-grid .article-card:first-child {
  grid-row: auto;
  min-height: 0;
  background: var(--white);
}

.blog-grid .article-card[data-tone="turquoise"] {
  border-top: 5px solid var(--turquoise);
}

.blog-grid .article-card[data-tone="orange"] {
  border-top: 5px solid var(--orange);
}

.blog-grid .article-card[data-tone="burgundy"] {
  border-top: 5px solid var(--burgundy);
}

.blog-grid .article-card[data-tone="lime"] {
  border-top: 5px solid var(--lime);
}

.blog-grid .article-card .eyebrow {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.blog-grid .article-card h2 {
  margin-bottom: 6px;
  font-size: 1.13rem;
  line-height: 1.26;
}

.blog-grid .article-card > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.blog-grid .article-card .meta-row {
  padding-top: 10px;
}

.blog-principles {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.blog-principle-copy {
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--cool-50);
}

.blog-principle-copy .eyebrow {
  margin-bottom: 8px;
}

.blog-principle-copy h2 {
  margin-bottom: 6px;
  font-size: 1.13rem;
  line-height: 1.26;
}

.blog-principle-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.blog-principles .info-panel {
  padding: 16px 18px;
}

.blog-principles .info-panel h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.blog-principles .feature-list {
  gap: 6px;
}

.blog-principles .feature-list li {
  padding-left: 22px;
  font-size: 0.84rem;
  line-height: 1.35;
}

/* Blog principles grid (separate section before articles) */
.blog-principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.blog-principle-main {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--turquoise);
  background: var(--cool-50);
}

.blog-principle-main .eyebrow {
  margin-bottom: 10px;
}

.blog-principle-main h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.blog-principle-main p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-principle-not {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--burgundy);
  background: var(--white);
}

.blog-principle-not .technical-label {
  margin-bottom: 12px;
}

.blog-principle-not h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.blog-principle-not .feature-list {
  gap: 8px;
}

.blog-principle-not .feature-list li {
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Blog hero side panel with social links */
.blog-hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-side-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--cool-50);
}

.blog-side-card .technical-label {
  margin-bottom: 12px;
}

.blog-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-side-link:hover {
  border-color: var(--turquoise);
  box-shadow: 0 2px 8px rgba(8, 122, 120, 0.1);
}

.blog-side-link[data-tone="turquoise"] .blog-side-icon {
  color: var(--turquoise);
}

.blog-side-link[data-tone="orange"] .blog-side-icon {
  color: var(--orange);
}

.blog-side-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cool-50);
}

.blog-side-icon svg {
  width: 18px;
  height: 18px;
}

.blog-side-label {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.blog-side-desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-left: auto;
  white-space: nowrap;
}

.blog-hero-lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: none;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 18px;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.blog-filter-chip::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--turquoise);
}

.blog-filter-chip[data-tone="orange"]::before {
  background: var(--orange);
}

.blog-filter-chip[data-tone="burgundy"]::before {
  background: var(--burgundy);
}

.blog-filter-chip[data-tone="lime"]::before {
  background: var(--lime);
}

.blog-filter-chip.is-active {
  color: var(--ink);
}

.blog-filter-chip span {
  color: var(--ink-soft);
  font-weight: 700;
}

.blog-filter-chip.is-active span {
  color: var(--ink);
}

.blog-grid [hidden] {
  display: none !important;
}

/* Blog Extra layout: main column + right sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding: 8px 0 clamp(36px, 4.5vw, 64px);
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.blog-widget {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.blog-widget-title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--turquoise);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--turquoise);
}

.blog-widget-head .blog-widget-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.blog-widget-all {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
}

.blog-widget-all:hover {
  text-decoration: underline;
}

.blog-recent-row {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.blog-recent-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blog-recent-row b {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
}

.blog-recent-row span {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.blog-side-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-side-icon img {
  width: 20px;
  height: 20px;
}

.blog-side-icon .brand-mark {
  width: 20px;
  height: 20px;
}

.blog-side-icon .brand-mark::before {
  inset: 3px;
}

.blog-side-icon .brand-mark::after {
  right: -6px;
  width: 8px;
}

.blog-author-card b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.95rem;
}

.blog-author-card a {
  color: var(--ink);
  font-size: 0.8rem;
}

.blog-tg-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-tg-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
}

.blog-tg-card div {
  min-width: 0;
}

.blog-tg-card b {
  display: block;
  font-size: 0.85rem;
}

.blog-tg-card p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tg-card time {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.blog-video-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.blog-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.blog-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-video-card h3 {
  margin: 0;
  padding: 10px 12px 2px;
  font-size: 0.85rem;
  line-height: 1.3;
}

.blog-video-date {
  padding: 0 12px 10px;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* Blog category columns (Extra bottom pattern) */
/* ── Шаблон статьи блога: компактный hero, тоновый FAQ, виджеты в сайдбаре ── */
.article-hero .page-hero-grid {
  align-items: start;
}

.article-aside-full {
  position: static;
}

.page-hero-lead {
  margin: 14px 0 0;
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
}

.article-related {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-related strong {
  color: var(--ink);
}

.article-aside-widgets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.article-aside-widgets .blog-widget {
  padding: 12px 14px;
}

.article-aside-widgets .blog-widget-title {
  font-size: 0.66rem;
}

.article-aside-widgets .blog-side-link {
  flex-wrap: wrap;
}

.article-aside-widgets .blog-side-desc {
  margin-left: 0;
  width: 100%;
}

.article-faq {
  padding: 6px 0 30px;
}

.article-faq h2 {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.article-faq .oracle-faq-toolbar {
  margin: 4px 0 16px;
}

.article-faq .oracle-faq-item {
  padding-left: 14px;
  border-left: 4px solid var(--turquoise);
}

.article-faq .oracle-faq-item[data-tone="orange"] { border-left-color: var(--orange); }
.article-faq .oracle-faq-item[data-tone="burgundy"] { border-left-color: var(--burgundy); }
.article-faq .oracle-faq-item[data-tone="lime"] { border-left-color: var(--lime); }
.article-faq .oracle-faq-item[data-tone="turquoise"] > summary::after { border-color: var(--turquoise); color: var(--turquoise); }
.article-faq .oracle-faq-item[data-tone="orange"] > summary::after { border-color: var(--orange); color: var(--orange); }
.article-faq .oracle-faq-item[data-tone="lime"] > summary::after { border-color: var(--lime); color: var(--lime); }

@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-principles {
    grid-template-columns: 1fr;
  }

  .blog-principles-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-side {
    order: -1;
  }

  .blog-side-link {
    flex-wrap: wrap;
  }

  .blog-side-desc {
    margin-left: 0;
    width: 100%;
  }
}

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

/* ===== Pricing page ===== */
.pricing-hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 12px;
}
.pricing-hero-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.pricing-hero-card[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.pricing-hero-card[data-tone="orange"] { border-top-color: var(--orange); }
.pricing-hero-card[data-tone="lime"] { border-top-color: var(--lime); }
.pricing-hero-price {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 6px 0 8px;
  color: var(--ink);
}
.pricing-hero-hourly {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 4px 0 8px;
}
.pricing-hero-custom {
  padding: 14px 16px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--orange) 6%, var(--white));
}
.pricing-hero-custom h3 {
  font-size: 1.1rem;
  margin: 6px 0 8px;
}
.pricing-hero-custom p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* Pricing hero: compact to fit everything on one screen */
.oracle-hero.pricing-hero {
  min-height: 0;
  padding-block: clamp(16px, 2.5vh, 32px);
}
.oracle-hero.pricing-hero .oracle-hero-copy h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 8px;
  line-height: 1.15;
}
.oracle-hero.pricing-hero .oracle-hero-lead {
  margin-bottom: 0;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.35;
}
.oracle-hero.pricing-hero .pricing-hero-cards {
  margin: 10px 0 8px;
  gap: 10px;
}
.oracle-hero.pricing-hero .pricing-hero-card {
  padding: 10px 12px;
}
.oracle-hero.pricing-hero .pricing-hero-price {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  margin: 4px 0 6px;
}
.oracle-hero.pricing-hero .pricing-hero-card p {
  font-size: 0.82rem;
  line-height: 1.3;
}
.oracle-hero.pricing-hero .pricing-hero-hourly {
  font-size: 0.78rem;
  margin: 2px 0 6px;
}
.oracle-hero.pricing-hero .pricing-hero-custom {
  padding: 10px 12px;
}
.oracle-hero.pricing-hero .pricing-hero-custom h3 {
  font-size: 0.95rem;
  margin: 4px 0 6px;
}
.oracle-hero.pricing-hero .pricing-hero-custom p {
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.oracle-hero.pricing-hero .button-small {
  padding: 6px 12px;
  font-size: 0.82rem;
}
.oracle-hero.pricing-hero .oracle-hero-methods {
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.oracle-hero.pricing-hero .oracle-hero-flow-img {
  max-height: 120px;
}
.oracle-hero.pricing-hero .oracle-method-flow {
  gap: 4px;
}
.oracle-hero.pricing-hero .oracle-method-tag {
  font-size: 0.78rem;
}
.oracle-hero.pricing-hero .oracle-hero-answer {
  font-size: 0.82rem;
  margin-top: 8px;
}
/* Сноска стоимости в hero: тянется на всю ширину своей колонки (как блок «Индивидуальная разработка»)
   и переносится по границе колонки, чтобы не уходить под панель «Что входит в запуск» */
.oracle-hero.pricing-hero .proto-footnote { max-width: none; }
.oracle-hero.pricing-hero .proto-footnote .fn-line { white-space: normal; }

/* Pricing cards in section 01 */
.pricing-card { position: relative; }
.pricing-card-price {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0 12px;
}
.pricing-card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
  min-height: 44px;
}
.pricing-card-hourly {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 12px 0 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pricing-card-featured {
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(116, 24, 58, 0.12);
}
.pricing-card-custom {
  border-style: dashed;
  border-width: 2px;
}
.pricing-card-custom-price {
  color: var(--orange);
}
.pricing-card-custom-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 12px 0 16px;
}

@media (max-width: 800px) {
  .pricing-hero-cards { grid-template-columns: 1fr; }
}

/* ── Как это работает: вопрос — центрированное окно с подробным описанием ── */
button.proto-q {
  border: 0;
  padding: 0;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hiw-card .proto-q-tip,
.hiw-step .oracle-method-note {
  display: none;
}

.hiw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 18, 23, 0.45);
}

.hiw-modal-backdrop[hidden] {
  display: none;
}

.hiw-modal {
  position: relative;
  width: max(60vw, 640px);
  max-width: 94vw;
  min-height: 60vh;
  max-height: 90vh;
  overflow: auto;
  padding: clamp(28px, 4vw, 54px);
  border-top: 6px solid var(--turquoise);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(16, 18, 23, 0.28);
}

.hiw-modal[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.hiw-modal[data-tone="orange"] { border-top-color: var(--orange); }
.hiw-modal[data-tone="lime"] { border-top-color: var(--lime); }

.hiw-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.hiw-modal-body strong {
  display: block;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.hiw-modal-body p {
  max-width: none;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

.hiw-modal-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .hiw-modal {
    width: 94vw;
  }
}

/* Muse: premium clean palette and public-facing content rhythm. */
.muse-oracle-page {
  --muse-surface: #ffffff;
  --muse-surface-soft: #f7fcfc;
  --muse-line: #b9d8d7;
}

.muse-oracle-page .oracle-hero {
  background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 100%);
}

.muse-oracle-page .section-cool,
.muse-oracle-page .oracle-faq-section {
  background: var(--muse-surface-soft);
}

.muse-oracle-page .muse-oracle-intro {
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px solid var(--turquoise-bright);
  border-left: 6px solid var(--turquoise);
  background: var(--muse-surface);
  box-shadow: 0 12px 30px rgba(8, 122, 120, 0.08);
}

.muse-oracle-page .muse-oracle-intro p:last-child {
  margin-bottom: 0;
}

.muse-oracle-page .muse-oracle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.muse-oracle-page .muse-oracle-grid .oracle-method-card,
.muse-oracle-page .four-column .info-panel {
  min-height: 100%;
  border-color: var(--muse-line);
  box-shadow: 0 12px 28px rgba(16, 18, 23, 0.06);
}

.muse-oracle-page .muse-oracle-grid .oracle-method-card[data-tone="turquoise"],
.muse-oracle-page .four-column .info-panel[data-tone="turquoise"] { border-top-color: var(--turquoise); }
.muse-oracle-page .muse-oracle-grid .oracle-method-card[data-tone="orange"],
.muse-oracle-page .four-column .info-panel[data-tone="orange"] { border-top-color: var(--orange); }
.muse-oracle-page .muse-oracle-grid .oracle-method-card[data-tone="lime"],
.muse-oracle-page .four-column .info-panel[data-tone="lime"] { border-top-color: var(--lime); }
.muse-oracle-page .muse-oracle-grid .oracle-method-card[data-tone="burgundy"],
.muse-oracle-page .four-column .info-panel[data-tone="burgundy"] { border-top-color: var(--burgundy); }

.muse-oracle-page .muse-oracle-grid .oracle-method-card h3,
.muse-oracle-page .four-column .info-panel h3 {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.16;
}

.muse-oracle-page .muse-oracle-grid .oracle-method-card p,
.muse-oracle-page .four-column .info-panel p {
  color: var(--ink-soft);
}

.muse-oracle-page .oracle-method-flow li {
  background: rgba(255, 255, 255, 0.98);
}

.muse-oracle-page .oracle-faq-item {
  background: var(--muse-surface);
}

@media (max-width: 800px) {
  .muse-oracle-page .muse-oracle-intro {
    padding: 20px;
  }

  .muse-oracle-page .muse-oracle-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Unified dense pages for the remaining subagents ===== */
.subagent-standard-page {
  --screen-line: color-mix(in srgb, var(--subagent-color) 28%, var(--line));
  background: var(--white);
}

.subagent-standard-page .section-cool,
.proto-section.section-cool,
.amail-page .amail-section-mint,
.amail-page .amail-section-soft,
.amail-page .amail-faq-section {
  background: linear-gradient(135deg, #f4fbfb 0%, #ffffff 100%);
}

.subagent-standard-page h1,
.subagent-standard-page h2,
.subagent-standard-page h3 {
  max-width: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.subagent-standard-page .no-word-break {
  white-space: nowrap;
}

.subagent-standard-page [data-title-tone="turquoise"] { color: var(--turquoise-bright); }
.subagent-standard-page [data-title-tone="burgundy"] { color: var(--burgundy); }
.subagent-standard-page [data-title-tone="orange"] { color: var(--orange); }
.subagent-standard-page [data-title-tone="lime"] { color: var(--lime); }

.subagent-standard-hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 77px);
  padding-block: clamp(16px, 2.4vh, 30px);
  background:
    radial-gradient(circle at 4% 18%, color-mix(in srgb, var(--turquoise-bright) 9%, transparent), transparent 31%),
    radial-gradient(circle at 96% 86%, color-mix(in srgb, var(--lime) 10%, transparent), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfb 58%, #ffffff 100%);
}

.subagent-standard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, 0.97fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: stretch;
}

.subagent-standard-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subagent-standard-kicker,
.subagent-screen-index,
.subagent-standard-flow-title,
.subagent-hero-io span,
.subagent-passport-strip span,
.subagent-content-card > span,
.subagent-output-band span,
.subagent-tech-title span,
.subagent-metric-strip span {
  font-family: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subagent-standard-kicker {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.subagent-standard-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.15vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.subagent-standard-lead {
  max-width: 68ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.12vw, 1.03rem);
  line-height: 1.53;
}

.subagent-hero-io {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.subagent-hero-io article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--subagent-color);
  background: rgba(255, 255, 255, 0.9);
}

.subagent-hero-io article:last-child {
  border-top-color: var(--orange);
}

.subagent-hero-io span {
  display: block;
  margin-bottom: 5px;
  color: var(--burgundy);
  font-size: 0.66rem;
}

.subagent-hero-io p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.subagent-standard-hero-copy .hero-actions {
  margin-top: 0;
}

.subagent-hero-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  background: rgba(255, 255, 255, 0.86);
  list-style: none;
}

.subagent-hero-effect-grid li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.subagent-hero-effect-grid i {
  width: 7px;
  height: 7px;
  margin-top: 0.32em;
  border-radius: 50%;
  background: var(--effect-color);
}

.subagent-standard-flow {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: clamp(17px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--burgundy) 28%, var(--line));
  border-radius: 20px 20px 64px 20px;
  background-color: var(--white);
  background-image:
    linear-gradient(color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--burgundy) 8%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 28px 70px rgba(116, 24, 58, 0.12);
}

.subagent-standard-flow::before,
.subagent-final-action::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--turquoise) 0 25%, var(--orange) 25% 50%, var(--burgundy) 50% 75%, var(--lime) 75% 100%);
  content: "";
}

.subagent-standard-flow-title {
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.35;
}

.subagent-standard-symbol {
  display: none;
}

.subagent-standard-symbol img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.subagent-standard-flow ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subagent-standard-flow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 13px;
  border: 0;
  border-left: 4px solid var(--turquoise);
  border-radius: var(--radius-sm);
  background: rgba(251, 254, 254, 0.96);
}

.subagent-standard-flow li[data-tone="orange"] { border-left-color: var(--orange); }
.subagent-standard-flow li[data-tone="burgundy"] { border-left-color: var(--burgundy); }
.subagent-standard-flow li[data-tone="lime"] { border-left-color: var(--lime); }
.subagent-standard-flow li:nth-child(1) { border-left-color: var(--turquoise); }
.subagent-standard-flow li:nth-child(2) { border-left-color: var(--orange); }
.subagent-standard-flow li:nth-child(3) { border-left-color: var(--burgundy); }
.subagent-standard-flow li:nth-child(4) { border-left-color: var(--lime); }
.subagent-standard-flow li:nth-child(1) .proto-num { background: var(--turquoise); }
.subagent-standard-flow li:nth-child(2) .proto-num { background: var(--orange); }
.subagent-standard-flow li:nth-child(3) .proto-num { background: var(--lime); }
.subagent-standard-flow li:nth-child(4) .proto-num { background: var(--burgundy); }

.subagent-standard-flow li strong,
.subagent-standard-flow li small {
  display: block;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.subagent-standard-flow li strong {
  margin-bottom: 2px;
  font-size: 0.86rem;
  line-height: 1.2;
}

.subagent-standard-flow li small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.3;
}

.subagent-standard-summary {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--burgundy);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.subagent-standard-summary strong { color: var(--ink); }

.subagent-flow-boundaries {
  display: none;
}

.subagent-flow-boundaries article {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  background: var(--white);
}

.subagent-flow-boundaries article:last-child { border-top-color: var(--lime); }
.subagent-flow-boundaries span { display: block; margin-bottom: 4px; color: var(--burgundy); font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.58rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.subagent-flow-boundaries p { margin: 0; color: var(--ink-soft); font-size: 0.64rem; line-height: 1.34; }

.subagent-screen {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  padding-block: clamp(24px, 3.3vh, 36px);
}

.subagent-screen-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: clamp(22px, 3vh, 34px);
}

.subagent-screen-index {
  color: var(--burgundy);
  font-size: 0.72rem;
  line-height: 1.4;
}

.subagent-screen-index b {
  display: block;
  margin-bottom: 4px;
  color: var(--turquoise);
  font-size: 1.45rem;
}

.subagent-screen-head h2,
.subagent-final-grid h2 {
  margin: 0 0 8px;
  font-size: clamp(1.72rem, 2.65vw, 2.4rem);
  line-height: 1.12;
}

.subagent-screen-head p {
  max-width: 80ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.subagent-capability-grid,
.subagent-advantage-grid {
  display: grid;
  gap: 16px;
}

.subagent-capability-grid.is-six,
.subagent-advantage-grid.is-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subagent-capability-grid.is-four,
.subagent-advantage-grid.is-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subagent-content-card {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 1.7vw, 22px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(16, 18, 23, 0.055);
}

.subagent-content-card[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.subagent-content-card[data-tone="orange"] { border-top-color: var(--orange); }
.subagent-content-card[data-tone="lime"] { border-top-color: var(--lime); }

.subagent-content-card > span {
  display: block;
  margin-bottom: 7px;
  color: var(--burgundy);
  font-size: 0.66rem;
}

.subagent-content-card h3 {
  margin: 0 0 7px;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.2;
}

.subagent-content-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.48;
}

.subagent-passport-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.subagent-passport-strip article {
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
  background: var(--white);
}

.subagent-passport-strip article:last-child { border-top-color: var(--lime); }
.subagent-passport-strip span { display: block; margin-bottom: 4px; color: var(--burgundy); font-size: 0.65rem; }
.subagent-passport-strip p { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.42; }

.subagent-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.subagent-process-card {
  min-width: 0;
  min-height: 218px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--turquoise);
  background: var(--white);
}

.subagent-process-card[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.subagent-process-card[data-tone="orange"] { border-top-color: var(--orange); }
.subagent-process-card[data-tone="lime"] { border-top-color: var(--lime); }
.subagent-process-card .proto-num { margin-bottom: 16px; }
.subagent-process-card h3 { margin: 0 0 9px; font-size: 1.05rem; line-height: 1.2; }
.subagent-process-card p { margin: 0; color: var(--ink-soft); font-size: 0.83rem; line-height: 1.48; }

.subagent-output-band {
  display: grid;
  grid-template-columns: 72px minmax(240px, 0.9fr) minmax(300px, 1.1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--burgundy);
  background: var(--cool-50);
}

.subagent-output-band img { width: 64px; height: 64px; object-fit: contain; }
.subagent-output-band span { display: block; margin-bottom: 5px; color: var(--turquoise); font-size: 0.65rem; }
.subagent-output-band strong { display: block; font-size: 0.9rem; line-height: 1.4; }
.subagent-output-band p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }

.subagent-effect-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.subagent-effect-band li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.subagent-effect-band i { width: 8px; height: 8px; margin-top: 0.35em; border-radius: 50%; background: var(--effect-color); }

.subagent-roles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.subagent-role-table th,
.subagent-role-table td {
  padding: 13px 15px;
  font-size: 0.78rem;
  line-height: 1.42;
}

.subagent-tech-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--turquoise);
  background: var(--cool-50);
}

.subagent-tech-title {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.subagent-tech-title img { width: 56px; height: 56px; object-fit: contain; }
.subagent-tech-title span { display: block; margin-bottom: 3px; color: var(--turquoise); font-size: 0.65rem; }
.subagent-tech-title strong { font-size: 0.85rem; }
.subagent-tech-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.subagent-tech-panel li { padding: 9px 11px; border-top: 4px solid var(--turquoise); background: var(--white); }
.subagent-tech-panel li[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.subagent-tech-panel li[data-tone="orange"] { border-top-color: var(--orange); }
.subagent-tech-panel li[data-tone="lime"] { border-top-color: var(--lime); }
.subagent-tech-panel li b,
.subagent-tech-panel li span { display: block; }
.subagent-tech-panel li b { margin-bottom: 2px; font-size: 0.76rem; }
.subagent-tech-panel li span { color: var(--ink-soft); font-size: 0.7rem; line-height: 1.35; }

.subagent-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.subagent-metric-strip article {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--turquoise);
  background: var(--white);
}

.subagent-metric-strip article[data-tone="burgundy"] { border-top-color: var(--burgundy); }
.subagent-metric-strip article[data-tone="orange"] { border-top-color: var(--orange); }
.subagent-metric-strip article[data-tone="lime"] { border-top-color: var(--lime); }
.subagent-metric-strip span { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: 0.62rem; }
.subagent-metric-strip strong { display: block; font-size: 0.82rem; line-height: 1.3; }

.subagent-final-screen { background: linear-gradient(135deg, var(--cool-50), var(--white)); }
.subagent-final-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.subagent-boundary-card,
.subagent-final-action { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--white); }
.subagent-boundary-card { border-top: 7px solid var(--orange); }
.subagent-boundary-card > p:not(.eyebrow),
.subagent-final-action > p:not(.eyebrow) { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.subagent-boundary-card ul { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.subagent-boundary-card li { padding-top: 9px; border-top: 4px solid var(--burgundy); color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }
.subagent-final-action { position: relative; overflow: hidden; border-top: 0; }
.subagent-final-action > img { float: right; width: 112px; height: 112px; margin: 0 0 14px 18px; object-fit: contain; }
.subagent-final-action .hero-actions { clear: both; margin-top: 22px; }

@media (max-width: 1000px) {
  .subagent-standard-hero,
  .subagent-screen { min-height: 0; }
  .subagent-standard-hero { padding-block: 34px; }
  .subagent-standard-hero-grid { grid-template-columns: 1fr; }
  .subagent-standard-flow { max-width: 760px; }
  .subagent-standard-flow { min-height: 0; }
  .subagent-capability-grid.is-six,
  .subagent-advantage-grid.is-six,
  .subagent-capability-grid.is-four,
  .subagent-advantage-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subagent-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subagent-roles-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .subagent-standard-hero-copy h1 {
    max-width: none;
    font-size: 1.75rem;
    line-height: 1.14;
  }
  .subagent-standard-kicker { font-size: 0.64rem; line-height: 1.5; }
  .subagent-hero-io,
  .subagent-hero-effect-grid,
  .subagent-passport-strip,
  .subagent-capability-grid.is-six,
  .subagent-advantage-grid.is-six,
  .subagent-capability-grid.is-four,
  .subagent-advantage-grid.is-four,
  .subagent-process-grid,
  .subagent-effect-band,
  .subagent-metric-strip,
  .subagent-final-grid { grid-template-columns: 1fr; }
  .subagent-screen { padding-block: 24px; }
  .subagent-screen-head { grid-template-columns: 1fr; gap: 10px; }
  .subagent-screen-head h2,
  .subagent-final-grid h2 { font-size: 1.7rem; }
  .subagent-output-band { grid-template-columns: 58px minmax(0, 1fr); }
  .subagent-output-band p { grid-column: 1 / -1; }
  .subagent-standard-flow-title { font-size: 0.66rem; }
  .subagent-flow-boundaries { grid-template-columns: 1fr; }
  .subagent-role-table th,
  .subagent-role-table td { min-width: 150px; }
  .subagent-final-action > img { width: 86px; height: 86px; }
}

/* ===== Agent-CustDev: dense, language-safe content layout ===== */
.custdev-page .oracle-hero.agent-hero { padding-block: clamp(24px, 3vh, 42px); }
.custdev-page .oracle-hero-badges { gap: 10px; margin: 18px 0 12px; }
.custdev-page .hero-actions { margin: 18px 0 12px; }
.custdev-page .honest-note { max-width: 72ch; line-height: 1.5; }
.custdev-section-intro { max-width: 76ch; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.65; }
.custdev-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.custdev-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--turquoise); background: var(--white); overflow-wrap: anywhere; }
.custdev-card:nth-child(3n + 2) { border-top-color: var(--orange); }
.custdev-card:nth-child(3n) { border-top-color: var(--burgundy); }
.custdev-card h3 { margin-bottom: 10px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); hyphens: auto; }
.custdev-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.custdev-label { display: block; margin-bottom: 8px; color: var(--burgundy); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.custdev-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.custdev-flow > div { position: relative; min-width: 0; padding: 16px; border: 1px solid var(--line); background: var(--cool-50); overflow-wrap: anywhere; }
.custdev-flow > div:not(:last-child)::after { position: absolute; top: 50%; right: -9px; z-index: 1; color: var(--burgundy); content: "→"; transform: translateY(-50%); }
[dir="rtl"] .custdev-flow > div:not(:last-child)::after { right: auto; left: -9px; content: "←"; }
.custdev-flow b { display: block; margin-bottom: 6px; font-size: 0.88rem; }
.custdev-flow span { color: var(--ink-soft); font-size: 0.78rem; line-height: 1.4; }
.custdev-result-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.custdev-result-list li { padding: 16px 18px; border-left: 5px solid var(--turquoise); background: var(--cool-50); }
[dir="rtl"] .custdev-result-list li { border-right: 5px solid var(--turquoise); border-left: 0; }
.custdev-result-list li:nth-child(2) { border-color: var(--orange); }
.custdev-result-list li:nth-child(3) { border-color: var(--burgundy); }
.custdev-result-list li:nth-child(4) { border-color: var(--lime); }
.custdev-result-list strong { display: block; margin-bottom: 4px; }
.custdev-result-list span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; }
.custdev-quote { margin: 0; padding: 24px; border: 1px solid var(--line); border-left: 6px solid var(--burgundy); background: var(--white); }
[dir="rtl"] .custdev-quote { border-right: 6px solid var(--burgundy); border-left: 1px solid var(--line); }
.custdev-quote p { margin-bottom: 14px; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; }
.custdev-quote footer { color: var(--ink-soft); font-size: 0.82rem; }
.custdev-boundary { display: block; }
.custdev-boundary > div > h2 { max-width: 26ch; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.12; }
.custdev-boundary .three-column { margin-top: 28px; }
.custdev-boundary .info-panel { min-width: 0; overflow-wrap: anywhere; }
.custdev-boundary .info-panel h3 { font-size: clamp(1.05rem, 1.5vw, 1.35rem); hyphens: auto; }
.custdev-boundary .limitations { height: auto; margin-top: 24px; }
@media (max-width: 999px) {
  .custdev-card-grid { grid-template-columns: 1fr 1fr; }
  .custdev-flow { grid-template-columns: 1fr 1fr; }
  .custdev-flow > div:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .custdev-card-grid, .custdev-flow { grid-template-columns: 1fr; }
  .custdev-card { padding: 20px; }
}
