:root {
  --paper: #ffffff;
  --sheet: #f4f4f4;
  --ink: #111111;
  --soft: #3a3a3a;
  --line: #e6e6e6;
  --stamp: #111111;
  --deep: #111111;
  --light: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --header: 80px;
  --font: "Golos Text", sans-serif;
  --display: "Onest", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }

h1, h2, h3, .logo-word, .price, .calc-result, .case-company, .footer-brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--light);
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 80;
  font-size: 16px;
}

.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-size: 16px;
}

[hidden] { display: none !important; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.logo-mark { color: var(--stamp); display: block; }

.logo-word {
  font-size: 24px;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav a {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { color: var(--stamp); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header-phone {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.call-btn,
.burger { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--light);
}

.btn-primary:hover { background: #2a2a2a; }

.btn-ghost:hover { background: rgba(28, 27, 22, 0.05); }

.btn-stamp {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--light);
  width: 100%;
}

.btn-light {
  background: var(--light);
  color: var(--ink);
  border-color: var(--light);
}

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }

.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines::after { top: 0; transform: rotate(-45deg); }

.call-btn {
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.menu-panel {
  display: none;
  position: fixed;
  z-index: 39;
  top: var(--header);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 8px 24px 32px;
}

.menu-panel.is-open { display: block; }

.menu-panel a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}

.sid {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.2;
}

.sid span,
.sid strong {
  padding: 6px 8px;
  font-weight: 500;
}

.sid span { border-right: 1px solid currentColor; font-family: var(--font); }

.sid strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
}

h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.05;
  max-width: 12em;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  max-width: 16em;
}

h3 { font-size: 22px; line-height: 1.25; }

.lead {
  margin-top: 16px;
  max-width: 38em;
  color: var(--soft);
  font-size: 18px;
}

section { scroll-margin-top: 96px; }

.hero {
  min-height: calc(100vh - var(--header));
  display: flex;
  align-items: center;
  padding: 28px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--ink);
  position: relative;
}

.meters::before,
.meters::after {
  content: "";
  position: absolute;
  top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.meters::before { left: 0; border-right: 8px solid var(--ink); }
.meters::after { right: 0; border-left: 8px solid var(--ink); }

.meters div {
  padding: 14px 12px 0 0;
  border-left: 1px solid var(--ink);
  margin-left: -1px;
}

.meters dt {
  font-size: 16px;
  color: var(--soft);
}

.meters dd {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 4px 0 0;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 520px;
}

.frame {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  position: relative;
  min-height: 520px;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(247, 244, 238, 0.85);
  pointer-events: none;
}

.frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: var(--radius);
}

.float-act {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  width: min(100% - 36px, 390px);
  margin: 0 0 28px 20px;
  background: #fff;
  border-radius: 20px;
  padding: 16px 16px 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.float-act p { font-size: 16px; margin-top: 6px; }

.float-kicker {
  margin-top: 0 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.float-time {
  margin-top: 10px !important;
  color: var(--stamp);
  font-weight: 600;
}

.leaders {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  list-style: none;
  padding: 0 0 36px 0;
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.leaders li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.leaders i {
  width: 28px;
  height: 1px;
  background: var(--ink);
  position: relative;
  flex: none;
}

.leaders i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 7px solid var(--ink);
}

.demo {
  background: #f6f6f6;
  padding: 88px 0;
}

.section-head { margin-bottom: 28px; max-width: 760px; }

.demo-grid,
.role-layout,
.calc-grid,
.service-grid {
  display: grid;
  gap: 28px;
}

.demo-grid { grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr); align-items: start; }

.demo-form,
.act,
.device,
.plan,
.quote-form,
dialog {
  background: var(--sheet);
}

.demo-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

label {
  font-size: 16px;
  font-weight: 500;
  margin-top: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 48px;
}

textarea { min-height: 84px; resize: vertical; }

.act-wrap { min-width: 0; }

.act {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.act-head p:first-child { font-size: 16px; color: var(--soft); }
.act-head p:last-child { font-size: 18px; font-weight: 600; margin-top: 4px; }

.act-title {
  margin: 16px 0 4px;
  font-size: 26px;
}

.act-num { font-size: 16px; color: var(--soft); }

.act-meta { margin-top: 14px; }

.act-meta div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.act-meta dt { color: var(--soft); }

.act-list {
  margin: 14px 0 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
}

.act-apps { margin-top: 14px; font-size: 16px; }

.signers {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.signers li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 16px;
}

.signers span { color: var(--soft); }

.stamp {
  position: absolute;
  right: 22px;
  top: 148px;
  width: 168px;
  padding: 10px 8px;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-8deg) scale(1.2);
  opacity: 0;
  pointer-events: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 2px var(--stamp);
}

.stamp.is-on { animation: stamp-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.35); }
  70% { opacity: 1; transform: rotate(-8deg) scale(0.97); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

.act-next {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
}

.act-next p { font-size: 16px; margin-bottom: 8px; }
.act-next .hero-actions { margin-top: 8px; }

.roles, .how, .capabilities, .service, .cases, .pricing, .faq { padding: 88px 0; }

.role-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 28px;
  overflow-x: auto;
}

.role-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  white-space: nowrap;
}

.role-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--stamp);
}

.role-layout { grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr); align-items: stretch; }

.role-points {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: point;
}

.role-points li {
  counter-increment: point;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
}

.role-points li:last-child { border-bottom: 1px solid var(--ink); }

.role-points h3::before {
  content: counter(point, decimal-leading-zero);
  display: block;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--stamp);
  margin-bottom: 6px;
}

.role-points p { margin-top: 8px; font-size: 16px; color: var(--soft); }

.device {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 8px;
  background: #fff;
  overflow-x: auto;
}

.device-bar {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  background: #f4f4f4;
  border-radius: 24px 24px 0 0;
}

table { width: 100%; border-collapse: collapse; font-size: 16px; }

caption {
  text-align: left;
  padding: 12px 14px 0;
  font-size: 16px;
  font-weight: 600;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 16px;
  font-weight: 400;
}

th { font-weight: 600; }

.registry, .load {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.registry li, .load li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.registry b, .load b { font-weight: 600; white-space: nowrap; }

.scroll-hint { display: none; font-size: 16px; color: var(--soft); margin-bottom: 10px; }

.steps {
  list-style: none;
  padding: 18px 0 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  position: relative;
  counter-reset: step;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: -5px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.steps::before { left: 0; border-right: 8px solid var(--ink); }
.steps::after { right: 0; border-left: 8px solid var(--ink); }

.steps li {
  counter-increment: step;
  padding: 16px 18px 0 0;
  position: relative;
  min-width: 0;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -7px;
  width: 1px;
  height: 14px;
  background: var(--ink);
}

.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.steps p { margin-top: 8px; font-size: 16px; color: var(--soft); }

.feat {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    "main collab export"
    "main history orders"
    "browser browser orders";
  gap: 14px;
}

.feat-main { grid-area: main; }
.feat-collab { grid-area: collab; }
.feat-export { grid-area: export; }
.feat-history { grid-area: history; }
.feat-orders { grid-area: orders; }
.feat-browser { grid-area: browser; }

.feat article {
  padding: 20px;
  min-width: 0;
}

.feat h3 { margin-bottom: 10px; }

.feat p, .feat li { font-size: 16px; }

.feat-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.passport {
  border-radius: 18px;
  background: #111;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.passport p { font-family: var(--display); font-size: 20px; font-weight: 600; }
.passport-label { font-family: var(--font) !important; font-size: 16px !important; font-weight: 500 !important; color: #d4d4d4; }
.passport-note { font-family: var(--font) !important; font-size: 16px !important; font-weight: 600 !important; color: #fff; }

.feat-collab { background: #f6f6f6; border-radius: var(--radius); }
.feat-collab ul { list-style: none; padding: 12px 0 0; margin: 0; }
.feat-collab li { padding: 8px 0; border-top: 1px solid var(--line); }

.feat-export {
  background: var(--ink);
  color: var(--light);
  border-radius: var(--radius);
}

.feat-history { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feat-history ol { margin: 12px 0 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.feat-history b { font-family: var(--display); margin-right: 8px; }

.feat-orders {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feat-browser {
  background: #f6f6f6;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.calc {
  background: var(--deep);
  color: var(--light);
  padding: 88px 0;
}

.calc .lead, .calc-note, #calc-people { color: #d6d6d6; font-size: 16px; }

.calc-grid {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.calc-controls { display: grid; gap: 22px; }

.slider-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.slider label { margin: 0; font-size: 16px; }

.slider output {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #3a3a3a;
  border: 0;
  padding: 0;
  min-height: 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid #111;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111;
}

.calc-result {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
}

.calc-result strong { font-weight: 600; }

#calc-people { margin-top: 16px; }

.calc-note { margin-top: 14px; max-width: 40em; }

.service-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

.service-self, .service-us { padding: 0 0 24px; min-width: 0; }

.service-self, .service-us { border-radius: var(--radius); overflow: hidden; }
.service-self { background: #f6f6f6; }
.service-us { background: #111; color: #fff; }

.service article img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: saturate(0.8);
}

.service h3, .service ul, .service .btn { margin-left: 22px; margin-right: 22px; }

.service h3 { margin-top: 18px; }

.service ul {
  margin: 12px 22px 18px;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.service-us .btn-light { border-color: var(--light); }

.service-end {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  font-size: 18px;
  background: #111;
  color: #fff;
}

.case-lead {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px;
  background: #f6f6f6;
  border-radius: var(--radius);
  overflow: hidden;
}

.case-lead img, .case-side img, .case-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82);
}

.case-lead img { min-height: 420px; }

.case-lead div, .case-side div, .case-stack div { padding: 24px; }

.case-company {
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 8px;
}

.quote { font-size: 22px; line-height: 1.35; margin-top: 12px; }
.who { margin-top: 14px; font-size: 16px; color: var(--soft); }

.case-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

.case-side {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.case-side img { height: 100%; min-height: 220px; }

.case-stack {
  background: #111;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.case-stack img { height: 210px; }
.case-stack .who { color: #d4d4d4; }
.case-stack .case-company { color: #fff; }

.logo-note { margin-top: 28px; font-size: 16px; color: var(--soft); }

.logos {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 14px 0 0;
  margin: 8px 0 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.logos li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.plans {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.12fr 0.9fr;
  gap: 12px;
  align-items: end;
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
}

.plan ul, .legal ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.plan .btn { margin-top: auto; }

.price { font-size: 40px; line-height: 1; }
.price span { display: block; margin-top: 6px; font-family: var(--font); font-size: 16px; font-weight: 400; letter-spacing: 0; }

.plan-trial { min-height: 360px; }
.plan-eng { min-height: 440px; }
.plan-co {
  min-height: 520px;
  background: var(--ink);
  color: var(--light);
}

.legal {
  align-self: stretch;
  background: #f6f6f6;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal p { font-size: 16px; color: var(--soft); margin-top: auto; }

.quote-form {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.quote-form p, #quote-success { font-size: 16px; margin-top: 8px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 28px 48px;
}

.faq article { border-top: 1px solid var(--ink); padding-top: 14px; }
.faq h3 { font-size: 22px; }
.faq p { margin-top: 8px; font-size: 18px; }

.footer {
  background: #111;
  color: #fff;
  padding: 72px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.footer-brand {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.footer-tag {
  margin-top: 14px;
  max-width: 18em;
  font-size: 18px;
  color: #d4d4d4;
}

.footer-lead .btn { margin-top: 22px; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 8px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.footer-contacts a:hover { background: #fff; color: #111; }

.footer-contacts p { margin-top: 6px; font-size: 16px; color: #d4d4d4; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
  color: #d4d4d4;
}

.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-legal a { color: #fff; text-decoration: none; font-size: 16px; }

.footer-legal a:hover { text-decoration: underline; }

.dock {
  display: none;
  position: fixed;
  z-index: 45;
  left: 12px;
  right: 12px;
  bottom: 12px;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.dock .btn { flex: 1; }

dialog {
  border: 0;
  border-radius: 24px;
  padding: 22px;
  width: min(520px, calc(100% - 32px));
  color: var(--ink);
  font-size: 18px;
  background: #fff;
}

dialog::backdrop { background: rgba(28, 27, 22, 0.48); }

dialog h2 { font-size: 32px; margin-bottom: 10px; }
dialog p { font-size: 16px; margin: 8px 0; }
dialog form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.dialog-close {
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
  animation-play-state: paused;
}

.js .reveal.is-in { animation-play-state: running; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
  .nav { gap: 14px; }
  .header-phone { font-size: 18px; }
}

@media (max-width: 1099px) {
  .nav { display: none; }
  .burger, .call-btn { display: inline-flex; }
  .header-try { display: none; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .header-try { display: inline-flex; }
}

@media (max-width: 900px) {
  .call-btn-label { display: none; }
  .call-btn { padding: 0; width: 44px; justify-content: center; }
}

@media (min-width: 1100px) {
  .menu-panel { display: none !important; }
}

@media (max-width: 980px) {
  .hero { min-height: 0; display: block; }
  .hero-grid,
  .demo-grid,
  .role-layout,
  .calc-grid,
  .service-grid,
  .case-lead,
  .case-row,
  .plans,
  .faq-grid,
  .feat-main { grid-template-columns: 1fr; }
  .feat {
    display: flex;
    flex-direction: column;
  }
  .faq-grid { grid-auto-flow: row; }
  .case-side { grid-template-columns: 140px 1fr; }
  .plan-trial, .plan-eng, .plan-co { min-height: 0; }
  .legal { border-top: 0; padding-top: 8px; }
  .act-meta div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 767px) {
  :root { --header: 64px; }
  .wrap, .hero-grid { width: min(1180px, calc(100% - 32px)); }
  body { padding-bottom: 84px; font-size: 16px; }
  .logo-word { font-size: 22px; }
  .header-phone { font-size: 16px; }
  .call-btn-label { display: none; }
  .call-btn { padding: 0; width: 44px; justify-content: center; }
  .dock { display: flex; }
  .roles, .how, .capabilities, .service, .cases, .pricing, .faq, .demo, .calc { padding: 56px 0; }
  .hero { padding: 20px 0 36px; }
  .meters { grid-template-columns: 1fr; }
  .meters div { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .meters::before, .meters::after { display: none; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; }
  .frame { min-height: 0; grid-column: auto; grid-row: auto; }
  .frame img { height: 240px; min-height: 0; }
  .float-act { width: 100%; margin: 12px 0 0; }
  .leaders {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 0 0;
    gap: 8px;
  }
  .scroll-hint { display: block; }
  .steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
  }
  .steps li { min-width: 230px; scroll-snap-align: start; flex: 0 0 230px; }
  .case-side { grid-template-columns: 1fr; }
  .case-side img, .case-lead img { min-height: 200px; height: 200px; }
  .footer { padding: 48px 0 24px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom { margin-top: 32px; }
  .quote { font-size: 20px; }
  h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .stamp.is-on { animation: none; opacity: 1; transform: rotate(-8deg); }
}
