@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-cyr-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/golos-lat-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/golos-cyr-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/golos-lat-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/golos-cyr-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/golos-lat-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-cyr-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/unbounded-lat-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #f7f4ee;
  --surface: #fffcf7;
  --text: #1c1916;
  --text-muted: #5c564e;
  --border: #e3dcd0;
  --border-strong: #cfc6b6;
  --accent: #9a3412;
  --ok: #3f6212;
  --warn: #7a4e0d;
  --fill: #efeae1;
  --danger-bg: #f8efe8;
  --ok-bg: #eef3e6;
  --paper: var(--bg);
  --sheet: var(--surface);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --oxide: var(--accent);
  --olive: var(--ok);
  --amber: var(--warn);
  --font: "Golos Text", "Liberation Sans", "Noto Sans", "Segoe UI", sans-serif;
  --display: Unbounded, "Golos Text", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-control: 14px;
  --radius-panel: 18px;
  --ease: 180ms ease;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-md);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, fieldset { margin: 0; }
h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
h2 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: var(--text-md); font-weight: 600; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted, .meta { color: var(--muted); }
.block { display: block; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-control);
}
.skip:focus { top: 0.5rem; z-index: 6; }

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  flex: 0 0 auto;
}
.who {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.who > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.4rem;
  text-decoration: none;
}
.who > a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.who-role {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-size: 0.8125rem;
  line-height: 1.25;
}
.role-label, .who-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8.5rem;
}
.role-label { font-weight: 600; }
.who-name { color: var(--muted); font-weight: 400; }

.wrap {
  width: min(100% - 32px, 32rem);
  margin-inline: auto;
  padding: var(--space-5) 0 var(--space-7);
}
.wrap.board { width: min(100% - 2rem, 46rem); }
.wrap.wide { width: min(100% - 2rem, 68rem); }

.kicker {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lede { margin-top: 0.7rem; max-width: 38rem; }
.intro h1 {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  max-width: 16em;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.steps li {
  position: relative;
  min-width: 0;
  padding-top: var(--space-2);
  border-top: 2px solid var(--text);
}
.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.55rem;
  top: 1.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.step-n, .step-note {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.step-name {
  display: block;
  font-weight: 600;
  margin: 0.1rem 0;
}

.catalog {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.entry {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.entry h2 { font-size: 1.2rem; }
.entry-price { font-weight: 600; font-size: 1.05rem; text-align: right; }
.entry-price span { font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.entry-out { color: var(--muted); }
.pay-note {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.demo { margin-top: 1.75rem; }
.demo h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-pass { margin-top: 0.25rem; }
.demo-list {
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.demo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-3);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.demo-list .demo-row:first-child { border-top: 0; }
.demo-row:hover { background: var(--fill); }
.demo-role { color: var(--muted); font-size: 0.8rem; grid-column: 1 / -1; }
.demo-name { font-weight: 600; }
.demo-phone { user-select: all; }

.btn, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.45rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn {
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-weight: 600;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 500;
}
.btn:hover { background: #2a2622; }
.btn.secondary:hover { background: var(--fill); color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .btn, .text-btn, .choice, .row, .item, .rooms a, .demo-row, .home-people a,
  input, textarea, select {
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
  }
}
.text-btn {
  background: transparent;
  border: 0;
  padding-inline: 0.2rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--muted);
}
.text-btn:hover { color: var(--ink); }
.text-btn.danger, .danger { color: var(--oxide); }
.btn:focus-visible, .text-btn:focus-visible, a:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.stack { display: grid; gap: 0.85rem; margin-top: 1rem; }
.stack.tight { margin-top: 0.75rem; }
.field { display: grid; gap: 0.35rem; }
label, .label-like, legend { font-weight: 600; }
.hint { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.hint a { text-underline-offset: 0.15em; }
fieldset, .pick { border: 0; padding: 0; display: grid; gap: 0.4rem; }
legend { margin-bottom: 0.15rem; }
.choice {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--sheet);
  font-weight: 400;
}
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--fill); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.specialty { display: none; }
form:has(input[name="role"][value="master"]:checked) .specialty { display: grid; }

input[type="text"], input[type="tel"], input[type="password"], input[type="file"],
input:not([type]), textarea, select {
  width: 100%;
  min-width: 0;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  padding: 0.55rem 0.8rem;
  min-height: 48px;
  font-size: 1rem;
}
textarea { min-height: 7rem; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--oxide); background: #fbf6f2; }
.field-error { color: var(--oxide); font-size: 0.92rem; font-weight: 600; }
::placeholder { color: #8a8175; }

.banner, .notice {
  padding: 0.75rem 0.95rem;
  border-left: 3px solid var(--ink);
  border-radius: var(--radius-panel);
  background: var(--sheet);
}
.banner { margin: 0 0 1rem; }
.banner.is-error { border-left-color: var(--accent); background: var(--danger-bg); }
.notice, .banner.is-ok { border-left-color: var(--ok); background: var(--ok-bg); }
.notice { margin-top: 0.8rem; }

.price {
  margin-top: var(--space-3);
  font-family: var(--display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-unit { margin-top: 0.3rem; color: var(--muted); }

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.back { margin: 0 0 0.65rem; }
.back a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.back a:hover { color: var(--ink); text-decoration: underline; }
.next-note { margin-top: 0.7rem; font-weight: 600; }
.empty { margin-top: 0.7rem; color: var(--muted); display: grid; gap: 0.75rem; }
.empty p { margin: 0; }

.rows {
  margin-top: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-3);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.rows .row:first-child { border-top: 0; }
.row:hover { background: var(--fill); }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-meta, .row-next, .row-go { overflow-wrap: anywhere; }
.row-meta, .row-next { color: var(--muted); font-size: 0.92rem; }
.row-next {
  grid-column: 1 / -1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-go { font-weight: 600; }
.row:hover .row-title, .row:hover .row-go { text-decoration: underline; text-underline-offset: 0.15em; }
.money { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.is-due { color: var(--oxide); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 3px;
  background: currentColor;
  flex: 0 0 auto;
}
.tag.lg { font-size: 1.05rem; }
.tag.lg::before { width: 0.62rem; height: 0.62rem; }
.tag-offered, .tag-accepted { color: var(--amber); }
.tag-in_progress { color: var(--olive); }
.tag-done { color: var(--ink); }
.tag-cancelled { color: var(--oxide); }

.status-line { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.55rem 0.8rem; align-items: center; }
.facts {
  margin-top: 1rem;
  padding: 0.2rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.facts div { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.facts dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
a.tel { text-underline-offset: 0.15em; }

.situation {
  margin-top: 1rem;
  padding: 0.15rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.situation div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.situation div:first-child { border-top: 0; }
.situation dt { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.situation dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.next { margin-top: 1.1rem; display: grid; gap: 0.7rem; }
.next > p { font-weight: 600; }
.sec { margin-top: var(--space-6); }
.sec > h2 { margin-bottom: var(--space-3); }
.plain {
  list-style: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
}
.plain .item:first-child { border-top: 0; }
.item-title { font-weight: 600; overflow-wrap: anywhere; }
.item-actions { display: grid; gap: 0.45rem; }
.item-actions form { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
.item-actions select { flex: 1 1 100%; }

.adder { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.split { display: grid; gap: 0.7rem; }
.rooms {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin: 0.45rem 0 0.7rem;
  max-width: 100%;
}
.rooms a {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
}
.rooms a.is-on {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--sheet);
  font-weight: 600;
}
.photos {
  list-style: none;
  padding: 0;
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
  border-radius: var(--radius-panel);
}
.photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.focus {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text);
  border-radius: var(--radius-panel);
  background: var(--surface);
  display: grid;
  gap: var(--space-3);
}
.focus h2 { font-size: 1.35rem; }
.focus h2 a { text-decoration: none; }
.focus h2 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.obj-head { display: grid; gap: 0.35rem; }
.auth { display: grid; gap: 1.4rem; margin-top: 1rem; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 700px) {
  .entry .btn,
  .stack > .btn,
  .next .btn,
  .empty .btn,
  .actions .btn,
  .focus .btn,
  .adder .btn,
  .page-head .btn,
  .switch .btn:not(.secondary) { width: 100%; }
  .photos { grid-template-columns: 1fr; }
}

@media (min-width: 800px) {
  h1 { font-size: var(--text-2xl); }
  .role-label, .who-name { max-width: 22rem; }
  .actions { display: flex; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .demo-row { grid-template-columns: 11rem minmax(0, 1fr) auto; }
  .demo-role { grid-column: auto; color: var(--ink); font-size: 1rem; font-weight: 600; }
  .situation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
    padding: 0.35rem 0.25rem;
  }
  .situation div {
    display: block;
    border-top: 0;
    border-bottom: 0;
    padding: 0.85rem 1rem;
  }
  .situation div + div { border-left: 1px solid var(--line); }
  .situation dd { margin-top: 0.25rem; }
  .split { grid-template-columns: 1.4fr 0.6fr; }
  .adder.inline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .adder.inline .btn { width: auto; }
  .item-actions select { flex: 1 1 12rem; width: auto; }
  .photos { grid-template-columns: 1fr 1fr; }
  .work {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    column-gap: 2.75rem;
    align-items: start;
  }
  .work .photo-sec, .work .calls { grid-column: 2; }
  .work .stages { grid-column: 1; grid-row: 1; }
  .work .purchases { grid-column: 1; grid-row: 2; }
  .work .photo-sec { grid-row: 1; }
  .work .calls { grid-row: 2; }
  .work .note, .work .finish { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }
  .entry {
    border-bottom: 0;
    padding: var(--space-2) var(--space-4) var(--space-2) 0;
  }
  .entry + .entry { padding-left: var(--space-4); border-left: 1px solid var(--border); }
  .entry .btn { width: auto; justify-self: start; }
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2.5rem; align-items: start; }
}


.home {
  width: 100%;
  padding: 0 0 var(--space-7);
  background: var(--bg);
  color: var(--text);
}
.home > .banner {
  width: min(100% - 32px, 68rem);
  margin: var(--space-3) auto 0;
}
.home-hero,
.home-how,
.home-who,
.home-trust,
.home-close {
  width: min(100% - 32px, 68rem);
  margin-inline: auto;
}
.home-hero {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-5);
}
.home-hero h1 {
  max-width: 12em;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.home-lead {
  margin-top: var(--space-3);
  max-width: 36rem;
  color: var(--text-muted);
}
.home-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.home-hero-art { display: none; }

.home-mark {
  --m: 4.5rem;
  width: var(--m);
  height: var(--m);
  position: relative;
  flex: none;
  display: block;
  border-radius: var(--radius-panel);
  background: var(--mark, var(--text));
  font-size: var(--m);
}
.home-mark-request { --mark: #c2410c; }
.home-mark-object { --mark: #3f6212; }
.home-mark-master { --mark: #b45309; }
.home-mark-request::before,
.home-mark-object::before,
.home-mark-master::before,
.home-mark-request::after,
.home-mark-object::after,
.home-mark-master::after {
  content: "";
  position: absolute;
}
.home-mark-request::before {
  left: 22%;
  top: 16%;
  width: 52%;
  height: 66%;
  background: var(--bg);
}
.home-mark-request::after {
  left: 32%;
  top: 32%;
  width: 32%;
  height: 0.07em;
  background: #c2410c;
  box-shadow: 0 0.16em 0 #c2410c, 0 0.32em 0 #c2410c;
}
.home-mark-object::before {
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  border-left: 0.28em solid transparent;
  border-right: 0.28em solid transparent;
  border-bottom: 0.22em solid var(--bg);
}
.home-mark-object::after {
  left: 50%;
  top: 38%;
  width: 0.36em;
  height: 0.32em;
  transform: translateX(-50%);
  background: var(--bg);
}
.home-mark-master::before {
  left: 50%;
  top: 18%;
  width: 0.24em;
  height: 0.24em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg);
}
.home-mark-master::after {
  left: 50%;
  top: 46%;
  width: 0.46em;
  height: 0.28em;
  transform: translateX(-50%);
  border-radius: 0.24em 0.24em 2px 2px;
  background: var(--bg);
}

.home-how,
.home-who,
.home-close { margin-top: var(--space-7); }
.home-how ol {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-5);
}
.home-how li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}
.home-how p { margin-top: var(--space-1); color: var(--text-muted); }

.home-roles {
  display: grid;
  gap: 0;
  margin-top: var(--space-2);
}
.home-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  align-items: center;
  min-width: 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}
.home-role:last-child { border-bottom: 1px solid var(--border); }
.home-role-copy { min-width: 0; }
.home-out { color: var(--text-muted); margin-top: var(--space-1); }
.home-price {
  margin-top: var(--space-2);
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.home-price .num { white-space: nowrap; }
.home-role-client .home-price { color: var(--ok); }
.home-unit {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.home-role .btn { grid-column: 1 / -1; margin-top: var(--space-3); justify-self: start; }

.home-trust {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius-panel);
  background: var(--ok-bg);
}
.home-trust h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-lg);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.home-trust p { margin-top: var(--space-2); color: var(--text-muted); max-width: 40rem; }

.home-close { scroll-margin-top: 4rem; }
.home-pass { margin-top: var(--space-2); }
.home-pass strong { font-weight: 600; }
.home-people {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.home-people a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1) var(--space-3);
  align-items: baseline;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.home-people li:first-child a { border-top: 0; }
.home-people a:hover { background: var(--fill); }
.home-person-role {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--text-xs);
}
.home-person-name { font-weight: 600; }
.home-person-phone { font-variant-numeric: tabular-nums; }
.home-close .home-actions { max-width: 16rem; }

.home-tiles {
  display: grid;
  gap: var(--space-4);
  width: min(100% - 32px, 68rem);
  margin: var(--space-6) auto 0;
}
.home-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tile, var(--text));
  border-radius: var(--radius-panel);
}
.home-tile-foreman { --tile: var(--ok); }
.home-tile-master { --tile: var(--warn); }
.home-tile h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.home-tile > p { margin-top: var(--space-3); }
.home-tile .home-price { margin-top: var(--space-4); color: var(--text); }
.home-tile .home-actions {
  margin-top: auto;
  padding-top: var(--space-5);
  width: 100%;
}

@media (max-width: 799px) {
  .home-actions .btn { width: 100%; }
  .home-close .home-actions { max-width: none; }
}

@media (min-width: 800px) {
  .home-hero { padding-top: var(--space-6); }
  .home-hero h1 { font-size: var(--text-3xl); }
  .home-actions { flex-direction: row; flex-wrap: wrap; }
  .home-actions .btn { width: auto; }
  .home-how ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .home-how li { display: block; }
  .home-how h3 { margin-top: var(--space-3); }
  .home-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-top: var(--space-4);
  }
  .home-role,
  .home-role:last-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--space-5) 0 0;
    border: 0;
  }
  .home-role + .home-role {
    padding-left: var(--space-5);
    border-left: 1px solid var(--border);
  }
  .home-role-copy {
    display: grid;
    gap: var(--space-1);
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
  .home-role .btn {
    position: static;
    grid-column: auto;
    margin-top: var(--space-4);
    align-self: flex-start;
  }
  .home-price { margin-top: var(--space-3); }
  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--space-5);
  }
  .home-people a { grid-template-columns: 14rem minmax(0, 1fr) auto; }
  .home-person-role {
    grid-column: auto;
    font-size: var(--text-md);
    color: var(--text);
    font-weight: 600;
  }
}
