:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #10231c;
  --muted: #63726c;
  --line: #dce6e1;
  --green: #0d5c46;
  --green-dark: #084536;
  --green-soft: #dceee7;
  --accent: #74b49f;
  --shadow: 0 24px 70px rgba(20, 52, 41, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--surface-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 247, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(19, 48, 38, .06); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green); color: white;
  font-weight: 800; letter-spacing: -.03em;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #495b54; font-size: .95rem; }
.nav a:hover { color: var(--green); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--green); color: #fff; font-weight: 700;
  border: 1px solid var(--green); transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--green-dark); border-color: var(--green-dark); }
.button-small { min-height: 42px; padding: 0 17px; font-size: .92rem; }
.button-ghost { background: transparent; color: var(--green); border-color: #b7cec5; }
.button-ghost:hover { background: #edf5f2; color: var(--green-dark); }
.button-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.button-light:hover { background: #eef6f2; border-color: #eef6f2; }

.hero { padding-top: 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; font-weight: 800; margin-bottom: 18px; }
.eyebrow.light { color: #bce3d5; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.1rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; margin-bottom: 28px; max-width: 780px; }
h1 span { color: var(--green); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -.05em; margin-bottom: 22px; }
h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 10px; letter-spacing: -.025em; }
.hero-lead { font-size: 1.18rem; color: #53645d; max-width: 690px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; gap: 10px; align-items: center; margin-top: 30px; color: #5b6c65; font-size: .92rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(116,180,159,.16); }

.product-window {
  background: #10231c; border-radius: 30px; box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.window-top { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; color: #b9c9c3; font-size: .72rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.window-status { justify-self: end; color: #79bfa7; }
.mock-layout { display: grid; grid-template-columns: 64px 1fr; min-height: 480px; }
.mock-side { background: #0b1914; padding: 16px 12px; display: flex; flex-direction: column; gap: 17px; align-items: center; }
.mock-logo { width: 34px; height: 34px; border-radius: 11px; background: #1a6d55; color: #fff; display: grid; place-items: center; font-size: .68rem; font-weight: 800; margin-bottom: 12px; }
.mock-side > span { width: 27px; height: 7px; border-radius: 8px; background: rgba(255,255,255,.12); }
.mock-side > span.active { background: #6db69c; }
.mock-main { padding: 24px; background: linear-gradient(145deg, #f8faf9, #edf4f1); }
.mock-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; color: #20352c; }
.mock-heading em { width: 28px; height: 28px; border-radius: 50%; background: #d7e7e0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row div { background: #fff; border: 1px solid #dce8e3; border-radius: 14px; padding: 14px; }
.stat-row small { display: block; color: #7a8983; font-size: .67rem; }
.stat-row strong { display: block; margin-top: 7px; color: #204b3d; font-size: 1.45rem; }
.mock-cards { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; margin-top: 10px; }
.mock-card { background: #fff; border: 1px solid #dce8e3; border-radius: 16px; padding: 17px; min-height: 126px; }
.mock-card-wide { grid-row: span 2; min-height: 264px; }
.line { width: 74%; height: 7px; border-radius: 9px; background: #dfe9e5; margin-bottom: 10px; }
.line.lg { width: 48%; height: 9px; background: #b8d4c8; }
.line.sm { width: 40%; }
.mini-table { margin-top: 28px; display: grid; gap: 8px; }
.mini-table i { height: 24px; border-radius: 7px; background: #eef4f1; border-left: 4px solid #8bbdab; }
.badge-row { display: flex; gap: 6px; margin-top: 25px; }
.badge-row i { width: 31px; height: 18px; border-radius: 9px; background: #dff0e9; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { padding: 26px 24px; border-right: 1px solid var(--line); }
.trust-grid div:first-child { padding-left: 0; }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: .96rem; }
.trust-grid span { color: var(--muted); font-size: .82rem; margin-top: 4px; }

.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading p, .principle-copy p, .local-copy p { color: var(--muted); font-size: 1.05rem; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; min-height: 230px; }
.problem > span { color: #9db5ac; font-size: .76rem; font-weight: 800; }
.problem h3 { margin-top: 38px; }
.problem p, .feature p, .step p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

.principle-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.system-map { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.system-box { min-height: 220px; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.system-box small { text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; font-weight: 800; margin-bottom: 18px; }
.system-box strong { font-size: 2.2rem; letter-spacing: -.05em; }
.system-box span { font-size: .85rem; margin-top: 14px; opacity: .75; }
.system-box.muted { background: #fff; border: 1px solid #d7e3de; }
.system-box.primary { background: var(--green); color: white; box-shadow: 0 20px 50px rgba(13,92,70,.2); }
.system-link { display: grid; place-items: center; padding: 0 10px; }
.system-link span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #d9eae3; color: var(--green); font-weight: 800; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); min-height: 225px; }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-weight: 800; margin-bottom: 28px; }

.local-section { background: #10231c; color: white; }
.local-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.local-copy .eyebrow { color: #8dcbb5; }
.local-copy p { color: #b5c5bf; }
.server-card { background: #182d25; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.server-head { display: flex; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.server-head span { width: 7px; height: 7px; background: rgba(255,255,255,.22); border-radius: 50%; }
.server-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px 2px; border-bottom: 1px solid rgba(255,255,255,.06); }
.server-row:last-child { border-bottom: 0; }
.server-row i { width: 10px; height: 10px; border-radius: 50%; background: #69c6a5; box-shadow: 0 0 0 5px rgba(105,198,165,.1); }
.server-row b { font-size: .88rem; }
.server-row em { font-style: normal; color: #7fc5ad; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.network-line { height: 42px; width: 1px; background: rgba(255,255,255,.2); margin: 0 auto; }
.network-devices { display: flex; justify-content: center; gap: 12px; }
.network-devices span { display: grid; place-items: center; width: 58px; height: 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; color: #a9c1b8; font-size: .72rem; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 28px; color: #d5e0dc; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #78c2a8; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid #dbe6e1; }
.step > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #dceee7; color: var(--green); font-weight: 800; }
.step h3 { margin-top: 7px; }

.audience-section { padding-top: 84px; }
.audience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.audience-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.audience-list div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.audience-list div:nth-child(odd) { padding-right: 25px; }
.audience-list div:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
.audience-list strong, .audience-list span { display: block; }
.audience-list span { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.contact-section { padding: 0 0 90px; }
.contact-card { background: var(--green); color: white; border-radius: 30px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-card h2 { font-size: clamp(2rem, 3.2vw, 3.2rem); margin-bottom: 12px; }
.contact-card p { color: #c5ddd4; margin-bottom: 0; max-width: 650px; }

.site-footer { padding: 30px 0 42px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: var(--muted); font-size: .85rem; }
.footer-inner > span { justify-self: end; }
.brand-footer .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .principle-grid, .local-grid, .audience-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-grid { gap: 48px; }
  .product-window { transform: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div { border-bottom: 1px solid var(--line); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(3), .trust-grid div:nth-child(4) { border-bottom: 0; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner > span { justify-self: start; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .header-inner { height: 66px; }
  .header-inner > .button { display: none; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  h2 { font-size: 2.35rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .product-window { border-radius: 20px; }
  .mock-layout { grid-template-columns: 48px 1fr; min-height: 390px; }
  .mock-side { padding: 12px 8px; }
  .mock-logo { width: 30px; height: 30px; }
  .mock-main { padding: 14px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-row div:nth-child(3) { display: none; }
  .mock-cards { grid-template-columns: 1fr; }
  .mock-card:not(.mock-card-wide) { display: none; }
  .mock-card-wide { min-height: 190px; }
  .trust-grid, .problem-grid, .feature-grid, .steps, .audience-list { grid-template-columns: 1fr; }
  .trust-grid div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .trust-grid div:last-child { border-bottom: 0 !important; }
  .problem { min-height: auto; }
  .problem h3 { margin-top: 25px; }
  .system-map { grid-template-columns: 1fr; }
  .system-link { padding: 10px 0; }
  .system-box { min-height: 170px; }
  .audience-list div, .audience-list div:nth-child(odd), .audience-list div:nth-child(even) { padding: 18px 0; border-left: 0; }
  .contact-card { padding: 30px 24px; display: block; }
  .contact-card .button { margin-top: 24px; width: 100%; }
}

/* Hero refinements: clearer typography and a dashboard preview closer to the real product. */
.site-header {
  background: rgba(246, 248, 247, .98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.button-small {
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
  filter: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.button-small:hover {
  box-shadow: 0 6px 16px rgba(8, 69, 54, .10);
}

.hero {
  padding-top: 76px;
}
.hero-grid {
  grid-template-columns: .94fr 1.06fr;
  gap: 56px;
}
h1 {
  font-size: clamp(3rem, 4.7vw, 4.65rem);
  line-height: 1.015;
  letter-spacing: -.055em;
  max-width: 700px;
}

.product-window {
  border-radius: 24px;
  box-shadow: 0 20px 54px rgba(20, 52, 41, .11);
  transform: perspective(1400px) rotateY(-1.5deg) rotateX(.4deg);
}
.window-top {
  height: 44px;
  background: #10231c;
}
.mock-layout {
  grid-template-columns: 58px 1fr;
  min-height: 458px;
}
.mock-side {
  padding: 14px 9px;
  gap: 10px;
}
.mock-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 9px;
}
.mock-side > span {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #78938a;
}
.mock-side > span::before {
  font-size: .82rem;
  font-style: normal;
  line-height: 1;
}
.mock-side > span:nth-of-type(1)::before { content: "⌂"; }
.mock-side > span:nth-of-type(2)::before { content: "✓"; }
.mock-side > span:nth-of-type(3)::before { content: "▦"; }
.mock-side > span:nth-of-type(4)::before { content: "◷"; }
.mock-side > span:nth-of-type(5)::before { content: "≡"; }
.mock-side > span:nth-of-type(6)::before { content: "⚙"; }
.mock-side > span.active {
  background: #194a3b;
  color: #a9ddca;
}

.mock-main {
  padding: 22px 22px 24px;
  background: #f4f7f5;
}
.mock-heading {
  margin-bottom: 16px;
  font-size: .92rem;
}
.mock-heading b::after {
  content: " · отделение";
  color: #788881;
  font-weight: 500;
  font-size: .72rem;
}
.stat-row {
  gap: 8px;
}
.stat-row div {
  border-radius: 11px;
  padding: 11px 12px;
  box-shadow: 0 1px 0 rgba(16,35,28,.02);
}
.stat-row strong {
  margin-top: 3px;
  font-size: 1.28rem;
}

.mock-cards {
  grid-template-columns: 1.25fr .75fr;
  gap: 8px;
  margin-top: 8px;
}
.mock-card {
  position: relative;
  border-radius: 12px;
  padding: 14px;
  min-height: 128px;
}
.mock-card-wide {
  min-height: 268px;
  padding-top: 43px;
}
.mock-card-wide::before,
.mock-card:not(.mock-card-wide)::before {
  position: absolute;
  left: 14px;
  top: 13px;
  color: #233c33;
  font-weight: 700;
  font-size: .72rem;
}
.mock-card-wide::before { content: "Требуют действия"; }
.mock-card:nth-child(2)::before { content: "Ближайшие дни рождения"; }
.mock-card:nth-child(3)::before { content: "Отсутствуют сегодня"; }

.mock-card-wide > .line,
.mock-card:nth-child(2) > .line,
.mock-card:nth-child(3) > .line {
  display: none;
}
.mini-table {
  margin-top: 0;
  gap: 7px;
}
.mini-table i {
  position: relative;
  height: 39px;
  border-radius: 8px;
  border: 1px solid #e2ebe7;
  border-left: 3px solid #7ab39f;
  background: #f8faf9;
  display: flex;
  align-items: center;
  padding: 0 9px;
  color: #52655d;
  font-size: .60rem;
  font-style: normal;
}
.mini-table i::before {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-table i:nth-child(1)::before { content: "Задача со сроком сегодня"; }
.mini-table i:nth-child(2)::before { content: "Отчёт ожидает заполнения"; }
.mini-table i:nth-child(3)::before { content: "Отпуск ожидает согласования"; }
.mini-table i:nth-child(4)::before { content: "Новый алгоритм для отделения"; }

.badge-row {
  margin-top: 34px;
  display: grid;
  gap: 6px;
}
.badge-row i {
  width: 100%;
  height: 22px;
  border-radius: 7px;
  background: #f0f5f3;
  position: relative;
  font-style: normal;
}
.badge-row i::before {
  position: absolute;
  left: 7px;
  top: 4px;
  color: #667770;
  font-size: .52rem;
}
.badge-row i:nth-child(1)::before { content: "Иванова · 21 авг"; }
.badge-row i:nth-child(2)::before { content: "Петров · 24 авг"; }
.badge-row i:nth-child(3)::before { content: "Сидорова · 28 авг"; }

.mock-card:nth-child(3)::after {
  content: "2 сотрудника\AОтпуск · больничный";
  white-space: pre;
  position: absolute;
  left: 14px;
  top: 47px;
  color: #65766f;
  font-size: .58rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .product-window { transform: none; }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
    line-height: 1.02;
  }
  .hero { padding-top: 52px; }
  .mock-layout { grid-template-columns: 46px 1fr; min-height: 390px; }
  .mock-side > span { width: 30px; height: 30px; }
  .mock-main { padding: 14px; }
  .mock-card-wide { min-height: 210px; }
  .mini-table i { height: 34px; font-size: .55rem; }
}
