/* Компоненты и экраны Yousoro Workspace. */

/* ---------- Общие блоки ---------- */
.page-head { display: grid; gap: 10px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2.1rem, 3.4vw, 3rem); }
.kicker { color: var(--route); font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.panel { position: relative; display: grid; gap: 16px; align-content: start; min-width: 0; padding: clamp(18px, 2.2vw, 26px); border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(226, 238, 248, .045), rgba(226, 238, 248, .012)) , var(--panel); box-shadow: var(--shadow); }
.panel > h2 { display: flex; align-items: center; gap: 10px; }
.panel p { color: var(--muted); }
.badge-ic { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(110, 240, 205, .1); color: var(--route); box-shadow: inset 0 0 0 1px rgba(110, 240, 205, .22); font-size: 1rem; }
.split { display: grid; gap: 20px; align-items: start; }
.split > div { display: grid; gap: 16px; min-width: 0; }
.summary { background: rgba(19, 23, 27, .55); backdrop-filter: blur(8px); }
.narrow { display: grid; gap: 20px; max-width: 640px; }
.back { display: flex; gap: 20px; font-size: .9375rem; }
.more { font-size: .9375rem; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); } }

/* Подсветка под курсором */
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 240, 205, .11), transparent 62%); }
.glow:hover::before { opacity: 1; }

/* Метки и статусы */
.pill { display: inline-flex; align-items: center; gap: .5em; width: fit-content; padding: .22rem .7rem .22rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 38%, transparent); color: var(--tone); font-size: .8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 60%, transparent); }
.pill[data-tone=ok]::before { animation: ping 2.6s var(--out) infinite; }
.pill[data-tone=wait]::before { animation: blink 1.1s ease-in-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes blink { 50% { opacity: .35; } }
[data-tone=ok] { --tone: var(--route); }
[data-tone=wait] { --tone: var(--wait); }
[data-tone=error] { --tone: var(--fail); }
[data-tone=off] { --tone: var(--idle); }
[data-tone=plain] { --tone: var(--muted); }
.pill[data-tone=off]::before, .pill[data-tone=plain]::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag { display: inline-block; padding: 0 .5em; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--edge-strong); color: var(--muted); font-size: .75rem; font-weight: 400; line-height: 1.7; white-space: nowrap; vertical-align: .08em; }
.tag-on { color: var(--route); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--route) 45%, transparent); }
.tag-wait { color: var(--wait); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wait) 45%, transparent); }
.code { display: inline-grid; place-items: center; flex: none; min-width: 2.3em; padding: .15em .4em; border-radius: 6px; background: var(--lift); color: var(--text); font: 600 .75rem/1.4 var(--mono); letter-spacing: .04em; }
.notice { display: flex; gap: .7em; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--tone) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 34%, transparent); color: var(--text); max-width: none; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.notice:focus { outline: none; }

/* Пары «название — значение» */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; }
.facts > div { padding: 10px 0; border-top: 1px solid var(--edge); }
.facts dt { color: var(--muted); font-size: .8125rem; }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary .facts, .mini .facts { grid-template-columns: 1fr; }

/* ---------- Маршрут ---------- */
.route { --line: var(--idle); display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: .8125rem; }
.route-end { display: inline-flex; align-items: center; gap: .45em; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: .35rem .7rem; border-radius: 999px; background: rgba(6, 9, 12, .55); box-shadow: inset 0 0 0 1px var(--edge-strong); white-space: nowrap; }
.route-line { position: relative; flex: 1; min-width: 12px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--line) 38%, transparent); overflow: hidden; }
.route-gate { position: relative; display: flex; align-items: center; gap: .6rem; flex: none; padding: .55rem .85rem; border-radius: 14px; background: rgba(6, 9, 12, .6); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.route-gate small { display: block; color: var(--muted); line-height: 1.3; }
.route-gate b { display: block; color: var(--text); font: 600 1.1875rem/1.15 var(--display); }
.route[data-route=on] { --line: var(--route); }
.route[data-route=on] .route-line { background: color-mix(in srgb, var(--line) 45%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--line) 55%, transparent); }
.route[data-route=on] .route-line::after { content: ""; position: absolute; inset: 0; width: 55%; background: linear-gradient(90deg, transparent, var(--line) 40%, #fff 50%, var(--line) 60%, transparent); transform: translateX(-110%); animation: flow 2.6s linear infinite; }
.route[data-route=on] .route-gate ~ .route-line::after { animation-delay: 1.3s; }
@keyframes flow { to { transform: translateX(200%); } }
.route[data-route=on] .route-gate { background: linear-gradient(180deg, rgba(110, 240, 205, .16), rgba(88, 207, 245, .05)); box-shadow: inset 0 0 0 1px rgba(110, 240, 205, .55), 0 0 32px rgba(88, 222, 220, .22); }
.route[data-route=on] .route-gate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(110, 240, 205, .45); animation: gate 2.6s var(--out) infinite; pointer-events: none; }
@keyframes gate { 0% { box-shadow: 0 0 0 0 rgba(110, 240, 205, .4); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.route[data-route=on] .code { background: var(--signal); color: var(--ink); }
.route[data-route=on][data-flow=wait] .route-line::after { animation-duration: 1.1s; }
.route[data-route=direct] { --line: var(--muted); }
.route[data-route=direct] .route-line { background: var(--muted); opacity: .7; }
.route[data-route=none] .route-line, .route[data-route=plain] .route-line { background: repeating-linear-gradient(90deg, var(--idle) 0 6px, transparent 6px 12px); opacity: .7; }
.route[data-route=none] .route-gate { box-shadow: none; outline: 1px dashed var(--edge-strong); outline-offset: -1px; }
.route[data-route=none] .route-gate b { color: var(--muted); font-style: italic; font-weight: 400; }
@media (max-width: 460px) {
  .route { font-size: .75rem; }
  .route-end { padding: .3rem .45rem; }
  .route-end .ic { display: none; }
  .route-gate { padding: .45rem .55rem; gap: .4rem; }
  .route-gate b { font-size: 1.0625rem; }
  .route-line { min-width: 8px; }
  .lanes { padding: 12px 8px; }
  .lanes .route-gate small, .console-dots { display: none; }
}

/* ---------- Выбор: регионы, способы, чек-лист ---------- */
.options { display: grid; gap: 10px; }
.regions { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.regions legend { grid-column: 1 / -1; }
.option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: var(--r-md); background: rgba(6, 9, 12, .5); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; transition: box-shadow .2s, background-color .2s, transform .2s var(--out); }
.option:hover { box-shadow: inset 0 0 0 1px var(--edge-strong); transform: translateY(-1px); }
.option:has(input:checked) { background: linear-gradient(180deg, rgba(110, 240, 205, .12), rgba(110, 240, 205, .03)); box-shadow: inset 0 0 0 1.5px var(--route), 0 10px 30px -18px var(--route); }
.option:has(input:focus-visible) { outline: 2px solid var(--route); outline-offset: 3px; }
.option input:focus-visible { outline: none; }
.option[aria-disabled=true] { cursor: not-allowed; box-shadow: none; outline: 1px dashed var(--edge-strong); outline-offset: -1px; transform: none; }
.option[aria-disabled=true] > * { opacity: .5; }
.option-text { display: grid; min-width: 0; flex: 1; }
.option-text small { color: var(--muted); }
.option .tag { flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { margin-top: 3px; }
.check:has(input:disabled) { color: var(--muted); cursor: not-allowed; }

/* ---------- Лендинг ----------
   Тёплый графит, цветные «бумажные» блоки и предметы из мира маршрутов: табло, билет, чек.
   Сплошная линия значит «через шлюз», пунктир и контур значат «напрямую». */
[data-screen=home] { padding-top: 24px !important; --paper: #f4efe6; --inkc: #1b1612; --persimmon: #ff6b3d; --butter: #ffd666; --mint: #a5e8cb; --lilac: #cbbcff; --sky: #a9d6ff; padding-top: clamp(28px, 4.4vw, 64px); }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--out), transform .9s var(--out); }
[data-reveal].in { opacity: 1; transform: none; }

/* Первый экран: заголовок в две строки на всю ширину, слева текст, справа талон в видоискателе, внизу полоса фактов */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 32px); }
.hero::before { content: ""; position: absolute; z-index: -1; top: -24px; bottom: -40px; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none;
  background: linear-gradient(rgba(244, 239, 230, .05) 1px, transparent 1px) 50% 0 / 64px 64px, linear-gradient(90deg, rgba(244, 239, 230, .05) 1px, transparent 1px) 50% 0 / 64px 64px;
  -webkit-mask: radial-gradient(60% 70% at 72% 58%, #000 30%, transparent 78%); mask: radial-gradient(60% 70% at 72% 58%, #000 30%, transparent 78%); }
.hero-title { min-width: 0; font-stretch: 76%; font-weight: 700; line-height: .9; letter-spacing: -.02em; }
.hero-title span { display: block; animation: rise .9s var(--out) both; }
.hero-title .h1-fill { font-size: clamp(2.25rem, 10vw, 2.75rem); }
.hero-title .h1-ghost { margin-top: .06em; font-size: clamp(1.75rem, 7.6vw, 2.25rem); color: var(--ground); -webkit-text-stroke: 1.4px var(--text); paint-order: stroke fill; animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; animation: rise .9s var(--out) .18s both; }
.hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.4; color: var(--text); max-width: 30ch; }
.hero .lead-2 { position: relative; margin-top: 12px; padding-left: 17px; color: var(--muted); font-size: clamp(.9375rem, 1.1vw, 1rem); line-height: 1.5; max-width: 46ch; }
.hero .lead-2::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--route); }
.hero .actions { margin-top: 28px; }
.hero .btn:not(.btn-quiet) { min-height: 54px; padding-inline: 1.6rem; font-size: 1.0625rem; }
.hero .hero-jump { min-height: 46px; padding-inline: .6rem; font: 600 .8125rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hero-stage { min-width: 0; }
.hero-facts { grid-column: 1 / -1; display: grid; border-top: 1px solid var(--edge-strong); }
.hero-facts > div { position: relative; padding: 14px 0 0; }
.hero-facts dt { color: var(--muted); font-size: .9375rem; font-weight: 600; }
.hero-facts dd { margin-top: 6px; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.hero-facts dd b { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-facts > div:not(:first-child)::before { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px;
  background: linear-gradient(rgba(244, 239, 230, .45), rgba(244, 239, 230, .45)) center / 1px 100% no-repeat, linear-gradient(rgba(244, 239, 230, .45), rgba(244, 239, 230, .45)) center / 100% 1px no-repeat; }
.hero-facts > * { animation: rise .7s var(--out) .55s both; }
.hero-facts > :nth-child(2) { animation-delay: .63s; } .hero-facts > :nth-child(3) { animation-delay: .71s; }
@media (max-width: 979px) { .hero-facts > div + div { margin-top: 14px; } .hero-facts > div:not(:first-child)::before { display: none; } .hero-facts > div + div { border-top: 1px solid var(--edge); } }
@media (min-width: 980px) {
  .hero-title span { white-space: nowrap; }
  .hero-title .h1-fill { font-size: min(calc(5.25rem * var(--fit, 1)), 6rem); }
  .hero-title .h1-ghost { font-size: min(calc(4.25rem * var(--fit, 1)), 4.5rem); -webkit-text-stroke-width: 1.6px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 624px; column-gap: 48px; row-gap: 24px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts > div { padding: 14px 24px 0; }
  .hero-facts > div:first-child { padding-left: 0; }
  .hero-facts > div + div { border-left: 1px solid var(--edge); }
}

/* Видоискатель вокруг талона */
.vf { --corner: 22px; position: relative; padding: 36px 24px 60px; }
.vf-c { position: absolute; width: var(--corner); height: var(--corner); border: 0 solid rgba(244, 239, 230, .55); transition: translate .3s var(--out); animation: vf-in .5s var(--out) .35s both; }
.vf-c[data-pos=tl] { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; } .vf-c[data-pos=tr] { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; animation-delay: .39s; }
.vf-c[data-pos=bl] { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; animation-delay: .43s; } .vf-c[data-pos=br] { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; animation-delay: .47s; }
@keyframes vf-in { from { opacity: 0; transform: scale(.6); } }
.vf:has(.bp-gate:hover) .vf-c[data-pos=tl] { translate: 4px 4px; } .vf:has(.bp-gate:hover) .vf-c[data-pos=tr] { translate: -4px 4px; }
.vf:has(.bp-gate:hover) .vf-c[data-pos=bl] { translate: 4px -4px; } .vf:has(.bp-gate:hover) .vf-c[data-pos=br] { translate: -4px -4px; }
.vf-top, .vf-bottom { position: absolute; left: 34px; right: 34px; display: flex; align-items: center; gap: 14px; color: var(--muted); font: 600 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; max-width: none; }
.vf-top { top: 6px; animation: rise .4s var(--out) .45s both; }
.vf-bottom { bottom: 14px; justify-content: space-between; }
.vf-bottom p { display: flex; align-items: center; gap: 8px; max-width: none; }
.vf-ruler { flex: 1; height: 7px; transform-origin: left; animation: ruler .8s var(--out) .45s both;
  background: repeating-linear-gradient(90deg, rgba(244, 239, 230, .4) 0 1px, transparent 1px 40px) left bottom / 100% 7px no-repeat, repeating-linear-gradient(90deg, rgba(244, 239, 230, .22) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat; }
@keyframes ruler { from { transform: scaleX(0); } }
.vf-led { width: 7px; height: 7px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 3px rgba(143, 227, 191, .15); }
.vf-pause { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--edge-strong); border-radius: 6px; background: none; color: var(--muted); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.vf-pause:hover { color: var(--text); border-color: var(--text); }
.vf-pause-off, .vf-pause[aria-pressed=true] .vf-pause-on { display: none; }
.vf-pause[aria-pressed=true] .vf-pause-off { display: inline; }

/* Посадочный талон */
.bp-wrap { position: relative; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)) drop-shadow(0 28px 36px rgba(0, 0, 0, .45)); animation: bp-enter .8s var(--out) .25s both; }
@keyframes bp-enter { from { opacity: 0; transform: translateY(20px); } }
.bp { --cut: 104px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--cut); min-height: 300px; border-radius: 20px; background: var(--butter); color: var(--inkc); rotate: -1.5deg; overflow: hidden;
  -webkit-mask: radial-gradient(circle 12px at calc(100% - var(--cut)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - var(--cut)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at calc(100% - var(--cut)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at calc(100% - var(--cut)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.bp::after { content: ""; position: absolute; inset: 8px; border-radius: 14px; outline: 1px solid rgba(27, 22, 18, .1); pointer-events: none; }
.bp-main { position: relative; display: grid; align-content: space-between; gap: 14px; padding: 22px 26px 16px; min-width: 0; }
.bp-head { display: flex; justify-content: space-between; gap: 12px; font: 600 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; max-width: none; }
.bp-head span:last-child { opacity: .7; }
.bp-route { display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center; gap: 14px; }
.bp-end { display: grid; gap: 4px; }
.bp-end-to { justify-items: end; }
.bp-code { display: block; font: 700 4.5rem/.85 var(--display); font-stretch: 72%; letter-spacing: -.01em; }
.bp-end small { font-size: .8125rem; font-weight: 600; }
.bp-track { position: relative; height: 48px; }
.bp-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp-arc path { fill: none; stroke: var(--inkc); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bp-arc-ahead { stroke-width: 2; stroke-dasharray: 2 6; opacity: .45; }
.bp-arc-trail { stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: bp-trail 6.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.bp-runner { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - 36px); animation: bp-x 6.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.bp-shadow { position: absolute; left: 7px; top: 42px; width: 22px; height: 5px; border-radius: 50%; background: rgba(27, 22, 18, .5); animation: bp-shadow 6.4s linear infinite; }
.bp-lift { position: absolute; left: 0; top: 26px; width: 36px; height: 28px; animation: bp-y 6.4s infinite; }
.bp-tilt { display: block; width: 100%; height: 100%; animation: bp-r 6.4s infinite; }
.bp-plane { width: 36px; height: 28px; }
.bp-plane path { fill: var(--paper); stroke: var(--inkc); stroke-width: 2; stroke-linejoin: round; }
@keyframes bp-x { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 80% { transform: translateX(100%); opacity: 1; } 88%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes bp-y { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .6, .35, 1); } 43% { transform: translateY(-20px); animation-timing-function: cubic-bezier(.65, 0, .8, .4); } 80%, 100% { transform: translateY(0); } }
@keyframes bp-r { 0% { transform: rotate(-15deg); animation-timing-function: ease-out; } 43% { transform: rotate(0); animation-timing-function: ease-in; } 80%, 100% { transform: rotate(15deg); } }
@keyframes bp-trail { 0% { stroke-dashoffset: 100; opacity: 1; } 80% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes bp-shadow { 0% { transform: scale(1); opacity: 0; } 6% { opacity: .5; } 43% { transform: scale(.55); opacity: .2; } 80% { transform: scale(1); opacity: .5; } 88%, 100% { opacity: 0; } }
.bp-gates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-label, .bp-facts dt, .bp-stub-gate span { font: 600 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.bp-label { margin-right: 6px; }
.bp-gate { position: relative; display: grid; place-items: center; width: 60px; height: 44px; border: 0; border-radius: 10px; background: none; box-shadow: inset 0 0 0 1.5px var(--inkc); color: var(--inkc); cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--out); }
.bp-gate b { font: 700 1.25rem/1 var(--display); font-stretch: 80%; }
.bp-gate:hover { background: rgba(27, 22, 18, .08); }
.bp-gate:active { transform: scale(.95); }
.bp-gate:focus-visible { outline: 2px solid var(--inkc); outline-offset: 2px; }
.bp-gate[data-gate=on] { background: var(--inkc); color: var(--butter); }
.bp-gate[data-gate=on]::after { content: ""; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.bp-gate[data-gate=wait] { box-shadow: none; outline: 2px dashed var(--inkc); outline-offset: -2px; }
.bp-gate[data-gate=wait]::after { content: ""; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--inkc); animation: blink 1s ease-in-out infinite; }
.bp-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; }
.bp-facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 28px; }
.bp-facts dd { font-size: .875rem; font-weight: 700; white-space: nowrap; }
.bp-ip { font: 700 .9375rem/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.bp-ip span { display: inline-block; }
.bp-status { display: inline-flex; align-items: center; gap: 7px; }
.bp-status i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1.5px var(--inkc); }
.bp-status i::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--inkc); animation: bp-ping 2.4s var(--out) infinite; }
@keyframes bp-ping { from { transform: scale(1); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.bp[data-state=pending] .bp-status i { background: var(--paper); animation: blink 1s ease-in-out infinite; }
.bp[data-state=pending] .bp-status i::after { display: none; }
.bp-stamp { flex: none; margin-bottom: 2px; padding: 6px 10px; border: 2px solid var(--inkc); border-radius: 6px; font: 700 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; rotate: -8deg; }
.bp[data-state=pending] .bp-stamp { border-style: dashed; animation: blink 1.2s ease-in-out infinite; }
.bp-stamp.stamp-in { animation: bp-stamp-in .36s var(--out); }
@keyframes bp-stamp-in { from { opacity: 0; transform: translateY(6px) scale(1.08); } }
.bp-micro { overflow: hidden; white-space: nowrap; font: 600 6.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .35; max-width: none; }
[data-swap=out] { animation: bp-code-out .17s ease-in both; }
[data-swap=in] { animation: bp-code-in .26s var(--out) both; }
@keyframes bp-code-out { to { opacity: 0; transform: translateY(-.18em); } }
@keyframes bp-code-in { from { opacity: 0; transform: translateY(.18em); } }
.bp-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent calc(100% - 30px), rgba(27, 22, 18, .06) calc(100% - 2px), rgba(27, 22, 18, .3) calc(100% - 2px)); }
.bp[data-state=pending] .bp-scan { opacity: 1; animation: bp-scan .9s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes bp-scan { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.bp-sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); animation: bp-sheen 1.2s cubic-bezier(.4, 0, .2, 1) 1.1s both; }
.bp-sheen.run { animation: bp-sheen 1.2s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes bp-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.bp-stub { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 18px; padding: 22px 14px 18px; border-left: 2px dashed rgba(27, 22, 18, .35); }
.bp-lights { display: flex; gap: 6px; }
.bp-lights i { width: 6px; height: 6px; border-radius: 50%; background: var(--inkc); opacity: .25; }
.bp[data-state=pending] .bp-lights i { animation: bp-light .9s ease-in-out infinite; }
.bp[data-state=pending] .bp-lights i:nth-child(2) { animation-delay: .15s; } .bp[data-state=pending] .bp-lights i:nth-child(3) { animation-delay: .3s; }
.bp[data-state=applied] .bp-lights i { opacity: .8; }
@keyframes bp-light { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
.bp-stub-gate { display: grid; justify-items: center; gap: 2px; }
.bp-stub-gate b { font: 700 2.5rem/.9 var(--display); font-stretch: 76%; }
.bp-stub .barcode { width: 64px; min-height: 0; height: 100%; max-height: 120px; align-self: end; }
@media (max-width: 640px) {
  .vf { --corner: 14px; padding: 30px 10px 58px; }
  .vf-ruler { display: none; }
  .vf-top, .vf-bottom { left: 18px; right: 18px; font-size: .625rem; letter-spacing: .08em; }
  .vf-top span:last-child { display: none; }
  .bp { --stub: 64px; grid-template-columns: 1fr; grid-template-rows: auto var(--stub); min-height: 0; rotate: 0deg;
    -webkit-mask: radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 12px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat; }
  .bp-main { padding: 18px 18px 14px; gap: 14px; }
  .bp-code { font-size: 3.25rem; }
  .bp-route { gap: 10px; }
  .bp-gates { display: grid; grid-template-columns: repeat(4, 1fr); }
  .bp-label { grid-column: 1 / -1; }
  .bp-gate { width: auto; }
  .bp-facts { gap: 4px 16px; }
  .bp-stamp { font-size: .625rem; padding: 5px 7px; }
  .bp-stub { grid-template-rows: none; grid-template-columns: auto auto 1fr; align-items: center; justify-items: start; gap: 16px; padding: 10px 18px; border-left: 0; border-top: 2px dashed rgba(27, 22, 18, .35); }
  .bp-stub-gate { display: flex; align-items: baseline; gap: 8px; }
  .bp-stub-gate b { font-size: 1.75rem; }
  .bp-stub .barcode { justify-self: end; width: 120px; height: 36px; max-height: none; align-self: center; }
}

/* Наклейка на чеке */
.sticker { position: absolute; right: -22px; top: -40px; width: clamp(88px, 8vw, 104px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--persimmon); color: var(--inkc); rotate: 10deg; z-index: 2; }
.sticker svg { position: absolute; inset: 0; animation: turn 40s linear infinite; }
.sticker text { font: 700 9px var(--body); letter-spacing: .04em; fill: currentColor; }
.sticker b { display: grid; justify-items: center; font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/.8 var(--display); font-stretch: 78%; }
.sticker small { font: 600 .5625rem/1.5 var(--body); white-space: nowrap; }
@keyframes turn { to { rotate: 360deg; } }
.barcode { width: 100%; height: 100%; min-height: 96px; background: repeating-linear-gradient(90deg, var(--inkc) 0 3px, #0000 3px 5px, var(--inkc) 5px 6px, #0000 6px 10px, var(--inkc) 10px 14px, #0000 14px 16px, var(--inkc) 16px 17px, #0000 17px 21px); }
@media (max-width: 520px) { .sticker { right: -6px; top: -44px; } }

/* Бегущая лента: наклон, перфорация, знак «Орбита» между пунктами */
.ticker { position: relative; width: 106vw; margin: 40px 0 0 calc(50% - 53vw); padding: 15px 0; background: var(--persimmon); color: var(--inkc); rotate: -2deg; overflow: hidden; }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(27, 22, 18, .45); }
.ticker::before { top: 5px; } .ticker::after { bottom: 5px; }
.ticker-track { display: flex; align-items: center; gap: 24px; width: max-content; animation: slide 42s linear infinite; }
.ticker span { font: 700 clamp(1.125rem, 1.8vw, 1.5rem)/1 var(--display); font-stretch: 82%; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.orbit-mark { flex: none; width: 18px; height: 18px; }
.orbit-mark circle { fill: none; stroke: var(--inkc); stroke-width: 3.6; }
.orbit-mark .om-dot { fill: var(--paper); stroke: var(--persimmon); stroke-width: 2; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .ticker { rotate: -4deg; } }

/* Секции */
.pricing { grid-template-columns: minmax(0, 1fr); }
.pricing .receipt-wrap { margin-top: 48px; }

.band { display: grid; gap: clamp(22px, 3vw, 36px); margin-top: clamp(56px, 7vw, 104px); scroll-margin-top: 96px; }
.band-head { display: grid; gap: 14px; max-width: 760px; }
@media (min-width: 980px) {
  .band:not(.pricing):not(.faq) > .band-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: end; max-width: none; }
}
.band-head h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); font-stretch: 78%; font-weight: 700; line-height: .95; }
.band-head .lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }

/* Сравнение с VPN: таблица по темам, у каждой строки своя высота */
.vs { display: grid; }
.vs-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); }
.vs-row > * { margin: 0; max-width: none; }
.vs-topic { padding: 18px 16px 18px 0; border-top: 1px solid var(--edge-strong); color: var(--muted); font: 600 .6875rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.vs-vpn, .vs-ws { padding: 16px 22px; font-size: 1.0625rem; line-height: 1.45; }
.vs-vpn { border-top: 1px solid var(--edge-strong); color: var(--muted); }
.vs-row:not(.vs-head) .vs-vpn, .vs-row:not(.vs-head) .vs-ws { display: flex; gap: 12px; align-items: baseline; }
.vs-row i { flex: none; width: 8px; height: 8px; border-radius: 50%; translate: 0 -1px; }
.vs-vpn i { box-shadow: inset 0 0 0 1.5px var(--muted); }
.vs-ws i { background: var(--inkc); }
.vs-legend { display: none; }
.vs-ws { background: var(--mint); color: var(--inkc); font-weight: 600; box-shadow: inset 0 1px 0 rgba(27, 22, 18, .16); }
.vs-head .vs-vpn, .vs-head .vs-ws { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 0; box-shadow: none; }
.vs-head span { border: 0; }
.vs-head b { font: 700 clamp(1.4rem, 2.2vw, 1.9rem)/1 var(--display); font-stretch: 78%; }
.vs-head .vs-vpn b { color: var(--muted); }
.vs-head .vs-ws { border-radius: 22px 22px 0 0; }
.vs-row:last-child .vs-ws { border-radius: 0 0 22px 22px; }
.vs-art { flex: none; width: 160px; height: 28px; }
.vs-art path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vs-vpn .vs-art path { stroke-dasharray: 3 7; animation: vs-dash 1.6s linear infinite; }
@keyframes vs-dash { to { stroke-dashoffset: -20; } }
.vs-ws .vs-art circle { fill: var(--inkc); }
@media (max-width: 760px) {
  .vs { gap: 10px; }
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; border-top: 1px solid var(--edge-strong); padding-top: 4px; }
  .vs-topic { border: 0; padding: 10px 0 6px; }
  .vs-vpn, .vs-ws { padding: 12px 16px; }
  .vs-vpn { border: 0; }
  .vs-ws, .vs-row:last-child .vs-ws { border-radius: 14px; box-shadow: none; }
  .vs-row .vs-vpn, .vs-row .vs-ws { display: grid !important; gap: 2px; padding: 12px 16px; }
  .vs-row i { display: none; }
  .vs-vpn::before, .vs-ws::before { content: attr(data-who); font: 600 .75rem/1.3 var(--body); letter-spacing: .02em; }
  .vs-vpn::before { color: var(--muted); }
  .vs-ws::before { color: var(--inkc); opacity: .75; }
  .vs-vpn { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--edge-strong); }
  .vs-topic { color: var(--text); font: 700 1.0625rem/1.3 var(--display); letter-spacing: 0; text-transform: none; }
  .vs-row { gap: 6px; }
}

/* Цветные блоки */
.blocks { display: grid; gap: 16px; }
.block { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(20px, 2.6vw, 34px); border-radius: clamp(22px, 2.6vw, 34px); color: var(--inkc); overflow: hidden; transition: opacity .9s var(--out), transform .5s var(--out), rotate .5s var(--out); }
.block.in:hover { transform: translateY(-3px); }
.block h3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-stretch: 78%; font-weight: 700; line-height: 1; max-width: 15ch; }
.block p { color: rgba(27, 22, 18, .8); max-width: 46ch; }
.block[data-c=persimmon] { background: var(--persimmon); } .block[data-c=butter] { background: var(--butter); } .block[data-c=mint] { background: var(--mint); }
.block[data-c=lilac] { background: var(--lilac); } .block[data-c=sky] { background: var(--sky); }
.block[data-c=dark] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.block[data-c=dark] p { color: var(--muted); }
.block:nth-child(2) { transition-delay: .07s; } .block:nth-child(4) { transition-delay: .07s; } .block:nth-child(6) { transition-delay: .07s; }
.art { margin-top: auto; padding-top: 18px; }
.lanes { display: grid; gap: 12px; font-size: .8125rem; font-weight: 600; }
.lane { display: flex; align-items: center; min-width: 0; }
.lane span { flex: none; padding: .45rem .8rem; border-radius: 999px; background: var(--inkc); color: var(--paper); white-space: nowrap; }
.lane .lane-gate { display: inline-flex; align-items: center; gap: .5em; background: var(--paper); color: var(--inkc); }
.lane-gate b { font: 700 1.25rem/1 var(--display); }
.lane i { position: relative; flex: 1; min-width: 14px; height: 3px; background: var(--inkc); }
.lane i::after { content: ""; position: absolute; top: -4px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--inkc); animation: travel 2.4s linear infinite; }
.lane i + span + i::after { animation-delay: 1.2s; }
@keyframes travel { from { left: -6px; } to { left: calc(100% - 5px); } }
.lane-direct i { height: 0; background: none; border-top: 3px dashed var(--inkc); }
.lane-direct i::after { display: none; }
.lane-direct span { background: none; color: var(--inkc); box-shadow: inset 0 0 0 2px var(--inkc); }
.tags { list-style: none; width: 100%; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tags li { display: grid; gap: 2px; padding: 12px 12px 12px 30px; border-radius: 12px; background: var(--paper); position: relative; }
.tags li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--inkc); }
.tags b { font: 700 1.6rem/1 var(--display); font-stretch: 80%; }
.tags span { font-size: .8125rem; line-height: 1.3; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair div { display: grid; padding: 12px 14px; border-radius: 14px; background: var(--paper); }
.pair dt { font-size: .75rem; opacity: .7; }
.pair dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 700 1.5rem/1.1 var(--display); font-stretch: 82%; }
.pair-dot { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; background: var(--inkc); color: var(--butter); font: 600 .75rem/1.6 var(--body); }
.pair-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1s ease-in-out infinite; }
.os { list-style: none; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.os small { display: block; margin-top: 3px; color: var(--muted); font: 600 .625rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.os li { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; border-radius: 16px; background: var(--ground); color: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); font: 700 1.1875rem/1 var(--display); font-stretch: 86%; }
.os .ic { width: 30px; height: 30px; color: var(--lilac); stroke-width: 1.6; }
.renew { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--ground); }
.switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--mint); }
.switch i { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--inkc); }
.ip { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ip i { width: 56px; height: 56px; border-radius: 16px; box-shadow: inset 0 0 0 3px var(--edge-strong); }
.ip i[data-on=true] { background: var(--sky); box-shadow: none; }
@media (max-width: 560px) { .os { grid-template-columns: 1fr 1fr; } .block { min-height: 0; } }
.guide { display: grid; gap: 16px; justify-items: start; }
.guide-shield { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--inkc); color: var(--lilac); }
.guide-shield .ic { width: 40px; height: 40px; stroke-width: 1.5; }
.guide ul { list-style: none; display: grid; gap: 10px; width: 100%; padding: 0; margin: 0; }
.guide li { display: flex; align-items: center; gap: 12px; }
.guide li .ic { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--inkc); color: var(--lilac); stroke-width: 2.4; }
.guide li i { height: 10px; border-radius: 5px; background: rgba(27, 22, 18, .22); }
.guide li:nth-child(1) i { width: 150px; } .guide li:nth-child(2) i { width: 118px; } .guide li:nth-child(3) i { width: 136px; }
.block[data-size=full] h3 { max-width: 22ch; }
.block[data-size=full] p { max-width: 62ch; color: rgba(27, 22, 18, .86); }
@media (min-width: 760px) {
  .blocks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .block[data-size=full] { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; column-gap: clamp(28px, 5vw, 72px); row-gap: 14px; padding-block: clamp(26px, 3.4vw, 44px); }
  .block[data-size=full] > h3, .block[data-size=full] > p { grid-column: 1; }
  .block[data-size=full] > .art { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }

  .block[data-size=wide] { grid-column: span 4; } .block[data-size=narrow] { grid-column: span 2; } .block[data-size=half] { grid-column: span 3; }
}

/* Новые иллюстрации в карточках */
.ipcard { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 16px 18px; border-radius: 16px; background: var(--paper); }
.ipcard dt { font: 600 .625rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ipcard dd { font: 700 1.25rem/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.ipcard dd:last-child { font: 700 1.125rem/1.2 var(--display); font-stretch: 86%; }
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stages li { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: var(--paper); }
.stages li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--inkc); }
.stages span, .slots span { font: 600 .625rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.stages b { font: 700 1.75rem/1 var(--display); font-stretch: 80%; }
.stages small { font-size: .75rem; }
.stages [data-s=wait] { background: none; outline: 2px dashed var(--inkc); outline-offset: -2px; }
.stages [data-s=on] { background: var(--inkc); color: var(--paper); }
.slots { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slots li { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--edge-strong); }
.slots b { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.slots b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); }
.slots [data-on=true] { box-shadow: inset 0 0 0 1.5px var(--sky); }
.slots [data-on=true] b::before { background: var(--sky); box-shadow: none; }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } .stages li:not(:last-child)::after { display: none; } }

/* Тариф: две позиции */
.plans { display: grid; gap: 16px; }
.plan { display: grid; align-content: start; gap: 12px; padding: 22px 0 0; border-top: 1px solid var(--edge-strong); }
.plan-name { color: var(--muted); font: 600 .6875rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.plan-price { display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font: 700 clamp(2.4rem, 4vw, 3.25rem)/1 var(--display); font-stretch: 78%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { margin-top: .15em; color: var(--route); }
.plan-why { color: var(--muted); padding-top: 18px; border-top: 1px solid var(--edge); }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; column-gap: 32px; } .plan-why, .plans .actions { grid-column: 1 / -1; } }

/* Четыре остановки */
.stops { position: relative; list-style: none; padding: 0; display: grid; gap: 28px; counter-reset: stop; }
.stops li { position: relative; display: grid; gap: 8px; align-content: start; padding-left: 68px; counter-increment: stop; }
.stops li::before { content: counter(stop); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--inkc); font: 700 1.5rem/1 var(--display); box-shadow: 0 0 0 6px var(--ground); z-index: 1; }
.stops li:last-child::before { background: var(--persimmon); }
.stops::before { content: ""; position: absolute; left: 22px; top: 24px; bottom: 60px; width: 4px; border-radius: 4px; background: var(--paper); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--out) .2s; }
.stops.in::before { transform: none; }
.stops h3 { font-size: 1.75rem; font-stretch: 80%; font-weight: 700; }
.stops p { color: var(--muted); max-width: 34ch; }
.stops .stop-meta { justify-self: start; margin-top: 6px; padding: 4px 8px; border: 1px solid var(--edge-strong); border-radius: 6px; color: var(--text); font: 600 .6875rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) {
  .stops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .stops li { padding: 76px 0 0; }
  .stops::before { left: 24px; right: 25%; top: 22px; bottom: auto; width: auto; height: 4px; transform: scaleX(0); transform-origin: left; }
}

/* Тариф: чек */
.receipt-wrap { position: relative; justify-self: center; width: min(100%, 440px); rotate: 1.6deg; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); transition: opacity .9s var(--out), transform .9s var(--out), rotate .5s var(--out); }
.receipt-wrap:hover { rotate: 0deg; }
.receipt { display: grid; gap: 18px; padding: 28px 26px 44px; background: var(--paper); color: var(--inkc); font-family: var(--mono); font-size: .875rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.receipt-top { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px dashed rgba(27, 22, 18, .35); font-weight: 700; max-width: none; }
.receipt-top span { font-weight: 400; }
.receipt dl { display: grid; gap: 10px; }
.receipt dl div { display: flex; align-items: baseline; gap: 8px; }
.receipt dl i { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(27, 22, 18, .35); translate: 0 -3px; }
.receipt dd { font-weight: 700; white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 2px dashed rgba(27, 22, 18, .35); max-width: none; }
.receipt-total b { font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); font-stretch: 78%; }
@media (min-width: 900px) { .pricing { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "head receipt" "plans receipt"; column-gap: 56px; align-items: start; } .pricing > .band-head { grid-area: head; } .pricing > .plans { grid-area: plans; } .pricing .receipt-wrap { grid-area: receipt; margin-top: 40px; } .faq .band-head { position: sticky; top: 112px; } .faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }

/* Вопросы */
.faq-list { display: grid; border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--edge-strong); }
.faq-n { flex: none; width: 2.2em; color: var(--muted); font: 600 .75rem/1 var(--mono); letter-spacing: .06em; }
.faq details[open] { background: linear-gradient(90deg, rgba(255, 107, 61, .08), transparent 60%); }
.faq summary { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; font: 600 clamp(1.1875rem, 1.8vw, 1.5rem)/1.2 var(--display); font-stretch: 86%; transition: color .2s; }
.faq summary:hover { color: var(--persimmon); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: rotate .3s var(--out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 22px calc(2.2em + 12px); color: var(--muted); }

/* Финальный блок: посадочный талон */
.closing { margin-top: clamp(56px, 7vw, 104px); }
.pass { --cut: clamp(150px, 20vw, 260px); display: grid; background: var(--persimmon); color: var(--inkc); border-radius: clamp(26px, 4vw, 48px); }
.pass-main { display: grid; gap: 16px; justify-items: start; padding: clamp(24px, 4vw, 56px); min-width: 0; }
.pass-top { display: flex; gap: 14px; font-size: .875rem; font-weight: 700; }
.pass-top span { font-weight: 400; opacity: .75; }
.pass h2 span { display: block; }
.pass h2 .h2-ghost { color: var(--persimmon); -webkit-text-stroke: clamp(1.4px, .2vw, 2.4px) var(--inkc); paint-order: stroke fill; }
.pass h2 { font-size: clamp(2.8rem, 8.4vw, 7.4rem); font-stretch: 76%; font-weight: 700; line-height: .88; letter-spacing: -.02em; }
.pass p:not(.pass-top) { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); font-weight: 600; }
.pass-stub { display: none; }
@media (min-width: 860px) {
  .pass { grid-template-columns: minmax(0, 1fr) var(--cut);
    -webkit-mask: radial-gradient(circle 18px at calc(100% - var(--cut)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 18px at calc(100% - var(--cut)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 18px at calc(100% - var(--cut)) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 18px at calc(100% - var(--cut)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
  .pass-stub .bp-lights i { opacity: .7; }
  .pass-stub { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; justify-items: center; padding: clamp(24px, 3vw, 44px); border-left: 3px dashed rgba(27, 22, 18, .4); }
  .pass-stub b { font: 700 clamp(3rem, 6vw, 5.5rem)/.9 var(--display); font-stretch: 76%; }
}
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { margin-top: .15em; color: var(--route); }

/* ---------- Вход ---------- */
.auth { display: grid; gap: 28px; align-items: stretch; max-width: 1000px; margin-inline: auto; }
.auth-card { width: 100%; max-width: 480px; justify-self: center; padding: clamp(22px, 3vw, 36px); gap: 18px; }
.auth-card .btn { width: 100%; min-height: 50px; }
.auth-side { position: relative; display: grid; gap: 22px; align-content: center; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(90% 90% at 100% 0%, rgba(88, 207, 245, .16), transparent 60%), rgba(19, 23, 27, .6); box-shadow: inset 0 0 0 1px var(--edge); }
.auth-side h2 { font-size: 1.75rem; }
.alt { font-size: .9375rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
@media (min-width: 900px) { .auth { grid-template-columns: 480px minmax(0, 1fr); gap: 32px; padding-top: 24px; } }

/* ---------- Ход оплаты ---------- */
.track { list-style: none; padding: 0; display: grid; }
.track li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 34px; }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--idle); background: var(--ground); }
.track li::after { content: ""; position: absolute; left: 7px; top: 23px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--edge-strong); }
.track li:last-child::after { display: none; }
.track span { color: var(--muted); font-size: .9375rem; }
.track [data-state=done]::before { border-color: var(--route); background: var(--route) linear-gradient(var(--ink), var(--ink)) center / 6px 6px no-repeat; }
.track [data-state=done]::after { background: var(--route); opacity: .55; }
.track [data-state=current]::before { border-color: var(--wait); animation: halo 1.8s var(--out) infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wait) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.track [data-state=failed]::before { border-color: var(--fail); background: var(--fail); }
.track [data-state=todo] b { color: var(--muted); font-weight: 400; }
.pay { max-width: 680px; gap: 22px; background: radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--tone) 12%, transparent), transparent 60%), var(--panel); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--edge-strong); max-width: none; }
.panel .total span { color: var(--muted); }
.total strong { font: 700 2.5rem/1 var(--display); font-stretch: 82%; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--signal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Мастер: шаги ---------- */
.stepper { --done: 0; position: relative; list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: 12.5%; top: 17px; height: 2px; border-radius: 2px; }
.stepper::before { right: 12.5%; background: var(--edge-strong); }
.stepper::after { width: calc(75% * var(--done)); background: var(--signal); box-shadow: 0 0 12px var(--route); transition: width .6s var(--out); }
.stepper[data-step="2"] { --done: .3333; } .stepper[data-step="3"] { --done: .6667; } .stepper[data-step="4"] { --done: 1; }
.stepper li { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; text-align: center; counter-increment: step; color: var(--muted); font-size: .875rem; }
.stepper li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--edge-strong), 0 0 0 5px var(--ground); font: 600 1rem/1 var(--display); color: var(--muted); }
.stepper li[data-done]::before { background: var(--signal); color: var(--ink); box-shadow: 0 0 0 5px var(--ground); }
.stepper li[aria-current] { color: var(--text); font-weight: 600; }
.stepper li[aria-current]::before { background: var(--ground); color: var(--route); box-shadow: inset 0 0 0 2px var(--route), 0 0 0 5px var(--ground), 0 0 22px 4px rgba(110, 240, 205, .35); }
.stepper a { color: inherit; }
.stepper span, .stepper a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 440px) { .stepper li { font-size: .75rem; } }

/* ---------- Кабинет ---------- */
.board { display: grid; gap: 18px; align-items: start; }
.status { gap: 18px; padding: clamp(20px, 2.8vw, 34px); overflow: hidden;
  background: radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 62%), linear-gradient(180deg, rgba(226, 238, 248, .05), rgba(226, 238, 248, .01)), var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), 0 30px 80px -40px color-mix(in srgb, var(--tone) 55%, transparent); border-color: transparent; }
.status-title { font-size: clamp(2.1rem, 4vw, 3.4rem); font-stretch: 82%; font-weight: 700; }
.status-title:focus { outline: none; }
.status .status-text { color: var(--muted); font-size: 1.0625rem; margin-top: -8px; }
.status .route { margin-block: 10px 6px; padding: 18px; border-radius: 16px; background: rgba(6, 9, 12, .4); box-shadow: inset 0 0 0 1px var(--edge); }
.board > * { animation: rise .6s var(--out) both; }
.board > :nth-child(2) { animation-delay: .05s; } .board > :nth-child(3) { animation-delay: .1s; } .board > :nth-child(4) { animation-delay: .15s; } .board > :nth-child(5) { animation-delay: .2s; }
@media (min-width: 1100px) {
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .board .status, .board .region-change { grid-column: span 4; }
  .board .connect { grid-column: span 2; grid-row: span 2; }
  .board .mini { grid-column: span 3; }
  .board:not(:has(.connect)) .status { grid-column: span 6; }
  .board:not(:has(.region-change)) .connect { grid-row: auto; }
}
@media (max-width: 460px) { .status .route { padding: 12px 8px; } }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.mobile { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--edge); }
.mobile > div:first-child { display: grid; gap: 10px; }
.ready-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.ready-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ready-list li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px dashed var(--idle); }
.ready-list li[data-ok=true] { color: var(--text); }
.ready-list li[data-ok=true]::before { border: 0; background: var(--route) linear-gradient(var(--ink), var(--ink)) center / 6px 6px no-repeat; }

/* Счётчик IP: «нет данных» и «ноль» выглядят по-разному */
.meter { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.meter-slots { display: flex; gap: 6px; }
.meter-slots i { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--edge-strong); }
.meter-slots i[data-on=true] { background: var(--signal); box-shadow: 0 0 16px rgba(88, 222, 220, .45); }
.meter[data-kind=empty] .meter-slots i { box-shadow: none; outline: 2px dashed var(--idle); outline-offset: -2px; opacity: .7; }
.meter[data-over] .meter-slots i[data-on=true] { background: var(--fail); box-shadow: 0 0 16px color-mix(in srgb, var(--fail) 50%, transparent); }
.meter p { display: grid; }
.meter strong { color: var(--text); font: 600 1.375rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.meter[data-kind=empty] strong { color: var(--muted); font-style: italic; font-weight: 400; }
.meter span { font-size: .875rem; color: var(--muted); }

/* ---------- Админка ---------- */
.admin-body { display: grid; gap: 20px; min-width: 0; }
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.table th { padding: 8px 12px 10px 0; color: var(--muted); font-size: .8125rem; font-weight: 400; border-bottom: 1px solid var(--edge-strong); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--edge); }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: rgba(226, 238, 248, .03); }
@media (max-width: 640px) {
  .table thead { display: none; }
  .table tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
  .table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); padding: 0; border: 0; overflow-wrap: anywhere; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; }
}
.journal { padding-left: 1.4em; display: grid; gap: 8px; color: var(--muted); }
.journal li { color: var(--text); }
.preview-title { font: 600 1.25rem/1.2 var(--display); color: var(--text) !important; }

/* узкий экран: чек без наклона, длинные значения переносятся */
@media (max-width: 560px) { .receipt dl dd { white-space: normal; text-align: right; } .receipt dl div { align-items: last baseline; } .pricing .receipt-wrap { rotate: 0deg; margin-top: 64px; } .pricing .sticker { right: -4px; top: -60px; } }

/* ---------- Документы и контакты ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: 12px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); text-decoration: underline; }
.hint { margin: -6px 0 0; color: var(--muted); font-size: .8125rem; }
.legal { display: grid; gap: 24px; align-items: start; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { padding: 8px 14px; border: 1px solid var(--edge); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.legal-nav a[aria-current] { border-color: var(--cta); color: var(--text); }
.legal-doc { display: grid; gap: 14px; max-width: 760px; min-width: 0; }
.legal-doc h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.legal-doc h2 { font-size: 1.25rem; margin-top: 10px; }
.legal-doc h2 span { color: var(--cta); font-variant-numeric: tabular-nums; }
.legal-doc p, .legal-doc li { color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.legal-doc li { margin-block: 4px; }
.legal-doc ul { padding-left: 1.2em; margin: 0; }
.legal-doc a { color: var(--text); }
.legal-sec { display: grid; gap: 8px; }
.legal-meta { font-family: var(--mono); font-size: .8125rem; }
.legal-prices { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.legal-prices .panel ul { color: var(--muted); }
.legal-price { font-size: 1.1rem; color: var(--muted); }
.legal-price b { color: var(--text); font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin-right: 6px; }
.legal-index { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.legal-index a { text-decoration: none; color: inherit; }
.legal-index a:hover h2, .legal-index a:focus-visible h2 { color: var(--cta); }
@media (min-width: 980px) { .legal { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; } .legal-nav { flex-direction: column; position: sticky; top: 96px; } .legal-nav a { border-radius: var(--r-md); } }

/* ---------- Промокод, итог заказа, плашка подтверждения почты ---------- */
.promo { gap: 8px; }
.promo > label { display: block; }
.promo-row { display: flex; gap: 10px; align-items: stretch; }
.promo-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.promo-row .btn { flex: none; min-height: 0; }
.promo-msg { min-height: 1.4em; margin: 0; font-size: .875rem; }
.promo-msg[data-tone=ok] { color: var(--route); }
.promo-msg[data-tone=fail] { color: var(--fail); }
.linkish { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-decoration: underline; cursor: pointer; }
.minus { color: var(--route); }
.summary .total { margin-top: 6px; }
.toast-host { z-index: 30; margin-bottom: 18px; }
.toast-host:empty { display: none; }
@media (min-width: 700px) { .toast-host { position: sticky; top: 10px; } }
.toast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; width: min(720px, 100%); padding: 10px 10px 10px 14px; border: 1px solid var(--edge-strong); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--raised) 94%, transparent); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); animation: toast-in .4s var(--out) both; }
.toast-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--wait) 16%, transparent); color: var(--wait); }
.toast-text { margin: 0; font-size: .9375rem; line-height: 1.35; }
.toast-text b { overflow-wrap: anywhere; }
.toast-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.toast-x:hover, .toast-x:focus-visible { background: var(--lift); color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
html[data-reduce] .toast { animation: none; }
@media (max-width: 560px) { .toast { grid-template-columns: auto minmax(0, 1fr) auto; } .toast-actions { grid-column: 2 / 3; grid-row: 2; } .toast-x { grid-column: 3; grid-row: 1; } }

/* ---------- Онбординг: страна и подключение ---------- */
.wizard { display: grid; gap: 4px; max-width: 920px; margin-inline: auto; }
.wizard .kicker { margin-bottom: 0; }
.stepper-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; margin-inline: 0; }
.stepper-2::before { left: 25%; right: 25%; }
.stepper-2::after { left: 25%; width: calc(50% * var(--done)); }
.stepper-2[data-step="2"] { --done: 1; }
.btn.big { min-height: 56px; padding-inline: 1.7rem; font-size: 1.0625rem; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; border: 0; padding: 0; margin: 0 0 8px; }
.region-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer;
  transition: box-shadow .25s, background-color .25s, transform .3s var(--out); }
.region-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--edge-strong), 0 18px 34px -22px rgba(0, 0, 0, .8); }
.region-card:has(.region-input:checked) { background: linear-gradient(180deg, color-mix(in srgb, var(--route) 14%, var(--panel)), var(--panel) 70%); box-shadow: inset 0 0 0 1.5px var(--route), 0 18px 40px -24px var(--route); }
.region-card:has(.region-input:focus-visible) { outline: 2px solid var(--route); outline-offset: 3px; }
.region-card .region-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.region-card[aria-disabled=true] { cursor: not-allowed; opacity: .5; transform: none; }
.region-flag, .ready-flag, .prep-flag { display: block; width: 56px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(0, 0, 0, .7); line-height: 0; }
.flag { display: block; width: 100%; height: auto; }
.region-name { font: 700 1.75rem/1.05 var(--display); font-stretch: 84%; }
.region-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: .875rem; }
.q { display: inline-flex; align-items: center; gap: 4px; color: var(--route); font-weight: 600; }
.q[data-q=good] { color: var(--wait); }
.q .ic { width: 15px; height: 15px; }
.ping { font-family: var(--mono); font-size: .8125rem; }
.region-meta .tag { margin-left: auto; }
.region-check { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--signal); color: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--out); }
.region-check .ic { width: 16px; height: 16px; }
.region-card:has(.region-input:checked) .region-check { opacity: 1; transform: none; }
.wizard-form .actions { margin-top: 16px; }
.wizard .demo-note { margin-top: 8px; }
.prep { display: grid; justify-items: center; gap: 18px; padding: clamp(28px, 6vw, 56px) 20px; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--panel); text-align: center; }
.prep-flag { width: 84px; }
.prep h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prep-bar { position: relative; width: min(360px, 100%); height: 4px; border-radius: 4px; background: var(--edge-strong); overflow: hidden; }
.prep-bar::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--signal); transform-origin: left; animation: prep-fill 2.1s var(--out) both; }
.prep-steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; color: var(--muted); text-align: left; }
.prep-steps li { display: flex; align-items: center; gap: 10px; animation: prep-step .5s var(--out) both; }
.prep-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--idle); }
.prep-steps li:nth-child(1) { animation-delay: .1s; } .prep-steps li:nth-child(2) { animation-delay: .7s; } .prep-steps li:nth-child(3) { animation-delay: 1.3s; }
@keyframes prep-fill { from { transform: scaleX(.04); } }
@keyframes prep-step { from { opacity: .25; transform: translateY(6px); } }
.ready { display: grid; gap: 22px; }
.ready-head { display: flex; align-items: center; gap: 18px; }
.ready-flag { width: 72px; flex: none; }
.ready-head > div { display: grid; gap: 6px; min-width: 0; }
.ready-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ready-head p { margin: 0; color: var(--muted); }
.ready > * { animation: rise .6s var(--out) both; }
.ready > :nth-child(2) { animation-delay: .1s; } .ready > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.tabs { display: grid; gap: 18px; padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--panel); }
.tablist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(6, 9, 12, .55); }
.tablist [role=tab] { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.tablist [role=tab]:hover { color: var(--text); }
.tablist [role=tab][aria-selected=true] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.tablist [role=tab]:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
.pane { display: grid; gap: 20px; animation: rise .4s var(--out) both; }
.pane[hidden] { display: none; }
.big-actions, .pane .downloads { gap: 12px; }
.howto { list-style: none; counter-reset: how; display: grid; gap: 14px; margin: 0; padding: 0; }
.howto li { counter-increment: how; position: relative; display: grid; padding-left: 44px; min-height: 32px; }
.howto li::before { content: counter(how); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--edge-strong); font: 600 .875rem var(--mono); }
.howto b { font-weight: 600; }
.howto span { color: var(--muted); font-size: .9375rem; }
.howto code { padding: .05em .4em; border-radius: 6px; background: var(--lift); font-family: var(--mono); font-size: .9em; }
.mobile-grid { display: grid; gap: 22px; align-items: start; }
.qr { width: min(220px, 100%); padding: 10px; border-radius: 16px; background: #f4efe6; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .8); }
.qr svg, .qr img { display: block; width: 100%; height: auto; }
.mobile-text { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 720px) { .mobile-grid { grid-template-columns: auto minmax(0, 1fr); gap: 32px; } }
.wizard-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
@media (max-width: 560px) { .wizard-foot .btn.big { width: 100%; } .ready-head { align-items: flex-start; } }
@media (max-width: 560px) {
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .region-card { padding: 14px; gap: 10px; }
  .region-flag { width: 44px; }
  .region-name { font-size: 1.3rem; overflow-wrap: anywhere; }
  .region-meta { gap: 2px 8px; font-size: .8125rem; }
  .region-check { top: 12px; right: 12px; }
}

/* ---------- Кабинет: подписка, рабочее окружение, устройства ---------- */
.dash { display: grid; gap: 18px; align-items: start; }
.dash > * { min-width: 0; animation: rise .6s var(--out) both; }
.dash > :nth-child(2) { animation-delay: .06s; } .dash > :nth-child(3) { animation-delay: .12s; }
.dash-sub { gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; margin: 0; }
@media (min-width: 700px) { .stats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: max-content; justify-content: start; column-gap: 48px; } .stat dd { white-space: nowrap; } }
.stat { display: grid; align-content: start; gap: 6px; min-width: 0; }
.stat dt { color: var(--muted); font-size: .8125rem; }
.stat dd { margin: 0; font: 700 1.5rem/1.15 var(--display); font-stretch: 86%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat dd .pill { font: 600 .9375rem var(--body); }
.dash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dash-actions .btn-quiet { color: var(--muted); }
.mailnote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--wait) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wait) 28%, transparent); }
.mailnote p { flex: 1 1 240px; margin: 0; color: var(--text); font-size: .9375rem; }
.ws-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ws-flag { display: block; width: 56px; flex: none; border-radius: 8px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px -8px rgba(0, 0, 0, .7); }
.ws-empty { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--lift); color: var(--muted); }
.ws-name { display: grid; justify-items: start; gap: 2px; min-width: 0; margin-right: auto; }
.ws-name .pill { margin-top: 6px; }
.ws-name small { color: var(--muted); font-size: .8125rem; }
.ws-name h2 { font: 700 1.75rem/1.05 var(--display); font-stretch: 84%; }
.dash-ws, .dash-dev { grid-template-columns: minmax(0, 1fr); }
.dash-ws .status-text { margin: 0; }
.dash-dev .btn-demo, .dash-ws .btn-demo { white-space: normal; text-align: left; }
.drawer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--out), visibility 0s .45s; }
.drawer[data-open] { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--out); }
.drawer-in { overflow: hidden; display: grid; gap: 14px; min-height: 0; }
.drawer[data-open] .drawer-in { padding: 4px 0 6px; }
.drawer-lead { margin: 0; color: var(--muted); font-size: .9375rem; }
.region-form { margin: 0; }
.dash-ws .tabs { padding: 0; border: 0; background: none; }
.muted-note { margin: 0; color: var(--muted); font-size: .9375rem; }
.dev-meter { display: grid; gap: 12px; }
.dev-count { display: flex; align-items: baseline; gap: 10px; margin: 0; flex-wrap: wrap; }
.dev-count strong { font: 700 2.25rem/1 var(--display); font-stretch: 82%; font-variant-numeric: tabular-nums; color: var(--text); }
.dev-count span { color: var(--muted); }
.dev-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.dev-bar i { height: 8px; border-radius: 6px; background: var(--edge-strong); transition: background-color .4s var(--out), box-shadow .4s; }
.dev-bar i[data-on=true] { background: var(--signal); box-shadow: 0 0 12px color-mix(in srgb, var(--route) 55%, transparent); }
.dev-meter[data-full] .dev-bar i[data-on=true] { background: var(--wait); box-shadow: 0 0 12px color-mix(in srgb, var(--wait) 50%, transparent); }
.dev-list { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.dev-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--edge); }
.dev-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--raised); color: var(--muted); }
.dev-text { display: grid; min-width: 0; flex: 1; }
.dev-text b { font-weight: 600; overflow-wrap: anywhere; }
.dev-text small { color: var(--muted); }
@media (min-width: 1000px) {
  .dash { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); }
  .dash-sub { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
  .dash-sub .mailnote { grid-column: 1 / -1; }
  .dash-sub .dash-actions { justify-content: flex-end; }
}
@media (max-width: 560px) { .dash-actions .btn { flex: 1 1 auto; } .ws-name h2 { font-size: 1.5rem; } .ws-change { width: 100%; } }

/* ---------- Админка ---------- */
.btn-compact { min-height: 36px; padding: .3rem .85rem; font-size: .8125rem; box-shadow: inset 0 0 0 1px var(--edge-strong); }
.btn-compact:disabled { opacity: .4; }
.btn-danger { background: transparent; color: var(--fail); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fail) 45%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--fail) 12%, transparent); color: var(--fail); box-shadow: inset 0 0 0 1px var(--fail); transform: none; }
.hint { color: var(--muted); font-size: .8125rem; }
.form-error { margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--fail) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fail) 40%, transparent); color: var(--fail); font-size: .875rem; }
.form-error[hidden] { display: none; }
.admin-fees { display: grid; gap: 16px; align-content: start; }
.admin-fees .fee { gap: 12px; }
.admin-fees input[type=number] { font: 600 1.5rem/1.2 var(--display); }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.admin-bar p { margin: 0; max-width: 46ch; color: var(--muted); }
.table code { padding: .15em .45em; border-radius: 6px; background: var(--raised); font-family: var(--mono); font-size: .875em; }
.usage { display: inline-flex; align-items: center; gap: 10px; }
.usage progress { width: 84px; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--raised); accent-color: var(--route); }
.usage progress::-webkit-progress-bar { background: var(--raised); }
.usage progress::-webkit-progress-value { background: var(--route); }
.usage progress::-moz-progress-bar { background: var(--route); }
.masked { letter-spacing: .12em; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-flag { display: block; flex: none; width: 40px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px var(--edge-strong); }
.rc-flag.lg { width: 56px; }
.rc-inline { display: inline-flex; align-items: center; gap: 8px; }
.rc-inline .flag { width: 22px; border-radius: 3px; }
.rlist { display: grid; gap: 12px; }
.rcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--panel); }
.rcard h3 { font-size: 1.1875rem; }
.rcard h3 a { color: var(--text); text-decoration: none; }
.rcard h3 a:hover { text-decoration: underline; }
.rcard p { margin: 0; color: var(--muted); font-size: .875rem; }
.rcard .btn { grid-column: 3; grid-row: 1 / span 2; }
.rcard .pill { grid-column: 2; justify-self: start; }
@media (min-width: 720px) { .rcard { grid-template-columns: auto minmax(0, 1fr) auto auto; } .rcard .btn { grid-column: 4; grid-row: 1; } .rcard .pill { grid-column: 3; justify-self: end; } }
.crumb { margin: 0 0 8px; margin-left: -.9rem; }
.rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.rhead h1 { margin-right: auto; min-width: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.tgl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.tgl-box { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--edge-strong); transition: background-color .2s; }
.tgl-box::after { content: ""; position: absolute; inset: 3px auto 3px 3px; width: 20px; border-radius: 50%; background: var(--muted); transition: translate .2s var(--out), background-color .2s; }
.tgl[aria-checked=true] .tgl-box { background: color-mix(in srgb, var(--route) 30%, var(--raised)); }
.tgl[aria-checked=true] .tgl-box::after { translate: 18px 0; background: var(--route); }
.tgl:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 8px; }
.modal { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--edge-strong); border-radius: var(--r-lg); background: var(--panel); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); overflow: auto; }
.modal::backdrop { background: rgba(8, 8, 7, .72); backdrop-filter: blur(3px); }
.modal .form { padding: clamp(18px, 4vw, 26px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 1.375rem; }
.modal-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin: -6px -8px -6px 0; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--text); background: rgba(244, 239, 230, .08); }
.modal-x:focus-visible { outline: 2px solid var(--route); }
.modal-x .ic { width: 20px; height: 20px; }
.modal p { margin: 0; color: var(--muted); font-size: .875rem; }
.modal .form-error { color: var(--fail); font-size: .875rem; }
.flagpick { border: 1px solid var(--edge-strong); border-radius: 10px; background: rgba(6, 9, 12, .6); }
.flagpick[open] { border-color: var(--route); }
.flagpick summary { display: flex; align-items: center; min-height: 46px; padding: .5rem .8rem; color: var(--text); font-size: 1rem; cursor: pointer; list-style: none; }
.flagpick summary::-webkit-details-marker { display: none; }
.flagpick summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.flagpick[open] summary::after { rotate: 225deg; translate: 0 2px; }
.flagpick summary:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; border-radius: 10px; }
.fp-cur { display: inline-flex; align-items: center; gap: 10px; }
.fp-cur .flag, .fp-opt .flag { width: 26px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--edge-strong); }
.fp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; max-height: 232px; padding: 6px; overflow: auto; border-top: 1px solid var(--edge); }
.fp-opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 8px; color: var(--text); font-size: .9375rem; cursor: pointer; }
.fp-opt:hover { background: rgba(244, 239, 230, .08); }
.fp-opt:has(input:checked) { background: color-mix(in srgb, var(--route) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--route) 45%, transparent); }
.fp-opt:has(input:focus-visible) { outline: 2px solid var(--route); outline-offset: -2px; }
.fp-opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.table-users .row-actions { min-width: 0; }
@media (min-width: 641px) { .table-users td:last-child, .table-users th:last-child { padding-right: 0; } }
select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

@media (max-width: 640px) { .rhead .tgl { flex-basis: 100%; } }
main > .notice { margin-bottom: 20px; }

/* ---------- Маркетинг ---------- */
.mk-root, .admin-body { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 18px 20px; border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--panel); }
.kpi-l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.kpi-l .ic { width: 18px; height: 18px; flex: none; }
.kpi-v { font: 700 clamp(1.9rem, 2.6vw, 2.5rem)/1.1 var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.kpi-d { width: fit-content; padding: .1rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--tone, var(--muted)) 12%, transparent); color: var(--tone, var(--muted)); font-size: .8125rem; font-weight: 600; }
.mk-split { margin-top: 20px; }
.mk-split > .panel { min-width: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--edge); stroke-width: 1; }
.chart .gl-base { stroke: var(--edge-strong); }
.chart .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--s1); transition: opacity .15s; }
.chart .hit { fill: transparent; }
.chart .col { outline: none; }
.chart .col:hover .bar, .chart .col:focus-visible .bar { fill: #5a9df0; }
.chart .col:focus-visible .hit { stroke: var(--route); stroke-width: 2; }
.chart .ln { fill: none; stroke: var(--s2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { fill: var(--s2); stroke: var(--panel); stroke-width: 2; opacity: 0; }
.chart .pt-on, .chart .col:hover .pt, .chart .col:focus-visible .pt { opacity: 1; }
.chart .xh { stroke: var(--edge-strong); stroke-width: 1; opacity: 0; }
.chart .col:hover .xh, .chart .col:focus-visible .xh { opacity: 1; }
.chart + .chart { margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--text); font-size: .875rem; }
.legend > span, .legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--c, var(--muted)); }
.sw-1 { --c: var(--s1); } .sw-2 { --c: var(--s2); }
.chart-note { margin: 0; font-size: .8125rem; }
.chart-note code, .funnel code { padding: .1em .4em; border-radius: 5px; background: var(--raised); font: .8125em var(--mono); color: var(--muted); }
[data-r=de] { --c: var(--s1); } [data-r=nl] { --c: var(--s2); } [data-r=kz] { --c: var(--s3); } [data-r=tr] { --c: var(--s4); }
.donut-wrap { display: grid; justify-items: center; gap: 18px; }
.donut { width: min(220px, 70%); height: auto; overflow: visible; }
.donut .slice { fill: none; stroke: var(--c, var(--muted)); stroke-width: 24; outline: none; transition: stroke-width .15s; }
.donut .slice:hover, .donut .slice:focus-visible { stroke-width: 28; }
.dn-num { fill: var(--text); font: 700 26px var(--display); font-variant-numeric: tabular-nums; }
.dn-sub { fill: var(--muted); font-size: 10px; }
.legend-col { display: grid; width: 100%; gap: 6px; }
.legend-col li { display: grid; grid-template-columns: auto 1fr auto; }
.legend-col b { font-variant-numeric: tabular-nums; }
.funnel { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.fn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 6px; font-size: .9375rem; }
.fn-head b { font-variant-numeric: tabular-nums; }
.fn-head small { color: var(--muted); font-weight: 400; font-size: .8125rem; }
.fn-bar { display: block; width: 100%; height: 8px; }
.fn-track { fill: var(--raised); } .fn-fill { fill: var(--s1); }
.feed td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 641px) { .feed td:first-child { width: 4.5rem; } }
.feed tr.mine td { background: color-mix(in srgb, var(--route) 6%, transparent); }
.tip { position: fixed; z-index: 90; max-width: min(260px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 9px; background: var(--lift); color: var(--text); box-shadow: 0 0 0 1px var(--edge-strong), 0 12px 28px -8px rgba(0, 0, 0, .7); font-size: .8125rem; line-height: 1.45; white-space: pre-line; pointer-events: none; }
.tip[hidden] { display: none; }

/* ---------- Баннер cookie ---------- */
.cookie { position: fixed; z-index: 80; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; width: min(560px, calc(100vw - 32px)); padding: 14px 16px 14px 18px; border-radius: 16px; background: var(--raised); color: var(--text); box-shadow: 0 0 0 1px var(--edge-strong), 0 18px 40px -12px rgba(0, 0, 0, .75); }
.cookie p { flex: 1 1 260px; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.cookie p a { color: var(--text); }
@media (max-width: 899px) { body[data-shell=app] .cookie { bottom: 92px; } }
@media (max-width: 480px) { .cookie { left: 12px; right: 12px; width: auto; padding: 12px 14px; } }

/* ---------- Способ оплаты и шлюзы ---------- */
.tiles { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.tiles legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: .875rem; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; min-height: 72px; padding: 14px 14px 14px 12px; border-radius: var(--r-md); background: rgba(6, 9, 12, .5); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; transition: box-shadow .2s, background-color .2s, transform .2s var(--out); }
.tile:hover { box-shadow: inset 0 0 0 1px var(--edge-strong); transform: translateY(-1px); }
.tile:has(input:checked) { background: linear-gradient(180deg, rgba(110, 240, 205, .12), rgba(110, 240, 205, .03)); box-shadow: inset 0 0 0 1.5px var(--route), 0 10px 30px -18px var(--route); }
.tile:has(input:focus-visible) { outline: 2px solid var(--route); outline-offset: 3px; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--text); }
.tile-ic .ic { width: 22px; height: 22px; }
.tile:has(input:checked) .tile-ic { color: var(--route); }
.tile-name { font-weight: 600; min-width: 0; padding-right: 40px; overflow-wrap: anywhere; }
.tile-fee { position: absolute; top: 10px; right: 12px; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.tile-fee[data-fee=free] { color: var(--route); }
@media (max-width: 560px) { .tile { grid-template-columns: 1fr; align-content: start; gap: 10px; min-height: 96px; padding: 12px; }
  .tile-ic { grid-row: auto; width: 36px; height: 36px; }
  .tile-name { padding-right: 0; font-size: .9375rem; } }
.gw-panel { margin-top: 20px; }
.gwa-grid { display: grid; gap: 16px; }
.gwa { display: grid; gap: 12px; align-content: start; padding: 16px 18px; border-radius: var(--r-md); background: var(--ground); box-shadow: inset 0 0 0 1px var(--edge); }
.gwa header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gwa h3 { font-size: 1.25rem; }
.gwa p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .gwa-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { body[data-shell=app] .cookie { left: 272px; } }

/* ---------- Выдача доступа, переключение админка / кабинет, цели ---------- */
.me { display: inline-block; margin-left: 6px; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--route) 14%, transparent); color: var(--route); font-size: .75rem; font-weight: 600; vertical-align: 1px; }
.gift { display: block; color: var(--muted); font-size: .75rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--edge-strong); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: .875rem; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed=true] { border-color: var(--route); background: color-mix(in srgb, var(--route) 14%, transparent); }
.chip:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
.chips input[type=number] { width: 5.5rem; min-height: 40px; }
.tile-hint { grid-column: 2; color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.tile:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.tile:has(input:disabled):hover { transform: none; box-shadow: none; }
.tile input:disabled { cursor: not-allowed; }
@media (max-width: 560px) { .tile-hint { grid-column: 1; } }
#grant-modal .tile-grid { grid-template-columns: 1fr 1fr; }
#grant-modal .tile-name { padding-right: 0; }
.grant-sum { padding: 12px 14px; border-radius: var(--r-md); background: var(--ground); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text) !important; line-height: 1.5; }
#grant-modal { width: min(560px, calc(100vw - 24px)); }
.side-switch { color: var(--route); }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; margin: 18px 0 0; }
.mk-stats div { display: grid; gap: 2px; }
.mk-stats dt { color: var(--muted); font-size: .8125rem; }
.mk-stats dd { margin: 0; font: 700 1.375rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.src { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.src li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.src .fn-bar { grid-column: 1 / -1; }
.src b { font-variant-numeric: tabular-nums; }
.goals code { padding: .1em .4em; border-radius: 5px; background: var(--raised); font: .8125em var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.goals .kpi-d { margin-left: 4px; font-size: .75rem; }
.spark { width: 80px; height: 24px; display: block; }
.spark polyline { fill: none; stroke: var(--s1); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 640px) { .goals td[data-label=Динамика] { display: none; } }
