/* ACODC — тёмная тема «Midnight Electric» (ui-ux-pro-max: Dark Mode OLED + стекло + сдержанное свечение).
   Полуночный фон, электрический синий и бирюзовый для света, лайм для статуса «онлайн».
   Всё движение выключается при prefers-reduced-motion. */

:root {
  --blue: 91 140 255;          /* #5b8cff */
  --cyan: 61 224 255;          /* #3de0ff */
  --lime: #c6f35a;
  --glass: rgb(255 255 255 / .045);
  --glass-2: rgb(255 255 255 / .07);
  --edge: rgb(255 255 255 / .09);
  --edge-2: rgb(255 255 255 / .16);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
body { background: var(--p-bg); }
::selection { background: rgb(var(--blue) / .35); color: #fff; }

/* ——— Шапка: тёмное стекло ——— */
.nav { background: rgb(7 10 18 / .82) !important; border-bottom: 1px solid var(--edge) !important; -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.nav__menu { background: #0b0f1b !important; border-bottom: 1px solid var(--edge) !important; }
.nav__logo img { box-shadow: 0 0 0 1px var(--edge-2), 0 6px 20px -6px rgb(var(--cyan) / .55); }

/* ——— Кнопки: мягкие, со светящимся градиентом ——— */
.btn { border-radius: 999px !important; transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), background-position .6s var(--ease-soft); }
.btn--primary {
  color: #06080f !important;
  background: linear-gradient(120deg, #8fb0ff 0%, #5b8cff 45%, #3de0ff 100%) 0 0 / 160% 100% !important;
  box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 10px 30px -10px rgb(var(--blue) / .8);
}
.btn--primary:hover { background-position: 100% 0 !important; box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 16px 40px -10px rgb(var(--cyan) / .7), 0 0 0 6px rgb(var(--blue) / .14); }
.btn--primary:active { transform: translateY(1px) scale(.985); }
.btn--secondary { background: var(--glass-2) !important; border: 1px solid var(--edge-2) !important; color: var(--p-ink) !important; }
.hero__cta .btn--primary { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 10px 30px -10px rgb(var(--blue) / .8), 0 0 0 0 rgb(var(--cyan) / 0); }
  50%      { box-shadow: 0 1px 0 rgb(255 255 255 / .45) inset, 0 16px 44px -10px rgb(var(--cyan) / .8), 0 0 0 10px rgb(var(--blue) / .1); }
}
.link { color: #9fbcff !important; }

/* ——— Первый экран: туманности, сетка, свет ——— */
.hero { position: relative; isolation: isolate; }
.hero.hero--triptych {
  background-color: var(--p-bg);
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px),
    radial-gradient(40% 50% at 62% 30%, rgb(var(--blue) / .38), transparent 70%),
    radial-gradient(34% 44% at 88% 72%, rgb(var(--cyan) / .26), transparent 70%),
    radial-gradient(30% 40% at 10% 85%, rgb(46 64 140 / .45), transparent 70%);
  background-size: 56px 56px, 56px 56px, 150% 150%, 150% 150%, 150% 150%;
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { background-position: 0 0, 0 0, 0% 0%, 100% 0%, 0% 100%; }
  50%  { background-position: 0 0, 0 0, 60% 40%, 40% 60%, 50% 30%; }
  100% { background-position: 0 0, 0 0, 100% 100%, 0% 100%, 100% 0%; }
}
.hero h1 { background: linear-gradient(100deg, #fff 35%, #b9ccff 70%, #8ff0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ——— Коллаж: тёмное стекло ——— */
.ly-collage .ly-piece { border-radius: 22px; box-shadow: 0 0 0 1px var(--edge), 0 30px 60px -28px rgb(0 0 0 / .9) !important; }
.ly-collage .pc-card, .ly-collage .pc-tg {
  background: rgb(16 21 36 / .72) !important; color: var(--p-ink) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--edge-2);
}
.pc-card .lbl, .pc-tg small { color: var(--p-muted) !important; }
.pc-card .ln { border-top-color: var(--edge) !important; }
.pc-card .bar { background: rgb(255 255 255 / .08) !important; }
.pc-card .bar i { background: linear-gradient(90deg, #5b8cff, #3de0ff) !important; transition: width .9s var(--ease-soft); }
.pc-card .dot { background: var(--lime) !important; animation: ping 2s ease-out infinite; }
.pc-tg i { background: linear-gradient(120deg, #5b8cff, #3de0ff) !important; }
.ly-collage .pc-code { background: #05070d !important; border: 1px solid var(--edge); color: #b9c4dd !important; }
.pc-code b { color: var(--lime) !important; }
.pc-code > div:last-child::after { content: "▍"; margin-left: 4px; color: #3de0ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(198 243 90 / .55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(198 243 90 / 0); } }
.pc-card em { transition: color .3s; }
.pc-card em.is-tick { color: #8ff0ff; }
.ly-collage .ly-piece > img { transition: transform 1.2s var(--ease-soft); filter: saturate(1.1) contrast(1.05); }
.ly-collage:hover .ly-piece > img { transform: scale(1.03); }

/* ——— Свечение за курсором ——— */
.glow-layer {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--blue) / .16), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
[data-glow]:hover > .glow-layer { opacity: 1; }

/* ——— Секции: свет за содержимым ——— */
#cloud, #node, #pay, #network { position: relative; isolation: isolate; }
#cloud::before, #pay::before, #network::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0;
  background: radial-gradient(45% 55% at 85% 35%, rgb(var(--blue) / .16), transparent 70%); }
#pay::before { background: radial-gradient(50% 60% at 20% 50%, rgb(var(--cyan) / .12), transparent 70%); }
#network::before { background: radial-gradient(60% 60% at 50% 100%, rgb(var(--blue) / .22), transparent 70%), radial-gradient(35% 40% at 0% 0%, rgb(var(--cyan) / .1), transparent 70%); }

/* окно кабинета */
.app.ui { border-radius: 24px; border-color: var(--edge-2) !important; box-shadow: 0 0 0 1px rgb(var(--blue) / .12), 0 50px 100px -40px rgb(0 0 0 / .9), 0 0 80px -20px rgb(var(--blue) / .25) !important; }
.app.ui > .app__pane:first-child { border-radius: 24px 0 0 24px; }

/* рамки и панели */
.frame--split, #network .panel { border-radius: 28px; overflow: hidden; }
.frame--split { box-shadow: 0 0 0 1px var(--edge-2); }
#network .panel { background: linear-gradient(180deg, rgb(255 255 255 / .04), rgb(255 255 255 / .015)) !important; border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
#network .dg { --dg-pulse: #3de0ff; --dg-head: #e8fbff; --dg-muted: #aab4cc; }

/* заявление */
.mo-la__type { background: linear-gradient(100deg, #fff 30%, #9fbcff 65%, #3de0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.mo-la__sub { color: var(--p-ink); }

/* подвал */
.footer--statement { background: linear-gradient(180deg, #0c1120, #070a12) !important; border: 1px solid var(--edge); }
.btn--xl { border-radius: 999px !important; }

/* ——— База для выбора роли и согласия (страница регистрации) ——— */
.role { border: 0; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.role label { position: relative; display: block; cursor: pointer; }
.role input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role input:focus-visible + span { outline: 2px solid #5b8cff; outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #5b8cff; }

@media (prefers-reduced-motion: reduce) {
  .hero.hero--triptych, .pc-card .dot, .hero__cta .btn--primary, .pc-code > div:last-child::after { animation: none !important; }
}

/* ——— Документы и сведения об операторе (152-ФЗ ст.18.1, 149-ФЗ ст.10) ——— */
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { color: var(--p-muted); text-decoration: none; font-size: 13px; min-height: 24px; display: inline-flex; align-items: center; }
.legal-links a:hover { color: #9fbcff; }
[data-operator]:not([hidden])::before { content: " · "; }
.auth__foot { display: grid; gap: 8px; }
.auth__foot p { margin: 0; }

/* ——— «Оплата по факту»: факты и чек задачи ——— */
#pay h2 { background: linear-gradient(100deg, #fff 35%, #9fbcff 75%, #3de0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay__facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pay__facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge); }
.pay__facts b { font: 500 22px/1.1 var(--font-display); letter-spacing: -0.02em; background: linear-gradient(100deg, #9fbcff, #3de0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay__facts span { color: var(--p-muted); font-size: 15px; }

.bill { position: relative; padding: 28px; border-radius: 28px; background: linear-gradient(160deg, rgb(22 28 46 / .9), rgb(10 14 26 / .9)); border: 1px solid var(--edge-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 50px 100px -50px rgb(0 0 0 / .9), 0 0 90px -30px rgb(var(--blue) / .45); display: grid; gap: 20px; }
.bill::before { content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #8fb0ff, #3de0ff, transparent); }
.bill__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bill__head div { display: grid; gap: 4px; }
.bill__head b { font: 500 18px/1.2 var(--font-mono); color: #fff; }
.bill__head span { color: var(--p-muted); font-size: 14px; }
.bill__ok { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(198 243 90 / .12); color: var(--lime) !important; font-size: 13px !important; font-weight: 500; }
.bill__ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: ping 2s ease-out infinite; }
.bill__time { display: flex; gap: 4px; height: 44px; }
.bill__seg { position: relative; flex: 0 0 var(--w); border-radius: 12px; overflow: hidden; display: flex; align-items: center; padding: 0 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.bill__seg span { position: relative; z-index: 1; }
.bill__seg--free { background: repeating-linear-gradient(135deg, rgb(255 255 255 / .06) 0 6px, rgb(255 255 255 / .02) 6px 12px); color: var(--p-muted); }
.bill__seg--free span { display: none; }
.bill__seg--paid { background: rgb(var(--blue) / .14); color: #06080f; }
.bill__seg--paid::before { content: ""; position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, #8fb0ff, #5b8cff 55%, #3de0ff); box-shadow: 0 0 24px rgb(var(--cyan) / .5); animation: fillbar 3.6s var(--ease-soft) infinite; }
@keyframes fillbar { 0% { transform: scaleX(.02); } 60%, 100% { transform: scaleX(1); } }
.bill__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--p-muted); }
.bill__legend span { display: inline-flex; align-items: center; gap: 8px; }
.bill__legend i { width: 10px; height: 10px; border-radius: 3px; }
.bill__legend i.free { background: rgb(255 255 255 / .2); }
.bill__legend i.paid { background: linear-gradient(90deg, #5b8cff, #3de0ff); }
.bill__rows { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--edge); }
.bill__rows li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--edge); font-size: 15px; color: #c9d1e6; }
.bill__who { color: #fff; font-weight: 500; }
.bill__rows b { justify-self: end; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 16px/1 var(--font-mono); }
.bill__rows b.minus { background: rgb(255 140 140 / .12); color: #ff9a9a; }
.bill__rows b.plus { background: rgb(198 243 90 / .12); color: var(--lime); }
.bill__foot { margin: 0; font-size: 13px; color: var(--p-muted); }
@media (max-width: 639px) {
  .bill { padding: 20px; }
  .bill__rows li { grid-template-columns: 88px minmax(0, 1fr) 28px; font-size: 14px; }
  .pay__facts li { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ——— Финальный блок: панель со свечением ——— */
.footer--statement { background: var(--p-bg) !important; border: 0 !important; }
.cta-panel { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; gap: 32px 48px;
  padding: clamp(32px, 5vw, 64px); border-radius: 36px; border: 1px solid var(--edge-2);
  background:
    radial-gradient(60% 90% at 100% 0%, rgb(var(--blue) / .45), transparent 65%),
    radial-gradient(50% 80% at 0% 100%, rgb(var(--cyan) / .22), transparent 65%),
    linear-gradient(160deg, #10162a, #0a0e1b);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 60px 120px -60px rgb(var(--blue) / .6); }
.cta-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%); }
.cta-panel::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; right: -120px; top: -160px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(var(--blue) / 0), rgb(var(--cyan) / .45), rgb(var(--blue) / 0) 40%); filter: blur(40px); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-panel h2 { margin: 0; max-width: 16ch; font: var(--display-weight) clamp(34px, 4.4vw, 60px)/1.04 var(--font-display); letter-spacing: -0.04em;
  background: linear-gradient(100deg, #fff 40%, #b9ccff 75%, #8ff0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-panel p { margin: 16px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.55; color: #c3cbe0; }
.cta-panel__actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta-panel__actions .btn { height: 56px; justify-content: center; font-size: 17px; }
.cta-panel__chips { grid-column: 1 / -1; list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--edge); }
.cta-panel__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--edge); font-size: 14px; color: #dfe5f5; }
.cta-panel__chips img { height: 16px; width: auto; }
.cta-panel__chips li:nth-child(2) img, .cta-panel__chips li:nth-child(3) img { background: #fff; border-radius: 4px; padding: 2px 4px; }
@media (max-width: 1023px) { .cta-panel { grid-template-columns: minmax(0, 1fr); align-items: start; } .cta-panel__actions { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 639px) { .cta-panel { border-radius: 26px; } .cta-panel__actions { flex-direction: column; min-width: 0; } .cta-panel__actions .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) { .bill__seg--paid::before, .cta-panel::after, .bill__ok::before { animation: none !important; } }

/* правки: чипы в ряд, читаемый подвал, блок оплаты по содержимому */
.cta-panel__chips { display: flex !important; flex-direction: row !important; }
.cta-panel__chips li { width: auto !important; flex: 0 0 auto; margin: 0 !important; }
.footer--statement { --bg: var(--p-bg); --ink: var(--p-ink); --muted: var(--p-muted); --line: var(--edge); color: var(--p-ink) !important; }
.footer--statement .footer__col h3, .footer--statement .nav__logo { color: #fff !important; }
.footer--statement :is(.footer__lede, .footer__col a, .footer__legal, .credits) { color: var(--p-muted) !important; }
.footer--statement .footer__col a:hover { color: #9fbcff !important; }
main > section#pay { height: auto; min-height: 0; padding-top: 120px; padding-bottom: 120px; }
@media (max-width: 639px) { main > section#pay { padding-top: 72px; padding-bottom: 72px; } }

/* 1024-1279: equal side columns of .nav--centre squeeze the centred words into "Войти"; let the middle column take the leftover width instead */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
}
