/* ---------- FAQ accordion ---------- */
.faq-list{ display: flex; flex-direction: column; gap: 10px; margin: 24px 0 36px; }
.faq-item{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary{
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+"; font-size: 20px; color: var(--ink-faint); flex: none;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ font-size: 14.5px; color: var(--ink-dim); margin: 0 0 18px; line-height: 1.6; }

/* ---------- contact form ---------- */
.af-form{ max-width: 520px; display: flex; flex-direction: column; gap: 16px; margin: 24px 0 8px; }
.af-form__row{ display: flex; flex-direction: column; gap: 6px; }
.af-form__row label{ font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.af-form__row input, .af-form__row textarea{
  font-family: var(--f-body); font-size: 15px; color: var(--ink);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1.5px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 12px 14px; resize: vertical;
}
.af-form__row input:focus, .af-form__row textarea:focus{ outline: none; border-color: var(--accent); }
.af-form button{ align-self: flex-start; border: none; cursor: pointer; }
.af-form-notice{ max-width: 520px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; }
.af-form-notice--ok{ background: rgba(48,209,88,.12); color: #1f8a3f; border: 1px solid rgba(48,209,88,.3); }
.af-form-notice--err{ background: rgba(255,69,58,.1); color: var(--sys-red); border: 1px solid rgba(255,69,58,.3); }
.af-form--wide{ max-width: 720px; }
.af-form__code{ font-family: var(--f-mono) !important; font-size: 13px !important; line-height: 1.5; }

/* ---------- case studies ---------- */
.cs-list{ display: flex; flex-direction: column; gap: 20px; margin: 28px 0 36px; }
.cs-card{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cs-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cs-tag{
  display: inline-block; font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.cs-card h2{ font-size: 22px !important; margin: 0 0 14px !important; }
.cs-card p{ font-size: 15px; line-height: 1.65; color: var(--ink-dim); margin: 0 0 10px; }
.cs-card p:last-child{ margin-bottom: 0; }
.cs-card p b{ color: var(--ink); }

/* ---------- sysadmin game ---------- */
.ag-wrap{ max-width: 760px; }
.ag-hud{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.ag-brief{ font-size: 16px; color: var(--ink); font-weight: 600; max-width: 560px; }
.ag-progress{ font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.ag-term{
  background: #1e1e24; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-md); position: relative; padding-top: 34px;
}
.ag-term::before{
  content: ""; position: absolute; top: 13px; left: 16px;
  width: 11px; height: 11px; border-radius: 50%; background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}
.ag-screen{
  height: 260px; overflow-y: auto; padding: 4px 20px;
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6;
}
.ag-line{ white-space: pre-wrap; color: #e4e4e9; }
.ag-line--system{ color: #8f97a3; font-style: italic; }
.ag-line--ok{ color: #30d158; }
.ag-line--err{ color: #ff6b6b; }
.ag-line--hint{ color: #ffd60a; }
.ag-inputline{ display: flex; align-items: center; gap: 8px; padding: 10px 20px 16px; }
.ag-prompt-host{ font-family: var(--f-mono); font-size: 13.5px; color: #30d158; white-space: nowrap; }
.ag-input{
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--f-mono); font-size: 13.5px; color: #e4e4e9;
}
.ag-controls{ display: flex; gap: 10px; margin-top: 16px; }

/* ---------- reviews ---------- */
.rv-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin: 28px 0 36px; }
@media (max-width: 700px){ .rv-grid{ grid-template-columns: 1fr; } }
.rv-card{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.rv-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rv-quote{ font-size: 14.5px; line-height: 1.65; color: var(--ink-dim); margin: 0 0 10px; }
.rv-quote:first-of-type::before{ content: "\201C"; }
.rv-quote:last-of-type::after{ content: "\201D"; }
.rv-meta{ margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.rv-meta b{ font-size: 14px; color: var(--ink); }
.rv-meta span{ font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-faint); }

/* ---------- SIPPhone / About project pages ---------- */
.sp-page{ max-width: 720px; }
.sp-eyebrow{
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.sp-title{ font-size: clamp(38px,5vw,54px) !important; font-weight: 800 !important; margin: 0 0 16px !important; }
.sp-lede{ font-size: 19px; color: var(--ink-dim); max-width: 60ch; }
.sp-cta{ display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 28px 0 44px; }
.af-btn-teal{ background: linear-gradient(135deg, var(--sys-teal), var(--accent)) !important; color: #fff !important; box-shadow: var(--shadow-glow); }
.af-btn-teal:hover{ transform: translateY(-2px); }
.sp-meta{ font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-faint); }
.sp-grid{
  display: grid; grid-template-columns: repeat(2,1fr); gap: 14px;
  margin: 26px 0 44px;
}
@media (max-width: 560px){ .sp-grid{ grid-template-columns: 1fr; } }
.sp-card{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.sp-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sp-card b{ display:block; font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.sp-card p{ font-size: 14.5px; color: var(--ink-dim); margin: 0; }
.sp-steps li{ margin-bottom: 8px; }
.sp-footer-note{ margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }

/* ---------- sysadmin tools (subnet calc / password gen / SLA calc) ---------- */
.at-wrap{ max-width: 820px; }
.at-tabs{ display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 22px; }
.at-tab{
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink-dim); cursor: pointer;
  transition: all .2s var(--ease); box-shadow: var(--shadow-sm);
}
.at-tab:hover{ border-color: var(--accent); color: var(--ink); }
.at-tab.is-active{ background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }

.at-panel{ display: none; }
.at-panel.is-active{ display: block; animation: at-fade .3s var(--ease); }
@keyframes at-fade{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: translateY(0); } }

.at-card{
  background: #1e1e24; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); position: relative; padding: 34px 26px 26px;
}
.at-card::before{
  content: ""; position: absolute; top: 17px; left: 20px;
  width: 11px; height: 11px; border-radius: 50%; background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
}
.at-field-row{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.at-input{
  flex: 1; min-width: 220px; font-family: var(--f-mono); font-size: 14.5px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14);
  color: #e4e4e9; border-radius: 8px; padding: 10px 14px; outline: none;
}
.at-input:focus{ border-color: var(--sys-teal); }
.at-input::placeholder{ color: #6e6e73; }
.at-btn{
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--sys-teal), var(--accent));
  border: none; border-radius: 8px; padding: 10px 18px; cursor: pointer;
  transition: transform .15s;
}
.at-btn:hover{ transform: translateY(-1px); }
.at-copy{
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  color: #d4d4d9; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: 8px 14px; cursor: pointer;
}
.at-copy:hover{ background: rgba(255,255,255,.16); color: #fff; }

.at-row-err{ color: #ff6b6b; font-family: var(--f-mono); font-size: 13.5px; margin-top: 10px; }
.at-row{
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--f-mono); font-size: 13.5px;
}
.at-row:last-child{ border-bottom: none; }
.at-row-label{ color: #8f97a3; }
.at-row-value{ color: #e4e4e9; font-weight: 600; text-align: right; }

.at-pw-out-row{ display: flex; gap: 10px; margin: 14px 0 10px; }
.at-pw-out{
  flex: 1; font-family: var(--f-mono); font-size: 16px; letter-spacing: .02em;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14);
  color: #30d158; border-radius: 8px; padding: 10px 14px;
}
.at-pw-opts{ display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.at-pw-opts label{ display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; color: #d4d4d9; cursor: pointer; }
.at-pw-len-row{ display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.at-pw-len-row label{ font-family: var(--f-mono); font-size: 13px; color: #8f97a3; white-space: nowrap; }
.at-pw-len-row input[type="range"]{ flex: 1; accent-color: var(--sys-teal); }
.at-pw-entropy{ font-family: var(--f-mono); font-size: 12px; color: #8f97a3; margin-top: 6px; line-height: 1.5; }

.at-sla-row{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.at-sla-row select{
  font-family: var(--f-mono); font-size: 14px; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14); color: #e4e4e9; border-radius: 8px; padding: 10px 14px;
}

.at-cron-human{
  font-family: var(--f-mono); font-size: 14.5px; color: #e4e4e9; line-height: 1.55;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 12px 14px; margin-top: 12px;
}
.at-cron-next{ margin-top: 12px; }
.at-cron-next-title{
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; color: #8f97a3;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.at-cron-builder-label{
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; color: #8f97a3;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.at-cron-preset-panel{ display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.at-cron-preset-panel label{
  font-family: var(--f-mono); font-size: 13px; color: #d4d4d9;
  display: flex; align-items: center; gap: 8px;
}
.at-cron-days{ margin: 0 0 4px; }

/* ---------- career roadmap ---------- */
.rm-wrap{ max-width: 880px; }
.rm-foundation{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); margin: 28px 0;
}
.rm-foundation b{ display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.rm-foundation p{ font-size: 14.5px; color: var(--ink-dim); margin: 0 0 12px; line-height: 1.65; }
.rm-foundation p:last-child{ margin-bottom: 0; }

.rm-chip-group{ display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.rm-chip{
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  background: var(--accent-soft); color: var(--accent-strong);
}
.rm-chip--tool{ background: rgba(94,92,230,.12); color: #5e5ce6; }
.rm-chip--cert{ background: rgba(255,159,10,.15); color: #c96a00; }
.rm-chip-label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; margin: 14px 0 0; }
.rm-chip-label:first-child{ margin-top: 0; }

.rm-timeline{ display: flex; flex-direction: column; gap: 12px; margin: 26px 0 8px; position: relative; }
.rm-stage{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-left: 3px solid var(--rm-accent, var(--accent));
  border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.rm-stage summary{
  cursor: pointer; list-style: none; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.rm-stage summary::-webkit-details-marker{ display: none; }
.rm-stage-head{ display: flex; flex-direction: column; gap: 3px; }
.rm-stage-title{ font-weight: 700; font-size: 15.5px; color: var(--ink); }
.rm-stage-role{ font-size: 13px; color: var(--ink-dim); }
.rm-stage-time{
  font-family: var(--f-mono); font-size: 11.5px; color: var(--rm-accent, var(--accent));
  font-weight: 700; white-space: nowrap; flex: none;
}
.rm-stage summary::after{
  content: "+"; font-size: 20px; color: var(--ink-faint); flex: none; margin-left: auto;
  transition: transform .2s var(--ease);
}
.rm-stage[open] summary::after{ transform: rotate(45deg); }
.rm-stage-body p{ font-size: 14px; color: var(--ink-dim); line-height: 1.65; margin: 0 0 6px 0; }
.rm-stage-body{ padding-bottom: 18px; }

/* ---------- "для родителей" — warmer, larger type, non-technical reader ---------- */
.rp-wrap{ max-width: 720px; font-size: 17px; line-height: 1.7; }
.rp-wrap h3{ font-size: 22px !important; margin: 40px 0 18px !important; }
.rp-wrap .sp-lede{ font-size: 19px; }

.rp-stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 8px; }
@media (max-width: 640px){ .rp-stats{ grid-template-columns: 1fr; } }
.rp-stat{
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px 18px; text-align: center;
}
.rp-stat b{ display: block; font-size: 34px; font-weight: 800; color: var(--sys-orange); font-family: var(--f-display); margin-bottom: 6px; }
.rp-stat span{ font-size: 14px; color: var(--ink-dim); line-height: 1.5; }

.rp-list{ display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.rp-item{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; font-size: 16.5px; line-height: 1.65; color: var(--ink-dim); box-shadow: var(--shadow-sm);
}
.rp-item b{ color: var(--ink); }

.rp-callout{
  background: rgba(255,69,58,.07); border: 1.5px solid rgba(255,69,58,.25);
  border-radius: var(--radius); padding: 22px 24px; margin: 28px 0;
}
.rp-callout b{ display: block; font-size: 17px; margin-bottom: 8px; color: #c92e24; }
.rp-callout p{ font-size: 16px; line-height: 1.65; color: var(--ink-dim); margin: 0; }

.rp-rule{
  background: linear-gradient(135deg, var(--sys-orange), #ff7a00);
  color: #fff !important; font-size: 19px; font-weight: 600; line-height: 1.6;
  border-radius: var(--radius); padding: 26px 28px; margin: 20px 0 32px;
  box-shadow: 0 12px 28px rgba(255,159,10,.3);
}

.rp-download{
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 30px 0; font-size: 15.5px; color: var(--ink-dim);
}
.rp-download-link{ font-weight: 700; }

/* ---------- «Чтобы сделать мир лучше» ---------- */
.ml-wrap{ max-width: 880px; }
.ml-tab-intro{ font-size: 15.5px; color: var(--ink-dim); line-height: 1.65; margin: 20px 0 18px; }

.ml-card{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}

.ml-btn{
  font-family: var(--f-display); font-size: 14px; font-weight: 700;
  color: #fff !important; background: linear-gradient(135deg, var(--sys-blue), var(--accent-strong));
  border: none; border-radius: var(--radius-pill); padding: 12px 22px; cursor: pointer;
  transition: transform .15s; margin-top: 18px; text-decoration: none !important;
}
.ml-btn:hover{ transform: translateY(-2px); }

.ml-scn-progress{ font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.ml-inc-phase{
  display: inline-block; font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 10px;
}
.ml-scn-channel{ font-weight: 700; font-size: 14px; color: var(--accent); margin-bottom: 8px; }
.ml-scn-text{ font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0 0 20px; }
.ml-scn-options{ display: flex; flex-direction: column; gap: 10px; }
.ml-scn-opt{
  text-align: left; font-size: 15px; font-family: var(--f-body);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s;
}
.ml-scn-opt:hover:not(:disabled){ border-color: var(--accent); }
.ml-scn-opt:disabled{ cursor: default; }
.ml-scn-opt--good{ border-color: var(--sys-green); background: rgba(48,209,88,.08); }
.ml-scn-opt--risky{ border-color: var(--sys-orange); background: rgba(255,159,10,.08); }
.ml-scn-opt--bad{ border-color: var(--sys-red); background: rgba(255,69,58,.08); }
.ml-scn-opt--chosen{ box-shadow: 0 0 0 2px currentColor inset; }
.ml-scn-explanation{ font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; padding: 2px 18px 14px; margin-top: -6px; }
.ml-scn-explanation b{ color: var(--ink); }
.ml-scn-technique{
  margin-top: 12px; font-size: 14px; background: var(--accent-soft); color: var(--ink);
  border-radius: var(--radius-sm); padding: 14px 18px; line-height: 1.55;
}
.ml-scn-score-row{ font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.ml-scn-techlist{ margin: 8px 0 4px; padding-left: 20px; }
.ml-scn-techlist li{ font-size: 14px; color: var(--ink-dim); margin-bottom: 6px; line-height: 1.5; }

.ml-legacy-progress-track{ height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.ml-legacy-progress-bar{ height: 100%; background: linear-gradient(90deg, var(--sys-teal), var(--accent)); width: 0%; transition: width .3s var(--ease); }
.ml-legacy-progress-label{ font-family: var(--f-mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 18px; }
.ml-legacy-item{ display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; color: var(--ink) !important; }
.ml-legacy-item:last-child{ border-bottom: none; }
.ml-legacy-item input{ margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--sys-teal); }
.ml-legacy-item span{ font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.ml-legacy-item span b{ color: var(--ink); }

.ml-pc-question{ font-family: var(--f-mono); font-size: 13px; color: #8f97a3; margin-bottom: 14px; }
.ml-pc-buttons{ display: flex; gap: 10px; flex-wrap: wrap; }
.ml-pc-ram-btn{
  font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; color: #d4d4d9;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 10px 16px; cursor: pointer; transition: all .15s;
}
.ml-pc-ram-btn:hover{ border-color: var(--sys-teal); }
.ml-pc-ram-btn.is-active{ background: var(--sys-teal); border-color: var(--sys-teal); color: #04222a; }
.ml-pc-out{ margin-top: 18px; }
.ml-pc-advice-text{ font-size: 13.5px; color: #8f97a3; line-height: 1.6; margin-top: 8px; }

.ml-list{ display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.ml-item{
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--ink-dim); box-shadow: var(--shadow-sm);
}
.ml-item b{ color: var(--ink); }

.ml-callout{ background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; }
.ml-callout b{ display: block; font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.ml-callout p{ font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; margin: 0; }

.ml-download{ background: var(--accent-soft); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: var(--ink-dim); }
.ml-download-link{ font-weight: 700; }

.ml-chip-label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; margin: 4px 0 8px; }

/* ---------- «Чтобы принести пользу сообществу» ---------- */
.ml-inc-pick, .zb-review-pick{
  font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 12px 20px; cursor: pointer; transition: all .2s var(--ease);
}
.ml-inc-pick:hover, .zb-review-pick:hover{ border-color: var(--accent); }
.ml-inc-pick.is-active, .zb-review-pick.is-active{ background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.ml-inc-verdict{ font-size: 15px; color: var(--ink-dim); margin: 0 0 18px; }

.ml-code{
  background: #1e1e24; color: #e4e4e9; font-family: var(--f-mono); font-size: 13px; line-height: 1.6;
  border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; margin: 10px 0 0; white-space: pre;
}

.ml-km-svg{ width: 100%; height: auto; margin: 16px 0; }
.ml-km-edge{ stroke: var(--line); stroke-width: 2; }
.ml-km-edge--dashed{ stroke-dasharray: 5 5; }
.ml-km-node{ cursor: pointer; }
.ml-km-node circle{ fill: var(--card); stroke: var(--accent); stroke-width: 2; transition: fill .2s, stroke .2s; }
.ml-km-node text{ font-family: var(--f-display); font-weight: 700; fill: var(--ink); font-size: 13px; pointer-events: none; }
.ml-km-node--hub circle{ fill: var(--accent-soft); stroke-width: 3; }
.ml-km-node:hover circle{ stroke: var(--sys-teal); }
.ml-km-node--known circle{ fill: var(--sys-green); stroke: var(--sys-green); }
.ml-km-node--known text{ fill: #fff; }

.ml-km-detail{ background: var(--accent-soft); border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 14px; }
.ml-km-detail-title{ display: block; font-size: 16px; margin-bottom: 6px; }
.ml-km-detail-desc{ font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; margin: 0 0 10px; }
.ml-km-detail-step-label{ font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; margin-bottom: 4px; }
.ml-km-detail-step{ font-size: 14px; color: var(--ink); line-height: 1.6; margin: 0 0 12px; }
.ml-km-detail-checklabel{ display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--ink) !important; }
.ml-km-detail-checklabel input{ width: 16px; height: 16px; accent-color: var(--sys-green); }

/* ---------- post-mortem generator ---------- */
.pm-layout{ display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.pm-preview-card{ position: sticky; top: 16px; }
.pm-field{ margin-bottom: 14px; }
.pm-field label{ display: block; font-size: 13px; font-weight: 600; color: var(--ink-dim); margin-bottom: 6px; }
.pm-field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pm-input{
  width: 100%; font-family: var(--f-body); font-size: 14.5px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; box-sizing: border-box;
}
.pm-input:focus{ outline: none; border-color: var(--accent); }
.pm-textarea{ resize: vertical; font-family: var(--f-body); line-height: 1.5; }
.pm-rows{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.pm-row{ display: flex; gap: 8px; align-items: flex-start; }
.pm-row .pm-input{ flex: 1; }
.pm-row-remove{
  flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-faint);
  cursor: pointer; font-size: 16px; line-height: 1; transition: all .15s;
}
.pm-row-remove:hover{ border-color: var(--sys-red); color: var(--sys-red); }
.pm-add-btn{
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--accent-strong);
  background: none; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer; transition: border-color .15s;
}
.pm-add-btn:hover{ border-color: var(--accent); }
.pm-preview{ max-height: 560px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.pm-preview-actions{ display: flex; gap: 10px; margin-top: 14px; }


.af4-page .entry-content{color:var(--text)}.af4-page input,.af4-page textarea,.af4-page select{color:var(--text);background:var(--surface-2)}.af4-page .af-form__row label{color:var(--text-muted)}@media(max-width:700px){.rv-grid,.af4-page [class*=grid]{grid-template-columns:1fr!important}.af4-page table{display:block;overflow:auto}.af4-page .ag-inputline{flex-wrap:wrap}.af4-page .ag-screen{height:300px}}