/* Главная — макет design/site-2026-10-27/Main.dc.html. Подключается из pages/home.html.twig. */

/* ── Размеры главной (отличаются от общих в site.css) ─────────── */
.page-home .h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; }
.page-home .h3 { font-size: 22px; line-height: 1.25; }
.page-home .mock { border-radius: 16px; box-shadow: 0 32px 64px -28px rgba(21, 23, 61, .35); }
.page-home .waves { height: 150px; }
.page-home .waves.w2 { height: 120px; }
.page-home .waves.w3 { height: 96px; }

/* ── Первый экран ────────────────────────────────────────────── */
.h-top { position: relative; overflow: hidden; background: #f4f3fb; padding: 48px 0 120px; }
.page-home .h-top .waves { bottom: auto; top: 300px; height: 260px; }
.page-home .h-top .waves.w2 { top: 340px; height: 220px; }
.page-home .h-top .waves.w3 { top: 380px; height: 180px; }
.h-top-in { position: relative; display: flex; flex-direction: column; gap: 48px; }
.h-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px 56px; align-items: end; }
.h-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.h-col-18 { gap: 18px; }
.h-h1 { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: clamp(34px, 8vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.h-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Мини-макет «Сводка руководителя» */
.m-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e6e4f3; background: #faf9ff; flex-wrap: wrap; }
.m-logo { width: 32px; height: 32px; border-radius: 9px; background: #4f3be0; display: grid; place-items: center; }
.m-title { font-family: Manrope, Inter, sans-serif; font-size: 20px; }
.m-stamp { margin-left: auto; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid #e6e4f3; }
.tile { padding: 16px 18px; border-right: 1px solid #e6e4f3; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile:last-child { border-right: 0; }
.tile .l { font-size: 12px; color: #6b6a82; }
.tile .v { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 24px; line-height: 30px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile svg { width: 100%; height: 34px; display: block; }
.tile .muted { font-weight: 400; }
.up { font-size: 12px; color: #016630; font-weight: 600; }
.dn { font-size: 12px; color: #b4232c; font-weight: 600; }
.m-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.m-chart { padding: 18px 20px; border-right: 1px solid #e6e4f3; display: flex; flex-direction: column; gap: 14px; min-width: 0; grid-column: span 2; }
.m-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-legend > b { font-size: 15px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.m-dash { width: 14px; border-top: 2px dashed #9f9fa9; }
.m-seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: #f1f0fa; font-size: 12px; }
.m-seg span { padding: 2px 8px; }
.m-seg .on { background: #fff; border-radius: 6px; font-weight: 600; }
.m-plot { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.m-yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: 11px; text-align: right; line-height: 1; }
.m-area { position: relative; height: 200px; border-bottom: 1px solid #dcd9f0; }
.m-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.m-grid span { border-top: 1px dashed #eeedf7; }
.m-grid .nb { border-top: 0; }
.m-xaxis { display: flex; justify-content: space-between; font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 100%; position: relative; }
.stk { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; }
.stk span { display: block; flex: none; }
.stk span:last-child { border-radius: 3px 3px 0 0; }
.c-wb { background: #c026d3; }
.c-oz { background: #3d6bff; }
.c-ym { background: #f5b10a; }
.h-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-acts { display: flex; flex-direction: column; min-width: 0; }
.m-acts-h { display: flex; justify-content: space-between; padding: 18px 16px 10px; }
.m-acts-h b { font-size: 15px; }
.act { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid #eeedf7; }
.act .badge { padding: 1px 4px; }
.act-link { font-weight: 600; font-size: 12px; color: #4f3be0; }
.m-cost { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; margin-top: auto; font-size: 12px; background: #faf9ff; }

.h-pf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.h-pf span:not(:first-child) { display: inline-flex; align-items: center; gap: 8px; color: #15173d; font-weight: 500; }
.h-pf img { width: 22px; height: 22px; border-radius: 6px; }

/* ── Секции ──────────────────────────────────────────────────── */
.h-sec { padding: 96px 0; }
.h-white { background: #fff; }
.h-stack { display: flex; flex-direction: column; gap: 40px; }
.h-head { display: flex; flex-direction: column; gap: 14px; }
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.h-feat { padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: #15173d; min-width: 0; }
.h-feat p { margin: 0; }
.h-feat p:not(.muted) { color: #c9c8dd; }
.h-ico { width: 44px; height: 44px; border-radius: 12px; background: #efedfd; display: grid; place-items: center; }
.h-more { font-weight: 600; color: #4f3be0; }
.h-dark { background: #15173d; border-color: #15173d; }
.h-dark .h-ico { background: #2a2c5e; }
.h-dark .h3 { color: #fff; }
.h-dark .h-more { color: #c9c2ff; }
.h-link { font-weight: 600; }

.h-honest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.h-honest > * { min-width: 0; }
.h-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.k-head { padding: 14px 18px; border-bottom: 1px solid #e6e4f3; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.k-head b { font-size: 14px; }
.k-head .muted { font-size: 12px; }
.k-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-cell { padding: 16px 18px; min-width: 0; }
.k-r { border-right: 1px solid #e6e4f3; }
.k-b { border-bottom: 1px solid #e6e4f3; }
.k-l { font-size: 12px; }
.k-v { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }
.k-wait { color: #6b6a82; }

.h-cards-3 .card { min-width: 0; }
.h-ctl { padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #faf9ff; }
.h-ctl p { margin: 0; }
.h-self { align-self: flex-start; }
.h-undo { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #bedbff; color: #193cb8; font-size: 13px; flex-wrap: wrap; }
.h-undo span { text-decoration: underline; }
.h-sent { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.h-sent span:first-child { font-variant-numeric: tabular-nums; }

.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.h-steps li { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h-steps p { margin: 0; }
.h-n { font-family: Manrope, Inter, sans-serif; font-weight: 800; font-size: 40px; color: #9a8cff; line-height: 1; }

@media (max-width: 640px) {
    .h-top { padding: 32px 0 96px; }
    .h-sec { padding: 56px 0; }
    .m-head, .m-chart { padding-left: 14px; padding-right: 14px; }
    .m-chart { grid-column: auto; border-right: 0; }
    .m-stamp { margin-left: 0; }
    .tile .v { font-size: 22px; }
}
