:root {
  --bg: #0d0e11;
  --panel: #16181d;
  --panel-2: #1c1f26;
  --border: #262a33;
  --text: #e8eaee;
  --muted: #8a90a0;
  --accent-1: #8b5cf6;
  --accent-2: #ec4899;
  --danger: #ef4444;
  --ok: #34d399;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

.wrap { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
.wrap.wrap-wide { max-width: 1360px; }

.top { margin-bottom: 28px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex: none;
}

.sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.tabs { display: flex; gap: 6px; margin: 20px 0 16px; }

.tab {
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active { background: var(--panel-2); color: var(--text); border-color: var(--border); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
}

.card h3 { margin: 0 0 2px; font-size: 16px; font-weight: 750; }
.meta { color: var(--muted); font-size: 13px; margin-top: 2px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .grow { flex: 1; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn:hover { border-color: #3a3f4d; }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }

.btn-primary {
  position: relative;
  border: none;
  background: none;
  padding: 1.4px;
  border-radius: 9px;
  cursor: pointer;
  background-image: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: inline-block;
}

.btn-primary > span {
  display: block;
  background: var(--panel);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 20px;
}

.btn-primary:hover > span { background: var(--panel-2); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-primary.solid > span {
  background-image: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
}

input[type="text"], input[type="url"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
}

input:focus, textarea:focus, select:focus { border-color: var(--accent-1); }

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

label.field { display: block; margin-bottom: 16px; }
label.field .q-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.q-hint { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.req { color: var(--accent-2); font-weight: 800; }

.opts { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.opt {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
}
.opt:hover { border-color: #3a3f4d; }
.opt input { width: auto; accent-color: var(--accent-1); margin: 0; }

.progress {
  height: 5px;
  border-radius: 3px;
  background: var(--panel-2);
  overflow: hidden;
  margin: 14px 0 20px;
}
.progress > div {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 0.3s;
}

.notice {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.notice.ok { border-color: rgba(52, 211, 153, 0.4); color: var(--ok); }

.link-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px 8px 14px;
  font-size: 13.5px;
}
.link-box code { flex: 1; color: var(--text); word-break: break-all; font-size: 13px; }

.doc h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 4px; }
.doc a { color: var(--accent-1); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc .q { margin-top: 18px; }
.doc .q .qt { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.doc .q .qa { margin-top: 4px; white-space: pre-wrap; }
.doc .q .qa.is-empty { color: var(--muted); }

.result-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 14px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 50;
}
.toast.show { opacity: 1; }

.saved-note { color: var(--muted); font-size: 12.5px; min-height: 18px; margin-top: 10px; }

.q-editor {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
.q-editor .head { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.q-editor .head select { width: auto; flex: none; font-size: 12.5px; padding: 5px 8px; }
.q-editor .head .grow { flex: 1; }
.q-editor input, .q-editor textarea { margin-bottom: 10px; font-size: 13.5px; padding: 7px 10px; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: var(--text); border-color: #3a3f4d; }

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1020px; }
.tpl {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-left: 2px solid var(--tc, var(--accent-1));
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.tpl:hover { border-color: var(--tc, var(--accent-1)); background: var(--panel-2); }
.tpl-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--tc, var(--accent-1)) 14%, transparent);
  color: var(--tc, var(--accent-1));
}
.tpl-ico svg { width: 24px; height: 24px; }
.tpl .tpl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tpl .tpl-name { font-weight: 750; font-size: 16px; }
.tpl .tpl-desc { color: #b7bdc9; font-size: 14px; line-height: 1.5; }
.tpl .tpl-arrow { margin-left: auto; color: var(--muted); font-size: 16px; transition: color 0.18s; }
.tpl:hover .tpl-arrow { color: var(--tc, var(--accent-1)); }

.chip {
  display: inline-block;
  vertical-align: 2px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
}

.item-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.item-num {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  align-items: start;
}
.list-grid .item-row { margin-bottom: 0; }
@media (max-width: 760px) {
  .list-grid { grid-template-columns: 1fr; }
}

.item-main { flex: 1; min-width: 0; }
.item-main textarea { margin-bottom: 12px; font-size: 13.5px; }
.item-main input { margin-bottom: 12px; font-size: 12.5px; padding: 6px 10px; }
.item-main > :last-child { margin-bottom: 0; }
.item-btns { display: flex; flex-direction: column; gap: 4px; flex: none; }

.doc .q-comment {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin-top: 3px;
}

.strip { margin: 12px 0 14px; }
.strip-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.thumbs { display: flex; flex-wrap: wrap; gap: 7px; }
.thumb {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb a { display: block; width: 100%; height: 100%; }
.thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
}
.thumb-add {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  font-weight: 700;
}
.thumb-add:hover { border-color: var(--accent-1); color: var(--text); }
.thumb-add input { display: none; }
.strip-foot { display: flex; gap: 10px; margin-top: 4px; }
.strip-hint { color: var(--muted); font-size: 11.5px; }
.strip-status { color: var(--accent-1); font-size: 11.5px; }

.item-doc .qa.fix { margin-top: 6px; }
.fix-label { color: var(--muted); font-weight: 700; }
.doc-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.doc-thumbs a { display: block; }
.doc-thumbs img {
  max-width: 180px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.doc .item-doc { border-top: 1px solid var(--border); padding-top: 14px; }
.doc .item-doc:first-of-type { border-top: none; padding-top: 0; }

@media print {
  body { background: #fff; color: #111; }
  .wrap { max-width: none; padding: 0; }
  .brand, .result-banner, .row, .notice, .toast { display: none !important; }
  .card.doc {
    border: none;
    background: #fff;
    color: #111;
    padding: 0;
  }
  .card.doc h1, .card.doc .qa, .card.doc .fix-label { color: #111; }
  .card.doc .qt, .card.doc .q-comment, .doc .qa.is-empty { color: #555; }
  .card.doc a { color: #1a4fd6; }
  .doc-thumbs img { border-color: #ccc; }
}

@media (max-width: 560px) {
  .wrap { padding: 20px 14px 48px; }
  .tpl-grid { grid-template-columns: 1fr; }
  .row .btn { margin-top: 4px; }
  .item-row { flex-wrap: wrap; padding: 10px; }
  .item-btns { flex-direction: row; }
  .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .thumb { width: 72px; height: 72px; }
  .link-box { flex-wrap: wrap; }
  .link-box .btn { width: 100%; }
  .btn-primary > span { width: 100%; }
  .row .btn-primary { width: 100%; }
  .doc-thumbs img { max-width: 46%; }
}
}


/* ═══ скин daruev.ru: включается классом daru на <html> ═══ */
.daru-chrome { display: none; }

html.daru {
  --acc: #458692;
  --mut: #a1a1a1;
  --mut2: #6b6b6b;
  --txt: #fff;
  --line: rgba(255, 255, 255, 0.13);
  --line2: rgba(255, 255, 255, 0.2);
  --f: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  background:
    radial-gradient(1100px 620px at 88% 102%, rgba(63, 145, 120, 0.28), transparent 62%),
    radial-gradient(950px 560px at -6% -8%, rgba(96, 64, 170, 0.22), transparent 58%),
    #0a0a0a;
  color-scheme: dark;
}

html.daru body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: none;
  color: var(--txt);
  font: 400 15px/1.6 var(--f);
  letter-spacing: -0.01em;
}

html.daru .daru-chrome { display: block; }

/* настоящая шапка сайта: плавающая пилюля (те же формулы, что на daruev.ru) */
html.daru .hd {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  width: min(1440px, 100%);
  margin-inline: auto;
  z-index: 40;
}
html.daru .hd::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

html.daru .hd__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 58px;
  padding-inline: clamp(16px, 3.4vw, 48px);
}

html.daru .hd .wrap { padding: 0 clamp(16px, 3.4vw, 48px); }

html.daru .logo {
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

html.daru .nav {
  display: flex;
  gap: 26px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  height: 100%;
  align-items: center;
}

html.daru .nav a {
  font-size: 13px;
  color: var(--mut);
  text-transform: uppercase;
  transition: color 0.2s;
  text-decoration: none;
}

html.daru .nav a:hover { color: var(--txt); }

html.daru .hd__right {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

html.daru .hd__right .b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--f);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

html.daru .hd__right .b:hover { border-color: var(--acc); color: #7fc3cd; }

/* контент: та же колонка, что на сайте */
html.daru .wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding: 92px clamp(16px, 3.4vw, 48px) 48px;
  flex: 1;
  width: 100%;
  font-family: var(--f);
}

html.daru .wrap.wrap-wide { max-width: 1440px; }

/* типографика в духе сайта */
html.daru .brand,
html.daru h3 { font-family: var(--f); }

/* подвал сайта 1:1 */
html.daru .ft {
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 64px);
}

html.daru .ft__g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand contacts" "nav nav";
  gap: 32px 40px;
  padding-block: 48px 40px;
}

html.daru .ft__brand { grid-area: brand; }
html.daru .ft__brand p { font-size: 13.5px; color: var(--mut); }
html.daru .ft__col[aria-label="Контакты"] { grid-area: contacts; }
html.daru .ft__col { display: flex; flex-direction: column; gap: 10px; }
html.daru .ft__col a {
  font-size: 13.5px;
  color: var(--mut);
  transition: color 0.2s;
  text-decoration: none;
}
html.daru .ft__col a:hover { color: var(--txt); }
html.daru .ft__col[aria-label="Разделы сайта"] {
  grid-area: nav;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
html.daru .ft__col[aria-label="Разделы сайта"] a { font-size: 14px; letter-spacing: 0.02em; }

html.daru .ft__bar { border-top: 1px solid var(--line); }
html.daru .ft__barin {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 12px;
  color: var(--mut2);
}
html.daru .ft__made { text-transform: uppercase; letter-spacing: 0.04em; }

/* кнопки: как .b на сайте — обводка, моно-капс, срезанный угол */
html.daru .btn-primary,
html.daru .btn-primary.solid {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line2);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  padding: 0;
}

html.daru .btn-primary > span,
html.daru .btn-primary.solid > span {
  background: transparent;
  color: var(--txt);
  font-family: var(--f);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s, background 0.2s;
}

html.daru .btn-primary:hover > span,
html.daru .btn-primary.solid:hover > span {
  background: rgba(69, 134, 146, 0.14);
  color: #7fc3cd;
}

html.daru .btn {
  font-family: var(--f);
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

html.daru .tabs { border-bottom: 1px solid var(--line); padding-bottom: 10px; }

html.daru .card { background: rgba(10, 10, 10, 0.7); border-color: var(--line); }

html.daru .link-box,
html.daru .notice,
html.daru .result-banner {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

@media (max-width: 960px) {
  html.daru .nav { display: none; }
  html.daru .logo { flex: 1; }
  html.daru .hd__right { padding: 0 10px; }
  html.daru .wrap { padding-top: 84px; }
}


html.daru .brand { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .02em; }
html.daru h3 { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

/* кнопки: обводка вместо заливки */
html.daru .btn-primary { background-image: none; background: #0a0a0a; border: 1px solid #458692; padding: 0; }
html.daru .btn-primary > span {
  background: transparent;
  color: #458692;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: background .2s, color .2s;
}
html.daru .btn-primary:hover > span { background: rgba(69, 134, 146, 0.14); color: #7fc3cd; }
html.daru .btn-primary.solid > span { background: transparent; color: #458692; }
html.daru .btn-primary.solid:hover > span { background: rgba(69, 134, 146, 0.14); }

html.daru .btn { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

html.daru .tabs { border-bottom: 1px solid #1d1d1d; padding-bottom: 10px; }

@media (max-width: 760px) {
  html.daru .daru-top { flex-wrap: wrap; }
  html.daru .daru-nav { flex-wrap: wrap; }
}

/* фоновые анимации сайта (для daru-скина) */
html.daru body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: radial-gradient(50% 55% at 50% 50%, rgba(124,58,237,.15), transparent 70%), radial-gradient(40% 44% at 50% 50%, rgba(139,92,246,.12), transparent 70%), radial-gradient(38% 40% at 50% 50%, rgba(63,214,125,.11), transparent 70%), radial-gradient(34% 38% at 50% 50%, rgba(69,134,146,.09), transparent 70%), radial-gradient(46% 52% at 50% 50%, rgba(16,84,50,.14), transparent 72%), radial-gradient(38% 44% at 50% 50%, rgba(168,85,247,.09), transparent 72%);
  background-repeat: no-repeat;
  background-size: 100% 110%, 80% 88%, 76% 80%, 68% 76%, 92% 104%, 76% 88%;
  background-position: 26% 22%, 76% 18%, 80% 80%, 16% 82%, 52% 46%, 40% 82%;
  animation: auroraFlow 44s ease-in-out infinite;
  will-change: background-position;
}

html.daru body::after {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(32% 38% at 24% 72%, rgba(139,92,246,.16), transparent 70%), radial-gradient(30% 28% at 76% 32%, rgba(63,214,125,.09), transparent 70%), radial-gradient(26% 28% at 58% 52%, rgba(111,181,194,.07), transparent 72%);
  animation: daru-steam 44s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes auroraFlow {0%{background-position:26% 22%,76% 18%,80% 80%,16% 82%,52% 46%,40% 82%}33%{background-position:20% 64%,64% 30%,34% 76%,62% 74%,38% 18%,72% 50%}66%{background-position:44% 76%,30% 58%,66% 24%,82% 32%,22% 58%,18% 28%}100%{background-position:26% 22%,76% 18%,80% 80%,16% 82%,52% 46%,40% 82%}}
@keyframes daru-steam {0%{transform:translate3d(2%,1%,0) scale(1)}40%{transform:translate3d(-3%,-2%,0) scale(1.14)}100%{transform:translate3d(3%,-3%,0) scale(1.06)}}

html.daru .page-head { margin-bottom: 18px; }
html.daru .page-title {
  font-family: var(--f);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--txt);
}
html.daru .page-sub { margin-top: 6px; font-size: 13px; color: var(--mut); }

/* ── статусы пунктов ТЗ и прогресс ── */
.tz-status {
  display: inline-block;
  border: 1px solid var(--mut);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: 1px;
  margin-right: 6px;
}

.tz-progress { margin: 0 0 18px; }
.tz-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line, rgba(255, 255, 255, 0.12));
  overflow: hidden;
}
.tz-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #458692, #34d399);
  border-radius: 3px;
  transition: width 0.4s;
}
.tz-progress-lbl {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mut);
}

html.daru .tz-status-set {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
html.daru .tz-st {
  font-family: var(--f);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  background: transparent;
  color: var(--mut);
  border: 1px solid var(--line2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
html.daru .tz-st:hover { color: var(--c, #fff); border-color: var(--c, #fff); }
html.daru .tz-st.on { color: var(--c, #fff); border-color: var(--c, #fff); background: rgba(255, 255, 255, 0.06); }


/* мега-меню и мобильное меню: как на сайте */
.mm-wrap { position: relative; }
.mm-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  transform: translate(-50%, 0);
  width: min(1040px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 26px;
  background: #0e0f12;
  border: 1px solid #242424;
  border-radius: 12px;
  padding: 20px 22px 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 80;
  text-align: left;
}
.mm-wrap:hover .mm-panel, .mm-wrap:focus-within .mm-panel { opacity: 1; visibility: visible; }
.mm-h { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #458692; }
.mm-col a { display: block; padding: 5px 0; color: #c9c9c9; text-decoration: none; font-size: 13.5px; line-height: 1.4; transition: color 0.15s; text-transform: none; }
.mm-col a:hover { color: #fff; }
@media (max-width: 1200px) { .mm-panel { grid-template-columns: repeat(2, 1fr); width: min(620px, calc(100vw - 32px)); } }

html.daru .burger {
  display: none;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
html.daru .mnav {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
html.daru .mnav.open { opacity: 1; visibility: visible; pointer-events: auto; }
html.daru .mnav nav { display: flex; flex-direction: column; gap: 18px; text-align: center; }
html.daru .mnav a { font-size: 20px; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
html.daru .mnav a:hover { color: #7fc3cd; }
@media (max-width: 960px) { html.daru .burger { display: flex; } }
