@font-face { font-family: Geist; src: url("../assets/fonts/geist-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --ink:#171917; --soft:#61665e; --paper:#fff; --canvas:#f1f2ed; --lime:#c7f36b; --line:#e2e4dc; --yellow:#fff0c7; --blue:#e4efff; --purple:#eee6f8; --red:#ffe6e2; --radius:18px; --shadow:0 20px 60px rgba(26,31,25,.12); }
* { box-sizing:border-box; }
body { margin:0; background:var(--canvas); color:var(--ink); font-family:Geist,Arial,sans-serif; font-size:16px; line-height:1.45; overflow-x:clip; }
button,input,select { font:inherit; }
button { color:inherit; }
a { color:inherit; text-decoration:none; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:246px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; padding:26px 18px 20px; background:var(--ink); color:#fff; display:flex; flex-direction:column; z-index:20; }
.crm-brand { height:48px; padding:0 12px; display:flex; align-items:center; gap:11px; font-size:1.15rem; font-weight:800; letter-spacing:-.04em; }
.crm-brand > span:last-child { display:flex; align-items:baseline; gap:5px; }
.crm-brand small { color:rgba(255,255,255,.4); font-size:.64rem; font-weight:600; letter-spacing:0; }
.crm-mark { width:30px; height:30px; border-radius:9px; background:var(--lime); display:grid; place-items:center; }
.crm-mark::before { content:""; width:13px; height:6px; border-left:4px solid var(--ink); border-bottom:4px solid var(--ink); }
.main-nav { margin-top:42px; display:grid; gap:7px; }
.nav-item { width:100%; min-height:48px; padding:0 13px; border:0; border-radius:13px; background:transparent; color:rgba(255,255,255,.58); display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:7px; cursor:pointer; text-align:left; }
.nav-item:hover { background:rgba(255,255,255,.06); color:#fff; }
.nav-item.active { background:var(--lime); color:var(--ink); }
.nav-item > span { font-size:1.16rem; text-align:center; }
.nav-item b { font-size:.86rem; font-weight:650; }
.nav-item i { min-width:21px; height:21px; padding:0 5px; border-radius:10px; background:rgba(255,255,255,.12); display:grid; place-items:center; font-size:.65rem; font-style:normal; }
.nav-item.active i { background:var(--ink); color:#fff; }
.sidebar-bottom { margin-top:auto; display:grid; gap:9px; }
.capacity { margin-bottom:14px; padding:15px; border:1px solid rgba(255,255,255,.1); border-radius:15px; background:rgba(255,255,255,.04); }
.capacity > span { display:flex; justify-content:space-between; font-size:.68rem; }
.capacity em { color:var(--lime); font-style:normal; }
.capacity > i { height:5px; margin:11px 0 8px; border-radius:5px; background:rgba(255,255,255,.12); display:block; overflow:hidden; }
.capacity > i u { width:78%; height:100%; border-radius:5px; background:var(--lime); display:block; }
.capacity small { color:rgba(255,255,255,.4); font-size:.61rem; }
.sidebar-bottom > a,.sidebar-bottom > button { min-height:40px; padding:0 12px; border:0; border-radius:10px; background:transparent; color:rgba(255,255,255,.5); display:flex; align-items:center; gap:10px; cursor:pointer; font-size:.74rem; }
.sidebar-bottom > a:hover,.sidebar-bottom > button:hover { background:rgba(255,255,255,.05); color:#fff; }
.workspace { min-width:0; padding:0 clamp(24px,3vw,50px) 60px; }
.topbar { min-height:108px; display:flex; justify-content:space-between; align-items:center; gap:30px; }
.topbar-title p { margin:0 0 3px; color:var(--soft); font-size:.72rem; text-transform:capitalize; }
.topbar-title h1 { margin:0; font-size:1.55rem; letter-spacing:-.04em; }
.topbar-actions { display:flex; align-items:center; gap:8px; }
.icon-button { position:relative; width:42px; height:42px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.65); cursor:pointer; font-size:1.25rem; }
.icon-button:hover { background:#fff; }
.notification-button i { position:absolute; top:9px; right:10px; width:7px; height:7px; border:2px solid #fff; border-radius:50%; background:#df5e48; }
.profile-button { min-height:50px; margin-left:8px; padding:4px 8px 4px 5px; border:0; background:transparent; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; text-align:left; cursor:pointer; }
.profile-button > span { width:40px; height:40px; border-radius:13px; background:#d9e5ce; display:grid; place-items:center; font-size:.7rem; font-weight:800; }
.profile-button p { margin:0; display:grid; }
.profile-button b { font-size:.75rem; }
.profile-button small { color:var(--soft); font-size:.65rem; }
.profile-button > i { color:var(--soft); font-style:normal; }
.view-panel { display:none; }
.view-panel.active { display:block; animation:fade-in .25s ease; }
@keyframes fade-in { from { opacity:0; transform:translateY(4px); } }
.demo-banner { min-height:68px; margin-bottom:15px; padding:10px 12px 10px 16px; border-radius:16px; background:var(--lime); display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:13px; }
.demo-banner[hidden] { display:none; }
.demo-banner > span { width:38px; height:38px; border-radius:12px; background:var(--ink); color:var(--lime); display:grid; place-items:center; }
.demo-banner p { margin:0; display:grid; }
.demo-banner p strong { font-size:.8rem; }
.demo-banner p small { color:rgba(23,25,23,.62); font-size:.71rem; }
.demo-banner button { min-height:38px; padding:0 15px; border:0; border-radius:11px; background:var(--ink); color:#fff; cursor:pointer; font-size:.72rem; font-weight:700; }
.demo-banner .banner-close { width:36px; padding:0; background:transparent; color:var(--ink); font-size:1.2rem; }
.metric-grid { display:grid; grid-template-columns:1.1fr repeat(3,1fr); gap:12px; }
.metric-card { position:relative; min-height:160px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.88); display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; }
.metric-card > span,.metric-card div > span { color:var(--soft); font-size:.72rem; }
.metric-card > b,.metric-card div > b { margin-top:auto; display:block; font-size:1.65rem; letter-spacing:-.055em; }
.metric-card b em { color:var(--soft); font-size:.78rem; font-style:normal; font-weight:500; }
.metric-card small { color:var(--soft); font-size:.65rem; }
.metric-card small i { color:#4c7c25; font-style:normal; font-weight:700; }
.metric-primary { background:var(--ink); color:#fff; border-color:var(--ink); display:block; }
.metric-primary > div { position:relative; z-index:2; height:100%; display:flex; flex-direction:column; }
.metric-primary div > span,.metric-primary small { color:rgba(255,255,255,.52); }
.metric-primary svg { position:absolute; right:-6px; bottom:-2px; width:58%; height:75%; overflow:visible; }
.metric-primary svg path { fill:none; stroke:var(--lime); stroke-width:2; vector-effect:non-scaling-stroke; }
.metric-primary svg .area { fill:url("#none"); stroke:none; opacity:.12; }
.metric-icon { position:absolute; top:18px; right:18px; width:34px; height:34px; border-radius:11px; background:#eff1eb; display:grid; place-items:center; font-size:.9rem; }
.rating-row { color:#e2b54c; letter-spacing:.08em; font-size:.78rem; }
.dashboard-grid { margin-top:12px; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:12px; }
.panel { border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.9); }
.orders-panel,.schedule-panel { min-height:350px; padding:20px; }
.panel-head { min-height:45px; display:flex; justify-content:space-between; align-items:start; gap:16px; }
.panel-head h2 { margin:0; font-size:.94rem; letter-spacing:-.025em; }
.panel-head p { margin:3px 0 0; color:var(--soft); font-size:.66rem; }
.panel-head button { padding:7px 0; border:0; background:transparent; color:var(--soft); cursor:pointer; font-size:.66rem; }
.panel-head button:hover { color:var(--ink); }
.panel-head button span { margin-left:6px; }
.order-list { margin-top:8px; }
.overview-order { width:100%; min-height:69px; padding:10px 4px; border:0; border-top:1px solid var(--line); background:transparent; display:grid; grid-template-columns:auto minmax(120px,1.1fr) minmax(110px,.8fr) minmax(76px,.6fr) auto; align-items:center; gap:12px; text-align:left; cursor:pointer; }
.overview-order:hover { background:#f8f9f5; }
.client-avatar { width:38px; height:38px; border-radius:12px; background:#e1d4c9; display:grid; place-items:center; font-size:.62rem; font-weight:800; }
.client-avatar.c2 { background:#d3e4e3; }.client-avatar.c3 { background:#e5daf0; }.client-avatar.c4 { background:#e4e5ce; }
.overview-order p { margin:0; display:grid; }
.overview-order strong { font-size:.76rem; }
.overview-order small { color:var(--soft); font-size:.63rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.overview-order > span:not(.client-avatar):not(.status) { color:var(--soft); font-size:.67rem; }
.overview-order > b { font-size:.72rem; text-align:right; }
.status { width:max-content; padding:5px 8px; border-radius:100px; font-size:.58rem; font-weight:700; white-space:nowrap; }
.status.work { background:var(--yellow); color:#79570e; }.status.estimate { background:#e8e9e5; color:#51564f; }.status.quality { background:var(--purple); color:#654a79; }.status.new { background:#e7f7cc; color:#496d22; }.status.confirmed { background:var(--blue); color:#365f8e; }.status.done { background:#e6eee3; color:#4e6550; }.status.cancelled { background:var(--red); color:#97483d; }
.team-status-list { margin-top:8px; }
.team-status-list > div { min-height:68px; border-top:1px solid var(--line); display:grid; grid-template-columns:auto 1fr auto; gap:11px; align-items:center; }
.team-avatar { width:36px; height:36px; border-radius:12px; background:#dcd6ed; display:grid; place-items:center; font-size:.6rem; font-weight:800; }.team-avatar.team-n { background:#d2e5e4; }.team-avatar.team-l { background:#e5e8cc; }
.team-status-list p { margin:0; display:grid; }.team-status-list b { font-size:.72rem; }.team-status-list small { color:var(--soft); font-size:.61rem; }.team-status-list em { color:#86620e; font-size:.58rem; font-style:normal; }.team-status-list em.free { color:#4f7d29; }
.quality-score { margin-top:16px; padding:14px; border-radius:13px; background:#f2f5eb; }
.quality-score > span { display:flex; justify-content:space-between; align-items:end; }.quality-score small { color:var(--soft); font-size:.62rem; }.quality-score b { font-size:1rem; }.quality-score > i { height:5px; margin:9px 0; border-radius:5px; background:#e0e3d9; display:block; overflow:hidden; }.quality-score > i u { height:100%; background:var(--lime); display:block; }.quality-score p { margin:0; color:var(--soft); font-size:.58rem; }
.pipeline-panel { grid-column:1/-1; padding:20px; }
.period-chip { padding:6px 10px; border:1px solid var(--line); border-radius:9px; color:var(--soft); font-size:.63rem; }
.pipeline { margin-top:20px; display:grid; grid-template-columns:repeat(6,1fr); gap:10px; }
.pipeline-stage { min-height:98px; padding:14px; border-radius:14px; background:#f4f5f1; display:grid; align-content:space-between; }
.pipeline-stage > span { color:var(--soft); font-size:.6rem; }.pipeline-stage > b { font-size:1.25rem; }.pipeline-stage > i { height:4px; border-radius:4px; background:var(--stage,#d9ddd3); display:block; }
.view-heading { min-height:82px; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.view-heading p { margin:0 0 3px; color:var(--soft); font-size:.7rem; }.view-heading h2 { margin:0; font-size:1.8rem; letter-spacing:-.05em; }
.primary-button { min-height:43px; padding:0 17px; border:0; border-radius:12px; background:var(--ink); color:#fff; cursor:pointer; font-size:.76rem; font-weight:700; }.primary-button:hover { background:#30332f; }
.order-toolbar { margin:4px 0 12px; display:flex; justify-content:space-between; gap:20px; }
.search-box { width:min(340px,100%); min-height:44px; padding:0 13px; border:1px solid var(--line); border-radius:12px; background:#fff; display:flex; align-items:center; gap:9px; }
.search-box span { color:var(--soft); font-size:1.2rem; }.search-box input { width:100%; border:0; outline:0; background:transparent; font-size:.75rem; }
.filter-tabs { padding:3px; border:1px solid var(--line); border-radius:12px; background:#fff; display:flex; }
.filter-tabs button { min-height:36px; padding:0 13px; border:0; border-radius:9px; background:transparent; color:var(--soft); cursor:pointer; font-size:.7rem; }.filter-tabs button.active { background:var(--ink); color:#fff; }
.orders-table-wrap { overflow:hidden; }
.orders-table { width:100%; border-collapse:collapse; }
.orders-table th { height:48px; padding:0 16px; border-bottom:1px solid var(--line); color:var(--soft); text-align:left; font-size:.63rem; font-weight:600; white-space:nowrap; }
.orders-table td { height:72px; padding:0 16px; border-bottom:1px solid var(--line); font-size:.7rem; vertical-align:middle; }
.orders-table tr:last-child td { border-bottom:0; }.orders-table tbody tr { cursor:pointer; }.orders-table tbody tr:hover { background:#f8f9f5; }
.order-number { display:grid; gap:2px; }.order-number b { font-size:.73rem; }.order-number small { color:var(--soft); font-size:.59rem; }
.table-client { display:flex; align-items:center; gap:10px; min-width:170px; }.table-client p { margin:0; display:grid; }.table-client b { font-size:.72rem; }.table-client small { max-width:210px; color:var(--soft); font-size:.61rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.team-cell { display:flex; align-items:center; gap:7px; white-space:nowrap; }.team-cell .team-avatar { width:29px; height:29px; border-radius:9px; }
.amount-cell { font-weight:700; white-space:nowrap; }.row-more { width:30px; height:30px; border:0; border-radius:9px; background:transparent; cursor:pointer; }.row-more:hover { background:#eceee8; }
.empty-orders { padding:70px 20px; text-align:center; }.empty-orders span { font-size:2rem; color:var(--soft); }.empty-orders h3 { margin:8px 0 3px; }.empty-orders p { margin:0; color:var(--soft); font-size:.75rem; }
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.team-card { min-height:250px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
.team-card-head { display:flex; align-items:center; gap:12px; }.team-card-head .team-avatar { width:48px; height:48px; }.team-card-head p { margin:0; display:grid; }.team-card-head b { font-size:.9rem; }.team-card-head small { color:var(--soft); font-size:.65rem; }.team-card-head .status { margin-left:auto; }
.team-members { margin:24px 0; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; gap:10px; }.team-members p { margin:0; display:flex; justify-content:space-between; font-size:.68rem; }.team-members span { color:var(--soft); }
.team-card-foot { display:flex; justify-content:space-between; align-items:end; }.team-card-foot p { margin:0; display:grid; }.team-card-foot small { color:var(--soft); font-size:.6rem; }.team-card-foot b { font-size:.9rem; }.team-card-foot button { border:0; background:transparent; color:var(--soft); cursor:pointer; font-size:.67rem; }
.drawer-backdrop { position:fixed; inset:0; z-index:80; background:rgba(12,14,12,.34); backdrop-filter:blur(2px); opacity:0; transition:opacity .22s; }.drawer-backdrop.open { opacity:1; }.drawer-backdrop[hidden] { display:none; }
.order-drawer { position:fixed; z-index:90; top:0; right:0; width:min(500px,100%); height:100vh; padding:24px; overflow:auto; background:#fff; box-shadow:-30px 0 80px rgba(18,22,17,.2); transform:translateX(105%); transition:transform .28s cubic-bezier(.2,.75,.25,1); }.order-drawer.open { transform:translateX(0); }
.drawer-head { display:flex; justify-content:space-between; align-items:start; gap:16px; }.drawer-head p { margin:0; color:var(--soft); font-size:.65rem; }.drawer-head h2 { margin:3px 0 0; font-size:1.55rem; letter-spacing:-.05em; }.drawer-close { width:38px; height:38px; border:1px solid var(--line); border-radius:11px; background:#fff; cursor:pointer; font-size:1.15rem; }
.drawer-client { margin:22px 0; padding:17px; border-radius:15px; background:#f3f4ef; display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; }.drawer-client .client-avatar { width:45px; height:45px; }.drawer-client p { margin:0; display:grid; }.drawer-client b { font-size:.8rem; }.drawer-client small { color:var(--soft); font-size:.66rem; }.drawer-client a { width:34px; height:34px; border-radius:10px; background:var(--lime); display:grid; place-items:center; font-size:.8rem; }
.drawer-section { padding:19px 0; border-top:1px solid var(--line); }.drawer-section-title { margin-bottom:13px; display:flex; justify-content:space-between; align-items:center; }.drawer-section-title h3 { margin:0; font-size:.82rem; }.drawer-section-title span { color:var(--soft); font-size:.62rem; }
.detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:15px; }.detail-grid p { margin:0; display:grid; }.detail-grid span { color:var(--soft); font-size:.6rem; }.detail-grid b { font-size:.75rem; }
.drawer-field { display:grid; gap:7px; }.drawer-field + .drawer-field { margin-top:12px; }.drawer-field label { color:var(--soft); font-size:.63rem; }.drawer-field select { min-height:46px; padding:0 12px; border:1px solid var(--line); border-radius:11px; background:#fff; outline:0; }
.checklist { display:grid; gap:8px; }.check-item { min-height:42px; padding:0 11px; border:1px solid var(--line); border-radius:11px; background:#fff; display:flex; align-items:center; gap:10px; cursor:pointer; text-align:left; font-size:.69rem; }.check-item i { width:19px; height:19px; border:1px solid #cfd2c9; border-radius:6px; display:grid; place-items:center; color:transparent; font-style:normal; }.check-item.done i { border-color:var(--lime); background:var(--lime); color:var(--ink); }.check-item.done span { color:var(--soft); text-decoration:line-through; }
.drawer-total { padding:16px; border-radius:14px; background:var(--ink); color:#fff; display:flex; justify-content:space-between; align-items:center; }.drawer-total span { color:rgba(255,255,255,.55); font-size:.68rem; }.drawer-total b { font-size:1.1rem; }.drawer-actions { position:sticky; bottom:-24px; margin:22px -24px -24px; padding:16px 24px 22px; background:linear-gradient(transparent,#fff 12%,#fff); }.save-button { width:100%; min-height:50px; border:0; border-radius:13px; background:var(--lime); cursor:pointer; font-weight:750; }
.toast { position:fixed; z-index:120; left:50%; bottom:26px; max-width:calc(100% - 30px); padding:12px 18px; border-radius:100px; background:var(--ink); color:#fff; box-shadow:var(--shadow); font-size:.74rem; transform:translate(-50%,30px); opacity:0; pointer-events:none; transition:.22s; }.toast.show { transform:translate(-50%,0); opacity:1; }
@media (max-width:1120px) { .metric-grid { grid-template-columns:repeat(2,1fr); }.team-grid { grid-template-columns:repeat(2,1fr); }.pipeline { grid-template-columns:repeat(3,1fr); } }
@media (max-width:820px) {
  body { padding-bottom:72px; }.app-shell { display:block; }.sidebar { position:fixed; top:auto; bottom:0; left:0; right:0; width:100%; height:72px; padding:8px 12px; display:block; box-shadow:0 -12px 40px rgba(19,23,18,.16); }.crm-brand,.sidebar-bottom { display:none; }.main-nav { height:100%; margin:0; grid-template-columns:repeat(3,1fr); gap:8px; }.nav-item { min-height:54px; padding:4px 8px; grid-template-columns:1fr; grid-template-rows:25px 16px; justify-items:center; gap:0; text-align:center; }.nav-item > span { font-size:1rem; }.nav-item b { font-size:.62rem; }.nav-item i { display:none; }
  .workspace { padding:0 16px 36px; }.topbar { min-height:84px; }.topbar-title p { display:none; }.topbar-title h1 { font-size:1.2rem; }.profile-button p,.profile-button > i,.icon-button:first-child { display:none; }.profile-button { margin-left:0; padding:0; }.metric-grid { grid-template-columns:1fr 1fr; }.metric-card { min-height:142px; padding:16px; }.dashboard-grid { grid-template-columns:1fr; }.pipeline-panel { grid-column:auto; }.pipeline { grid-template-columns:repeat(3,1fr); }.order-toolbar { flex-direction:column; }.search-box { width:100%; }.filter-tabs { overflow:auto; }.orders-table-wrap { overflow:auto; }.orders-table { min-width:850px; }.team-grid { grid-template-columns:1fr; }.demo-banner { grid-template-columns:auto 1fr auto; }.demo-banner > button:not(.banner-close) { grid-column:2; width:max-content; }.banner-close { grid-row:1; grid-column:3; }.crm-brand { display:none; }
}
@media (max-width:540px) { .metric-grid { grid-template-columns:1fr; }.metric-card { min-height:130px; }.metric-primary { min-height:150px; }.overview-order { grid-template-columns:auto 1fr auto; }.overview-order > span:not(.client-avatar):not(.status),.overview-order > b { display:none; }.dashboard-grid { gap:10px; }.orders-panel,.schedule-panel,.pipeline-panel { padding:16px; }.pipeline { grid-template-columns:repeat(2,1fr); }.view-heading { min-height:72px; }.view-heading h2 { font-size:1.5rem; }.primary-button { padding:0 12px; }.demo-banner p small { display:none; }.order-drawer { padding:18px; }.drawer-actions { margin-inline:-18px; padding-inline:18px; }.detail-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
