:root { --soil: #2c2416; --ink: #1a2218; --muted: #5c6b5a; --line: rgba(44, 36, 22, 0.12); --paper: #f3efe4; --panel: rgba(255, 252, 245, 0.92); --leaf: #2f6b3a; --leaf-deep: #1e4d2b; --wheat: #b8892d; --wheat-soft: #e6c87a; --sage: #7a9a78; --risk: #a33b2a; --good: #2f6b3a; --mid: #8a7340; --shadow: 0 18px 50px rgba(30, 40, 20, 0.08); --radius: 18px; --font: "Manrope", system-ui, sans-serif; --display: "Fraunces", Georgia, serif; --page: 1200px; } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; } body { margin: 0; font-family: var(--font); color: var(--ink); background: radial-gradient(900px 480px at 10% -10%, rgba(184, 137, 45, 0.16), transparent 55%), radial-gradient(700px 420px at 100% 0%, rgba(47, 107, 58, 0.12), transparent 50%), linear-gradient(180deg, #ebe4d4 0%, var(--paper) 28%, #e7efdf 100%); min-height: 100vh; max-width: 100%; overflow-x: hidden; line-height: 1.45; } .bg-orb { position: fixed; width: 320px; height: 320px; border-radius: 50%; filter: blur(60px); opacity: 0.28; pointer-events: none; z-index: 0; } .bg-orb-a { top: 18%; left: -140px; background: #c5dbb8; } .bg-orb-b { bottom: 8%; right: -160px; background: #e8d5a3; } .site-nav, .hero, .filters, main, .foot, .page-head { position: relative; z-index: 1; width: min(100%, var(--page)); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; max-width: 100%; } /* Фильтры выше main/KPI, иначе dropdown уходит под плашки */ .filters { z-index: 40; } .site-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 4px; } .site-nav a { text-decoration: none; color: var(--leaf-deep); font-size: 0.84rem; font-weight: 600; padding: 8px 12px; border-radius: 999px; border: 1px solid transparent; background: rgba(255, 252, 245, 0.55); } .site-nav a:hover { border-color: var(--line); background: #fffcf5; } .site-nav a.active { background: var(--leaf-deep); color: #f7f3e8; border-color: var(--leaf-deep); } .page-head { padding-top: 18px; padding-bottom: 8px; } .page-head h1 { font-family: var(--display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--leaf-deep); margin: 6px 0 10px; letter-spacing: -0.02em; } .page-head p { margin: 0; color: var(--muted); max-width: 70ch; } .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 16px; } .hero-inner, .hero-panel, .panel, .grid-2 > *, .insights > *, .filters > * { min-width: 0; max-width: 100%; } .hero-inner h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.05; margin: 8px 0 14px; color: var(--leaf-deep); letter-spacing: -0.02em; overflow-wrap: anywhere; } .hero-inner h1 span { color: var(--wheat); font-weight: 500; } .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700; color: var(--leaf); margin: 0; } .lede { max-width: 52ch; color: var(--muted); font-size: 0.98rem; margin: 0 0 14px; } .lede code, .foot code { font-size: 0.86em; background: rgba(47, 107, 58, 0.08); padding: 0.1em 0.4em; border-radius: 6px; } .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 252, 245, 0.75); border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); max-width: 100%; } .hero-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; } .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px; box-shadow: var(--shadow); animation: rise 0.55s ease both; overflow: hidden; } .kpi:nth-child(2) { animation-delay: 0.04s; } .kpi:nth-child(3) { animation-delay: 0.08s; } .kpi:nth-child(4) { animation-delay: 0.12s; } .kpi:nth-child(5) { animation-delay: 0.16s; } .kpi:nth-child(6) { animation-delay: 0.2s; } .kpi .label { font-size: 0.74rem; color: var(--muted); font-weight: 600; } .kpi .value { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--leaf-deep); margin-top: 4px; letter-spacing: -0.02em; } .kpi .sub { font-size: 0.74rem; color: var(--sage); margin-top: 2px; } .kpi.risk .value { color: var(--risk); } .kpi.good .value { color: var(--good); } .kpi.gold .value { color: var(--wheat); } @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 8px; } .filters label { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; flex: 1 1 200px; max-width: 320px; } .filters select { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fffcf5; font-family: var(--font); font-size: 0.92rem; color: var(--ink); } .ghost { border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 10px 14px; font-family: var(--font); font-weight: 600; cursor: pointer; color: var(--leaf-deep); } .ghost:hover { background: rgba(47, 107, 58, 0.08); } .filter-hint { color: var(--muted); font-size: 0.85rem; flex: 1 1 160px; min-width: 0; } main { padding-top: 8px; padding-bottom: 48px; display: grid; gap: 16px; } .insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; } .insight { background: linear-gradient(145deg, rgba(47, 107, 58, 0.1), rgba(184, 137, 45, 0.12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; overflow-wrap: anywhere; } .insight h3 { margin: 0 0 6px; font-size: 0.92rem; color: var(--leaf-deep); } .insight p { margin: 0; color: var(--muted); font-size: 0.86rem; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: 18px 16px 14px; box-shadow: var(--shadow); overflow: hidden; } .panel.muted { background: rgba(255, 252, 245, 0.7); } .panel.accent-good { border-color: rgba(47, 107, 58, 0.28); } .panel.accent-risk { border-color: rgba(163, 59, 42, 0.28); } .panel-h { margin-bottom: 12px; } .panel-h h2 { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--leaf-deep); letter-spacing: -0.01em; } .panel-h p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; } .subh { margin: 14px 0 8px; font-size: 0.92rem; color: var(--soil); } .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid-2.tight { gap: 10px; } /* Chart.js must live in a sized box — otherwise canvases explode */ .chart-box { position: relative; width: 100%; max-width: 100%; height: 280px; margin: 0; overflow: hidden; } .chart-box.sm { height: 200px; } .chart-box.md { height: 260px; } .chart-box.lg { height: 340px; } .chart-box.xl { height: 420px; } .chart-box canvas { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; } .matrix { display: grid; grid-template-columns: minmax(72px, 0.7fr) repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; width: 100%; } .matrix .corner, .matrix .colh, .matrix .rowh { font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; display: flex; align-items: end; justify-content: center; padding-bottom: 2px; text-align: center; line-height: 1.2; overflow-wrap: anywhere; } .matrix .rowh { align-items: center; justify-content: flex-end; text-align: right; padding-right: 4px; } .mcell { border-radius: 12px; padding: 10px 8px; min-height: 72px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; } .mcell:hover { transform: translateY(-1px); box-shadow: var(--shadow); } .mcell .m-title { font-size: 0.68rem; font-weight: 700; opacity: 0.85; line-height: 1.25; overflow-wrap: anywhere; } .mcell .m-val { font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 700; } .mcell .m-sub { font-size: 0.68rem; opacity: 0.8; line-height: 1.25; overflow-wrap: anywhere; } .mcell.high-stable { background: rgba(47, 107, 58, 0.22); } .mcell.high-unstable { background: rgba(47, 107, 58, 0.12); } .mcell.high-na { background: rgba(47, 107, 58, 0.08); } .mcell.mid-stable { background: rgba(184, 137, 45, 0.18); } .mcell.mid-unstable { background: rgba(184, 137, 45, 0.12); } .mcell.mid-na { background: rgba(184, 137, 45, 0.08); } .mcell.low-stable { background: rgba(163, 59, 42, 0.12); } .mcell.low-unstable { background: rgba(163, 59, 42, 0.22); } .mcell.low-na { background: rgba(163, 59, 42, 0.08); } .table-wrap { overflow: auto; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); max-width: 100%; -webkit-overflow-scrolling: touch; } .table-wrap.compact { max-height: 320px; } table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 520px; } th, td { padding: 8px 9px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; } th { position: sticky; top: 0; background: #f7f3e8; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); z-index: 1; } tbody tr:hover { background: rgba(47, 107, 58, 0.05); } td.num { font-variant-numeric: tabular-nums; text-align: right; } .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; } .badge.good { background: rgba(47, 107, 58, 0.15); color: var(--good); } .badge.risk { background: rgba(163, 59, 42, 0.15); color: var(--risk); } .foot { padding-bottom: 36px; color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; } @media (max-width: 900px) { .hero, .grid-2 { grid-template-columns: minmax(0, 1fr); } .filters label { max-width: none; flex-basis: 100%; } .chart-box { height: 240px; } .chart-box.sm { height: 180px; } .chart-box.md { height: 220px; } .chart-box.lg { height: 280px; } .chart-box.xl { height: 320px; } .matrix { grid-template-columns: minmax(56px, 0.55fr) repeat(3, minmax(0, 1fr)); } } /* Multi-select filters */ .filters.dense { align-items: start; gap: 10px; } .ms { position: relative; flex: 1 1 180px; max-width: 240px; min-width: 0; z-index: 1; } .ms[open] { z-index: 50; } .ms > summary { list-style: none; cursor: pointer; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fffcf5; font-size: 0.88rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; align-items: center; } .ms > summary::-webkit-details-marker { display: none; } .ms > summary::after { content: "▾"; color: var(--muted); font-size: 0.75rem; } .ms[open] > summary { border-color: rgba(47, 107, 58, 0.35); } .ms-panel { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; background: #fffcf5; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; } .ms-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 6px; font-size: 0.82rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); max-width: none; } .ms-panel label:hover { background: rgba(47, 107, 58, 0.06); border-radius: 8px; } .ms-actions { display: flex; gap: 8px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .ms-actions button { border: 0; background: rgba(47, 107, 58, 0.1); color: var(--leaf-deep); border-radius: 8px; padding: 4px 8px; font-size: 0.72rem; font-weight: 700; cursor: pointer; font-family: var(--font); } /* Heatmap */ .heat-wrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fffcf5; } .heat-grid { display: grid; gap: 2px; padding: 12px; width: max-content; min-width: 100%; } .heat-corner { font-size: 0.68rem; color: var(--muted); font-weight: 700; align-self: end; padding-bottom: 4px; } .heat-x, .heat-y { font-size: 0.68rem; color: var(--muted); font-weight: 700; text-align: center; line-height: 1.1; } .heat-y { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; white-space: nowrap; } .heat-cell { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; color: rgba(26, 34, 24, 0.85); cursor: default; } .heat-cell.empty { background: rgba(44, 36, 22, 0.04); color: transparent; } .heat-legend { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); } .heat-legend .bar { width: 160px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #f0e4c4, #c4a35a, #2f6b3a); } .heat-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; } .crop-block { margin-bottom: 18px; } .crop-block h3 { margin: 0 0 8px; font-family: var(--display); color: var(--leaf-deep); font-size: 1.15rem; } .warn { padding: 12px 14px; border-radius: 12px; background: rgba(184, 137, 45, 0.12); border: 1px solid rgba(184, 137, 45, 0.28); color: var(--soil); font-size: 0.9rem; } .chk-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); font-weight: 600; padding: 6px 4px; white-space: nowrap; } .chk-inline input { accent-color: var(--leaf); } .notes-list { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.9rem; } .notes-list li { margin: 6px 0; } .verdict { margin-bottom: 4px; } .verdict-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); } .verdict-card.good { border-color: rgba(47, 107, 58, 0.35); } .verdict-card.gold { border-color: rgba(184, 137, 45, 0.4); } .verdict-card.risk { border-color: rgba(163, 59, 42, 0.35); } .verdict-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); } .verdict-text { margin-top: 6px; font-family: var(--display); font-size: 1.25rem; color: var(--leaf-deep); line-height: 1.35; } .verdict-card.risk .verdict-text { color: var(--risk); } .verdict-card.gold .verdict-text { color: #8a5a12; } .verdict-sub { margin-top: 8px; font-size: 0.86rem; color: var(--muted); } .tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(122, 154, 120, 0.18); color: var(--leaf-deep); } .tag.hard { background: rgba(163, 59, 42, 0.14); color: var(--risk); } .tag.warn { background: rgba(184, 137, 45, 0.18); color: #8a5a12; } .tag.info { background: rgba(122, 154, 120, 0.16); color: var(--muted); } .sub-cell { font-size: 0.72rem; color: var(--muted); font-weight: 500; } .flags-cell { font-size: 0.8rem; color: var(--muted); max-width: 280px; } .stub-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; box-shadow: var(--shadow); } .stub-card h2 { margin: 0 0 10px; font-family: var(--display); color: var(--leaf-deep); } .stub-card ul { margin: 8px 0 0; padding-left: 1.1rem; color: var(--muted); } .stub-card li { margin: 6px 0; } .stub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 14px; } @media (max-width: 900px) { .ms { max-width: none; flex-basis: 100%; } } @media (prefers-reduced-motion: reduce) { .kpi, .mcell { animation: none; transition: none; } }