.article-prose p, .article-prose li { color: var(--ink-soft); }
.article-prose img { border-radius: 16px; }
.article-prose blockquote {
  margin: 1.4em 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
}
.article-prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.article-prose th, .article-prose td { border: 1px solid var(--line-strong); padding: 0.55em 0.8em; text-align: left; }
.article-prose th { background: var(--bg-mint); }
.article-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-mint-2); border-radius: 6px; padding: 0.12em 0.4em; }

.article-steps { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 0.8rem; }
.article-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.article-step__n {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--green-glow);
  font: 700 0.9rem var(--font-mono);
}
.article-step p { margin: 0.25em 0 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4em 0; }
.article-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  border: 1px solid #c8ecd6;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
}

.article-callout {
  margin: 1.5em 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
}
.article-callout--warn, .article-callout--warning { border-left-color: var(--amber); background: var(--amber-tint); }
.article-callout--danger, .article-callout--error { border-left-color: var(--pin-red); background: var(--red-tint); }
.article-callout strong { display: block; margin-bottom: 0.3em; }
.article-callout p { margin: 0; }

.article-quote {
  margin: 1.6em 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
  border-radius: 0 16px 16px 0;
  font-style: italic;
}
.article-quote footer { font-style: normal; color: var(--muted); font-size: 0.88rem; margin-top: 0.5em; }

.article-fact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.6em 0;
  padding: 1.2rem 1.4rem;
  background: var(--green-deep);
  color: #d3ecdc;
  border-radius: 18px;
}
.article-fact__num { font: 600 2.2rem/1 var(--font-display); color: var(--green-glow); white-space: nowrap; }
.article-fact__num em { font-style: normal; font-size: 0.55em; margin-left: 0.15em; }
.article-fact p { margin: 0; }

.article-highlight {
  margin: 1.5em 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-tint), #fff 70%);
  border: 1px solid #c8ecd6;
}

.article-divider { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }

.article-table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 14px; }
.article-table-wrap table { margin: 0; }

.article-related {
  margin: 1.8em 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.article-related__title { font-weight: 800; margin: 0 0 0.6em; }
.article-related ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4em; }

.article-eeat {
  margin: 1.8em 0;
  padding: 1rem 1.3rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.feature-list li { padding-left: 1.9em; position: relative; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0.1em;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-tint);
}

.cta-inline {
  position: relative;
  margin: 2em 0;
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background: var(--green-deep);
  color: #e8f8ee;
  overflow: hidden;
}
.cta-inline h3, .cta-inline strong { color: #fff; }
.cta-inline p { color: #a9cdb7; }
.cta-inline__glow { position: absolute; inset: -50%; background: radial-gradient(circle at 80% 20%, rgba(0, 224, 96, 0.25), transparent 45%); pointer-events: none; }

.article-mid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 224, 96, 0.28);
  background: rgba(0, 224, 96, 0.07);
}
.article-mid-cta__body { flex: 1 1 14rem; min-width: 0; }
.article-mid-cta__body strong { display: block; font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--ink, #111); }
.article-mid-cta__body p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.article-mid-cta__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: var(--green, #1fbf62);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
@media (min-width: 900px) {
  .sticky-cta { display: none !important; }
}
body.has-sticky-cta { padding-bottom: 4.75rem; }

/* ---------- reveal-анимации ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal [data-reveal="right"] { transform: translateX(34px); }
.js-reveal [data-reveal="scale"] { transform: scale(0.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: clamp(3rem, 10vw, 6rem) 1rem; }
.nf-code {
  font: 600 clamp(4.5rem, 16vw, 8.5rem)/1 var(--font-display);
  letter-spacing: 0.02em;
  background: linear-gradient(115deg, var(--green-dark), var(--green) 45%, var(--pin-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf-tread {
  width: min(360px, 70vw);
  height: 14px;
  margin: 0.8rem auto 1.6rem;
  background: repeating-linear-gradient(-55deg, var(--green-deep) 0 12px, transparent 12px 22px);
  border-radius: 7px;
  opacity: 0.18;
}

/* ---------- виджет поддержки ---------- */
.support-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150; font-family: var(--font-body); }
.support-widget__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--green-deep);
  color: #eafaf0;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.support-widget__fab:hover { transform: translateY(-2px); }
.support-widget__fab--active { border-color: var(--green); }
.support-widget__fab-icon { font-size: 1.15rem; line-height: 1; }
.support-widget__fab-label { font-weight: 600; font-size: 0.92rem; }
.support-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  width: 360px;
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.support-widget__panel.is-open { display: flex; animation: modal-in 0.3s var(--ease-out); }
.support-widget__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-mint);
}
.support-widget__title { font-weight: 800; font-size: 1rem; }
.support-widget__sub { color: var(--muted); font-size: 0.8rem; }
.support-widget__close {
  margin-left: auto;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.support-widget__close:hover { background: var(--green-tint); color: var(--green-dark); }
.support-widget__ticket {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 0.3em 0.8em;
  border-radius: var(--r-pill);
}
.support-widget__ticket--closed { color: var(--muted); background: var(--bg-mint-2); }
.support-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 160px;
}
.support-widget__empty { color: var(--muted); font-size: 0.86rem; text-align: center; padding: 1.4rem 0.6rem; }
.support-widget__msg {
  max-width: 86%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.support-widget__msg--user { justify-self: end; background: var(--green-deep); color: #eafaf0; border-bottom-right-radius: 4px; }
.support-widget__msg--admin { justify-self: start; background: var(--bg-mint); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.support-widget__msg-body { white-space: pre-wrap; word-break: break-word; }
.support-widget__msg-time { display: block; margin-top: 0.25rem; font-size: 0.68rem; opacity: 0.65; }
