/* Страница «Агентствам» (макет Agencies.dc.html). */
.page-agencies .hero-box { background: #15173d; color: #fff; padding: 56px 48px 150px; border-color: #15173d; }
.page-agencies .hero-body { gap: 20px; max-width: 760px; }
.page-agencies .hero-box .eyebrow { color: #c9c2ff; }
.page-agencies .h1 { font-size: clamp(34px, 7vw, 54px); overflow-wrap: anywhere; }
.page-agencies .hero-box .lead { color: #c9c8dd; }
.hero-box .waves.dim7 { opacity: .7; }
.hero-box .waves.dim5 { opacity: .5; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--s-ink); border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--s-primary); }

.stack { display: flex; flex-direction: column; gap: 36px; }
.stack-head { display: flex; flex-direction: column; gap: 14px; }
.stack p { margin: 0; }

.client { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--s-row); }
.client:last-child { border-bottom: 0; }
.client .muted { font-size: 12px; }
.client b { overflow-wrap: anywhere; }
.ava { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ava-1 { background: var(--s-primary); color: #fff; }
.ava-2 { background: #e7a0ff; color: var(--s-ink); }
.ava-3 { background: var(--s-line-soft); color: var(--s-text); }
.role { display: inline-flex; align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: #efedfd; color: #3a28b8; font-size: 12px; font-weight: 600; }

.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.roles-grid .card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.roles-grid .muted { font-size: 14px; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 24px; }
.dash { border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.dash-dark { background: #15173d; color: #fff; }
.dash-light { background: #fff; border: 1px solid var(--s-line); }
.dash-head { padding: 26px 28px 18px; display: flex; flex-direction: column; gap: 8px; }
.dash-head p { margin: 0; }
.dash-head .tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dash-dark .tag { color: #c9c2ff; }
.dash-dark .h3 { color: #fff; }
.dash-dark .dash-head p { color: #c9c8dd; }
.dash-light .dash-head { background: #efedfd; }
.dash-light .tag { color: var(--s-primary); }
.dash-light .dash-head p { color: var(--s-text); }

.kpi-dark { margin: 0 16px 16px; border-radius: 12px; background: #1f2150; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.kpi-dark > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-dark .t { font-size: 12px; color: #c9c8dd; }
.kpi-dark b { font-family: Manrope, Inter, sans-serif; font-size: 22px; overflow-wrap: anywhere; }
.kpi-dark svg { width: 100%; height: 34px; }
.kpi-dark .d { font-size: 12px; color: #86efac; font-weight: 600; }
.share { margin: 0 16px 20px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut { width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(#c026d3 0 48%, #3d6bff 48% 84%, #f5b10a 84% 100%); display: grid; place-items: center; }
.donut span { width: 56px; height: 56px; border-radius: 50%; background: #15173d; display: grid; place-items: center; font-size: 11px; color: #c9c8dd; text-align: center; line-height: 1.2; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.c-wb { background: #c026d3; }
.c-oz { background: #3d6bff; }
.c-ym { background: #f5b10a; }

.todo { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.todo-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.todo-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.todo-row > span:first-child { width: 24px; height: 24px; border-radius: 7px; color: #fff; display: grid; place-items: center; font-weight: 700; }
.todo-row > span:last-child { font-weight: 600; }
.todo-red { background: #fef2f2; } .todo-red > span:first-child { background: #e5484d; } .todo-red > span:last-child { color: #9f0712; }
.todo-amber { background: #fffbeb; } .todo-amber > span:first-child { background: #fe9a00; } .todo-amber > span:last-child { color: #973c00; }
.todo-blue { background: #eff6ff; } .todo-blue > span:first-child { background: #3d6bff; } .todo-blue > span:last-child { color: #193cb8; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meter-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.meter-legend { display: flex; gap: 6px 14px; font-size: 12px; flex-wrap: wrap; }
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.goal { position: relative; height: 12px; border-radius: 6px; background: #efedfd; }
.goal-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--s-primary); }
.goal-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--s-ink); }


@media (max-width: 640px) {
    .page-agencies .hero-box { padding: 32px 20px 120px; }
    .client { grid-template-columns: 44px minmax(0, 1fr); }
    .client .badge { grid-column: 2; justify-self: start; white-space: normal; }
    .dash-head { padding: 22px 20px 16px; }
    .todo { padding: 16px; }
    .share { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
    .donut { width: 80px; height: 80px; }
}
