/* Morphyx — служебные страницы: условия, политика, статус */
.doc-nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; padding: 14px 12px 0; }
.doc-nav .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 8px 0 20px; border-radius: 999px; width: min(100%, 1080px); }
.doc-nav .nav > * { position: relative; z-index: 2; }
.doc-nav .links { display: flex; gap: 4px; }
.doc-nav .links a { font-size: 14px; font-weight: 500; color: var(--ink-2); height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; transition: background .2s, color .2s; }
.doc-nav .links a:hover, .doc-nav .links a.cur { color: var(--ink); background: rgba(255,255,255,.06); }
.doc { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vh, 96px) 20px 96px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
.doc.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.doc-head { grid-column: 1 / -1; }
.doc-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin: 16px 0 14px; }
.doc-head p { color: var(--ink-2); font-size: 16px; max-width: 620px; }
.toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { font-size: 14px; color: var(--ink-3); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.cur { color: var(--ink); border-left-color: var(--red); }
.doc-body { min-width: 0; }
.doc-body section { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.doc-body h2 b { color: var(--red-ink); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p { margin-top: 12px; }
.doc-body p .n { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: 6px; }
.doc-body ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-left: 0; }
.doc-body li { position: relative; padding-left: 22px; }
.doc-body li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 6px; height: 1px; background: var(--ink-3); }
.doc-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.doc-meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.doc-foot { max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--ink-3); }
.doc-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.doc-foot a:hover { color: var(--ink); }

/* Статус */
.st-summary { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 28px; margin-bottom: 18px; }
.st-summary > * { position: relative; z-index: 2; }
.st-summary .big { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.st-summary .sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.st-summary .pulse-dot { width: 10px; height: 10px; }
.st-summary.warn .pulse-dot { background: var(--warn); } .st-summary.warn .pulse-dot::after { border-color: var(--warn); }
.st-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.st-kpis div { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.st-kpis span { display: block; font-size: 13px; color: var(--ink-3); }
.st-kpis b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.st-list { border-top: 1px solid var(--line); }
.st-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 160px 120px; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.st-row .cc { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.st-row .nm { font-size: 18px; letter-spacing: -.015em; }
.st-row .nm small { display: block; font-size: 13px; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.st-row .ld { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-row .ld .meter { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-row .ld .meter i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; }
.st-row .ok { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ok); }
.st-row .ok .pulse-dot { width: 7px; height: 7px; }
.st-note { margin-top: 22px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { display: none; }
  .doc-nav .links a:not(.cur):not(.home) { display: none; }
  .st-row { grid-template-columns: 34px minmax(0, 1fr) 90px; }
  .st-row .ld .meter { display: none; }
  .st-row .ok { display: none; }
  .st-kpis b { font-size: 24px; }
}

/* Motion */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; transform: translate3d(0, 108%, 0) rotate(5deg); transform-origin: 0 100%; transition: transform 1.15s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 55ms + .05s); }
.m-in .wi { transform: none; }
.doc-body section { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1.12,.3,1); }
.doc-body section.in { opacity: 1; transform: none; }
.st-row { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1.12,.3,1); }
.st-list.in .st-row { opacity: 1; transform: none; }
.st-list.in .st-row:nth-child(n) { transition-delay: calc(var(--k, 0) * 45ms); }
.st-summary, .st-kpis > div { animation: docIn .9s cubic-bezier(.16,1.12,.3,1) both; }
.st-kpis > div:nth-child(1) { animation-delay: .1s } .st-kpis > div:nth-child(2) { animation-delay: .17s } .st-kpis > div:nth-child(3) { animation-delay: .24s }
@keyframes docIn { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.98); } }
.st-row .meter i { transform-origin: 0 50%; animation: meterIn 1.2s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--k, 0) * 45ms + .3s); }
@keyframes meterIn { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .doc-body section, .st-row { opacity: 1; transform: none; } }

/* ═════════ Статус v2 ═════════ */
.doc.single.wide-st { max-width: 1080px; }
.st-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-kpis.four > div:nth-child(4) { animation-delay: .31s; }
.st-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 36px; }
.st-reg { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
  animation: docIn .9s cubic-bezier(.16,1.12,.3,1) both; animation-delay: calc(.3s + var(--k) * .08s); }
.st-reg-h { display: flex; justify-content: space-between; align-items: baseline; }
.st-reg-h b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.st-reg-h span { font-size: 13px; color: var(--ink-3); }
.st-reg-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; align-items: center; }
.st-reg-flags .flag.sm { margin: 0; }
.st-reg-flags .more { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.st-reg-load { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-reg-load .meter { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-reg-load .meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink-2), var(--ink)); transform-origin: 0 50%; animation: meterIn 1.2s cubic-bezier(.16,1,.3,1) both .5s; }

.st-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.st-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.025); }
.st-seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color .3s; }
.st-seg button.on { color: var(--ink); }
.st-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .55s cubic-bezier(.34,1.4,.5,1), width .55s cubic-bezier(.34,1.4,.5,1); }
.st-sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.st-sort select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer;
  background: rgba(255,255,255,.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' stroke='%23F2EFEA' fill='none' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; }
.st-sort select option { background: #141312; }

.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-card { position: relative; padding: 22px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(165deg, rgba(40,37,35,.7), rgba(18,17,16,.85)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .5s cubic-bezier(.16,1.12,.3,1), border-color .3s; }
.st-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.st-grid .st-card { opacity: 0; transform: perspective(900px) translate3d(0, 34px, 0) rotateX(10deg); }
.st-grid.in .st-card { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1.12,.3,1), border-color .3s; transition-delay: calc(var(--k) * 45ms); }
.st-grid.in .st-card:hover { transform: translateY(-3px); transition-delay: 0s; }
.st-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.st-ok { display: inline-flex; align-items: center; gap: 9px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ok);
  border: 1px solid rgba(127,209,163,.28); background: rgba(127,209,163,.07); }
.st-ok .pulse-dot { width: 6px; height: 6px; }
.st-card-mid { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.st-city { font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.st-country { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.ring-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--ink); stroke-linecap: round; stroke-dashoffset: var(--c); animation: ringFill 1.4s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--k, 0) * 45ms + .25s); }
.st-card { --k: inherit; }
.ring.low .fg { stroke: var(--ok); } .ring.mid .fg { stroke: var(--warn); } .ring.high .fg { stroke: var(--red-ink); }
@keyframes ringFill { to { stroke-dashoffset: var(--off); } }
.ring-v { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring-v small { font-size: 10px; color: var(--ink-3); margin-left: 1px; }
.st-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.st-meta b { font-size: 14px; font-weight: 500; color: var(--ink); }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.st-tags .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.st-empty { grid-column: 1 / -1; color: var(--ink-3); padding: 40px 0; text-align: center; }

/* Флаги (как на главной) */
.flag { position: relative; display: inline-block; flex-shrink: 0; overflow: hidden; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 6px 14px -6px rgba(0,0,0,.8); }
.flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flag.lg { width: 56px; height: 42px; border-radius: 10px; transform-origin: left center; will-change: transform; animation: flagWave 5s ease-in-out infinite; }
.flag.lg::before, .flag.lg::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; pointer-events: none; will-change: transform; }
.flag.lg::before { background: repeating-linear-gradient(100deg, rgba(0,0,0,.20) 0, rgba(255,255,255,.14) 28px, rgba(0,0,0,.20) 56px); animation: flagFold 3.2s linear infinite; }
.flag.lg::after { background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.45) 47%, rgba(255,255,255,0) 56%); animation: flagSheen 3.8s ease-in-out infinite; }
.st-card:nth-child(3n+2) .flag.lg, .st-card:nth-child(3n+2) .flag.lg::after { animation-delay: -1.3s; }
.st-card:nth-child(3n) .flag.lg, .st-card:nth-child(3n) .flag.lg::after { animation-delay: -2.6s; }
@keyframes flagFold { from { transform: translate3d(0,0,0); } to { transform: translate3d(-56px,0,0); } }
@keyframes flagSheen { 0% { transform: translate3d(-66%,0,0); } 65%, 100% { transform: translate3d(10%,0,0); } }
@keyframes flagWave { 0%, 100% { transform: perspective(300px) rotateY(0deg); } 50% { transform: perspective(300px) rotateY(-12deg); } }
.flag.sm { width: 22px; height: 16px; border-radius: 4px; }

@media (max-width: 960px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .st-kpis.four { grid-template-columns: 1fr 1fr; }
  .st-regions { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: 1fr; }
  .st-tools { flex-direction: column; align-items: stretch; }
  .st-seg { overflow-x: auto; scrollbar-width: none; }
  .st-seg button { padding: 0 13px; flex-shrink: 0; }
  .st-sort { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .st-grid .st-card { opacity: 1; transform: none; } .flag.lg, .flag.lg::before, .flag.lg::after, .ring .fg { animation: none; } .ring .fg { stroke-dashoffset: var(--off); } }
.ring-v { display: flex; align-items: baseline; justify-content: center; padding-top: 22px; }

/* ═════════ FAQ ═════════ */
.faq-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.faq-lang button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); transition: background .25s, color .25s; }
.faq-lang button.on { color: var(--ink); background: rgba(255,255,255,.08); }
.faq-groups { display: flex; flex-direction: column; gap: 22px; }
.faq-group { padding: 26px 30px 10px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); animation: docIn .9s cubic-bezier(.16,1.12,.3,1) both; }
.faq-group:nth-child(2) { animation-delay: .12s; }
.faq-group h2 { font-size: 13px; font-weight: 600; color: var(--red-ink); margin-bottom: 6px; letter-spacing: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.faq-ic { position: relative; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--line-2); transition: transform .55s cubic-bezier(.34,1.4,.5,1), background .3s, border-color .3s; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .45s cubic-bezier(.34,1.4,.5,1); }
.faq-ic::after { transform: rotate(90deg); }
.faq-item.open .faq-ic { transform: rotate(180deg); background: var(--red); border-color: var(--red); }
.faq-item.open .faq-ic::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.16,1,.3,1); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 22px 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .4s, transform .55s cubic-bezier(.16,1.12,.3,1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition-delay: .08s; }
.faq-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding: 26px 30px; border-radius: 28px;
  border: 1px solid var(--line); background: radial-gradient(90% 140% at 100% 100%, rgba(208,49,63,.14), transparent 60%), rgba(255,255,255,.02); animation: docIn .9s cubic-bezier(.16,1.12,.3,1) .22s both; }
.faq-cta b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.faq-cta p { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.btn.btn-red { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 760px) {
  .faq-group { padding: 20px 20px 6px; border-radius: 24px; }
  .faq-q { font-size: 16px; padding: 18px 0; }
  .faq-a p { padding-right: 4px; font-size: 15px; }
  .faq-cta { padding: 22px; } .faq-cta .btn { width: 100%; }
}
/* Живой статус: состояния (2026-11-22) */
.st-summary.idle .pulse-dot { background: var(--ink-3); } .st-summary.idle .pulse-dot::after { border-color: var(--ink-3); animation: none; opacity: 0; }
.st-summary.bad .pulse-dot { background: var(--red-ink); } .st-summary.bad .pulse-dot::after { border-color: var(--red-ink); }
.st-summary .sub b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-ok.degraded { color: var(--warn); border-color: rgba(226,184,102,.3); background: rgba(226,184,102,.07); }
.st-ok.degraded .pulse-dot { background: var(--warn); } .st-ok.degraded .pulse-dot::after { border-color: var(--warn); }
.st-ok.down { color: var(--red-ink); border-color: rgba(255,90,102,.3); background: rgba(208,49,63,.08); }
.st-ok.down .pulse-dot { background: var(--red-ink); } .st-ok.down .pulse-dot::after { border-color: var(--red-ink); animation: none; opacity: 0; }
.st-card.is-down { border-color: rgba(255,90,102,.22); }
.st-card.is-down .ring-wrap, .st-card.is-down .flag.lg { opacity: .45; }
.st-kpis.off b, .st-regions.off, .st-tools.off { opacity: .35; }
.st-unavail { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 24px; color: var(--ink-3); }
.st-unavail b { display: block; color: var(--ink); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.st-unavail button { margin-top: 18px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.st-unavail button:hover { border-color: var(--ink-3); }
