/* Корневой сайт платформы: страница сервиса и форма заявки. Без inline-стилей и скриптов страницы (CSP), системные шрифты, без внешних сервисов. */
:root {
  --ink: #0b1220;
  --ink-2: #111b30;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --on-dark: #e2e8f0;
  --on-dark-2: #b6c2d4;
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --on-accent: #1a0f05;
  --good: #15803d;
  --good-bg: #dcfce7;
  --line: #e2e8f0;
  --surface: #f8fafc;
  --radius: 16px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-2: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
.root-wrap { max-width: 640px; }
.root-wrap .card { border: 1px solid var(--line); border-radius: var(--radius); }
.root-hp { position: absolute; left: -9999px; }
.root-body { color: var(--text); background: #fff; font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
.root-body h1, .root-body h2, .root-body h3 { font-weight: 750; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.root-body h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .75rem; }
.root-body h3 { font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .5rem; }
.root-body p { margin-bottom: 0; }
.root-svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* доступность: фокус виден везде, на тёмном фоне — белый */
.root-body a:focus-visible, .root-body button:focus-visible, .root-body .btn:focus-visible, .root-chip:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px;
}
.root-hero a:focus-visible, .root-security a:focus-visible, .root-request a:focus-visible, .root-editor button:focus-visible {
  outline-color: #fff;
}
.root-skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: #fff; color: var(--text); padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow-2); }
.root-skip:focus { top: 1rem; }

/* кнопки */
.root-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 650; border-radius: 12px; border: 1px solid transparent; min-height: 44px; padding: .55rem 1.25rem; line-height: 1.2; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease); }
.root-btn:hover { text-decoration: none; transform: translateY(-1px); }
.root-btn:active { transform: translateY(0); }
.root-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.root-btn-sm { min-height: 40px; padding: .4rem .95rem; font-size: .95rem; }
.root-btn-lg { min-height: 52px; padding: .75rem 1.7rem; font-size: 1.05rem; }
.root-btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(249, 115, 22, .35); }
.root-btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 10px 24px rgba(249, 115, 22, .42); }
.root-btn-ghost { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .38); }
.root-btn-ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .6); }
.root-btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.root-btn-ghost-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* шапка */
.root-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) { .root-nav { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.4) blur(14px); } }
.root-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.root-logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; color: var(--text); }
.root-logo:hover { text-decoration: none; color: var(--text); }
.root-logo em { font-style: normal; color: var(--blue); }
.root-logo-mark { width: 32px; height: 32px; }
.root-logo-mark rect { fill: var(--blue); }
.root-logo-mark path { fill: #fff; }
.root-menu { display: none; gap: .25rem; }
.root-menu a { color: var(--text-2); font-weight: 550; padding: .5rem .8rem; border-radius: 10px; transition: color .15s, background-color .15s; }
.root-menu a:hover { color: var(--blue); background: var(--blue-50); text-decoration: none; }
@media (min-width: 768px) { .root-menu { display: flex; } }

/* первый экран */
.root-hero { position: relative; color: var(--on-dark); padding: 4.5rem 0 7rem; overflow: hidden;
  background: radial-gradient(60rem 34rem at 85% -10%, rgba(37, 99, 235, .55), transparent 60%),
              radial-gradient(40rem 26rem at -10% 110%, rgba(249, 115, 22, .20), transparent 60%),
              linear-gradient(180deg, var(--ink), var(--ink-2)); }
.root-hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 20%, #000, transparent 70%); }
.root-hero .container { position: relative; }
.root-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 1.1rem; }
.root-kicker { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #cfe0ff;
  background: rgba(37, 99, 235, .22); border: 1px solid rgba(147, 181, 255, .35); border-radius: 18px; padding: .3rem .9rem; margin-bottom: 1.25rem; }
.root-kicker::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, .25); }
.root-lead { font-size: 1.2rem; color: var(--on-dark); max-width: 36rem; }
.root-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1.5rem; }
.root-hero-note { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--on-dark-2); max-width: 32rem; }
.root-hero-note .root-svg { margin-top: .3rem; color: #4ade80; stroke-width: 2.4; }
.root-hero-copy { margin-bottom: 3rem; }
@media (min-width: 992px) { .root-hero-copy { margin-bottom: 0; } }

/* макет экрана кассира */
.root-stage { position: relative; max-width: 520px; margin: 0 auto; padding: 26px 12px 40px; }
.root-window { background: #fff; color: var(--text); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(2, 6, 23, .55), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.root-window-bar { display: flex; align-items: center; gap: 6px; background: #f1f5f9; padding: .7rem 1rem; font-size: .8rem; color: var(--text-2); border-bottom: 1px solid var(--line); }
.root-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.root-window-bar i:nth-child(1) { background: #fda4af; }
.root-window-bar i:nth-child(2) { background: #fde68a; }
.root-window-bar i:nth-child(3) { background: #86efac; }
.root-window-bar b { margin-left: .6rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.root-window-body { padding: .5rem 1.1rem 1.2rem; }
.root-order-head, .root-order-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.root-order-head { font-weight: 700; font-size: 1.05rem; }
.root-order-row em, .root-order-head em { font-style: normal; color: var(--text-2); text-align: right; white-space: nowrap; }
.root-order-head em.good, .root-order-row em.good { color: var(--good); font-weight: 650; }
.root-order-head em.good { background: var(--good-bg); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; }
.root-order-row.is-muted { color: var(--text-2); border-bottom: 0; }
.root-order-bar { height: 8px; border-radius: 999px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.root-order-bar span { display: block; height: 100%; width: 68%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #60a5fa); }
.root-float { position: absolute; display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--text); border-radius: 14px; padding: .65rem .95rem; box-shadow: 0 14px 34px rgba(2, 6, 23, .4); animation: root-float 6s ease-in-out infinite; }
.root-float .root-svg { font-size: 1.5rem; padding: .35rem; box-sizing: content-box; border-radius: 10px; background: var(--blue-50); color: var(--blue); }
.root-float b { display: block; font-size: .95rem; line-height: 1.2; }
.root-float small { display: block; font-size: .78rem; color: var(--text-3); line-height: 1.2; }
.root-float-pay { left: -4px; bottom: 0; }
.root-float-sms { right: -4px; top: 0; animation-delay: -3s; }
@media (max-width: 575px) { .root-float-sms { display: none; } }
@media (min-width: 576px) { .root-float-pay { left: -26px; } .root-float-sms { right: -26px; } }
@keyframes root-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* секции */
.root-section { padding: 5rem 0; }
.root-section[id], .root-request { scroll-margin-top: 4.5rem; }
.root-section-alt { background: var(--surface); }
.root-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.root-sub { color: var(--text-2); font-size: 1.1rem; margin-bottom: 0; }
.root-head .root-sub { margin-top: .5rem; }

.root-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); color: var(--blue); font-size: 1.4rem; }
.root-aud, .root-feat, .root-mod, .root-faq, .root-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.root-aud, .root-feat, .root-mod, .root-faq { padding: 1.6rem; height: calc(100% - 1.5rem); margin-bottom: 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.root-aud:hover, .root-feat:hover, .root-mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--blue-100); }
.root-aud p, .root-feat p, .root-mod p, .root-faq p, .root-step p { color: var(--text-2); font-size: .98rem; }

/* «для кого»: карточки заходят на нижний край первого экрана */
.root-audience { position: relative; z-index: 2; margin-top: -3.75rem; padding: 0 0 1rem; }
.root-audience .root-aud { box-shadow: var(--shadow-2); border-color: transparent; }

.root-mod { position: relative; overflow: hidden; }
.root-mod::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #60a5fa); }
.root-mod-top { display: flex; justify-content: space-between; align-items: flex-start; }
.root-badge { display: inline-block; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--blue-600); background: var(--blue-50); border-radius: 999px; padding: .25rem .7rem; }

.root-steps { list-style: none; padding: 0; margin-bottom: 0; counter-reset: step; }
.root-step { position: relative; height: 100%; padding: 0 .5rem 1.5rem 0; }
.root-step b { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 1rem; position: relative; z-index: 1;
  background: var(--blue); color: #fff; font-size: 1.1rem; font-weight: 750; box-shadow: 0 0 0 6px var(--blue-100); }
.root-step code { color: var(--text); background: var(--blue-50); padding: .05rem .4rem; border-radius: 6px; overflow-wrap: anywhere; }
@media (min-width: 992px) {
  .root-steps > li:not(:last-child) .root-step::after { content: ""; position: absolute; left: 56px; right: 12px; top: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 14px); }
}

.root-security { background: radial-gradient(40rem 22rem at 100% 0, rgba(37, 99, 235, .35), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--on-dark); }
.root-security h2 { color: #fff; }
.root-security .root-sub { color: var(--on-dark-2); }
.root-list { list-style: none; padding: 0; margin: 0; }
.root-list li { display: flex; align-items: flex-start; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid rgba(148, 163, 184, .22); color: var(--on-dark-2); }
.root-list li:last-child { border-bottom: 0; }
.root-list li b { color: #fff; font-weight: 650; }
.root-list .root-svg { margin-top: .2rem; padding: .22rem; box-sizing: content-box; border-radius: 50%; background: rgba(74, 222, 128, .16); color: #4ade80; stroke-width: 2.6; }
@media (max-width: 991px) { .root-security .root-sub { margin-bottom: 1.5rem; } }

.root-faq h3 { font-size: 1.05rem; }

/* форма заявки */
.root-request { position: relative; padding: 5rem 0; color: var(--on-dark); overflow: hidden;
  background: radial-gradient(46rem 26rem at 0 0, rgba(249, 115, 22, .22), transparent 60%), radial-gradient(50rem 30rem at 100% 100%, rgba(37, 99, 235, .55), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink)); }
.root-request h2 { color: #fff; }
.root-request .root-sub { color: var(--on-dark); margin-bottom: 1.5rem; }
.root-request-copy { margin-bottom: 2.5rem; }
@media (min-width: 992px) { .root-request-copy { margin-bottom: 0; padding-right: 2.5rem; } }
.root-list-light li { border-bottom: 0; padding: .45rem 0; color: var(--on-dark); }
.root-card { color: var(--text); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 30px 70px rgba(2, 6, 23, .45); border: 0; }
.root-card label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.root-card .form-control, .root-card .input-group-text { min-height: 50px; border-color: #cbd5e1; border-radius: 12px; font-size: 1rem; }
.root-card .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.root-card .input-group-text { border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--surface); color: var(--text-2); }
.root-card .form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.root-card .form-text { color: var(--text-3); font-size: .85rem; }
.root-card .form-check { padding-left: 1.6rem; }
.root-card .form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .25rem; margin-left: -1.6rem; }
.root-card .form-check-label { font-weight: 450; }
.root-card .form-check-label a { color: var(--blue-600); text-decoration: underline; }
.root-card .alert { border-radius: 12px; }
.root-card .btn-block { margin-top: .5rem; }

.root-footer { padding: 1.6rem 0; font-size: .92rem; color: var(--on-dark-2); background: var(--ink); border-top: 1px solid rgba(148, 163, 184, .18); }
.root-footer a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.root-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

@media (max-width: 767px) {
  .root-hero { padding: 3rem 0 6rem; }
  .root-section, .root-request { padding: 3.5rem 0; }
  .root-head { margin-bottom: 2rem; }
  .root-window { transform: none; }
  .root-hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .root-float { animation: none; }
  .root-btn, .root-aud, .root-feat, .root-mod { transition: none; }
  .root-btn:hover, .root-aud:hover, .root-feat:hover, .root-mod:hover { transform: none; }
}

/* редактор страницы (виден только вошедшему в /edit): тексты правятся на месте, блоки включаются и выключаются */
.root-ed[contenteditable="true"] { outline: 1px dashed rgba(96, 165, 250, .8); outline-offset: 2px; border-radius: 3px; cursor: text; min-width: 1ch; }
.root-ed[contenteditable="true"]:hover { background: rgba(37, 99, 235, .12); }
.root-ed[contenteditable="true"]:focus { outline: 2px solid var(--blue); background: #fff; color: var(--text); }
.root-ed.is-changed { outline-color: #eda100; background: rgba(237, 161, 0, .18); }
.root-ribbon { background: #fff7e0; border-top: 1px solid #f3d98b; border-bottom: 1px solid #f3d98b; color: #5b4300; font-size: .92rem; }
.root-ribbon .container { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .5rem; padding-bottom: .5rem; }
.root-ribbon-toggle { background: #fff; color: #5b4300; border: 1px solid #d9b84a; border-radius: 10px; min-height: 36px; padding: .25rem .9rem; font-weight: 600; }
.root-ribbon-toggle:hover { background: #fff1c2; }
.root-ribbon.is-off { background: #e2e8f0; border-color: #94a3b8; color: #1e293b; }
.root-ribbon.is-off .root-ribbon-toggle { background: var(--blue); border-color: var(--blue); color: #fff; }
section.is-off { opacity: .5; background-image: repeating-linear-gradient(135deg, rgba(100, 116, 139, .12) 0 12px, transparent 12px 24px); }
.root-editor { position: sticky; bottom: 0; z-index: 40; background: var(--ink); color: #fff; padding: .6rem 0; box-shadow: 0 -6px 24px rgba(2, 6, 23, .35); }
.root-editor-line, .root-editor-blocks { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.root-editor-blocks { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(148, 163, 184, .25); }
.root-editor-blocks-title { font-size: .85rem; color: var(--on-dark-2); }
.root-editor-status { flex: 1 1 14rem; font-size: .9rem; color: var(--on-dark); }
.root-editor-status.is-ok { color: #86efac; }
.root-editor-status.is-err { color: #fda4af; }
.root-editor-logout { margin: 0; }
.root-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .2rem .85rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .5); background: transparent; color: var(--on-dark-2); font-size: .9rem; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.root-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid currentColor; }
.root-chip.is-on { background: rgba(37, 99, 235, .3); border-color: #93b5ff; color: #fff; }
.root-chip.is-on::before { background: #4ade80; border-color: #4ade80; }
.root-chip.is-changed { box-shadow: 0 0 0 2px #eda100; }
