/* Пробная версия: агенты на сайте. Поверх site.css. */

/* якорь персонажа: пустое место нужного размера, на нижней кромке стоит 3D-персонаж */
.ag { display: inline-block; width: calc(var(--s, 120) * .9px); height: calc(var(--s, 120) * 1px); vertical-align: bottom; }
.ag[data-size="150"] { --s: 150; } .ag[data-size="140"] { --s: 140; } .ag[data-size="130"] { --s: 130; } .ag[data-size="120"] { --s: 120; }
.ag[data-size="110"] { --s: 110; } .ag[data-size="56"] { --s: 56; } .ag[data-size="44"] { --s: 44; }
/* до загрузки движка и без WebGL — силуэт-заглушка, чтобы пустота не читалась как дыра */
html:not(.agents-on) .ag:not(.ag--hero)::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 56%; height: 62%; translate: -50% 0; border-radius: 22% 22% 26% 26% / 24%; background: #111; border: 1px solid var(--ac, var(--graphite)); opacity: .9; }
.ag { position: relative; }
.ag.ag--hero { position: absolute; width: 0; height: 0; }
@media (max-width: 700px) { .ag--hero[data-agent="link"], .ag--hero[data-agent="scout"] { display: none; } .ag--hero[data-agent="builder"] { left: 74% !important; bottom: 11% !important; } }
html:not(.agents-on) .kbot .ag::before { display: none; }

/* герой: кнопки */
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn--line-l { border-color: rgba(242,242,240,.4); color: var(--paper); }
.btn--line-l:hover { border-color: var(--paper); }
@media (max-width: 700px) { .hero__cta { margin-top: 24px; } }

/* подход: дорожка, по которой ходит Скаут */
.walk { position: relative; height: 130px; margin-top: 8px; }
.walk .ag { position: absolute; left: 0; bottom: 8px; }
.walk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--ln); }
.walk--flow { margin-top: 0; height: 124px; }

/* сайты: Зодчий строит рядом с этапами */
.site-build { margin-top: 40px; height: 150px; display: flex; align-items: flex-end; }
.site-build .ag { margin-left: 8px; }

/* пропуска агентов */
.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 64px; }
.pass { --ac: var(--blue); position: relative; display: grid; gap: 18px; padding: 20px 22px 22px; background: var(--white); border: 1px solid var(--ln); border-top: 2px solid var(--ac); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pass:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.3); }
.pass__top { display: flex; justify-content: space-between; align-items: center; color: var(--mut); }
.pass__on { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #5BD68A); box-shadow: 0 0 8px #5BD68A; animation: kbot-pulse 2.4s ease-in-out infinite; }
.pass__who { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.pass__who .label { display: block; color: var(--mut); margin-top: 4px; }
.pass__name { font: 500 var(--h3)/1.2 var(--cyr); }
.pass__desc { color: var(--mut); font-size: 16px; line-height: 1.5; min-height: 3em; }
.pass__st { display: flex; gap: 12px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--ln); font-size: 15px; }
.pass__st .label { color: var(--mut); }
.pass__now { position: relative; padding-left: 14px; }
.pass__now::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }
.pass__now.swap { animation: now-swap .5s var(--ease); }
@keyframes now-swap { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1000px) { .passes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .passes { grid-template-columns: 1fr; margin-top: 40px; } }

/* вопросы */
.faq { grid-column: 3; display: grid; }
.faq__q { border-top: 1px solid var(--ln); }
.faq__q:last-child { border-bottom: 1px solid var(--ln); }
.faq__q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; }
.faq__x { position: relative; flex: none; width: 24px; height: 24px; }
.faq__x::before, .faq__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--black); translate: -50% -50%; transition: rotate .3s var(--ease); }
.faq__x::after { rotate: 90deg; }
.faq__q[open] .faq__x::after { rotate: 0deg; }
.faq__q p { color: var(--mut); padding: 0 0 24px; max-width: 40em; line-height: 1.55; }
.faq__ag { margin-top: 32px; }
@media (max-width: 1000px) { .faq { grid-column: 1; } }

/* подвал подробнее про агентов не нужен; скрыть дорожки без движения */
@media (prefers-reduced-motion: reduce) { .pass__on, .kbot__fab .dot { animation: none; } }
