:root {
  --bg: #080b10;
  --bg-soft: #101820;
  --bg-panel: rgba(23, 33, 43, 0.72);
  --bg-panel-strong: rgba(9, 14, 20, 0.88);
  --text: #f2e8d8;
  --text-dim: rgba(242, 232, 216, 0.7);
  --line: rgba(242, 232, 216, 0.1);
  --amber: #d79a3d;
  --cyan: #39c6ff;
  --green: #7af0c1;
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  --header-height: 88px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: "IBM Plex Sans", "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(215, 154, 61, 0.16), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(57, 198, 255, 0.12), transparent 28%),
    radial-gradient(circle at 60% 78%, rgba(122, 240, 193, 0.08), transparent 22%),
    linear-gradient(180deg, #0a1016 0%, #080b10 100%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.noise-layer,
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.noise-layer {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.page-grid {
  z-index: -3;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: min(12vw, 132px) min(12vw, 132px);
  opacity: 0.08;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
  padding: 1rem clamp(1.1rem, 2vw, 2rem);
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(8,11,16,0.88), rgba(8,11,16,0.45));
  border-bottom: 1px solid rgba(242, 232, 216, 0.06);
}

.site-header--compact { position: relative; }
.brand-mark {
  display: inline-grid;
  gap: 0.15rem;
  align-items: start;
}
.brand-mark__label {
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-mark__sub {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a,
.site-footer__links a,
.link-river a {
  position: relative;
  color: var(--text-dim);
}
.main-nav a::after,
.site-footer__links a::after,
.link-river a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.main-nav a:hover::after,
.site-footer__links a:hover::after,
.link-river a:hover::after,
.main-nav a:focus-visible::after,
.site-footer__links a:focus-visible::after,
.link-river a:focus-visible::after { transform: scaleX(1); }

.header-cta,
.button,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 232, 216, 0.16);
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}
.header-cta:hover,
.button:hover,
.store-link:hover,
.header-cta:focus-visible,
.button:focus-visible,
.store-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 232, 216, 0.42);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}
.header-cta,
.button--primary {
  background: linear-gradient(135deg, rgba(215, 154, 61, 0.18), rgba(215, 154, 61, 0.08));
}
.button--ghost,
.store-link,
.header-cta { color: var(--text); }

main { position: relative; }
.hero-scene {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
}
.hero-scene--adv { min-height: min(90vh, 920px); }
.hero-scene__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-scene__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.85) brightness(0.48);
  transform: scale(1.04);
}
.hero-scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 26%, rgba(215,154,61,0.24), transparent 22%),
    linear-gradient(180deg, rgba(8,11,16,0.18) 0%, rgba(8,11,16,0.38) 28%, rgba(8,11,16,0.92) 100%);
}
.hero-scene__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(57,198,255,0.05) 48%, transparent 100%);
  opacity: 0.9;
}
.hero-scene__routes .route,
.hero-scene__nodes .node {
  position: absolute;
  display: block;
}
.route {
  border: 1px solid rgba(57, 198, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(57, 198, 255, 0.08);
}
.route--a { inset: 18% auto auto 7%; width: 54vw; height: 26vw; transform: rotate(-6deg); }
.route--b { inset: 42% auto auto 22%; width: 38vw; height: 18vw; border-color: rgba(122,240,193,0.22); transform: rotate(10deg); }
.route--c { inset: auto 10% 12% auto; width: 24vw; height: 12vw; border-color: rgba(215,154,61,0.22); transform: rotate(-12deg); }
.node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(57,198,255,0.6);
}
.node--amber { inset: 28% auto auto 30%; background: var(--amber); box-shadow: 0 0 18px rgba(215,154,61,0.6); }
.node--cyan { inset: auto auto 22% 62%; }
.node--green { inset: 56% auto auto 72%; background: var(--green); box-shadow: 0 0 18px rgba(122,240,193,0.6); }
.node--small { inset: 18% auto auto 72%; width: 8px; height: 8px; }
.hero-scene__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
.hero-scene__layout--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.eyebrow,
.section-kicker,
.story-row__label,
.status-panel__tag,
.module-node__mono,
.story-row__mono {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.display-title {
  margin: 0.4rem 0 1.4rem;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.86;
  font-size: clamp(4.5rem, 16vw, 11rem);
  display: grid;
}
.display-title--compact { font-size: clamp(3.8rem, 13vw, 8rem); }
.hero-lead,
.section-intro,
.idea-layout__lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: rgba(242, 232, 216, 0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-actions--compact { margin-top: 1.4rem; }
.status-column {
  display: grid;
  gap: 1rem;
}
.status-panel,
.module-node,
.story-row__panel,
.download-layout__notes,
.system-orbit__item,
.system-orbit__core {
  background: linear-gradient(180deg, rgba(18, 26, 34, 0.86), rgba(8, 11, 16, 0.86));
  border: 1px solid rgba(242, 232, 216, 0.1);
  box-shadow: var(--shadow);
}
.status-panel {
  padding: 1.15rem;
}
.status-panel strong,
.story-row__panel strong,
.module-node h3,
.system-orbit__core,
.system-orbit__item { display: block; }
.status-panel p,
.module-node p,
.story-row__panel p,
.download-layout__notes p,
.site-footer__brand p,
.idea-layout__grid p,
.business-list p {
  color: var(--text-dim);
  line-height: 1.65;
}
.status-panel--wide { padding-bottom: 1.5rem; }
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: 2rem;
  border-top: 1px solid rgba(242,232,216,0.12);
  border-bottom: 1px solid rgba(242,232,216,0.12);
  background: rgba(8,11,16,0.5);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.8rem 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,232,216,0.78);
  animation: ticker 34s linear infinite;
}
.ticker__track span::before {
  content: "•";
  color: var(--amber);
  margin-right: 1rem;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.2rem, 3vw, 2rem);
}
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.section-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34rem);
  align-items: end;
}
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.96;
}
.module-map {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.module-map--business .module-node { min-height: 220px; }
.module-node {
  min-height: 260px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.module-node::before {
  content: "";
  position: absolute;
  inset: auto -12% 40% 48%;
  height: 1px;
  background: rgba(242,232,216,0.14);
  transform: rotate(-11deg);
}
.module-node--center { grid-column: span 5; min-height: 360px; }
.module-node--amber { grid-column: span 4; }
.module-node--cyan { grid-column: span 3; }
.module-node--green { grid-column: span 4; }
.module-node:nth-child(5) { grid-column: span 4; }
.module-node:nth-child(6) { grid-column: span 4; }
.module-node:nth-child(7) { grid-column: span 4; }
.module-node h3 { margin: 0.45rem 0 0.8rem; font-size: 1.3rem; }
.module-node--amber { box-shadow: 0 24px 90px rgba(215,154,61,0.12); }
.module-node--cyan { box-shadow: 0 24px 90px rgba(57,198,255,0.12); }
.module-node--green { box-shadow: 0 24px 90px rgba(122,240,193,0.11); }
.story-grid { display: grid; gap: 1.2rem; }
.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}
.story-row__text {
  padding: 1.2rem 0.4rem 1.2rem 0;
  border-top: 1px solid var(--line);
}
.story-row__text h3 { margin: 0.5rem 0 0.9rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
.story-row__text p { margin: 0; max-width: 40rem; line-height: 1.7; color: rgba(242,232,216,0.82); }
.story-row__panel { padding: 1.3rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; }
.story-row__panel a { text-decoration: underline; text-underline-offset: 0.2rem; }
.story-row__panel strong { margin-top: 1rem; font-size: 1.1rem; }
.story-row__image-wrap {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(242,232,216,0.08);
  background: linear-gradient(180deg, rgba(18,26,34,0.72), rgba(8,11,16,0.85));
  overflow: hidden;
}
.story-row__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 2.5rem;
}
.business-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.2rem;
}
.business-stage__visual {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(242,232,216,0.08);
  background: #05070a;
}
.business-stage__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.8) saturate(0.8); }
.business-stage__content { display: grid; align-content: space-between; gap: 1rem; }
.business-list { display: grid; gap: 1rem; }
.business-list__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.idea-layout { display: grid; gap: 1.5rem; }
.idea-layout__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.system-orbit {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.system-orbit::before,
.system-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(57,198,255,0.14);
  border-radius: 50%;
}
.system-orbit::before { width: min(78vw, 760px); height: min(78vw, 760px); }
.system-orbit::after { width: min(54vw, 520px); height: min(54vw, 520px); border-color: rgba(215,154,61,0.16); }
.system-orbit__core {
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.system-orbit__item {
  position: absolute;
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.system-orbit__item--1 { top: 8%; left: 50%; transform: translateX(-50%); }
.system-orbit__item--2 { top: 20%; right: 10%; }
.system-orbit__item--3 { top: 50%; right: 2%; transform: translateY(-50%); }
.system-orbit__item--4 { bottom: 16%; right: 14%; }
.system-orbit__item--5 { bottom: 8%; left: 50%; transform: translateX(-50%); }
.system-orbit__item--6 { bottom: 18%; left: 12%; }
.system-orbit__item--7 { top: 50%; left: 0; transform: translateY(-50%); }
.system-orbit__item--8 { top: 20%; left: 12%; }
.system-orbit__item--9 { top: 34%; left: 22%; }
.system-orbit__item--10 { top: 36%; right: 22%; }
.download-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}
.download-layout__actions {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.store-link {
  min-height: 62px;
  justify-content: flex-start;
  padding-inline: 1.3rem;
  font-size: 1rem;
}
.store-link--google { border-color: rgba(57,198,255,0.35); }
.store-link--apple { border-color: rgba(242,232,216,0.25); }
.store-link--rustore { border-color: rgba(122,240,193,0.28); }
.store-link--web,
.store-link--telegram { border-color: rgba(215,154,61,0.28); }
.link-river {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.2rem;
}
.link-river--files { margin-top: 0; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 2rem;
  padding: 2.2rem clamp(1.2rem, 3vw, 2rem) 5rem;
  border-top: 1px solid rgba(242,232,216,0.08);
  background: rgba(8,11,16,0.74);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.8rem 1.2rem;
}

.utility-hero { min-height: min(84vh, 860px); }
.utility-section {
  max-width: 1320px;
  margin-inline: auto;
}
.utility-section--dense { padding-top: clamp(3rem, 7vw, 5rem); }
.utility-note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(215,154,61,0.22);
  background: rgba(16,24,32,0.72);
  color: var(--text-dim);
  line-height: 1.65;
}
.tariff-table {
  border: 1px solid rgba(242,232,216,0.1);
  background: linear-gradient(180deg, rgba(18, 26, 34, 0.86), rgba(8, 11, 16, 0.86));
  box-shadow: var(--shadow);
}
.tariff-table__head,
.tariff-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 180px 140px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}
.tariff-table__head {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(242,232,216,0.1);
}
.tariff-table__row {
  border-bottom: 1px solid rgba(242,232,216,0.08);
}
.tariff-table__row:last-child { border-bottom: none; }
.tariff-table__row span,
.tariff-table__row strong { line-height: 1.55; }
.tariff-table__row strong {
  justify-self: end;
  color: var(--text);
}
.app-seo-shell {
  position: relative;
  z-index: 2;
}
body.app-shell-loaded .app-seo-shell {
  display: none;
}
.policy-source {
  padding: 1.4rem;
  border: 1px solid rgba(242,232,216,0.08);
  background: linear-gradient(180deg, rgba(18,26,34,0.76), rgba(8,11,16,0.84));
  box-shadow: var(--shadow);
}
.policy-source h4,
.policy-source h5 {
  margin: 1.6rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}
.policy-source h4:first-child,
.policy-source h5:first-child { margin-top: 0; }
.policy-source p,
.policy-source li {
  color: rgba(242,232,216,0.86);
  line-height: 1.7;
}
.policy-source ol {
  margin: 0 0 1.2rem 1.4rem;
}
.policy-source li {
  list-style: decimal;
  margin: 0 0 0.6rem;
}
.policy-source a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.mobile-dock {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 700ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-pointer .module-node:hover,
body.is-pointer .story-row__panel:hover,
body.is-pointer .status-panel:hover,
body.is-pointer .system-orbit__item:hover,
body.is-pointer .system-orbit__core:hover {
  border-color: rgba(242,232,216,0.22);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 1.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.hero-drift { animation: drift 18s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track,
  .hero-drift { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1100px) {
  .hero-scene__layout,
  .section-head--split,
  .business-stage,
  .download-layout,
  .site-footer,
  .story-row,
  .idea-layout__grid { grid-template-columns: 1fr; }
  .module-node--center,
  .module-node--amber,
  .module-node--cyan,
  .module-node--green,
  .module-node:nth-child(5),
  .module-node:nth-child(6),
  .module-node:nth-child(7) { grid-column: span 6; }
  .tariff-table__head,
  .tariff-table__row { grid-template-columns: 1fr 150px 110px; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.4rem;
  }
  .hero-scene__layout { gap: 1.2rem; }
  .display-title { font-size: clamp(3.5rem, 20vw, 7rem); }
  .module-map { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .system-orbit { min-height: 840px; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4.7rem; }
  .site-header { padding-inline: 1rem; }
  .hero-scene,
  .section { padding-inline: 1rem; }
  .hero-scene__photo { object-position: 58% center; }
  .status-column { grid-template-columns: 1fr; }
  .module-node,
  .story-row__panel,
  .status-panel,
  .download-layout__notes,
  .system-orbit__item,
  .system-orbit__core { box-shadow: 0 20px 60px rgba(0,0,0,0.24); }
  .module-map { grid-template-columns: 1fr; }
  .module-node--center,
  .module-node--amber,
  .module-node--cyan,
  .module-node--green,
  .module-node:nth-child(5),
  .module-node:nth-child(6),
  .module-node:nth-child(7) { grid-column: auto; }
  .system-orbit {
    display: grid;
    gap: 0.75rem;
    min-height: 0;
  }
  .system-orbit::before,
  .system-orbit::after { display: none; }
  .system-orbit__core,
  .system-orbit__item {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 1.1rem;
  }
  .system-orbit__core { padding: 1.3rem; }
  .tariff-table__head,
  .tariff-table__row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .tariff-table__head span:nth-child(2),
  .tariff-table__head span:nth-child(3) {
    display: none;
  }
  .tariff-table__row strong {
    justify-self: start;
  }
  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.55rem;
    background: rgba(8,11,16,0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(242,232,216,0.08);
  }
  .mobile-dock a {
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(242,232,216,0.08);
    font-size: 0.82rem;
    color: var(--text-dim);
  }
  .mobile-dock a.is-accent {
    border-color: rgba(215,154,61,0.32);
    color: var(--text);
  }
}
