:root {
  --bg: #ffffff;
  --ink: #1e2a36;
  --muted: #5a6b7a;
  --blue: #007bff;
  --blue-deep: #0d6efd;
  --green: #4a9d4a;
  --green-bright: #28a745;
  --line: rgba(30, 42, 54, 0.1);
  --hairline: rgba(30, 42, 54, 0.12);
  --pad: 20px;
  --max: 440px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--pad);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3498db 0%, #28a745 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.module-rule {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
  box-sizing: border-box;
}

.module-rule::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    #3498db 0%,
    #28a745 42%,
    rgba(30, 42, 54, 0.08) 42%
  );
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 90% 0%, rgba(0, 123, 255, 0.08), transparent 55%),
    #ffffff;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 20px var(--pad) 28px;
  display: flex;
  flex-direction: column;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 9vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #3498db 0%, #28a745 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.4vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18em;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28em;
  margin-bottom: 16px;
}

.hero-platforms,
.section-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.order-scheme {
  margin: 28px 0 4px;
  padding: 0;
  width: 100%;
}

.scheme-shell {
  position: relative;
  padding: 18px 14px 18px 22px;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(0, 123, 255, 0.03) 0%, transparent 28%),
    #fff;
}

.scheme-rail {
  position: absolute;
  left: 10px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg, #3498db 0%, #28a745 100%);
  opacity: 0.35;
  border-radius: 2px;
}

.scheme-stage {
  position: relative;
  margin-bottom: 4px;
}

.scheme-stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.scheme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.35);
  flex-shrink: 0;
  margin-left: -17px;
  position: relative;
  z-index: 1;
}

.scheme-stage:last-child .scheme-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.35);
}

.scheme-stage-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.scheme-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.scheme-diamond-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.scheme-diamond {
  width: 78px;
  height: 78px;
  background: linear-gradient(145deg, #fff 0%, #eaf4ff 100%);
  border: 2px solid var(--blue);
  border-radius: 8px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scheme-diamond-text {
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.scheme-fork,
.scheme-join {
  position: relative;
  height: 44px;
  margin: 0 auto;
  width: 72%;
  max-width: 240px;
}

.scheme-line {
  position: absolute;
  top: 0;
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, #3498db, rgba(30, 42, 54, 0.25));
  transform-origin: top center;
}

.scheme-line-left {
  left: 50%;
  transform: translateX(-50%) rotate(-28deg);
}

.scheme-line-right {
  left: 50%;
  transform: translateX(-50%) rotate(28deg);
}

.scheme-join .scheme-line {
  top: auto;
  bottom: 0;
  background: linear-gradient(0deg, #28a745, rgba(30, 42, 54, 0.25));
  transform-origin: bottom center;
}

.scheme-line-join-left {
  left: 50%;
  transform: translateX(-50%) rotate(28deg);
}

.scheme-line-join-right {
  left: 50%;
  transform: translateX(-50%) rotate(-28deg);
}

.scheme-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scheme-rect {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--blue);
  background: #fff;
}

.scheme-rect:last-child {
  border-left-color: #005bff;
}

.scheme-rect img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.scheme-rect-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheme-rect-copy strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.scheme-rect-copy span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.scheme-pipeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.scheme-stem {
  width: 2px;
  height: 16px;
  margin-left: 27px;
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.45), rgba(40, 167, 69, 0.45));
  flex-shrink: 0;
}

.scheme-step {
  display: grid;
  grid-template-columns: 36px 40px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px 12px 12px 10px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--blue);
  background: #fff;
  text-align: left;
}

.scheme-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue);
  letter-spacing: -0.02em;
  padding-top: 6px;
}

.scheme-step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background: #f7fafc;
}

.scheme-step-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.scheme-step-copy {
  min-width: 0;
  padding-top: 2px;
}

.scheme-step-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.scheme-step-copy > span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.scheme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.scheme-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 3px 7px;
  background: #fff;
}

.scheme-tag-ok {
  color: var(--green);
  border-color: rgba(40, 167, 69, 0.35);
}

.scheme-step-end {
  border-left-color: var(--green);
}

.scheme-step-end .scheme-step-num {
  color: var(--green);
}

.scheme-step-end .scheme-step-copy strong {
  color: var(--green);
}

.platform-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.section-platforms .platform-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost.dark {
  color: var(--ink);
  border-color: rgba(30, 42, 54, 0.16);
}

.hero-device {
  margin-top: 0;
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.phone {
  width: min(100%, 268px);
  background: #1a2330;
  border-radius: 22px;
  padding: 8px;
}

.phone-screen {
  background: #f5f7fb;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 12px 14px;
}

.fake-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-align: center;
  background: linear-gradient(135deg, #3498db 0%, #28a745 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fake-group {
  margin-bottom: 10px;
}

.fake-group:last-child {
  margin-bottom: 0;
}

.fake-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-align: left;
}

.fake-block {
  background: #fff;
  border: 1px solid rgba(30, 42, 54, 0.1);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 6px;
}

.fake-block:last-child {
  margin-bottom: 0;
}

.fake-block.accent {
  border-color: rgba(0, 123, 255, 0.35);
}

.fake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.fake-mp {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 36px var(--pad);
  background: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.section-text {
  font-size: 1.05rem;
  color: var(--muted);
}

.section-pain,
.section-flow,
.section-need,
.section-print,
.section-team,
.section-final {
  width: min(100%, var(--max));
  margin: 0 auto;
  background: transparent;
  border: none;
  max-width: var(--max);
}

.section-pain .section-text,
.section-flow .section-text {
  margin-bottom: 0;
}

.section-need .section-text {
  margin-bottom: 18px;
}

.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.need-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}

.need-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.need-item-text {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ===== Results / economy — без коробок ===== */
.results-section {
  --rs-text: #1a1a2e;
  --rs-muted: #4a5568;
  --rs-light: #718096;
  width: min(100%, var(--max));
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad);
  color: var(--rs-text);
  background: transparent;
  border: none;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.results-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--rs-text);
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.results-left h2 .week-highlight {
  color: #3656d4;
  font-weight: 800;
  font-size: calc(1em + 2px);
  background-image: linear-gradient(90deg, rgba(52, 152, 219, 0.14) 0%, rgba(40, 167, 69, 0.14) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.42em;
  background-position: 0 92%;
}

.results-left > p {
  font-size: 16px;
  color: var(--rs-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.result-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}

.result-card {
  padding: 16px 0;
  border: none;
  border-top: 1px solid var(--hairline);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.result-card:first-child {
  border-top: none;
  padding-top: 0;
}

.result-card .value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.result-card:nth-child(2) .value {
  white-space: nowrap;
}

.result-card .value.value-with-prefix {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.result-card .value.value-with-prefix .prefix-left {
  position: static;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.result-card:nth-child(1) .value { color: #1f9d5b; }
.result-card:nth-child(2) .value { color: #3656d4; }
.result-card:nth-child(3) .value { color: #0f7fd7; }

.result-card .title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--rs-text);
}

.result-card .desc {
  font-size: 14px;
  color: var(--rs-light);
  line-height: 1.4;
}

.results-right-column {
  display: grid;
  gap: 0;
  align-content: start;
}

.economy-panel {
  display: grid;
  gap: 0;
}

.economy-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--rs-text);
  margin-bottom: 6px;
  padding-left: 12px;
  border-left: 4px solid var(--green);
}

.economy-summary {
  padding: 0 0 16px;
  border: none;
  background: transparent;
  border-radius: 0;
}

.economy-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--rs-muted);
  margin-bottom: 4px;
}

.economy-summary-total {
  font-size: 17px;
  font-weight: 700;
  color: var(--rs-text);
}

.economy-summary-total .sum {
  color: #1f9d5b;
}

.economy-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  padding: 16px 0;
  border: none;
  border-top: 1px solid var(--hairline);
  background: transparent;
  border-radius: 0;
}

.economy-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--rs-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.economy-kpi {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #1f9d5b;
  font-family: var(--font-display);
}

.economy-row:nth-child(3) .economy-kpi {
  color: #3656d4;
}

.economy-row:nth-child(4) .economy-kpi {
  color: #0f7fd7;
}

.economy-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rs-text);
  margin-bottom: 4px;
}

.economy-subline {
  font-size: 13px;
  color: var(--rs-muted);
  margin-bottom: 4px;
}

.economy-desc {
  font-size: 13px;
  line-height: 1.35;
  color: var(--rs-muted);
}

.economy-conclusion {
  margin-top: 0;
  padding: 16px 0 0;
  border: none;
  border-top: 1px solid var(--hairline);
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--rs-text);
}

.flow-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: relative;
  padding-left: 0;
}

.flow-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.flow-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.flow-num {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  background: transparent;
  color: var(--blue);
  border: none;
  padding-top: 2px;
}

.flow-list li:nth-child(even) .flow-num {
  background: transparent;
  color: var(--green);
  border: none;
}

.flow-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.flow-body strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-body span {
  font-size: 0.95rem;
  color: var(--muted);
}

.section-visual {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.section-visual img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.section-final .section-text {
  color: var(--muted);
  margin-bottom: 22px;
}

.section-final .hero-cta {
  margin-bottom: 0;
}

.section-final .btn-primary {
  background: var(--green);
}

.section-final .btn-primary:hover {
  background: var(--green-bright);
}

.footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 36px var(--pad) 28px;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

.footer-note {
  margin-bottom: 16px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-weight: 600;
  color: var(--blue);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  opacity: 0.75;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px var(--pad) calc(10px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.28s ease;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise-in 0.7s ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.16s; }
.reveal:nth-child(3) { animation-delay: 0.28s; }
.reveal:nth-child(4) { animation-delay: 0.4s; }
.reveal:nth-child(5) { animation-delay: 0.52s; }
.reveal:nth-child(6) { animation-delay: 0.6s; }

.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-section.is-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-section {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .sticky-cta {
    transition: none;
  }
}

@media (min-width: 720px) {
  .hero-inner,
  .section,
  .results-section,
  .footer,
  .module-rule {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-cta {
    flex-direction: row;
  }

  .hero-cta .btn {
    flex: 1;
  }
}
