/* «Аренда» — презентационная страница. Без внешних шрифтов и библиотек. */
:root {
  --navy: #0f1f4b;
  --navy-2: #1b2f66;
  --text: #33415c;
  --muted: #5b6785;
  --line: #e3e9f5;
  --bg: #f6f9ff;
  --sky: #dfeaff;
  --blue: #2f6bff;
  --blue-soft: #e8f0ff;
  --lime: #e4ff3a;
  --lime-d: #d2ee1f;
  --ok: #12a150;
  --ok-soft: #e3f7ea;
  --warn: #d9480f;
  --warn-soft: #fff0e6;
  --red: #e5484d;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 31, 75, .06), 0 8px 24px rgba(15, 31, 75, .08);
  --shadow-lg: 0 2px 6px rgba(15, 31, 75, .06), 0 24px 60px rgba(15, 31, 75, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }

/* Плашка демо */
.demo-note { background: var(--navy); color: #dfe7ff; font-size: 14px; text-align: center; padding: 8px 16px; line-height: 1.4; }
.demo-note strong { color: var(--lime); font-weight: 700; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 17px; }
.btn-lime { background: var(--lime); color: var(--navy); box-shadow: 0 1px 0 rgba(15,31,75,.12); }
.btn-lime:hover { background: var(--lime-d); transform: translateY(-1px); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--blue-soft); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.0); transition: background-color .2s, box-shadow .2s; }
.site-header.is-scrolled { background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(15,31,75,.06); backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand--light { color: #fff; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0 auto 0 12px; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--blue-soft); }
.drop-btn .ic { transition: transform .2s; }
.drop-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 8px); left: -12px; z-index: 60;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 12px; width: 640px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.drop--narrow { width: 340px; }
.has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.drop a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--navy); }
.drop a:hover, .drop a:focus-visible { background: var(--bg); }
.drop b { display: block; font-size: 15px; }
.drop small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* Иконки в квадратиках */
.ico-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); flex: none; }
.ico-sm { width: 36px; height: 36px; border-radius: 10px; }
.ico-sm .ic { width: 19px; height: 19px; }
.ico-ok { background: var(--ok-soft); color: var(--ok); }
.ico-warn { background: var(--warn-soft); color: var(--warn); }

/* Hero */
.hero {
  position: relative; padding: 48px 0 72px; margin-top: -72px; padding-top: 120px;
  background: radial-gradient(1200px 520px at 75% -10%, #c7dcff 0%, rgba(199,220,255,0) 70%), linear-gradient(180deg, #dbe8ff 0%, #eef4ff 45%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 14px; }
.eyebrow-light { color: var(--lime); }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.lead-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; max-width: 520px; }
.lead-form input {
  flex: 1 1 240px; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid #c9d5ee; background: #fff; color: var(--navy);
}
.lead-form input::placeholder { color: #6f7a96; }
.lead-form input:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-msg { flex-basis: 100%; margin: 0; font-size: 15px; min-height: 1.4em; color: var(--navy); }
.form-msg.is-error { color: #b42318; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--navy); font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.4; }

.hero-visual { position: relative; padding: 24px 28px 40px 40px; }
.hero-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 720 / 820; max-height: 600px; margin-left: auto;
  background: linear-gradient(160deg, #b9cff7, #8eaee8 60%, #6f92d8); box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px 16px; line-height: 1.3; color: var(--navy); max-width: 290px;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 18px; }
.float-card small { display: block; font-size: 13px; color: var(--text); }
.float-card small.muted { color: var(--muted); font-size: 12px; }
.fc-pay { left: 0; top: 18%; }
.fc-index { right: 0; bottom: 6%; animation-delay: -2s; }
.fc-chart { right: -6px; top: 4%; flex-direction: column; align-items: flex-start; gap: 2px; width: 190px; animation-delay: -4s; }
.fc-chart b { font-size: 26px; }
.mini-chart { width: 158px; height: 56px; margin-top: 6px; }
.mini-chart rect { fill: #cfdcf7; }
.mini-chart rect.hl { fill: var(--blue); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Секции */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.section-head--left { text-align: left; margin: 0; }
.section-sub { font-size: 1.1rem; color: var(--muted); }

.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-sm { padding: 22px; }
.card-sm h3 { font-size: 1.12rem; }

.why { background: var(--bg); }

/* Демо-окно */
.demo-section { padding-top: 40px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.demo { position: relative; }
.demo-stage { position: relative; padding: 0 40px; }
.dw {
  position: relative; z-index: 2; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid #d9e2f3; box-shadow: var(--shadow-lg); font-size: 13px; color: #1f2a44; line-height: 1.35;
}
.dw-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f3f6fb; border-bottom: 1px solid #e3e8f2; }
.dw-dots { display: inline-flex; gap: 7px; }
.dw-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dw-dots i:nth-child(2) { background: #febc2e; }
.dw-dots i:nth-child(3) { background: #28c840; }
.dw-title { flex: 1; text-align: center; font-weight: 600; color: #4a5672; font-size: 12.5px; }
.dw-bar-sp { width: 50px; }
.dw-body { position: relative; display: grid; grid-template-columns: 200px 1fr; height: 560px; overflow: hidden; }
.dw-side { background: #fafbfd; border-right: 1px solid #eceff5; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.dw-ws { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 6px 8px; color: var(--navy); }
.dw-ws span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-search { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #e6eaf2; color: #8792ab; }
.dw-search .ic { width: 15px; height: 15px; }
.dw-search span { flex: 1; }
.dw-search kbd { font-family: var(--font); font-size: 11px; color: #9aa3b8; }
.dw-nav, .dw-fav { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.dw-nav li { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: #3c4763; font-weight: 500; transition: background-color .2s, color .2s; }
.dw-nav li .ic { width: 16px; height: 16px; color: #7d88a3; }
.dw-nav li.is-active { background: #e9effc; color: var(--navy); font-weight: 650; }
.dw-nav li.is-active .ic { color: var(--blue); }
.dw-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; transition: transform .25s; }
.dw-badge.is-bump { transform: scale(1.35); }
.dw-side-cap { margin: 12px 8px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9aa3b8; font-weight: 600; }
.dw-fav li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: #56617c; }
.dot { width: 8px; height: 8px; border-radius: 3px; background: var(--blue); flex: none; }
.dot-b { background: #f59e0b; }
.dot-c { background: var(--red); }

.dw-main { position: relative; padding: 16px 20px; overflow: hidden; min-width: 0; }
.dw-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dw-h h4 { margin: 0; font-size: 16px; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.dw-h .dw-count { color: #8792ab; font-weight: 500; }
.dw-h .sp { flex: 1; }
.dw-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid #dfe5f0; background: #fff; font-weight: 600; color: var(--navy); font-size: 12.5px; transition: background-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.dw-btn .ic { width: 15px; height: 15px; }
.dw-btn--lime { background: var(--lime); border-color: #cde51d; }
.dw-btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.dw-btn.is-pressed { transform: scale(.95); box-shadow: 0 0 0 4px rgba(47,107,255,.18); }
.dw-btn[disabled] { opacity: .6; }
.dw-tabsline { display: flex; gap: 16px; border-bottom: 1px solid #eceff5; margin-bottom: 10px; color: #7d88a3; font-weight: 500; }
.dw-tabsline span { padding-bottom: 7px; }
.dw-tabsline span.on { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }

.dw-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dw-table th { text-align: left; font-weight: 500; color: #8792ab; font-size: 12px; padding: 7px 8px; border-bottom: 1px solid #eceff5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-table td { padding: 8px; border-bottom: 1px solid #f1f3f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-table td.num, .dw-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dw-table tr.row { transition: background-color .25s, box-shadow .25s; }
.dw-table tr.row.is-hl td { background: #edf3ff; }
.dw-table tr.row.is-sel td { background: #e2ecff; box-shadow: inset 0 1px 0 #b9cdf8, inset 0 -1px 0 #b9cdf8; }
.cell-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--navy); }
.cell-name > span { overflow: hidden; text-overflow: ellipsis; }
.av { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); flex: none; }
.av.c1 { background: #7c5cff; } .av.c2 { background: #12a150; } .av.c3 { background: #f59e0b; } .av.c4 { background: #e5484d; } .av.c5 { background: #0ea5e9; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef2f9; color: #4a5672; white-space: nowrap; transition: background-color .3s, color .3s; }
.tag.ok { background: var(--ok-soft); color: #0b7a3b; }
.tag.warn { background: var(--warn-soft); color: #b03a0a; }
.tag.red { background: #fde8e8; color: #b42318; }
.tag.blue { background: var(--blue-soft); color: #1d4fd6; }
.tag.draft { background: #f3f4f6; color: #5b6785; }
.tag.lime { background: #f4ffb8; color: #3d4a00; }

.appear { animation: appear .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Плавающая карточка справа в окне */
.dw-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 360px; max-width: 100%; z-index: 4;
  background: #fff; border-left: 1px solid #e3e8f2; box-shadow: -18px 0 40px rgba(15,31,75,.10);
  transform: translateX(105%); transition: transform .55s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.dw-panel.is-open { transform: none; }
.pn-head { padding: 14px 16px 10px; border-bottom: 1px solid #eef1f6; }
.pn-head h5 { margin: 0 0 6px; font-size: 15px; color: var(--navy); line-height: 1.25; }
.pn-head .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pn-body { padding: 12px 16px; overflow: hidden; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; }
.kv dt { color: #8792ab; }
.kv dd { margin: 0; color: #1f2a44; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9aa3b8; font-weight: 700; margin: 4px 0 0; }
.chat { display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 88%; padding: 8px 10px; border-radius: 12px; background: #f1f4fa; color: #1f2a44; line-height: 1.35; }
.bubble small { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #8792ab; margin-bottom: 2px; font-weight: 600; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; }
.bubble.me small { color: #a9b6d9; }
.ch { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 999px; color: #fff; background: #229ed9; line-height: 16px; }
.ch.viber { background: #7360f2; }
.ch.mail { background: #5b6785; }
.composer { display: flex; align-items: center; gap: 6px; border: 1px solid #dfe5f0; border-radius: 10px; padding: 6px 6px 6px 10px; min-height: 40px; transition: border-color .2s, box-shadow .2s; }
.composer.is-focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.14); }
.composer .txt { flex: 1; min-width: 0; color: #1f2a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.composer .txt.empty { color: #9aa3b8; direction: ltr; }
.composer .txt::after { content: ""; display: inline-block; width: 1px; height: 14px; background: transparent; vertical-align: -2px; }
.composer.is-focus .txt::after { background: var(--navy); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.send { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s; }
.send .ic { width: 15px; height: 15px; }
.send.is-pressed { transform: scale(.88); }
.task-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e3e8f2; border-radius: 10px; background: #fbfcff; }
.task-row .ic { width: 16px; height: 16px; color: var(--blue); }
.task-row b { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Тост */
.dw-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 6; transform: translate(-50%, 20px); opacity: 0;
  background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center;
  max-width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-lg); transition: opacity .35s, transform .35s; pointer-events: none;
}
.dw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.dw-toast .ic { color: var(--lime); width: 18px; height: 18px; }
.dw-toast b { font-weight: 650; }

/* Курсор */
.dw-cursor {
  position: absolute; left: 0; top: 0; z-index: 8; width: 26px; height: 26px; pointer-events: none;
  transform: translate(var(--cx, 60%), var(--cy, 70%)); transition: transform .8s cubic-bezier(.45,.05,.25,1), opacity .3s;
  opacity: 0;
}
.dw-cursor.is-on { opacity: 1; }
.dw-cursor::before {
  content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(47,107,255,.22); border: 2px solid rgba(47,107,255,.9); box-shadow: 0 2px 8px rgba(15,31,75,.25);
  transition: transform .2s;
}
.dw-cursor svg { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; fill: var(--navy); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.dw-cursor.is-click::before { transform: scale(.7); background: rgba(47,107,255,.45); }
.dw-cursor.is-click::after {
  content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--blue); animation: ripple .55s ease-out forwards;
}
@keyframes ripple { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* Канбан */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: calc(100% - 44px); }
.kcol { background: #f6f8fc; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kcol-h { display: flex; align-items: center; gap: 6px; font-weight: 650; color: #3c4763; padding: 2px 4px; font-size: 12.5px; }
.kcol-h em { font-style: normal; color: #8792ab; font-weight: 500; }
.kcard { background: #fff; border: 1px solid #e3e8f2; border-radius: 10px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(15,31,75,.05); transition: transform .9s cubic-bezier(.45,.05,.25,1), box-shadow .3s, border-color .3s; position: relative; }
.kcard b { display: block; color: var(--navy); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard small { display: block; color: #7d88a3; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .tag { margin-top: 6px; }
.kcard.is-grab { box-shadow: 0 16px 30px rgba(15,31,75,.22); border-color: #9db8f5; z-index: 3; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(2deg); }
.kcard.is-drop { animation: drop .4s ease-out; }
@keyframes drop { 0% { transform: scale(1.04); } 100% { transform: none; } }

/* KPI-плитки */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { min-width: 0; border: 1px solid #e6ebf4; border-radius: 12px; padding: 10px 12px; background: #fff; }
.kpi small { display: block; color: #8792ab; font-size: 11.5px; }
.kpi b { display: block; font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.kpi.red b { color: #c4271f; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: #f4ffb8; color: #2f3900; margin-top: 10px; }
.notice .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.notice.blue { background: var(--blue-soft); color: #1d3d8f; }
.progress { height: 6px; border-radius: 99px; background: #eef1f7; overflow: hidden; margin: 2px 0 10px; }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--blue); border-radius: inherit; }
.aging { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #eef1f7; }
.aging i { display: block; height: 100%; width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.aging i:nth-child(1) { background: #fcd34d; } .aging i:nth-child(2) { background: #fb923c; } .aging i:nth-child(3) { background: #f97316; } .aging i:nth-child(4) { background: #e5484d; }
.aging-legend { display: flex; justify-content: space-between; color: #8792ab; font-size: 11px; }
.calc { font-family: var(--mono); font-size: 11.5px; background: #f6f8fc; border-radius: 8px; padding: 8px 10px; color: #33415c; white-space: normal; }

/* Приёмка */
.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; max-width: 440px; }
.chk { display: grid; grid-template-columns: 52px 52px 1fr; gap: 8px; align-items: center; border: 1px solid #e6ebf4; border-radius: 10px; padding: 6px; background: #fff; transition: background-color .25s, border-color .25s; min-width: 0; }
.chk img { width: 52px; height: 39px; object-fit: cover; border-radius: 6px; background: #eef2f9; }
.chk b { display: block; color: var(--navy); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk.is-sel { background: #edf3ff; border-color: #b9cdf8; }
.compare { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eef2f9; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--split, 100%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 100%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(15,31,75,.2); }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 13px; box-shadow: var(--shadow); }
.compare .lbl { position: absolute; top: 8px; padding: 1px 8px; border-radius: 99px; background: rgba(15,31,75,.75); color: #fff; font-size: 11px; font-weight: 600; }
.compare .lbl.l { left: 8px; } .compare .lbl.r { right: 8px; }
.meta-line { display: flex; gap: 6px; align-items: center; color: #7d88a3; font-size: 11.5px; }
.meta-line .ic { width: 14px; height: 14px; }

/* Энергия */
.energy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.chart-box { border: 1px solid #e6ebf4; border-radius: 12px; padding: 12px; }
.chart-box .legend { display: flex; gap: 12px; color: #7d88a3; font-size: 11.5px; margin-bottom: 8px; }
.chart-box .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: #c7d7f6; }
.chart-box .legend i.g { background: #b8d400; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 220px; }
.bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-col .c, .bar-col .g { position: absolute; bottom: 18px; width: 72%; border-radius: 4px 4px 0 0; height: calc((100% - 18px) * var(--h, 0)); transition: height .9s cubic-bezier(.2,.7,.2,1); }
.bar-col .c { background: #c7d7f6; }
.bar-col .g { background: var(--lime); width: 44%; box-shadow: inset 0 0 0 1px #c6e000; transition-delay: .25s; }
.bar-col span { position: absolute; bottom: 0; font-size: 10px; color: #8792ab; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.toggle i { width: 34px; height: 20px; border-radius: 99px; background: #d5dcea; position: relative; transition: background-color .25s; }
.toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on i { background: var(--blue); }
.toggle.on i::after { transform: translateX(14px); }
.ekpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foot-note { color: #8792ab; font-size: 11px; margin-top: 8px; }

/* Плавающие мини-окна вокруг демо */
.demo-float {
  position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 12px 14px; line-height: 1.3; color: var(--navy); width: 250px;
  animation: bob 7s ease-in-out infinite;
}
.demo-float b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.demo-float small { display: block; font-size: 12px; color: var(--text); }
.demo-float small.muted { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.demo-float .ico-box { width: 40px; height: 40px; }
.df-call { right: 0; top: -34px; }
.df-penalty { right: 0; bottom: -30px; animation-delay: -2.5s; }
.df-map { left: 0; bottom: -34px; width: 176px; flex-direction: column; align-items: stretch; gap: 6px; animation-delay: -5s; }
.df-map-svg { width: 100%; height: auto; background: #eef4ff; border-radius: 10px; }
.df-map-svg .river { fill: none; stroke: #bcd3fb; stroke-width: 9; stroke-linecap: round; }
.df-map-svg circle { fill: var(--blue); stroke: #fff; stroke-width: 1.5; }
.df-map-svg circle.r { fill: var(--red); }
.df-map-svg circle.v { fill: #94a3b8; }
.df-map-svg circle.pulse { fill: rgba(229,72,77,.25); stroke: none; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.demo-float.is-flash { box-shadow: 0 0 0 4px rgba(228,255,58,.9), var(--shadow-lg); }

.demo-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 52px; flex-wrap: wrap; }
.demo-tabs { display: inline-flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); flex-wrap: wrap; justify-content: center; }
.demo-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 0; background: transparent;
  color: var(--muted); font-weight: 650; cursor: pointer; overflow: hidden; min-height: 44px;
}
.demo-tab .ic { width: 18px; height: 18px; }
.demo-tab:hover { color: var(--navy); background: var(--bg); }
.demo-tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.demo-tab[aria-selected="true"] .ic { color: var(--lime); }
.tab-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--lime); }
.demo-tab[aria-selected="false"] .tab-progress { display: none; }
.demo-pause { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.demo-pause .ic-play { display: none; }
.demo-pause[aria-pressed="true"] .ic-play { display: block; }
.demo-pause[aria-pressed="true"] .ic-pause { display: none; }
.demo-caption { text-align: center; color: var(--muted); max-width: 720px; margin: 16px auto 0; font-size: 15.5px; min-height: 3em; }

/* Возможности */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; scroll-margin-top: 90px; }
.feature--rev .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-top: 18px; }
.feature-text > p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature-media { position: relative; border-radius: var(--radius-lg); background: linear-gradient(150deg, #cddcf8, #9fb9ea); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.feature-media > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.feature-media--plain { background: #eef4ff; box-shadow: var(--shadow); }
.overlay-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; line-height: 1.3; color: var(--navy);
  display: flex; flex-direction: column; gap: 4px; min-width: 210px; max-width: 280px;
}
.overlay-card small { color: var(--muted); font-size: 13px; }
.overlay-card b { font-size: 18px; }
.oc-br { right: -20px; bottom: -22px; }
.oc-tl { left: -20px; top: -22px; }
.pill { display: inline-flex; align-self: flex-start; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--blue-soft); color: #1d4fd6; }
.pill-ok { background: var(--ok-soft); color: #0b7a3b; }
.pill-lime { background: var(--lime); color: var(--navy); }
.bar { display: flex; gap: 3px; height: 8px; margin-top: 4px; }
.bar i { border-radius: 99px; }
.bar .b1 { flex: 3; background: #fcd34d; } .bar .b2 { flex: 2; background: #fb923c; } .bar .b3 { flex: 1.4; background: var(--red); }
.oc-chat p { margin: 0; background: #f1f4fa; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--navy); }
.oc-chat p.me { background: var(--navy); color: #fff; align-self: flex-end; }
.ch-badge { align-self: flex-start; font-size: 11px; font-weight: 700; color: #fff; background: #229ed9; padding: 1px 8px; border-radius: 99px; }
.channels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.channels li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); font-weight: 600; font-size: 15px; }
.channels .ic { width: 18px; height: 18px; color: var(--blue); }

.feature-media--phone { display: grid; place-items: center; background: linear-gradient(150deg, #dfeaff, #b8cdf4); }
.phone { width: 260px; background: #fff; border-radius: 30px; padding: 18px 14px 20px; box-shadow: 0 0 0 8px var(--navy), var(--shadow-lg); }
.phone-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--navy); margin-bottom: 10px; }
.phone-head small { color: var(--muted); }
.phone-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-photos figure { margin: 0; }
.phone-photos img { border-radius: 10px; background: #eef2f9; width: 100%; }
.phone-photos figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; font-weight: 600; }
.phone-note { font-size: 14px; color: var(--navy); background: var(--warn-soft); padding: 8px 10px; border-radius: 10px; margin: 10px 0 8px; }
.phone-sum { display: flex; justify-content: space-between; margin: 0; color: var(--muted); font-size: 14px; }
.phone-sum b { color: var(--navy); }

.who { background: var(--bg); }

/* Цифры */
.metrics { padding: 40px 0 88px; background: var(--bg); }
.metrics-box { background: var(--navy); border-radius: 24px; padding: 48px; color: #c9d4f2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; background-image: radial-gradient(600px 300px at 100% 0%, rgba(47,107,255,.35), transparent 70%); }
.metrics-box h2 { color: #fff; }
.metrics-head p { margin: 0; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.metrics-grid div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px; }
.metrics-grid dt { font-size: 2.1rem; font-weight: 800; color: var(--lime); letter-spacing: -.02em; line-height: 1.1; }
.metrics-grid dd { margin: 8px 0 0; color: #dbe3f8; font-size: 15px; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--navy); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.step small { display: inline-block; font-weight: 700; color: var(--blue); font-size: 13.5px; }
.note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 24px; }

/* Цены */
.pricing { background: var(--bg); }
.price { display: flex; flex-direction: column; gap: 4px; }
.price h3 { margin-top: 0; font-size: 1.5rem; }
.price-sub { color: var(--muted); }
.price-val { font-size: 1.6rem; font-weight: 800; color: var(--navy) !important; margin: 4px 0 16px !important; }
.price--hl { border: 2px solid var(--navy); }
.price .pill { margin-bottom: 10px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { margin: 0; font-size: 1.1rem; }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 20px 4px; border: 0; background: none; color: var(--navy); font-weight: 700; font-size: 1.08rem; cursor: pointer; line-height: 1.35;
}
.acc-btn .ic { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); transition: transform .25s, background-color .2s; }
.acc-btn[aria-expanded="true"] .ic { transform: rotate(45deg); background: var(--lime); color: var(--navy); }
.acc-panel { padding: 0 4px 20px; color: var(--text); }
.acc-panel p { margin: 0; max-width: 46em; }

/* CTA */
.cta { padding-top: 40px; }
.cta-box { background: linear-gradient(135deg, #dbe8ff, #eef4ff 60%, #f6ffd0); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; border: 1px solid #d3e0fa; }
.cta-box h2 { margin-bottom: .3em; }
.cta-box p { color: var(--text); margin: 0; font-size: 1.1rem; }
.cta-box .lead-form { margin: 0; }
.cta-link { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; justify-self: start; }
.cta-link:hover { text-decoration: underline; }

/* Подвал */
.site-footer { background: var(--navy); color: #b9c5e6; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 28em; }
.footer-h { color: #fff; font-size: 15px; margin: 6px 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c5e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer :focus-visible { outline-color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 13.5px; color: #93a2cc; }
.footer-bottom p { margin: 0; }

/* Появление при прокрутке (только если JS работает) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1240px) {
  .demo-stage { padding: 0 16px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; padding: 12px 20px 24px; box-shadow: 0 20px 40px rgba(15,31,75,.15); border-top: 1px solid var(--line);
    max-height: calc(100vh - 72px); overflow: auto; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-header { background: rgba(255,255,255,.94); }
  .nav-list { flex-direction: column; margin: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px; }
  .drop { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-drop.is-open .drop { display: block; }
  .drop-grid { grid-template-columns: 1fr; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .demo-float { display: none; }
  .demo-stage { padding: 0; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature--rev .feature-text { order: 0; }
  .feature-media { max-width: 640px; }
  .metrics-box { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-box { grid-template-columns: 1fr; padding: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cards-3 { grid-template-columns: 1fr; }
  .dw-body { grid-template-columns: 52px 1fr; height: 520px; }
  .dw-side { padding: 10px 6px; align-items: center; }
  .dw-ws span, .dw-search, .dw-nav li span, .dw-side-cap, .dw-fav { display: none; }
  .dw-nav li { padding: 8px; justify-content: center; position: relative; }
  .dw-nav li .ic { width: 18px; height: 18px; }
  .dw-badge { position: absolute; top: 1px; right: 0; padding: 0 5px; line-height: 15px; font-size: 10px; }
  .dw-main { padding: 12px; }
  .hide-sm { display: none; }
  .dw-panel { width: 88%; }
  .energy { grid-template-columns: 1fr; }
  .bars { height: 150px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 104px; padding-bottom: 48px; }
  .hero-visual { padding: 18px 8px 30px 8px; }
  .float-card { padding: 10px 12px; max-width: 220px; }
  .float-card b { font-size: 15px; }
  .float-card .ico-box { width: 36px; height: 36px; }
  .fc-pay { left: -4px; top: 30%; }
  .fc-chart { width: 150px; right: -4px; top: 0; }
  .fc-chart b { font-size: 20px; }
  .mini-chart { width: 120px; height: 42px; }
  .fc-index { right: -4px; bottom: 0; }
  .lead-form .btn { width: 100%; }
  .demo-tabs { gap: 2px; padding: 4px; }
  .demo-tab { padding: 8px 10px; font-size: 14px; }
  .demo-tab .ic { display: none; }
  .dw-body { height: 500px; }
  .dw { font-size: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .ekpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(3) { display: none; }
  .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kanban .kcol:first-child { display: none; }
  .kcol { padding: 6px; }
  .oc-br { right: 8px; bottom: -28px; }
  .oc-tl { left: 8px; top: -28px; }
  .overlay-card { min-width: 0; max-width: 240px; padding: 10px 12px; }
  .feature { padding: 32px 0; }
  .metrics-box { padding: 28px 20px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .cta-box { padding: 28px 20px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone { width: 230px; }
  .dw-title { font-size: 11.5px; }
  .dw-bar-sp { display: none; }
}

/* Уважение к настройке «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dw-cursor { display: none; }
}

/* Служебное */
[hidden] { display: none !important; }
img.is-broken { visibility: hidden; }
.kv > div { display: contents; }
@media (max-width: 860px) { .kv > div.hide-sm { display: none; } }

.feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #eef1f6; border-radius: 10px; }
.feed li .ic { width: 16px; height: 16px; color: var(--blue); }
.feed li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li em { font-style: normal; color: #8792ab; font-size: 11.5px; }

/* ИИ-подсказки */
.insights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 560px; }
.insight { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lbl body" "lbl conf"; gap: 4px 10px; align-items: start; padding: 10px 12px; border: 1px solid #e6ebf4; border-radius: 12px; background: #fff; border-left: 4px solid var(--ok); transition: background-color .25s, border-color .25s; }
.insight.hyp { border-left-color: #c8b400; }
.insight.is-sel { background: #fbffe6; }
.insight .lbl { grid-area: lbl; font-family: var(--mono); letter-spacing: .04em; font-size: 10.5px; }
.ins-body { grid-area: body; min-width: 0; }
.ins-body b { display: block; color: var(--navy); font-weight: 600; line-height: 1.3; }
.ins-body small { display: block; color: #8792ab; font-size: 11px; }
.conf { grid-area: conf; display: flex; align-items: center; gap: 8px; color: #8792ab; font-size: 11px; }
.conf-bar { flex: 1; max-width: 160px; height: 6px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.conf-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); }
.insight.hyp .conf-bar i { background: #e0c200; }
.conf em { font-style: normal; font-family: var(--mono); color: #4a5672; }

/* Счётчики дней до срока — моно-чипы */
.due { display: inline-block; font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; line-height: 1.4; white-space: nowrap; letter-spacing: -.02em; }
.due-red { background: #fde8e8; color: #b42318; box-shadow: inset 0 0 0 1px #f8c4c4; }
.due-amber { background: #fff4d6; color: #8a5a00; box-shadow: inset 0 0 0 1px #f5dc94; }
.due-green { background: var(--ok-soft); color: #0b6b34; box-shadow: inset 0 0 0 1px #b9e6c9; }
.fc-pay .due { margin-top: 6px; }
.fc-index { flex-direction: column; align-items: stretch; gap: 8px; width: 270px; }
.fc-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.fc-head .ic { color: var(--blue); }
.due-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.due-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.due-list small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .fc-index { width: 220px; } .due-list li { font-size: 12.5px; } .fc-pay .muted { display: none; } }

/* Кабинеты по ролям */
.roles-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.role-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--navy); font-weight: 650; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.role-tab .ic { width: 18px; height: 18px; color: var(--blue); }
.role-tab:hover { border-color: #b9cdf8; }
.role-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.role-tab[aria-selected="true"] .ic { color: var(--lime); }
.role-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 8px 12px 4px; }
.role-panel.is-active { animation: roleIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes roleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.role-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
.mini { border-radius: 16px; border: 1px solid #d9e2f3; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; color: #1f2a44; max-width: 520px; width: 100%; justify-self: center; }
.mini--phone { max-width: 340px; border-radius: 26px; box-shadow: 0 0 0 7px var(--navy), var(--shadow-lg); }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f3f6fb; border-bottom: 1px solid #e3e8f2; }
.mini-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mini-bar i:nth-child(2) { background: #febc2e; } .mini-bar i:nth-child(3) { background: #28c840; }
.mini-bar span { margin-left: 8px; font-weight: 650; color: #4a5672; font-size: 13px; }
.mini-body { padding: 14px; display: grid; gap: 8px; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.mini-kpis div { border: 1px solid #e6ebf4; border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mini-kpis small { display: block; color: #8792ab; font-size: 12px; }
.mini-kpis b { display: block; color: var(--navy); font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-kpis .r b { color: #c4271f; }
.mini-chart2 { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 4px 2px; }
.mini-chart2 i { flex: 1; border-radius: 4px 4px 0 0; background: #cfdcf7; height: 50%; }
.mini-chart2 i:nth-child(2n) { height: 64%; } .mini-chart2 i:nth-child(3n) { height: 42%; } .mini-chart2 i:nth-child(5n) { height: 78%; }
.mini-chart2 i.hl { background: var(--blue); height: 92%; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #eef1f6; border-radius: 10px; }
.mini-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row em { font-style: normal; flex: none; }
.mini-btn { justify-self: start; background: var(--lime); color: var(--navy); font-weight: 700; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; }

/* Заявка арендатора */
.tickets { background: var(--bg); }
.tk { display: grid; gap: 28px; }
.tk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tk-steps::before, .tk-steps::after { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 99px; background: #d9e3f6; }
.tk-steps::after { right: auto; width: calc(75% * var(--tk, 0)); background: var(--blue); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.tk-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--muted); }
.tk-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid #d9e3f6; display: grid; place-items: center; transition: border-color .3s, background-color .3s, transform .3s; }
.tk-step b { color: var(--muted); font-size: 15.5px; transition: color .3s; }
.tk-step small { font-family: var(--mono); font-size: 12px; opacity: 0; transition: opacity .3s; }
.tk-step.is-done .tk-dot { background: var(--blue); border-color: var(--blue); }
.tk-step.is-done .tk-dot::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.tk-step.is-current .tk-dot { border-color: var(--blue); background: var(--lime); transform: scale(1.12); }
.tk-step.is-done b, .tk-step.is-current b { color: var(--navy); }
.tk-step.is-done small, .tk-step.is-current small { opacity: 1; }
.tk-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tk-who { font-weight: 700; color: var(--navy); margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.tk-who em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; }
.tk-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-height: 290px; overflow: hidden; font-size: 15px; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--navy); }
.tk-title { color: var(--muted); margin: 6px 0 12px; }
.tk-log { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; min-height: 96px; font-size: 14px; }
.tk-log li { display: flex; gap: 10px; animation: appear .4s both; }
.tk-log time { font-family: var(--mono); color: var(--muted); font-size: 12.5px; flex: none; padding-top: 1px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-btn { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 9px; border: 1px solid #dfe5f0; font-weight: 650; font-size: 14px; color: var(--navy); background: #fff; transition: transform .15s, box-shadow .2s, opacity .3s; }
.tk-btn--lime { background: var(--lime); border-color: #cde51d; }
.tk-btn--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tk-btn.is-pressed { transform: scale(.94); box-shadow: 0 0 0 4px rgba(47,107,255,.25); }
.tk-btn.is-off { opacity: .4; }
.tk-big { font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 18px 0 12px; line-height: 1.25; }
.tk-progress { height: 8px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.tk-progress i { display: block; height: 100%; width: calc(var(--tk, 0) * 100%); background: var(--blue); border-radius: inherit; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.tk-hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.tk-stamp {
  position: absolute; right: 22px; bottom: 26px; padding: 6px 16px; border: 4px solid #12a150; border-radius: 10px; color: #12a150;
  font-family: var(--mono); font-weight: 800; font-size: 22px; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-3deg) scale(1.6); opacity: 0; transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); background: rgba(255,255,255,.85);
}
.tk.is-final .tk-stamp { opacity: 1; transform: rotate(-3deg) scale(1); }

@media (max-width: 860px) {
  .role-panel { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .roles-box { padding: 18px; }
  .tk-screens { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .role-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -18px 20px; padding: 2px 18px 6px; scrollbar-width: none; }
  .role-tab { flex: none; padding: 8px 14px; }
  .tk-step b { font-size: 13px; }
  .tk-step small { font-size: 10.5px; }
  .tk-card { padding: 16px; min-height: 0; }
  .tk-stamp { font-size: 18px; right: 14px; bottom: 16px; }
  .demo-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; max-width: 100%; scrollbar-width: none; }
  .demo-tab { flex: none; }
  .dw-body { height: 470px; }
}
@media (max-width: 400px) {
  .tk-step small { font-size: 9.5px; letter-spacing: -.03em; }
  .dw-toast { font-size: 11.5px; padding: 8px 10px; bottom: 10px; }
  .dw-panel { width: 100%; }
}
