@font-face {
  font-family: Manrope;
  src: url(/assets/manrope.ttf) format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #18231d;
  --muted: #56645a;
  --paper: #f7f8f2;
  --white: #fff;
  --line: #dce2d8;
  --lime: #c8f46c;
  --forest: #253c30;
  --error: #a83232;
  --radius: 22px;
  --shadow-card: 0 2px 3px #18231d03, 0 12px 32px -24px #18231d35;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.55 "Manrope",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection {
  background: #d6f5a1;
  color: var(--ink);
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: #6f8d58;
  box-shadow: 0 0 0 4px #a9cb7b20;
}
input,
select,
textarea {
  min-width: 0;
}
button,
.btn {
  touch-action: manipulation;
}
button:disabled,
.btn[aria-disabled="true"] {
  transform: none !important;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
.btn {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a,
button,
input,
select,
textarea,
summary {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #5a842a;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(44px, 6.4vw, 88px);
}
h2 {
  font-size: clamp(34px, 4vw, 56px);
}
h3 {
  font-size: 25px;
}
p {
  color: var(--muted);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1.1px;
  text-decoration: none;
  white-space: nowrap;
}
.brandmark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transform: rotate(-8deg);
}
.brandmark i {
  width: 4px;
  background: var(--lime);
  border-radius: 3px;
  height: 12px;
}
.brandmark i:nth-child(2) {
  height: 21px;
}
.brandmark i:nth-child(3) {
  height: 16px;
}
.btn,
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.3;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover,
button.primary:hover {
  background: var(--forest);
  transform: translateY(-2px);
}
.btn.lime {
  background: var(--lime);
  color: var(--ink);
}
.btn.lime:hover {
  background: #bce85b;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover {
  background: #edf0e7;
}
.btn.small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 14px;
}
.arrow {
  font-size: 23px;
  line-height: 1;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 24px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6c9b3b;
  margin-right: 7px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px 11px;
  background: #edf2e6;
  border-radius: 20px;
  font-weight: 600;
}
.muted,
.hint {
  color: var(--muted);
  font-size: 13px;
}
.err {
  color: var(--error);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0;
}
.check input {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 3px 0 0;
  accent-color: var(--forest);
}
/* A thumb's target: the box and its row */
@media (pointer: coarse) {
  .check input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 0;
  }
  .check {
    min-height: 44px;
    align-items: center;
  }
}
.check a {
  text-underline-offset: 3px;
}
input,
select,
textarea {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--forest);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.settings-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.settings-jumps a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
}
.settings-jumps a:hover {
  background: #e9eedf;
}
.settings-launch {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 24px;
  background: #eaf0df;
  border: 1px solid #cedbbe;
}
.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.setting-toggle {
  display: block;
  padding: 22px;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  cursor: pointer;
}
.setting-toggle:has(input:checked) {
  border-color: #769d4e;
}
.setting-toggle strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 17px 0 10px;
}
.setting-description {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 450;
}
.setting-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setting-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  min-width: 50px;
  height: 28px;
  border: 1px solid #889581;
  border-radius: 30px;
  background: #e9eee3;
  padding: 3px;
  margin: 0;
  cursor: pointer;
}
.setting-toggle input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #627359;
  transition: transform 0.15s;
}
.setting-toggle input[type="checkbox"]:checked {
  background: var(--forest);
  border-color: var(--forest);
}
.setting-toggle input[type="checkbox"]:checked::before {
  background: var(--lime);
  transform: translateX(21px);
}
.switch-state {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.switch-state .when-on {
  display: none;
}
.setting-toggle:has(input:checked) .when-on {
  display: inline;
  color: #3c6430;
}
.setting-toggle:has(input:checked) .when-off {
  display: none;
}
.settings-apply {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.settings-apply span {
  max-width: 440px;
  font-size: 12px;
  color: var(--muted);
}
.settings-section {
  scroll-margin-top: 20px;
}
.settings-section summary {
  cursor: pointer;
  font-weight: 650;
}
.settings-section[open] > summary {
  margin-bottom: 20px;
}
.settings-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
.settings-section summary::-webkit-details-marker {
  display: none;
}
.settings-section summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
}
.settings-section[open] > summary::after {
  content: "−";
  background: var(--paper);
}
.settings-jumps a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.settings-jumps a:hover {
  border-bottom-color: currentColor;
}
.settings-launch {
  box-shadow: var(--shadow-card);
}
.setting-toggle {
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.setting-toggle:has(input:checked) {
  border-color: #789d4d;
  box-shadow: inset 0 3px #87ae54;
}
.setting-toggle:focus-within {
  outline: 3px solid #5a842a;
  outline-offset: 4px;
}
.form-savebar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 480px;
  max-width: calc(100vw - 32px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffffff5;
  box-shadow: 0 8px 32px #18231d18;
}
.form-savebar[hidden] {
  display: none;
}
.form-savebar span {
  flex: 1;
  font-size: 13px;
  color: #72500b;
}
.form-savebar button {
  margin: 0 !important;
}
.settings-section .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme details {
  margin-top: 12px;
}
.theme blockquote {
  margin: 12px 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #a9c186;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .settings-launch {
    padding: 16px;
  }
  .settings-toggle-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .setting-toggle {
    padding: 18px;
  }
  .settings-apply {
    flex-wrap: wrap;
    gap: 12px;
  }
  .settings-section .grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* v0.77–v0.78: long pages are folded sections, each naming what is set; repeated things are folded cards with «+ добавить» */
html details.form-section { padding: 0; }
html details.form-section > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 20px 27px; font-size: 19px; font-weight: 650; letter-spacing: -0.04em; cursor: pointer; margin: 0; }
html details.form-section > summary::-webkit-details-marker { display: none; }
html details.form-section > summary::after { content: "›"; margin-left: auto; font-size: 22px; color: #8a9a8e; transform: rotate(90deg); transition: transform .15s; }
html details.form-section[open] > summary::after { transform: rotate(-90deg); }
html details.form-section > summary .num { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: #8a9a8e; }
html details.form-section > summary .fill { margin-left: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 4px 10px; border-radius: 999px; }
html details.form-section > summary .fill.ok { background: #e6f4d9; color: #2f5d0f; }
html details.form-section > summary .fill.none { background: #f1f1ea; color: #4a5750; }
html details.form-section > summary + *, html details.form-section > :not(summary) { margin-left: 27px; margin-right: 27px; }
html details.form-section > p:first-of-type { margin-top: 0; }
html details.form-section[open] { padding-bottom: 22px; }
html details.form-section .field .hint, html details.form-section p.hint { font-size: 12px; color: #6a776d; margin: 4px 0 0; }
html details.form-section .field .hint.err { color: var(--error); font-weight: 600; }
html details.form-section .field [aria-invalid="true"] { border-color: var(--error); }
html details.form-section details.more { border: 0; background: transparent; padding: 0; margin: 4px 0 0; }
html details.form-section details.more > summary { font-size: 13px; font-weight: 600; color: #2f6b4b; padding: 4px 0; }
.launch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-card); }
.launch b { font-size: 14px; margin-right: 6px; }
.launch a { display: inline-flex; flex-direction: column; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink, #14201a); }
.launch a small { font-weight: 400; color: #6a776d; font-size: 11px; }
.launch a.ok { background: #e6f4d9; border-color: #cfe8bd; }
.launch a.todo { background: #fff7e0; border-color: #f0dfa8; }
html details.form-section > summary .num, html details.form-section > summary::after { color: var(--muted); }
.launch a small { color: var(--muted); font-size: 12px; }
.section-links { font-size: 13px; color: var(--muted); margin: -8px 0 22px 6px; }
.section-links a { color: #2f6b4b; font-weight: 600; text-decoration: none; }
.save-bar span.err { color: #a83232; font-size: 12px; font-weight: 600; }
html details.form-section details > summary { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  html details.form-section > summary { padding: 14px 18px; font-size: 17px; flex-wrap: wrap; }
  html details.form-section > summary .fill { order: 1; flex-basis: 100%; max-width: none; white-space: normal; margin-left: 30px; }
  html details.form-section > :not(summary) { margin-left: 18px; margin-right: 18px; }
  form[data-client-form] input:not([type=checkbox]), form[data-client-form] select, form[data-client-form] textarea { font-size: 16px; min-width: 0; }
  form[data-client-form] .hours-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  form[data-client-form] .hours-grid input { font-size: 14px; padding: 10px 6px; }
  .save-bar { flex-wrap: wrap; }
  .save-bar span:not(.err) { display: none; }
  .save-bar button { flex: 1 1 100%; }
}

html details.item { border: 1px solid var(--line); border-radius: 13px; background: #fbfcf8; margin: 0 0 10px; padding: 0; }
html details.item > summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
html details.item > summary::-webkit-details-marker { display: none; }
html details.item > summary::before { content: "›"; color: var(--muted); transition: transform .15s; display: inline-block; }
html details.item[open] > summary::before { transform: rotate(90deg); }
html details.item > summary b { font-size: 14px; }
html details.item > summary small { font-size: 12px; color: var(--muted); }
html details.item .item-body { padding: 0 16px 14px; }
.row-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 8px; }
.row-item > .field { flex: 1 1 140px; min-width: 0; }
.row-item > button { flex: 0 0 auto; }
html button.add-row, html button.remove-item { width: auto; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink, #14201a); border: 1px solid var(--line); cursor: pointer; }
html button.add-row:hover { background: #f5f8f0; border-color: #9fb58f; }
html button.remove-item { color: #a83232; border-color: #e3c4c4; }
html button.remove-item:hover { background: #fbeeee; }
html button.add-row { margin: 4px 0 6px; }
@media (max-width: 640px) {
  .row-item > .field { flex-basis: 120px; }
  html details.item .item-body { padding: 0 12px 12px; }
}
