/* =========================================================
   Payora — design system
   Dark shell · floating paper · navy scenes · lime signal
   ========================================================= */

:root {
  /* shell (page background) */
  --shell: #111111;
  --shell-raised: #171818;
  --shell-text: #ffffff;
  --shell-text-2: rgba(255, 255, 255, 0.72);
  --shell-text-3: rgba(255, 255, 255, 0.48);
  --shell-line: rgba(255, 255, 255, 0.14);
  --shell-hover: rgba(255, 255, 255, 0.08);

  /* paper (light surfaces) */
  --paper: #fafaf8;
  --paper-raised: #ffffff;
  --paper-sunk: #f0efea;
  --ink: #0b0c0c;
  --ink-hover: #1f2020;
  --text-1: #0b0c0c;
  --text-2: #4a4b4a;
  --text-3: #6e6f6e;
  --line: rgba(11, 12, 12, 0.11);
  --line-strong: rgba(11, 12, 12, 0.22);

  /* accents */
  --lime: #d7ff00;
  --lime-hover: #c6eb00;
  --lime-soft: rgba(215, 255, 0, 0.14);
  --blue: #163bff;
  --danger: #c4321f;
  --danger-soft: #ffe6e1;

  /* navy scene */
  --navy-1: #06249e;
  --navy-2: #041c82;
  --navy-3: #02104c;
  --scene-text-2: rgba(255, 255, 255, 0.74);
  --scene-text-3: rgba(255, 255, 255, 0.52);
  --scene-line: rgba(255, 255, 255, 0.16);
  --cell-base: rgba(11, 34, 112, 0.55);
  --cell-deep: rgba(19, 58, 184, 0.82);
  --cell-blue: #1d52ea;
  --cell-bright: #38bdf8;

  /* type */
  --font-display: "Manrope", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  /* geometry */
  --container: 1100px;
  --gutter: clamp(14px, 3vw, 20px);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-paper: 24px;
  --radius-scene: 28px;
  --pill: 999px;
  --gap-section: clamp(28px, 5vw, 56px);

  /* motion & depth */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
  --shadow-float:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.28),
    0 12px 28px -4px rgba(0, 0, 0, 0.42),
    0 32px 64px -10px rgba(0, 0, 0, 0.52);
  --shadow-float-hover:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.3),
    0 18px 36px -6px rgba(0, 0, 0, 0.48),
    0 40px 80px -12px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px var(--shell), 0 0 0 5px var(--lime);
}

/* ---------- reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  background: var(--shell);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--shell);
  color: var(--shell-text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--lime); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.backdrop-vignette,
.backdrop-grain {
  position: absolute;
  inset: 0;
}
.backdrop-vignette {
  background:
    radial-gradient(60% 40% at 50% -5%, rgba(22, 59, 255, 0.16), transparent 70%),
    radial-gradient(85% 80% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}
.backdrop-grain {
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout shell ---------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 28px) var(--gutter) 0;
}

.main {
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  padding-top: clamp(18px, 3vw, 28px);
}
.main:focus { outline: none; }

.section { scroll-margin-top: 20px; }

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.display-md { font-size: clamp(34px, 5vw, 54px); }
.display-sm { font-size: clamp(30px, 4.2vw, 44px); }
.display-soft { color: var(--text-3); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 720px;
}
.section-title-ink { color: var(--ink); }

.title-md {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.lede {
  color: var(--text-2);
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.55;
  max-width: 520px;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow-mark::before {
  content: "";
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.eyebrow-on-dark { color: var(--shell-text-3); }
.eyebrow-on-dark::before {
  content: "";
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
}

.muted { color: var(--text-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.text-link:hover { border-color: var(--ink); gap: 9px; }

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 4px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 2px;
  color: var(--shell-text);
}
.brand-accent {
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--lime);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand-accent { transform: scaleX(1.6); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--pill);
  color: var(--shell-text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover { color: var(--shell-text); background: var(--shell-hover); }
.nav-link:active { background: rgba(255, 255, 255, 0.12); }
.nav-link.is-active,
.nav-link[aria-current] { color: var(--shell-text); }
.nav-link.is-active::after,
.nav-link[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--lime);
}
.nav-index { display: none; }
.nav-support {
  margin-left: 8px;
  border: 1px solid var(--shell-line);
  color: var(--shell-text);
}
.nav-support:hover { border-color: rgba(255, 255, 255, 0.3); }
.nav-ext { display: inline-flex; opacity: 0.7; transform: rotate(-45deg); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--shell-line);
  background: var(--shell-raised);
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}
.nav-toggle:hover { background: #1e1f1f; border-color: rgba(255, 255, 255, 0.24); }
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--shell-text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars span:first-child { top: 0; }
.nav-toggle-bars span:last-child { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-label { position: relative; z-index: 1; }

.btn-arrow {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -12px;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(2px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink .btn-arrow { background: rgba(255, 255, 255, 0.12); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ink:hover .btn-arrow { background: var(--lime); color: var(--ink); }

.btn-lime { background: var(--lime); color: var(--ink); font-weight: 700; }
.btn-lime .btn-arrow { background: rgba(11, 12, 12, 0.1); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-lime:hover .btn-arrow { background: var(--ink); color: var(--lime); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(11, 12, 12, 0.04); }

.btn-ghost {
  background: transparent;
  color: var(--shell-text);
  border-color: var(--shell-line);
}
.btn-ghost:hover { background: var(--shell-hover); border-color: rgba(255, 255, 255, 0.28); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-sm .btn-arrow { width: 24px; height: 24px; margin-right: -8px; }
.btn-block { width: 100%; }

/* cursor-following lime grid inside ink buttons */
.heat {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 2.5px;
  padding: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  -webkit-mask-image: radial-gradient(circle 78px at var(--hx, 50%) var(--hy, 50%), #000 0%, #000 26%, transparent 74%);
  mask-image: radial-gradient(circle 78px at var(--hx, 50%) var(--hy, 50%), #000 0%, #000 26%, transparent 74%);
}
.heat span { border-radius: 2px; background: var(--lime); opacity: 0.16; }
.heat span:nth-child(4n + 2) { opacity: 0.3; }
.heat span:nth-child(4n + 3) { opacity: 0.48; }
.heat span:nth-child(7n) { opacity: 0.74; }
.btn-heat:hover .heat { opacity: 0.55; }

/* ---------- surfaces ---------- */

.floating {
  position: relative;
  box-shadow: var(--shadow-float);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.paper {
  background: var(--paper);
  color: var(--text-1);
  border-radius: var(--radius-paper);
}

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 42%, var(--navy-3) 100%);
}
.scene-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.scene-glow-a {
  top: -90px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.45), transparent);
}
.scene-glow-b {
  top: 30%;
  left: -110px;
  width: 340px;
  height: 340px;
  background: radial-gradient(closest-side, rgba(24, 83, 234, 0.55), transparent);
}
.scene-glow-c {
  bottom: -160px;
  right: 10%;
  width: 460px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.28), transparent);
}

/* pixel field */
.pixel-field {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  overflow: hidden;
  pointer-events: none;
}
.pixel-col {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  flex-shrink: 0;
}
.px {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.px-1 { background: var(--cell-base); box-shadow: inset 0 0 0 1px rgba(56, 120, 255, 0.18); opacity: 0.7; }
.px-2 { background: var(--cell-deep); opacity: 0.75; }
.px-3 { background: var(--cell-blue); opacity: 0.85; }
.px-4 {
  background: var(--cell-bright);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
  animation: px-twinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.px-lime {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(215, 255, 0, 0.7);
  animation: px-twinkle 2.4s ease-in-out infinite;
}
@keyframes px-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- hero ---------- */

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-scene);
  background: var(--paper);
  color: var(--text-1);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(26px, 5vw, 56px);
}
.hero-copy .lede { max-width: 500px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 0;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding-right: clamp(18px, 3vw, 34px);
  margin-right: clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-stats dt { font-size: 12.5px; color: var(--text-3); }
.hero-stats dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hero-scene {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 440px;
  padding: 18px 18px 0;
}

.scene-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--scene-text-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.scene-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--scene-text-2);
}
.scene-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: px-twinkle 2s ease-in-out infinite;
}

.ticket {
  align-self: center;
  width: min(100%, 320px);
  padding: 16px;
  border-radius: 20px;
  background: var(--paper);
  color: var(--text-1);
  box-shadow: 0 2px 6px rgba(2, 16, 76, 0.4), 0 24px 48px -12px rgba(2, 16, 76, 0.7);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
  animation: ticket-float 7s ease-in-out infinite;
}
.hero-scene:hover .ticket { transform: rotate(0deg) translateY(-4px); }
@keyframes ticket-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-head img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.ticket-head strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.ticket-head span { font-size: 12.5px; color: var(--text-3); }
.ticket-code {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}
.ticket-code span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.ticket-code code {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--lime);
  overflow-wrap: anywhere;
}
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-3);
}
.ticket-ok {
  padding: 5px 10px;
  border-radius: var(--pill);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-scene .pixel-field { margin: 0 -18px; padding: 0 4px; }

/* ---------- section head (on dark) ---------- */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 26px);
  padding: 0 4px;
}
.section-lede {
  max-width: 560px;
  color: var(--shell-text-2);
  font-size: clamp(15px, 1.3vw, 16.5px);
}

/* ---------- catalog ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float-hover); }

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.product-icon-lg { width: 64px; height: 64px; border-radius: 18px; }
.product-title { min-width: 0; flex: 1; }
.product-title h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.product-title h3 a { transition: color 0.2s; }
.product-title h3 a:hover { color: var(--blue); }
.product-title p { margin-top: 3px; font-size: 13px; color: var(--text-3); }

.price-chip {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: var(--pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.product-desc { color: var(--text-2); font-size: 15px; }

.plan-rows {
  border-top: 1px solid var(--line);
}
.plan-rows li { border-bottom: 1px solid var(--line); }
.plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 22px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 8px;
  margin: 0 -8px;
  border-radius: 12px;
  transition: background-color 0.2s;
}
.plan-row:hover { background: var(--paper-sunk); }
.plan-row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-row-term { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.plan-row-price {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-row-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--text-3);
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.plan-row:hover .plan-row-arrow { background: var(--ink); color: var(--lime); transform: translateX(2px); }

.product-cta { margin-top: auto; }

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--text-2);
}

/* ---------- how it works ---------- */

.how-scene {
  padding: clamp(24px, 4.5vw, 48px);
  border-radius: var(--radius-scene);
}
.how-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 40px);
}
.how-head .eyebrow-on-dark { color: var(--scene-text-3); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--scene-line);
}
.step-num {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  padding-top: 4px;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.step p { color: var(--scene-text-2); font-size: 14.5px; }

/* ---------- split (paper with intro + content) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(24px, 4.5vw, 48px);
}
.split-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.split-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.tile-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 14px 0 0 var(--lime);
  margin-bottom: 6px;
}
.tile h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.035em;
}
.tile p { color: var(--text-2); font-size: 14.5px; }

/* ---------- accordion ---------- */

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.acc-item summary:hover::after { border-color: var(--ink); }
.acc-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}
.acc-item summary:focus-visible { outline-offset: 2px; }
.acc-body { padding: 0 46px 20px 0; color: var(--text-2); }
.acc-item[open] .acc-body { animation: acc-in 0.35s var(--ease); }
.acc-body a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
@keyframes acc-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- lime CTA ---------- */

.cta-lime {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(26px, 4.5vw, 48px);
  border-radius: var(--radius-scene);
  background: var(--lime);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.cta-lime p { margin-top: 10px; color: rgba(11, 12, 12, 0.72); font-size: 16px; }

/* ---------- breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: calc(var(--gap-section) * -0.55);
  color: var(--shell-text-3);
  font-size: 13.5px;
}
.crumbs a { color: var(--shell-text-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--shell-text); }
.crumbs [aria-current] { color: var(--shell-text); }

/* ---------- service page ---------- */

.service-hero {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-scene);
  background: var(--paper);
  color: var(--text-1);
  scroll-margin-top: 16px;
}
.service-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 5vw, 52px);
}
.service-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills li {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-right: 14px;
}
.facts dt { font-size: 12.5px; color: var(--text-3); }
.facts dd { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.facts a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.facts a:hover { border-color: var(--ink); }

/* constructor (plan picker) */
.constructor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3.5vw, 32px);
}
.constructor .eyebrow-on-dark { color: var(--scene-text-3); }

.plan-options {
  display: grid;
  gap: 8px;
}
.constructor-chip {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--scene-line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.constructor-chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.constructor-chip:active { transform: scale(0.99); }
.constructor-chip.is-active {
  border-color: var(--lime);
  background: rgba(215, 255, 0, 0.08);
}
.chip-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.constructor-chip.is-active .chip-radio {
  border-color: var(--lime);
  box-shadow: inset 0 0 0 4px var(--navy-2), inset 0 0 0 10px var(--lime);
}
.chip-text { display: flex; flex-direction: column; min-width: 0; }
.chip-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.chip-term { font-size: 12.5px; color: var(--scene-text-3); }
.chip-out { color: #ffb3a3; }
.chip-price {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.constructor-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--scene-line);
}
.constructor-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.constructor-desc { color: var(--scene-text-2); font-size: 14px; min-height: 2.9em; }
.constructor-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.constructor-price strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.constructor-price span { color: var(--scene-text-3); font-size: 14px; }
.constructor-price strong.is-updated { animation: price-pop 0.4s var(--ease); }
@keyframes price-pop {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.constructor-note { color: var(--scene-text-3); font-size: 12.5px; line-height: 1.5; }
.constructor-empty { justify-content: center; min-height: 260px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3.5vw, 34px);
}

.check-list,
.num-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.check-list li,
.num-list li {
  position: relative;
  padding: 13px 0 13px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.2 2.6 2.6L14.2 7' fill='none' stroke='%23d7ff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat,
    var(--ink);
}
.num-list { counter-reset: num; }
.num-list li { counter-increment: num; }
.num-list li::before {
  content: counter(num, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
}
.num-list strong { color: var(--ink); }

/* ---------- forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.field-label em {
  margin-left: 6px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
}
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #a3a4a2; }
.input:hover { border-color: rgba(11, 12, 12, 0.36); }
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(215, 255, 0, 0.55);
}
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(196, 50, 31, 0.14); }
.field-error { margin-top: -6px; color: var(--danger); font-size: 13px; font-weight: 500; }
.field-error.is-info { color: var(--text-2); }

.spinner {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; }
.form-note { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.form-note a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); transition: color 0.2s, border-color 0.2s; }
.form-note a:hover { color: var(--ink); border-color: var(--ink); }

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
}
.notice-error { background: var(--danger-soft); color: var(--danger); }

/* summary list */
.summary {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.summary div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.summary dt { color: var(--text-3); font-size: 14px; }
.summary dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.summary .summary-total dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.summary-dark { border-color: var(--scene-line); }
.summary-dark div { border-color: var(--scene-line); }
.summary-dark dt { color: var(--scene-text-3); }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 6, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 460px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-scene);
  background: var(--paper);
  color: var(--text-1);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.modal-close:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.modal-dialog .summary { margin: 4px 0 6px; }
body.is-locked { overflow: hidden; }

/* ---------- checkout ---------- */

.checkout {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-scene);
}
.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4.5vw, 48px);
}
.checkout-main .form { margin-top: 6px; }
.checkout-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}
.checkout-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.checkout-product img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.checkout-product strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
}
.checkout-product span { color: var(--scene-text-3); font-size: 13.5px; }

/* ---------- order ---------- */

.order {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(24px, 4.5vw, 48px);
}
.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.order-head .eyebrow { margin-bottom: 10px; }
.order-code { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 4vw, 44px);
}
.order-next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.order-next .num-list { align-self: stretch; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-pending { background: #fff3d1; color: #835600; }
.status-paid,
.status-processing { background: #e7ecff; color: var(--blue); }
.status-completed { background: var(--lime); color: var(--ink); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }

.code-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  padding: 20px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}
.code-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.code-value {
  font-family: var(--font-mono);
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--lime);
  overflow-wrap: anywhere;
  user-select: all;
}

.status-failed { background: var(--danger-soft); color: var(--danger); }

/* ---------- SBP payment ---------- */

.pay {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "aside" "details";
  overflow: hidden;
  border-radius: var(--radius-scene);
}
.pay-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 4.5vw, 48px) clamp(24px, 4.5vw, 48px) 24px;
}
.pay-details {
  grid-area: details;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px clamp(24px, 4.5vw, 48px) clamp(24px, 4.5vw, 48px);
}
.pay-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}
.pay-aside .btn { max-width: 340px; }
.pay-aside .constructor-note { max-width: 340px; text-align: center; }

.pay-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px 0 16px;
  border-radius: var(--pill);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.pay-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f0a400;
  box-shadow: 0 0 0 0 rgba(240, 164, 0, 0.5);
  animation: pay-pulse 1.8s ease-out infinite;
}
@keyframes pay-pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 164, 0, 0.5); }
  100% { box-shadow: 0 0 0 10px rgba(240, 164, 0, 0); }
}
.pay-timer {
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pay-status.is-paid .pay-dot { background: #3bb54a; animation: none; }
.pay-status.is-paid .pay-timer,
.pay-status.is-expired .pay-timer { display: none; }
.pay-status.is-expired .pay-dot { background: var(--danger); animation: none; }

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 300px);
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(2, 16, 76, 0.4), 0 24px 48px -12px rgba(2, 16, 76, 0.7);
  transition: opacity 0.3s, filter 0.3s;
}
.qr-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.qr-missing { padding: 40px 10px; text-align: center; color: var(--text-2); }
.qr-amount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.qr-amount span { font-size: 13px; color: var(--text-3); }
.qr-amount strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pay.is-expired .qr-card { opacity: 0.35; filter: blur(2px); }
.pay.is-expired [data-pay-link] { display: none; }

.pay-expired {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  text-align: center;
  color: var(--scene-text-2);
  font-size: 14px;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.pay-actions form { margin: 0; }

.pay-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 4.5vw, 48px);
  animation: rise-in 0.8s var(--ease) both;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 18px;
}
.result-top .eyebrow { margin-bottom: 8px; }
.result-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--lime);
  color: var(--ink);
  animation: result-pop 0.6s var(--ease) 0.15s both;
}
.result-icon-wait { background: #fff3d1; color: #835600; }
.result-icon-error { background: var(--danger-soft); color: var(--danger); }
@keyframes result-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
}
.result-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.result-main .lede strong,
.result-main .muted strong { color: var(--ink); }

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-scene);
  background: var(--paper);
  color: var(--text-1);
}
.not-found-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 5vw, 56px);
}
.not-found-scene {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  padding-top: 28px;
}
.not-found-num {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 14vw, 140px);
  letter-spacing: -0.07em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- flash ---------- */

.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--shell-line);
  background: var(--shell-raised);
  color: var(--shell-text);
  font-size: 14.5px;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.flash.is-hiding { opacity: 0; transform: translateY(-6px); }
.flash-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.flash-error .flash-dot { background: #ff6b55; }
.flash-error { border-color: rgba(255, 107, 85, 0.35); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: calc(var(--gap-section) * 1.3);
  padding: 32px 4px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--shell-line);
  color: var(--shell-text-3);
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-about p { max-width: 380px; margin-top: 14px; line-height: 1.6; }
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-title {
  margin-bottom: 6px;
  color: var(--shell-text);
  font-weight: 600;
  font-size: 13px;
}
.footer-nav a {
  padding: 4px 0;
  color: var(--shell-text-2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--shell-line);
  font-size: 13px;
}

/* ---------- legal ---------- */

.legal {
  display: grid;
  gap: 28px;
  padding: clamp(22px, 4vw, 48px);
}
.legal-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.legal-doc {
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.legal-doc:hover { border-color: var(--ink); color: var(--ink); }
.legal-doc.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal-toc { display: none; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-toc-title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  padding-top: 1px;
}
.legal-toc a:hover { color: var(--ink); }

.legal-body { max-width: 760px; min-width: 0; counter-reset: sec; }
.legal-head { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-meta { margin-top: 10px; font-size: 13.5px; color: var(--text-3); overflow-wrap: anywhere; }
.legal-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--text-1); }
.legal-body h2 {
  counter-increment: sec;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 38px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.legal-body h2::before {
  content: counter(sec);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 13px;
  transform: translateY(-2px);
}
.legal-body p,
.legal-body li { color: var(--text-2); line-height: 1.7; }
.legal-body p + p,
.legal-body p + ul,
.legal-body ul + p { margin-top: 10px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a:not(.btn) { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.legal-body a:not(.btn):hover { border-color: var(--ink); }
.legal-body ol,
.legal-body ul { margin: 0; padding: 0; list-style: none; }
.legal-body ol { counter-reset: item; }
.legal-body ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 44px;
}
.legal-body ol > li + li,
.legal-body ul > li + li { margin-top: 8px; }
.legal-body ol > li::before {
  content: counter(sec) "." counter(item);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
}
.legal-body ul > li { position: relative; padding-left: 22px; }
.legal-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 4px 0 0 var(--lime);
}
.legal-requisites { border-top: 1px solid var(--line); }
.legal-requisites div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal-requisites dt { color: var(--text-3); font-size: 14px; }
.legal-requisites dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow var(--dur) var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .product-card[data-reveal].is-visible:hover { transform: translateY(-3px); }

.hero-card,
.service-hero,
.checkout,
.order,
.not-found,
.pay,
.legal,
.faq-page { animation: rise-in 0.8s var(--ease) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   responsive
   ========================================================= */

@media (min-width: 620px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 22px 22px 22px 0; }
  .tile:nth-child(2n) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--line); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .cta-lime { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .result-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .pay {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "head aside" "details aside";
    grid-template-rows: auto 1fr;
  }
  .pay-details { padding-top: 0; }
}

@media (min-width: 960px) {
  .hero-card { grid-template-columns: minmax(0, 1fr) 420px; min-height: 560px; }
  .hero-scene { min-height: 0; }
  .service-hero { grid-template-columns: minmax(0, 1fr) 440px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 380px; }
  .not-found { grid-template-columns: minmax(0, 1fr) 380px; }
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split-intro { position: sticky; top: 24px; align-self: start; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
  .step { grid-template-columns: 1fr; padding: 22px 0 0; row-gap: 10px; }
  .step-num { grid-row: auto; padding: 0; }
  .footer-top { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.1fr); }
  .footer-about { grid-column: auto; }
  .legal { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  .legal-aside { position: sticky; top: 24px; align-self: start; max-height: calc(100dvh - 48px); overflow-y: auto; }
  .legal-docs { flex-direction: column; }
  .legal-toc { display: block; }
}

@media (max-width: 819px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid var(--shell-line);
    background: var(--shell-raised);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .nav-link {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    color: var(--shell-text);
    gap: 14px;
  }
  .nav-index {
    display: inline;
    min-width: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--shell-text-3);
  }
  .nav-link.is-active::after,
  .nav-link[aria-current]::after { left: auto; right: 18px; bottom: auto; top: 50%; margin: -3px 0 0; width: 6px; height: 6px; }
  .nav-support { margin: 6px 0 0; border-color: var(--shell-line); }
  .nav-ext { margin-left: auto; }
}

@media (max-width: 619px) {
  body { font-size: 15px; }
  .hero-scene { min-height: 400px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats div { padding-right: 14px; margin-right: 14px; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts div { flex-direction: row; justify-content: space-between; padding: 0; }
  .plan-row { grid-template-columns: minmax(0, 1fr) auto 22px; }
  .plan-row-term { display: none; }
  .product-head { flex-wrap: wrap; }
  .product-title { flex-basis: calc(100% - 70px); }
  .price-chip { margin-left: 66px; }
  .acc-body { padding-right: 0; }
  .cta-lime .btn { width: 100%; }
  .px { width: 9px; height: 9px; }
  .modal { align-items: end; padding: 0; }
  .modal-dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateY(40px);
  }
}

@media (hover: none) {
  .product-card:hover,
  .js .product-card[data-reveal].is-visible:hover { transform: none; box-shadow: var(--shadow-float); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticket { transform: none; }
  .heat { display: none; }
}
