/* Agents pages keep the panel page's grid. One body size (20 px, 18 px on a phone) plus the caption size, lines up to
   60 characters, numbers in tabular figures (art director 17.11: UX «не больше трёх размеров», measure 60). */
.ag{--ag-body:20px}
.ag .pn-hero h1{max-width:13em}
.ag .pn-sec__head h2,.ag h3{text-wrap:balance}
.ag p,.ag li,.ag dd{text-wrap:pretty}
.ag .pn-hero .pn-lead{max-width:60ch}
.ag-description,.ag-list,.ag-included,.ag-note,.ag-price{font-size:var(--ag-body);line-height:1.5;max-width:60ch}
.ag-description{margin:0 0 24px}
.ag-list,.ag-included{margin:0 0 24px;padding-left:1.2em;display:grid;gap:12px}
.ag-list b,.ag-included b{font-weight:500}
.ag-price{margin:0}
.ag .pn-note{margin:12px 0 0;max-width:60ch}
.ag h3{font-weight:500;font-size:clamp(22px,2.2vw,30px);line-height:1.2;letter-spacing:-.02em;margin:0 0 12px}
/* the first screen's price: the entry sum loud, the rest one step down, right above the button */
.ag-offer{display:grid;gap:6px;font-variant-numeric:tabular-nums}
.ag-offer__main{margin:0;font-size:clamp(26px,2.4vw,32px);line-height:1.2;font-weight:500;letter-spacing:-.02em}
.ag-offer__more{margin:0;font-size:18px;line-height:1.45;color:var(--ink-2);max-width:52ch}
/* prices as rows, the amount on the right on a 1 px rule, as on the services page */
.ag-prices{border-top:1px solid var(--rule);margin-bottom:16px}
.ag-prices__row{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:18px 0;border-bottom:1px solid var(--rule)}
.ag-prices__row h3{margin:0;font-size:var(--ag-body)}
.ag-prices__row p{margin:4px 0 0;color:var(--ink-2);font-size:var(--fs-caption);line-height:1.45}
.ag-prices__row .ag-prices__sum{margin:0;font-size:var(--ag-body);color:var(--ink);white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}
.ag-note{color:var(--ink-2);font-size:var(--fs-caption);margin:0 0 8px}
/* the example's numbers: large figures above the list */
.ag-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px;margin:8px 0 32px;max-width:900px}
.ag-figures div{margin:0}
.ag-figures dt{font-size:clamp(28px,3vw,40px);line-height:1.1;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.ag-figures dd{margin:6px 0 0;font-size:16px;line-height:1.4;color:var(--ink-2)}
/* steps: a grid with a number above each title; no rules between one-line steps */
.ag-steps{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;counter-reset:step}
.ag-steps li{counter-increment:step}
.ag-steps li::before{content:counter(step);display:block;font-size:var(--fs-caption);color:var(--ink-2);margin-bottom:6px;font-variant-numeric:tabular-nums}
.ag-steps h3{font-size:var(--ag-body);margin:0 0 6px}
.ag-steps p{font-size:var(--fs-caption);line-height:1.45;color:var(--ink-2);margin:0}
/* the agents that are not ready: a short strip, no pictures */
.ag-strip{list-style:none;padding:0;margin:0;display:grid;gap:20px;max-width:60ch}
.ag-strip li{display:grid;gap:2px;font-size:var(--fs-caption);line-height:1.45;color:var(--ink-2)}
.ag-strip b{font-size:var(--ag-body);font-weight:500;color:var(--ink)}
.ag-strip span{max-width:60ch}
.ag-strip .link{justify-self:start}
/* chat bot or agent: a table with column heads */
.ag-table{border-collapse:collapse;width:100%;max-width:760px;font-size:var(--fs-caption);line-height:1.45;margin:0 0 8px}
.ag-table th,.ag-table td{text-align:left;vertical-align:top;padding:12px 16px 12px 0;border-bottom:1px solid var(--rule)}
.ag-table thead th{font-weight:500;color:var(--ink)}
.ag-table tbody th{font-weight:500;width:28%}
.ag-request,.ag-terms{margin-top:var(--s-5)}
.ag-card{scroll-margin-top:calc(var(--header-height) + var(--s-4))}
/* a demo slot: a label whose data these are, the screenshot, the caption and the link close under it */
.ag-demo{margin:var(--s-4) 0 0;max-width:960px}
/* the panel page's :has(.pn-show) layout bleeds the slot to the page edge and loads after this file: keep the slot
   inside the margins, and the section's other blocks in the right column */
.ag .pn-sec:has(.pn-show) .ag-demo.pn-show{margin:var(--s-4) 0 0;padding:0;background:none;max-width:1060px}
@media(min-width:901px){.ag .pn-sec:has(.pn-show) .pn-sec__body > :not(.pn-show){grid-column:2}}
.ag-demo__label{margin:0 0 10px;font-size:var(--fs-caption);font-weight:500;color:var(--ink)}
.ag-demo img{display:block;width:100%;height:auto;border-radius:8px;border:1px solid var(--rule)}
.ag-demo figcaption{margin-top:12px;font-size:var(--fs-caption);line-height:1.5;color:var(--ink-2);max-width:60ch}
.ag-demo__open{margin:4px 0 0;font-size:var(--fs-caption)}
.ag .btn{min-height:44px;min-width:44px}
/* agents pages' form titles are longer than «Обсудить проект»: on narrow screens they wrap short of the close button */
@media(max-width:900px){.lead__title{right:calc(var(--round) + 12px + var(--s-3));white-space:normal;line-height:1.2}}
/* the draft frame starts and ends at the text edge, not at the screen edge */
.ag > .legal-draft{margin-left:var(--m-page);margin-right:var(--m-page)}
/* standalone links (demo, the strip) get the 44 px touch target of UX «Числа»; links inside prose keep their line */
.ag-demo__open .link,.ag-strip .link,.ag-more .link{display:inline-flex;align-items:center;min-height:44px}
.foot__consent,.consent__setup,.consent__ok{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
@media(max-width:900px){.ag-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .ag{--ag-body:18px}
  .ag .pn-hero h1{font-size:clamp(30px,9.4vw,40px)}
  .ag-figures{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
  .ag-steps{grid-template-columns:1fr;gap:20px}
  .ag-offer__more{font-size:16px}
}
