:root {
  color-scheme: light;
  --agent-ink: #182238;
  --agent-ink-soft: #536078;
  --agent-navy: #243556;
  --agent-navy-deep: #111b31;
  --agent-coral: #c74731;
  --agent-coral-bright: #ee654d;
  --agent-sun: #f5cf58;
  --agent-sun-soft: #fff6d7;
  --agent-sky-soft: #eaf4f7;
  --agent-paper: #fffdf8;
  --agent-paper-warm: #f8f2e8;
  --agent-white: #fff;
  --agent-line: #dfe3e9;
  --agent-line-dark: rgb(255 255 255 / 0.15);
  --agent-shadow: 0 28px 80px rgb(17 27 49 / 0.16);
  --agent-shadow-small: 0 12px 34px rgb(17 27 49 / 0.12);
  --agent-radius-small: 7px;
  --agent-radius: 13px;
  --agent-radius-large: 20px;
  --agent-container: 1360px;
  --agent-font: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--agent-paper);
  color: var(--agent-ink);
  font-family: var(--agent-font);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  color: var(--agent-ink);
  font-family: var(--agent-font);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5vw, 5.35rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.3vw, 4.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
}

p {
  max-width: 68ch;
}

::selection {
  background: var(--agent-sun);
  color: var(--agent-navy-deep);
}

:focus-visible {
  outline: 3px solid var(--agent-coral);
  outline-offset: 4px;
}

.agent-container {
  width: min(calc(100% - 56px), var(--agent-container));
  margin-inline: auto;
}

.agent-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--agent-radius-small);
  background: var(--agent-white);
  box-shadow: var(--agent-shadow-small);
  color: var(--agent-ink);
  font-weight: 750;
}

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

/* Автономная обвязка страницы */
.agent-shell-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(17 27 49 / 0.1);
  background: rgb(255 253 248 / 0.95);
  backdrop-filter: blur(16px);
}

.agent-shell-header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.agent-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--agent-navy-deep);
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-decoration: none;
}

.agent-shell-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--agent-coral);
  color: var(--agent-white);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.agent-shell-brand small {
  display: block;
  margin-top: 4px;
  color: var(--agent-ink-soft);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0;
}

.agent-shell-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.agent-shell-nav a {
  position: relative;
  color: var(--agent-ink);
  font-size: 0.91rem;
  font-weight: 720;
  text-decoration: none;
}

.agent-shell-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--agent-coral);
  content: "";
  transition: transform 170ms ease;
}

.agent-shell-nav a:hover::after,
.agent-shell-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.agent-shell-footer {
  padding-block: 54px 32px;
  background: #0d1629;
  color: rgb(255 255 255 / 0.72);
}

.agent-shell-footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(260px, 0.8fr);
  gap: 42px;
}

.agent-shell-footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--agent-white);
  font-size: 1.08rem;
}

.agent-shell-footer p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.9rem;
}

.agent-shell-footer-nav {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px 26px;
  flex-wrap: wrap;
}

.agent-shell-footer a {
  color: var(--agent-white);
  font-size: 0.9rem;
  font-weight: 700;
}

.agent-shell-footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--agent-line-dark);
  color: rgb(255 255 255 / 0.5);
  font-size: 0.79rem;
}

.agent-shell-footer-meta p + p {
  margin-top: 8px;
}

/* Основная страница */
.agent-page {
  background: var(--agent-paper);
}

.agent-section {
  padding-block: clamp(82px, 10vw, 150px);
}

.agent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--agent-coral);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.agent-eyebrow::before {
  width: 26px;
  height: 3px;
  background: currentColor;
  content: "";
}

.agent-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-weight: 790;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease;
}

.agent-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--agent-shadow-small);
}

.agent-button:active {
  transform: translateY(0);
}

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

.agent-button--primary:hover {
  border-color: #a93424;
  background: #a93424;
}

.agent-button--secondary {
  border-color: var(--agent-navy);
  background: transparent;
  color: var(--agent-navy);
}

.agent-button--secondary:hover {
  background: var(--agent-navy);
  color: var(--agent-white);
}

/* Hero и собственный интерфейс продукта */
.agent-hero {
  display: grid;
  min-height: min(820px, calc(100svh - 76px));
  align-items: center;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 82px);
  background:
    radial-gradient(circle at 11% 18%, rgb(245 207 88 / 0.3), transparent 31%),
    linear-gradient(132deg, var(--agent-paper) 0%, var(--agent-paper-warm) 100%);
}

.agent-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 5vw, 76px);
}

.agent-hero-copy {
  position: relative;
  z-index: 2;
  animation: agent-rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.agent-hero-copy h1 {
  max-width: 660px;
  font-size: clamp(3rem, 4.4vw, 4.8rem);
}

.agent-hero-lead {
  max-width: 550px;
  margin-bottom: 30px;
  color: var(--agent-ink-soft);
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.53;
}

.agent-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.agent-hero-note {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--agent-ink-soft);
  font-size: 0.84rem;
}

.agent-ui-frame {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgb(17 27 49 / 0.18);
  border-radius: var(--agent-radius-large);
  background: var(--agent-white);
  box-shadow: var(--agent-shadow);
  animation: agent-rise 760ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.agent-ui-topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--agent-line);
  background: var(--agent-white);
}

.agent-ui-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--agent-navy-deep);
  line-height: 1.05;
}

.agent-ui-brand > span:last-child {
  display: grid;
}

.agent-ui-brand b {
  font-size: 0.74rem;
}

.agent-ui-brand small {
  margin-top: 4px;
  color: var(--agent-ink-soft);
  font-size: 0.59rem;
}

.agent-ui-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--agent-coral);
  color: var(--agent-white);
  font-size: 0.64rem;
  font-weight: 850;
}

.agent-ui-demo-label,
.agent-ui-state {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e7d187;
  border-radius: 999px;
  background: var(--agent-sun-soft);
  color: #695316;
  font-size: 0.63rem;
  font-weight: 790;
  letter-spacing: 0.04em;
  line-height: 1;
}

.agent-ui-demo-label {
  min-height: 28px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.agent-ui-body {
  display: grid;
  min-height: 492px;
  grid-template-columns: 112px minmax(330px, 1fr) 180px;
  background: #f5f7fa;
}

.agent-ui-sidebar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 10px;
  border-right: 1px solid var(--agent-line);
  background: var(--agent-navy-deep);
}

.agent-ui-sidebar > span {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 6px;
  color: rgb(255 255 255 / 0.64);
  font-size: 0.65rem;
  font-weight: 670;
}

.agent-ui-sidebar > span.is-current {
  background: rgb(255 255 255 / 0.12);
  color: var(--agent-white);
}

.agent-ui-sidebar b {
  color: rgb(255 255 255 / 0.42);
  font-size: 0.56rem;
}

.agent-ui-workspace {
  min-width: 0;
  padding: 22px;
}

.agent-ui-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.agent-ui-heading > div > span,
.agent-ui-inspector-label {
  display: block;
  margin-bottom: 6px;
  color: var(--agent-coral);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-ui-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.035em;
}

.agent-ui-heading p {
  margin-bottom: 0;
  color: var(--agent-ink-soft);
  font-size: 0.68rem;
}

.agent-ui-state {
  flex: 0 0 auto;
  padding: 7px 9px;
}

.agent-ui-options {
  display: grid;
  gap: 12px;
}

.agent-ui-option {
  padding: 15px;
  border: 1px solid var(--agent-line);
  border-radius: 10px;
  background: var(--agent-white);
}

.agent-ui-option.is-selected {
  border-color: rgb(199 71 49 / 0.6);
  box-shadow: 0 7px 20px rgb(17 27 49 / 0.07);
}

.agent-ui-option-topline,
.agent-ui-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.agent-ui-option-topline {
  margin-bottom: 9px;
  color: var(--agent-ink-soft);
  font-size: 0.57rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-ui-option-topline span:last-child {
  color: #267147;
}

.agent-ui-option h3 {
  margin-bottom: 5px;
  font-size: 0.91rem;
  letter-spacing: -0.025em;
}

.agent-ui-option > p {
  margin-bottom: 11px;
  color: var(--agent-ink-soft);
  font-size: 0.67rem;
}

.agent-ui-price strong {
  color: var(--agent-navy-deep);
  font-size: 1.02rem;
}

.agent-ui-price > span {
  color: var(--agent-ink-soft);
  font-size: 0.57rem;
}

.agent-ui-comment {
  margin-top: 12px;
  padding: 10px 11px;
  border-left: 3px solid var(--agent-sun);
  background: #fffaf0;
}

.agent-ui-comment > span {
  display: block;
  margin-bottom: 3px;
  color: #695316;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-ui-comment p {
  margin-bottom: 0;
  color: var(--agent-ink);
  font-size: 0.64rem;
  line-height: 1.4;
}

.agent-ui-disclaimer {
  margin: 12px 0 0;
  color: var(--agent-ink-soft);
  font-size: 0.58rem;
}

.agent-ui-inspector {
  padding: 22px 15px;
  border-left: 1px solid var(--agent-line);
  background: var(--agent-white);
}

.agent-ui-inspector h3 {
  margin-bottom: 16px;
  font-size: 0.86rem;
  letter-spacing: -0.025em;
}

.agent-ui-inspector ul {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.agent-ui-inspector li {
  display: grid;
  gap: 2px;
  padding-block: 9px;
  border-bottom: 1px solid var(--agent-line);
  font-size: 0.62rem;
}

.agent-ui-inspector li span {
  color: var(--agent-ink-soft);
}

.agent-ui-inspector li b {
  color: var(--agent-ink);
}

.agent-ui-preview-action {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--agent-coral);
  color: var(--agent-white);
  font-size: 0.62rem;
  font-weight: 790;
  text-align: center;
}

/* Честный статус */
.agent-status {
  scroll-margin-top: 90px;
  padding-block: 30px;
  background: var(--agent-navy-deep);
  color: rgb(255 255 255 / 0.78);
}

.agent-status-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(560px, 1.35fr);
  align-items: center;
  gap: 48px;
}

.agent-status-label {
  display: block;
  margin-bottom: 3px;
  color: var(--agent-sun);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-status h2 {
  margin: 0;
  color: var(--agent-white);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  letter-spacing: -0.035em;
}

.agent-status dl {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-status dl > div {
  padding: 4px 24px;
  border-left: 1px solid var(--agent-line-dark);
}

.agent-status dt {
  color: rgb(255 255 255 / 0.52);
  font-size: 0.7rem;
}

.agent-status dd {
  margin-bottom: 0;
  color: var(--agent-white);
  font-size: 0.96rem;
  font-weight: 760;
}

/* Сценарий работы */
.agent-product-demo {
  scroll-margin-top: 90px;
  background: var(--agent-paper);
}

.agent-product-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(540px, 1.18fr);
  align-items: start;
  gap: clamp(60px, 10vw, 150px);
}

.agent-product-intro {
  position: sticky;
  top: 120px;
}

.agent-product-intro h2 {
  max-width: 690px;
}

.agent-product-intro > p {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--agent-ink-soft);
  font-size: 1.08rem;
}

.agent-product-principle {
  max-width: 520px;
  padding: 22px 24px;
  border-left: 5px solid var(--agent-coral);
  background: var(--agent-paper-warm);
}

.agent-product-principle span {
  display: block;
  margin-bottom: 5px;
  color: var(--agent-coral);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-product-principle strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.4;
}

.agent-process {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--agent-line);
  list-style: none;
}

.agent-process li {
  display: grid;
  min-height: 164px;
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--agent-line);
}

.agent-process li > span {
  color: var(--agent-coral);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  font-weight: 820;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.agent-process h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.7rem);
}

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

/* Редакционная сетка ценности */
.agent-value {
  overflow: hidden;
  background: var(--agent-sky-soft);
}

.agent-value-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  align-items: end;
  gap: 42px;
  margin-bottom: clamp(50px, 7vw, 92px);
}

.agent-value-heading .agent-eyebrow {
  margin-bottom: 10px;
}

.agent-value-heading h2 {
  max-width: 930px;
  margin: 0;
}

.agent-value-ledger {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid #c5d6dc;
}

.agent-value-ledger article {
  position: relative;
  min-height: 260px;
  padding: 34px 32px 38px 0;
  border-bottom: 1px solid #c5d6dc;
}

.agent-value-ledger article:nth-child(1) {
  grid-column: 1 / span 7;
}

.agent-value-ledger article:nth-child(2) {
  grid-column: 8 / -1;
  padding-left: 40px;
  border-left: 1px solid #c5d6dc;
}

.agent-value-ledger article:nth-child(3) {
  grid-column: 1 / span 5;
}

.agent-value-ledger article:nth-child(4) {
  grid-column: 6 / -1;
  padding-left: 40px;
  border-left: 1px solid #c5d6dc;
}

.agent-value-ledger article > span {
  display: block;
  margin-bottom: 46px;
  color: var(--agent-coral);
  font-size: 0.8rem;
  font-weight: 820;
}

.agent-value-ledger h3 {
  max-width: 520px;
  font-size: clamp(1.45rem, 2.5vw, 2.6rem);
}

.agent-value-ledger p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--agent-ink-soft);
}

/* Доверие и права */
.agent-trust {
  background: var(--agent-navy);
  color: rgb(255 255 255 / 0.76);
}

.agent-trust-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(520px, 1.12fr);
  align-items: start;
  gap: clamp(62px, 10vw, 150px);
}

.agent-trust .agent-eyebrow {
  color: var(--agent-sun);
}

.agent-trust h2 {
  max-width: 760px;
  color: var(--agent-white);
}

.agent-trust-copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 0.68);
  font-size: 1.06rem;
}

.agent-trust-rules {
  border-top: 1px solid var(--agent-line-dark);
}

.agent-trust-rules article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding-block: 24px;
  border-bottom: 1px solid var(--agent-line-dark);
}

.agent-trust-rules span {
  color: var(--agent-sun);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.agent-trust-rules p {
  margin-bottom: 0;
  color: var(--agent-white);
}

/* Финальный статус без формы */
.agent-final {
  padding-block: clamp(88px, 11vw, 166px);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px),
    var(--agent-coral);
  background-size: 10vw 100%;
  color: var(--agent-white);
}

.agent-final-inner {
  text-align: center;
}

.agent-final .agent-eyebrow {
  color: var(--agent-sun);
}

.agent-final h2 {
  max-width: 920px;
  margin-inline: auto;
  color: var(--agent-white);
}

.agent-final p {
  max-width: 720px;
  margin: 0 auto 34px;
  color: rgb(255 255 255 / 0.9);
  font-size: 1.08rem;
}

.agent-closed-action {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid rgb(255 255 255 / 0.72);
  border-radius: 9px;
  background: rgb(17 27 49 / 0.12);
  color: var(--agent-white);
  font-weight: 800;
  line-height: 1.2;
  cursor: not-allowed;
}

/* FAQ */
.agent-faq {
  background: var(--agent-paper);
}

.agent-faq-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  align-items: start;
  gap: clamp(52px, 9vw, 130px);
}

.agent-faq-grid > div:first-child {
  position: sticky;
  top: 120px;
}

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

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

.agent-faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  color: var(--agent-ink);
  font-size: 1.04rem;
  font-weight: 760;
  list-style: none;
  cursor: pointer;
}

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

.agent-faq-list summary span {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
}

.agent-faq-list summary span::before,
.agent-faq-list summary span::after {
  position: absolute;
  top: 10px;
  right: 2px;
  left: 2px;
  height: 2px;
  background: var(--agent-coral);
  content: "";
  transition: transform 170ms ease;
}

.agent-faq-list summary span::after {
  transform: rotate(90deg);
}

.agent-faq-list details[open] summary span::after {
  transform: rotate(0);
}

.agent-faq-list details p {
  max-width: 690px;
  margin-bottom: 0;
  padding: 0 44px 25px 0;
  color: var(--agent-ink-soft);
}

@keyframes agent-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .agent-hero-grid {
    grid-template-columns: minmax(340px, 0.78fr) minmax(600px, 1.22fr);
    gap: 34px;
  }

  .agent-ui-body {
    grid-template-columns: 100px minmax(320px, 1fr) 164px;
  }
}

@media (max-width: 1060px) {
  .agent-hero {
    min-height: auto;
  }

  .agent-hero-grid,
  .agent-product-grid,
  .agent-trust-grid,
  .agent-faq-grid {
    grid-template-columns: 1fr;
  }

  .agent-hero-copy {
    max-width: 760px;
  }

  .agent-hero-copy h1 {
    max-width: 790px;
  }

  .agent-ui-frame {
    width: min(100%, 850px);
  }

  .agent-product-intro,
  .agent-faq-grid > div:first-child {
    position: static;
  }

  .agent-product-grid,
  .agent-trust-grid,
  .agent-faq-grid {
    gap: 50px;
  }

  .agent-value-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 820px) {
  .agent-shell-header-inner {
    min-height: 70px;
  }

  .agent-shell-nav {
    gap: 18px;
  }

  .agent-shell-nav a:not([aria-current="page"]) {
    display: none;
  }

  .agent-status-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .agent-status dl > div:first-child {
    border-left: 0;
  }

  .agent-ui-body {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .agent-ui-inspector {
    display: none;
  }

  .agent-value-ledger article:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 30px 0 34px;
    border-left: 0;
  }

  .agent-value-ledger article > span {
    margin-bottom: 24px;
  }

  .agent-shell-footer-inner {
    grid-template-columns: 1fr;
  }

  .agent-shell-footer-nav {
    justify-content: flex-start;
  }
}

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

  .agent-container {
    width: min(calc(100% - 32px), var(--agent-container));
  }

  .agent-shell-header-inner {
    min-height: 64px;
    gap: 14px;
  }

  .agent-shell-brand-mark {
    width: 36px;
    height: 36px;
  }

  .agent-shell-brand small {
    display: none;
  }

  .agent-shell-nav {
    gap: 12px;
  }

  .agent-shell-nav a {
    font-size: 0.8rem;
  }

  .agent-hero {
    padding-block: 42px 54px;
  }

  .agent-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .agent-hero-copy h1 {
    font-size: clamp(2.55rem, 12.5vw, 4rem);
  }

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

  .agent-ui-frame {
    border-radius: 14px;
  }

  .agent-ui-topbar {
    min-height: 58px;
  }

  .agent-ui-body {
    min-height: 460px;
    grid-template-columns: 1fr;
  }

  .agent-ui-sidebar {
    display: none;
  }

  .agent-ui-workspace {
    padding: 16px;
  }

  .agent-ui-heading {
    display: grid;
  }

  .agent-ui-state {
    width: fit-content;
  }

  .agent-ui-option:nth-child(2) {
    display: none;
  }

  .agent-ui-option-topline,
  .agent-ui-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .agent-status dl {
    grid-template-columns: 1fr;
  }

  .agent-status dl > div {
    padding: 10px 0;
    border-top: 1px solid var(--agent-line-dark);
    border-left: 0;
  }

  .agent-process li {
    min-height: 0;
    grid-template-columns: 70px 1fr;
    gap: 18px;
  }

  .agent-trust-rules article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agent-final {
    background-size: 25vw 100%;
  }

  .agent-closed-action {
    width: 100%;
  }

  .agent-faq-list summary {
    padding-block: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .agent-hero-copy,
  .agent-ui-frame {
    animation: none;
  }
}
