:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --card: #ffffff;
  --ink: #121513;
  --muted: #5e675f;
  --line: #e4e8e2;
  --accent: #0f766e;
  --accent-ink: #f3fffc;
  --brick: #b42318;
  --brass: #8a5a12;
  --shadow: 0 16px 40px rgba(18, 21, 19, .06);
  --radius: 20px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(800px 360px at 100% -8%, rgba(15, 118, 110, .08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Manrope", "Segoe UI", sans-serif;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Outfit", "Manrope", sans-serif; font-weight: 600; letter-spacing: -0.03em; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); }
h2 { margin: 0 0 12px; font-size: 26px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.shell { display: grid; min-height: 100dvh; }
.side {
  display: none;
  padding: 22px 16px;
  background: #101311;
  color: #f6f1e8;
}
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.logo { width: 36px; height: 36px; display: block; flex: none; }
.brand b { display: block; font-size: 18px; letter-spacing: -0.03em; }
.plus { color: #0f766e; font-style: normal; }
.side .plus { color: #2dd4bf; }
.brand small, .muted, .side nav a small { color: var(--muted); }
.side nav { display: grid; gap: 4px; margin-top: 28px; }
.side nav a, .tabbar a {
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 12px;
}
.side nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
.side .who { margin-top: auto; padding-top: 24px; }
.side .who form { margin-top: 10px; }
main { padding: 22px 16px 108px; }
.leave { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.leave button {
  background: #101311;
  color: #f6f1e8;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}
.suggest { position: relative; }
.suggest-list {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.suggest-list button {
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
}
.suggest-list button:last-child { border-bottom: 0; }
.suggest-list button:hover { background: #f4f7f4; }
.object-map {
  height: 380px;
  margin-bottom: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.object-map.tall { height: min(720px, calc(100dvh - 190px)); }
.leaflet-control-attribution { display: none !important; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.lead { max-width: 560px; margin-top: 8px; color: var(--muted); }
.roles { display: grid; gap: 12px; margin-bottom: 4px; }
.roles div { display: grid; gap: 2px; }
.roles b { font-size: 15px; }
.item select { width: auto; min-width: 160px; }
.offers { display: grid; gap: 8px; }
.offer {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.offer b { font-size: 14px; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.stat b { display: block; margin-top: 6px; font: 600 28px/1.1 "Outfit", sans-serif; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: grid; gap: 10px; }
label span, .field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #0e6b56; }
.primary, .ghost, .danger {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  text-decoration: none;
}
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.danger { background: transparent; color: var(--brick); box-shadow: inset 0 0 0 1px rgba(154, 59, 47, .35); }
.primary.tiny, .ghost.tiny, .danger.tiny { padding: 8px 12px; font-size: 14px; }
.chip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #efe7da;
  color: var(--brass);
  font-size: 12px;
  font-weight: 700;
}
.chip.ok { background: #e5f4ee; color: var(--accent); }
.chip.warn { background: #f8ead8; color: #8a4b12; }
.chip.bad { background: #f8e4df; color: var(--brick); }
.list { display: grid; gap: 8px; }
.list a.item, .item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
}
.flash {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #e7f3ee;
  color: #0d4f40;
}
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth .card { width: min(460px, 100%); padding: 28px; }
.auth h1 { margin: 14px 0 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 700; }
td input { width: 88px; padding: 8px 10px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.totals div { padding: 12px; border-radius: 16px; background: #f7f2ea; }
.totals b { display: block; font: 600 22px/1.2 "Outfit", sans-serif; }
.bar { height: 8px; border-radius: 99px; background: #efe7da; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.bar.low i { background: var(--brick); }
.bar.mid i { background: #c4842a; }
.note {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f1e6;
  white-space: pre-wrap;
}
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.tabbar a { text-align: center; font-size: 12px; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.doc {
  width: min(820px, 100%);
  margin: 0 auto;
  background: white;
  padding: 28px 22px 40px;
}
.doc header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.sign i { display: block; margin-top: 28px; border-bottom: 1px solid #222; }
@media (min-width: 980px) {
  .shell { grid-template-columns: 240px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; background: #101311; }
  main { padding: 32px 36px 48px; }
  .tabbar { display: none; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1.4fr .8fr; align-items: start; }
}
.site { min-height: 100dvh; display: flex; flex-direction: column; background: #f7f8f6; color: #121513; }
.site-nav, .hero, .band, .prose { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 0; }
.site-nav a { text-decoration: none; }
.site-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: #3d463f; }
.hero {
  display: grid;
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(45, 212, 191, .18), transparent 60%),
    #101311;
  color: #f4f7f4;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; max-width: 12ch; }
.hero p { max-width: 46ch; color: rgba(244, 247, 244, .72); font-size: 18px; }
.hero .row { margin-top: 8px; }
.hero .ghost { color: #f4f7f4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 18px;
}
.panel b { display: block; margin-bottom: 8px; }
.panel li { margin: 8px 0; color: rgba(244,247,244,.78); }
.band { display: grid; gap: 18px; padding: 56px 0 28px; }
.band h2, .roles h2 { font-size: clamp(28px, 4vw, 40px); }
.band .lead { font-size: 18px; max-width: 68ch; }
.scale { display: grid; gap: 14px; }
.way {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.way h3 { margin: 0; font-size: 28px; }
.way p { color: var(--muted); }
.way.here {
  background: #101311;
  color: #f4f7f4;
  border-color: #101311;
  box-shadow: 0 18px 40px rgba(16, 19, 17, .16);
}
.way.here p { color: rgba(244, 247, 244, .74); }
.pic { height: 132px; border-radius: 18px; position: relative; overflow: hidden; }
.pic.files { background: #f4efe6; }
.paper {
  position: absolute;
  width: 92px;
  height: 104px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #e6dccb;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(18, 21, 19, .08);
  display: grid;
  align-content: start;
  gap: 7px;
}
.paper i { display: block; height: 5px; border-radius: 99px; background: #efe6d8; }
.paper i.bad { background: #e7b2aa; width: 70%; }
.paper b { margin-top: 6px; font-size: 11px; font-weight: 700; color: #8a5a12; }
.paper.a { left: 18px; top: 22px; transform: rotate(-8deg); }
.paper.b { left: 78px; top: 14px; }
.paper.c { right: 16px; top: 26px; transform: rotate(7deg); }
.pic.flow {
  background:
    radial-gradient(120px 80px at 80% 0%, rgba(45, 212, 191, .2), transparent 70%),
    #17211e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}
.pic.flow span {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(45, 212, 191, .35);
  text-align: center;
}
.pic.flow b, .pic.flow small { display: block; }
.pic.flow b { font-size: 13px; color: #f4f7f4; }
.pic.flow small { font-size: 11px; color: #8ee0d4; }
.pic.flow > i { width: 16px; height: 2px; background: #2dd4bf; flex: none; }
.pic.tome { background: #f3eee6; display: grid; place-items: center; }
.page {
  width: min(220px, 70%);
  padding: 14px 14px 12px 18px;
  border-radius: 4px 12px 12px 4px;
  background:
    linear-gradient(#c4a574, #c4a574) 0 0 / 8px 100% no-repeat,
    #fff;
  box-shadow: 8px 0 0 #f7f1e6, 9px 0 0 #e6dccb, 0 10px 18px rgba(18, 21, 19, .06);
  display: grid;
  gap: 6px;
}
.page i { height: 4px; border-radius: 99px; background: #efe6d8; }
.page i:nth-child(3) { width: 80%; }
.page i:nth-child(5) { width: 62%; }
.page em { font-style: normal; font-size: 11px; color: #8a5a12; }
.day {
  margin-top: 6px;
  padding: 8px 0 12px;
}
.day h3 { margin: 0 0 14px; font-size: 22px; }
.day ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.day li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}
.day li::before {
  content: counter(step);
  counter-increment: step;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f3ee;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.day li b { font-size: 16px; }
.day li span { color: var(--muted); }
.trio { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trio article, .role {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
}
.trio span, .role span { color: var(--accent); font-weight: 700; font-size: 13px; }
.steps { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps div { padding: 16px 0; border-top: 1px solid var(--line); }
.site-foot {
  margin-top: auto;
  width: 100%;
  background: #101311;
  color: #d5ddd7;
}
.foot-in {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  padding: 42px 0 28px;
}
.foot-brand p { max-width: 36ch; margin-top: 12px; color: #9aa59c; }
.site-foot .brand b, .site-foot .plus { color: #f4f7f4; }
.site-foot .plus { color: #2dd4bf; }
.site-foot nav { display: grid; align-content: start; gap: 8px; }
.site-foot nav b { color: #f4f7f4; margin-bottom: 4px; }
.site-foot nav a { color: #c5d0c8; text-decoration: none; }
.site-foot nav a:hover { color: #fff; }
.foot-bar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8b968e;
  font-size: 13px;
}
.app-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.app-foot a { color: var(--accent); text-decoration: none; }
.consent {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f6faf8;
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.consent .tick {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 2px solid #0f766e;
  background: #fff;
  display: grid;
  place-items: center;
  transition: background .16s ease, transform .16s ease;
}
.consent .tick::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .16s ease;
}
.consent input:checked + .tick { background: #0f766e; transform: scale(1.04); }
.consent input:checked + .tick::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .tick { outline: 2px solid #2dd4bf; outline-offset: 3px; }
.consent:has(input:checked) { border-color: #9ed9cf; background: #eef8f5; }
.consent a { color: var(--accent); }
button.primary:disabled { opacity: .4; cursor: not-allowed; }
.prose { padding: 12px 0 28px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { margin: 22px 0 8px; font-size: 22px; }
.prose p { margin: 0 0 10px; max-width: 68ch; }
@media (min-width: 800px) {
  .foot-in { grid-template-columns: 1.4fr .8fr .9fr; }
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 10, .55);
}
.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 26px 24px 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .35);
  animation: sheet-in .45s ease;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 38px;
  background: radial-gradient(120px 80px at 20% 0%, rgba(45, 212, 191, .55), transparent 70%),
    radial-gradient(140px 90px at 90% 100%, rgba(231, 194, 122, .45), transparent 72%);
  filter: blur(8px);
  z-index: -1;
  animation: halo 7s ease-in-out infinite alternate;
}
.sheet-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f5f2;
  font-size: 22px;
  line-height: 1;
}
.sheet-tabs { display: flex; gap: 6px; margin-bottom: 16px; padding-right: 36px; }
.sheet-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
}
.sheet-tabs button[aria-selected="true"] { background: #101311; color: #f4f7f4; }
.pane h2 { margin-bottom: 6px; }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes halo {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(8deg) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet::before { animation: none; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); align-items: end; padding: 48px; }
  .scale { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; }
  .day ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media print {
  .side, .tabbar, .noprint { display: none !important; }
  body { background: white; }
  main { padding: 0; }
  .doc { box-shadow: none; }
}
