:root {
  /* MAX brandbook: https://go.max.ru/brandbook#colors */
  --max-giant: #471AFF;
  --max-nebula: #9500FF;
  --max-white: #FFFFFF;
  --max-comet: #00BFFF;
  --max-pulsar: #6E1AFF;
  --max-matter: #0D001A;

  --bg: #f4f2fa;
  --bg-soft: #faf8ff;
  --ink: #0D001A;
  --muted: #5b5670;
  --line: #e4dff0;
  --accent: #471AFF;
  --accent-2: #00BFFF;
  --accent-3: #9500FF;
  --accent-soft: #ebe6ff;
  --accent-ink: #ffffff;
  --max-gradient: linear-gradient(120deg, #471AFF 0%, #6E1AFF 42%, #9500FF 72%, #00BFFF 100%);
  --max-gradient-soft: linear-gradient(135deg, rgba(71, 26, 255, 0.12), rgba(0, 191, 255, 0.1));
  --danger: #c83b2e;
  --danger-soft: #fde8e5;
  --ok: #0f8a58;
  --ok-soft: #ddf6ea;
  --warn: #b8860b;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(13, 0, 26, 0.1);
  --font: "Onest", sans-serif;
  --display: "Unbounded", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 90% -8%, rgba(149, 0, 255, 0.12), transparent 55%),
    radial-gradient(700px 420px at -5% 15%, rgba(71, 26, 255, 0.1), transparent 50%),
    radial-gradient(600px 360px at 50% 100%, rgba(0, 191, 255, 0.08), transparent 45%),
    linear-gradient(180deg, #f7f5fc 0%, var(--bg) 45%, #efeaf8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--max-pulsar); }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand em {
  font-style: normal;
  background: var(--max-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-weight: 500;
}
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1.2rem;
  background: var(--max-gradient);
  background-size: 160% 160%;
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 10px 28px rgba(71, 26, 255, 0.28);
}
.btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(149, 0, 255, 0.32);
}
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  filter: none;
}
.btn.secondary:hover {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: none;
  border-color: rgba(71, 26, 255, 0.35);
  filter: none;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  padding-inline: 0.6rem;
  box-shadow: none;
  filter: none;
}
.btn.ghost:hover { color: var(--ink); background: transparent; box-shadow: none; transform: none; }
.btn-block { width: 100%; }
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 191, 255, 0.45);
  outline-offset: 2px;
}

/* Landing hero — MAX dark matter + gradients */
.hero-bleed {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 78% 35%, rgba(149, 0, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 55% 50% at 15% 70%, rgba(71, 26, 255, 0.4), transparent 55%),
    radial-gradient(ellipse 40% 40% at 55% 90%, rgba(0, 191, 255, 0.22), transparent 50%),
    linear-gradient(160deg, #1a0638 0%, #0D001A 48%, #14052e 100%);
}
.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(105deg, transparent 8%, #000 38%, #000 100%);
  pointer-events: none;
  opacity: 0.85;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, rgba(247, 245, 252, 0.08) 55%, #f7f5fc);
  pointer-events: none;
  z-index: 2;
}
.hero-bleed .site-nav {
  position: relative;
  z-index: 3;
}
.hero-bleed .site-nav .brand { color: #fff; }
.hero-bleed .nav-links a:not(.btn) { color: rgba(255, 255, 255, 0.72); }
.hero-bleed .nav-links a:not(.btn):hover { color: #fff; }
.hero-bleed .btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.hero-bleed .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(0, 191, 255, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 3.25rem;
}
.hero-copy { max-width: 40rem; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  line-height: 0.95;
  animation: rise 0.7s ease both;
  color: #fff;
}
.hero-brand em {
  font-style: normal;
  background: linear-gradient(100deg, #00BFFF, #9500FF 55%, #471AFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.max-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.05rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 191, 255, 0.35);
  background: rgba(71, 26, 255, 0.22);
  color: #cfefff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: rise 0.7s ease 0.04s both;
}
.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin: 0 0 0.9rem;
  max-width: 26ch;
  animation: rise 0.7s ease 0.08s both;
  color: rgba(255, 255, 255, 0.96);
}
.hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 42ch;
  animation: rise 0.7s ease 0.16s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise 0.7s ease 0.24s both;
}
.max-chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--max-comet);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
}
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: floatIn 0.9s ease 0.15s both;
}
.hero-visual svg { width: min(100%, 520px); height: auto; filter: drop-shadow(0 28px 50px rgba(71, 26, 255, 0.35)); }
.hero-visual .glow {
  position: absolute;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.35), rgba(149, 0, 255, 0.18), transparent 70%);
  z-index: -1;
  animation: pulse 4.5s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.section {
  padding: 4.5rem 0;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.section .lead {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 46ch;
  font-size: 1.05rem;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.feature-row article {
  position: relative;
  padding-top: 0.15rem;
}
.feature-row article h3 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.feature-row article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-addr {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.footer-links,
.footer-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.65rem;
}
.footer-seo {
  margin-top: 0.55rem;
  font-size: 0.82rem;
}
.footer-contacts {
  display: grid;
  gap: 0.35rem;
  text-align: right;
}
.footer-contacts a { color: var(--muted); }
.footer-contacts a:hover { color: var(--accent); }

/* Forms / app chrome */
.app-shell { padding-bottom: 3rem; }
.page-head {
  padding: 1.5rem 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.page-head .sub { color: var(--muted); margin: 0.35rem 0 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.panel h3 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
}
.stack { display: grid; gap: 1.1rem; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--max-comet);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.22);
  background: #fff;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.checkbox-row input { width: auto; margin: 0; }

.auth-box {
  width: min(440px, 92vw);
  margin: 3.5rem auto;
  animation: rise 0.5s ease both;
}
.auth-box h2 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.flash, .error {
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.flash { background: var(--ok-soft); color: var(--ok); }
.error { background: var(--danger-soft); color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 0.25rem;
}
.table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.list-clean { list-style: none; padding: 0; margin: 0 0 1rem; }
.list-clean li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.list-clean li:last-child { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.25rem;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.fail { background: var(--danger-soft); color: var(--danger); }
.badge.mode { background: var(--accent-soft); color: var(--accent); }

/* POS — high-clarity commercial cashier UI */
.pos-body {
  background: #f4f2fa;
  min-height: 100vh;
  min-height: 100dvh;
}
.pos-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.pos-tabbar {
  display: none;
}
.pos-tab-form { margin: 0; display: contents; }
.pos-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pos-tab.is-active { color: var(--accent); }
.pos-tab-ico { font-size: 1.05rem; line-height: 1; }
.pos-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pos-bar .meta { color: var(--muted); font-size: 0.92rem; margin-left: 0.75rem; }
.pos-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.1rem;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  align-items: stretch;
}
.pos-scan h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
#reader {
  width: 100%;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  background: #0D001A;
  border: 1px solid var(--line);
}
.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.result-card.pass {
  background: linear-gradient(165deg, #e7f8ef, #f7fcf9);
  border-color: #8fd9b4;
  animation: pop 0.28s ease both;
}
.result-card.fail {
  background: linear-gradient(165deg, #fdeceb, #fff8f7);
  border-color: #f0b0a8;
  animation: pop 0.28s ease both;
}
.result-card .eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result-card .big {
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0.35rem 0 0.5rem;
  line-height: 1;
}
.result-card.pass .big { color: var(--ok); }
.result-card.fail .big { color: var(--danger); }
.result-card .msg { color: var(--muted); font-size: 1.05rem; max-width: 28ch; }
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  line-height: 1.4;
  animation: rise 0.7s ease 0.3s both;
}
.hero-note-creds {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.hero-note code, .legal code, .checklist code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.12rem 0.4rem;
  border-radius: 7px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hero-bleed .hero-note code {
  background: rgba(255, 255, 255, 0.1);
  color: #e8f9ff;
  border: 1px solid rgba(0, 191, 255, 0.28);
}
.section-alt {
  background: linear-gradient(180deg, rgba(71, 26, 255, 0.04), rgba(0, 191, 255, 0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.steps article {
  padding-top: 0.65rem;
  border-top: 2px solid var(--max-pulsar);
}
.step-n {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--max-pulsar);
  margin-bottom: 0.5rem;
}
.steps h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.steps p { margin: 0; color: var(--muted); line-height: 1.5; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--max-gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 50px rgba(71, 26, 255, 0.16);
  transform: translateY(-4px);
}
.price-card.featured h3 {
  background: var(--max-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.02em;
}
.price {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0;
  letter-spacing: -0.03em;
}
.price span { font-size: 0.95rem; color: var(--muted); font-family: var(--font); font-weight: 500; }
.price-card ul {
  margin: 0 0 0.5rem;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  flex: 1;
  line-height: 1.55;
}
.price-card ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.35rem;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--max-gradient);
}
.price-periods {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0.65rem 0.7rem;
  background: var(--bg-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.price-periods div {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
}
.price-periods span { color: var(--muted); }
.price-periods strong { color: var(--ink); font-weight: 700; }
.price-periods em {
  font-style: normal;
  color: var(--ok);
  font-weight: 600;
  font-size: 0.8rem;
}
.price-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  max-width: 62ch;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq details[open] {
  border-color: rgba(71, 26, 255, 0.28);
  box-shadow: 0 8px 24px rgba(71, 26, 255, 0.06);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0.65rem 0 0; line-height: 1.5; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.help-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.legal { padding-bottom: 3rem; max-width: 760px; }
.legal h1 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.legal h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 1.6rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.legal p, .legal li { color: var(--muted); line-height: 1.6; }
.checklist {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.25rem 2.25rem;
  box-shadow: var(--shadow);
  line-height: 1.55;
}
.checklist li { margin-bottom: 0.85rem; color: var(--ink); }
.checklist li strong { color: var(--accent); }

.payment-logos { margin: 0.5rem 0 1rem; }
.payment-logos-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.payment-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
a.pay-badge:hover { border-color: var(--accent-2); color: var(--accent); }
.pay-badge.tbank, .pay-badge.tpay {
  background: #fff;
  border-color: #ffdd2d;
  color: #333;
}
.payment-logos-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 56ch;
  line-height: 1.5;
}
.requisites {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
}
.requisites dt { color: var(--muted); margin: 0; }
.requisites dd { margin: 0; }
.legal-footer { margin-top: 2rem; align-items: flex-start; }
.legal ul { padding-left: 1.2rem; }

.page-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dash-grid { margin-bottom: 1.1rem; }
.form-spaced { margin-top: 1rem; }
.panel-spaced { margin-top: 1.5rem; }
.plan-months { margin: 0; font-size: 0.9rem; }
.auth-foot { margin-top: 1.1rem; margin-bottom: 0; }
.auth-legal { margin-top: 0.85rem; margin-bottom: 0; font-size: 0.85rem; line-height: 1.45; }
.result-panel { max-width: 520px; margin: 2rem auto; text-align: center; }
.result-title { font-family: var(--display); margin-top: 0; }
.result-title.ok { color: var(--ok); }
.result-title.warn { color: var(--warn); }
.result-title.fail { color: var(--danger); }
.result-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; }
.pilot-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pos-bar-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.pos-bar-actions { display: flex; gap: 0.5rem; align-items: center; }
.pos-bar .badge.mode { margin-left: 0.15rem; }
.manual-label {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.9rem 0 0.35rem;
  font-weight: 500;
}
.pos-scan .tip { margin-top: 0.9rem; margin-bottom: 0; font-size: 0.82rem; }
.cam-fallback { padding: 2rem; text-align: center; }
.result-card .big.idle { opacity: 0.25; color: var(--ink); }
.error-page {
  padding: 4rem 0;
  text-align: center;
}
.error-page h1 {
  font-family: var(--display);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.03em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .price-grid-billing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 0.35rem 0 2.5rem; gap: 1.25rem; }
  .hero-visual { min-height: 220px; margin-top: 0.15rem; }
  .hero-visual svg { width: min(100%, 400px); }
  .hero-bleed { min-height: auto; }
  .hero-bleed::after { height: 3rem; }
  .hero-brand { font-size: clamp(2.35rem, 11vw, 3.1rem); margin-bottom: 0.7rem; }
  .hero-copy h1 { max-width: none; font-size: clamp(1.35rem, 5.2vw, 1.7rem); }
  .feature-row, .steps, .price-grid, .contact-grid, .help-block, .grid-2, .pos-main { grid-template-columns: 1fr; }
  .price-grid-billing { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .result-card { min-height: 280px; }
  .nav-links { gap: 0.55rem; }
  .pos-bar { flex-wrap: wrap; gap: 0.65rem; }
  .btn, button.btn { min-height: 44px; }
  input, select, textarea { min-height: 44px; font-size: 1rem; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .section { padding: 3.25rem 0; }
}

@media (max-width: 700px) {
  .requisites { grid-template-columns: 1fr; gap: 0.15rem; }
  .requisites dt { margin-top: 0.45rem; }
  .wrap { width: min(1120px, 94vw); }
  .site-nav { gap: 0.5rem; padding: 0.85rem 0; }
  .nav-links { gap: 0.45rem; flex-wrap: nowrap; justify-content: flex-end; font-size: 0.92rem; }
  .nav-links .nav-mid { display: none; }
  .auth-box { margin: 2rem auto; }
  .panel form .btn,
  .panel form button.btn,
  .btn-block { width: 100%; }
  .page-head-actions,
  .help-actions,
  .pilot-cta { width: 100%; }
  .page-head-actions .btn,
  .help-actions .btn,
  .pilot-cta .btn { flex: 1 1 auto; }
  .price-periods div {
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0.35rem;
  }
  .site-footer {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-contacts { text-align: left; }
}

@media (max-width: 480px) {
  .max-chip {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
  }
  .brand { font-size: 1.2rem; }
  .pos-bar {
    flex-direction: column;
    align-items: stretch;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
  .pos-bar-brand,
  .pos-bar-actions { width: 100%; }
  .pos-bar-actions { justify-content: flex-start; }
  .pos-bar .meta {
    margin-left: 0;
    font-size: 0.82rem;
    width: 100%;
  }
  .pos-main { padding: 0.75rem; gap: 0.85rem; }
  #reader { min-height: 220px; }
  .result-card {
    min-height: 220px;
    padding: 1.1rem 0.9rem;
  }
  .result-card .big {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .auth-box { margin: 1.25rem auto 2.5rem; width: min(440px, 94vw); }
  .price-periods div {
    grid-template-columns: 1fr auto;
    grid-template-areas: "period discount" "price price";
  }
  .price-periods span { grid-area: period; }
  .price-periods em { grid-area: discount; text-align: right; }
  .price-periods strong { grid-area: price; }
  .nav-links a:not(.btn) { font-size: 0.88rem; }
}

/* —— PWA / native app shell —— */
html.pwa,
html.pwa body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
body.pwa-standalone {
  padding-top: 0;
  user-select: none;
  -webkit-user-select: none;
}
body.pwa-standalone input,
body.pwa-standalone textarea,
body.pwa-standalone select {
  user-select: text;
  -webkit-user-select: text;
}
body.pwa-pos {
  background: #f4f2fa;
}
body.pwa-pos .pos-shell {
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.pwa-pos .pos-bar {
  padding-top: max(0.7rem, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 255, 255, 0.92);
}
body.pwa-pos .pos-bar-actions-desktop { display: none; }
body.pwa-pos .pos-main {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  grid-template-columns: 1fr;
}
body.pwa-pos .pos-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  gap: 0;
  padding: 0.2rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 -8px 28px rgba(13, 0, 26, 0.08);
}
body.pwa-pos .result-card {
  min-height: min(42vh, 360px);
  border-radius: 18px;
}
body.pwa-pos #reader {
  min-height: min(38vh, 320px);
  border-radius: 18px;
}
body.pwa-pos .panel {
  border-radius: 18px;
  box-shadow: none;
  border-color: var(--line);
}

.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.pwa-install-card {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.65rem;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(120deg, #14052e, #0D001A 55%, #1a0638);
  color: #f4f7f5;
  border: 1px solid rgba(0, 191, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(71, 26, 255, 0.35);
}
.pwa-install-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--max-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
}
.pwa-install-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.pwa-install-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.pwa-install-copy span {
  font-size: 0.78rem;
  color: #9AE8FF;
  line-height: 1.35;
}
.pwa-install-btn {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.pwa-install-close {
  border: 0;
  background: transparent;
  color: #9AE8FF;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
}
@media (max-width: 480px) {
  .pwa-install-card {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon copy close"
      "btn btn btn";
  }
  .pwa-install-icon { grid-area: icon; }
  .pwa-install-copy { grid-area: copy; }
  .pwa-install-close { grid-area: close; }
  .pwa-install-btn { grid-area: btn; width: 100%; }
}

.pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 0.35rem;
  background: #0D001A;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pwa-splash.hide {
  opacity: 0;
  visibility: hidden;
}
.pwa-splash-mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 10vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
}
.pwa-splash-mark em {
  font-style: normal;
  background: var(--max-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pwa-splash-sub {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body.pos-body .pos-bar-actions-desktop { display: none; }
  body.pos-body .pos-tabbar { display: flex; }
  body.pos-body .pos-main {
    grid-template-columns: 1fr;
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
  body.pos-body .pos-bar {
    padding-top: max(0.7rem, env(safe-area-inset-top));
  }
}

/* SEO pages */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.5rem 0 1.25rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.seo-page article h1 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}
.seo-page article h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.55rem;
  letter-spacing: -0.02em;
}
.seo-page .lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 62ch;
}
.seo-page article p { color: var(--muted); line-height: 1.65; max-width: 68ch; }
.seo-links { padding-left: 1.2rem; line-height: 1.8; }
.seo-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.seo-hub {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.seo-hub a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
}
.seo-hub a:hover {
  border-color: rgba(71, 26, 255, 0.35);
  color: var(--accent);
  background: var(--bg-soft);
  text-decoration: none;
}
