/* ===== Rosstrah — Design Tokens =====
   Brand tokens now live in the shared design system:
   /landing/_design/rosstrah/tokens.css  (linked before this file).
   Do NOT redeclare brand tokens here — edit tokens.css instead. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ===== Accessibility: visible focus ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.lp-hero :focus-visible,
.lp-exchange :focus-visible,
.lp-ctaband :focus-visible,
.rc-track :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Manrope', system-ui, sans-serif;
  margin: 0;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1200px) {
  .container { padding-left: 0; padding-right: 0; }
}

/* ===== Badge / Pill ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  line-height: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-btn);
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--grad);
  display: inline-block;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -27px;
  height: 2px;
  background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.sec-white { background: var(--surface); }
.sec-bg { background: var(--bg); }
.sec-alt { background: var(--surface-alt); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head .badge { margin-bottom: 18px; }
.sec-head h2 {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.sec-head p {
  color: var(--text-2);
  font-size: 18px;
  margin: 16px 0 0;
}

/* ===== Image placeholder ===== */
.imgph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #eef2f8 0 12px, #e6ecf5 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.imgph-label {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background: rgba(255,255,255,0.7);
  padding: 5px 10px;
  border-radius: 6px;
}
.imgph.has-cover { background: none; }
.imgph.has-cover svg { width: 100%; height: 100%; }

/* ===== Article cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #c7d6e8;
}
.card .imgph { height: 200px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .badge { align-self: flex-start; }
.card h3 {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card .excerpt {
  color: var(--text-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.card-meta {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; flex: none; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== Category filter tabs ===== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
}
.tab {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  cursor: pointer;
  transition: all .15s ease;
}
.tab:hover { border-color: #b9cbe2; color: var(--text); }
.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== Featured ===== */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.featured .imgph { min-height: 380px; }
.featured-body { padding: 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.featured-body h2 { font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; }
.featured-body .excerpt { color: var(--text-2); font-size: 16px; margin: 0; }
.featured-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-muted); margin-top: 6px;
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.page-link {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  padding: 0 12px;
  transition: all .15s ease;
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link:disabled { opacity: .4; cursor: not-allowed; }

/* ===== Newsletter ===== */
.newsletter-card { text-align: center; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 28px auto 14px;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,94,255,0.12); }
.newsletter-note { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== Footer (единый футер основного сайта) ===== */
.site-footer { background: var(--footer-bg); color: #cbd5e1; }
.site-footer__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 48px 0 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-org { color: #fff; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.footer-reg { color: var(--footer-text); font-size: 13px; margin: 0 0 8px; }
.footer-accr { color: var(--footer-text); font-size: 12px; line-height: 1.5; margin: 0 0 8px; max-width: 560px; }
.footer-desc { color: var(--footer-text); font-size: 13px; line-height: 1.6; margin: 0; max-width: 560px; }
.footer-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.footer-contacts a { color: var(--footer-text); font-size: 14px; text-decoration: none; }
.footer-contacts a:hover { color: #fff; }
.site-footer__nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; padding: 40px 0 44px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { margin: 0 0 4px; color: #fff; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.footer-col a { color: var(--footer-text); font-size: 13px; line-height: 1.4; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); }
.site-footer__bottom p { color: var(--footer-text); font-size: 13px; margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--footer-text); font-size: 13px; text-decoration: none; }
.footer-bottom-links a:hover, .footer-bottom-links a:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 1000px) {
  .site-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__info { flex-direction: column; }
  .footer-contacts { align-items: flex-start; }
}
@media (max-width: 640px) {
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Article page ===== */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 14px; color: var(--text-muted);
  padding: 28px 0 0;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs .sep { color: #cbd5e1; }
.breadcrumbs .current { color: var(--text-muted); }

.article-header { padding: 28px 0 40px; }
.article-header h1 {
  font-weight: 800; font-size: 40px; line-height: 1.12;
  letter-spacing: -0.03em; max-width: 800px; margin: 18px 0 22px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.article-meta .avatar { width: 32px; height: 32px; font-size: 13px; }
.share { display: flex; gap: 8px; margin-left: auto; }
.share button {
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer; font-size: 13px;
  font-family: 'Manrope', sans-serif; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.share button:hover { border-color: var(--primary); color: var(--primary); }

.hero-image { border-radius: var(--r-card); overflow: hidden; height: 420px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 0;
}

/* Article body typography */
.article-body { font-size: 15px; line-height: 1.7; color: var(--text); }
.article-body > * { max-width: 760px; }
.article-body h2 {
  font-weight: 700; font-size: 28px; letter-spacing: -0.02em;
  margin: 44px 0 16px; scroll-margin-top: 96px;
}
.article-body h3 { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 32px 0 12px; scroll-margin-top: 96px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body a { font-weight: 500; }
.article-body strong { font-weight: 600; }

.article-body blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
  color: var(--text-2); font-size: 16px; font-style: italic;
}

/* Highlight boxes */
.callout {
  margin: 26px 0; padding: 20px 22px 20px 24px;
  border-radius: 14px; border-left: 4px solid; font-size: 14.5px;
}
.callout-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.callout p { margin: 0; }
.callout.tip { background: #ecfdf5; border-color: #10b981; }
.callout.tip .callout-title { color: #059669; }
.callout.warning { background: #fffbeb; border-color: #f59e0b; }
.callout.warning .callout-title { color: #d97706; }
.callout.important { background: var(--accent); border-color: var(--primary); }
.callout.important .callout-title { color: var(--primary); }

/* Table */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.article-body th {
  background: var(--primary-light); color: var(--text);
  font-family: 'Manrope', sans-serif; font-weight: 700;
  text-align: left; padding: 13px 16px;
}
.article-body td { padding: 13px 16px; border-top: 1px solid var(--border); }
.article-body tbody tr:nth-child(even) { background: var(--bg); }

/* Inline image + caption */
figure { margin: 28px 0; }
figure .imgph { height: 360px; border-radius: var(--r-card); }
figcaption { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* Inline CTA */
.cta-inline {
  background: var(--accent); border-radius: var(--r-card);
  padding: 32px; margin: 40px 0;
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
}
.cta-inline h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.cta-inline p { margin: 0; color: var(--text-2); font-size: 15px; }
.cta-inline .btn { flex: none; }

/* TOC */
.toc {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card);
}
.toc h4 {
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
  margin-bottom: 14px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.toc a {
  display: block; font-size: 14px; color: var(--text-2);
  padding: 8px 0 8px 14px; border-left: 2px solid transparent;
  transition: all .15s ease; line-height: 1.4;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 500; }

/* Author block */
.author-block {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; margin: 48px 0 0; max-width: 760px;
}
.author-block .avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 50%; }
.author-block .name { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 17px; }
.author-block .role { font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.author-block .bio { font-size: 14px; color: var(--text-2); margin: 0; }

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .featured { grid-template-columns: 1fr; }
}

/* ============================================
   HOMEPAGE
   ============================================ */

/* ===== Hero ===== */
.hero {
  background: var(--grad);
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: .6;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff; font-size: 13px; font-weight: 600;
  font-family: 'Manrope', sans-serif;
  padding: 7px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.chip .tick {
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; flex: none;
}
.hero h1 {
  color: #fff; font-weight: 800; font-size: 48px;
  line-height: 1.08; letter-spacing: -0.03em;
}
.hero-sub {
  color: rgba(255,255,255,0.85); font-size: 18px;
  margin: 20px 0 32px; max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.hero-proof {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.9); font-size: 14px; margin-top: 28px;
}
.hero-proof .pi {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}

/* Dashboard mockup */
.hero-visual { position: relative; }
.dash {
  background: #fff; border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15,23,42,0.28);
  padding: 24px; position: relative; z-index: 2;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-user { display: flex; align-items: center; gap: 10px; }
.dash-user .avatar { width: 38px; height: 38px; font-size: 14px; }
.dash-user .nm { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; }
.dash-user .rl { font-size: 12px; color: var(--text-muted); }
.dash-dots { display: flex; gap: 5px; }
.dash-dots span { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; }
.balance-card {
  background: var(--grad); border-radius: 16px; padding: 20px; color: #fff; margin-bottom: 16px;
}
.balance-card .lbl { font-size: 12px; opacity: .85; }
.balance-card .val { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin-top: 4px; }
.balance-card .btn { margin-top: 14px; width: 100%; padding: 11px; font-size: 14px; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
}
.stat .lbl { font-size: 12px; color: var(--text-muted); }
.stat .val { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 22px; margin-top: 4px; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; padding-top: 6px; }
.dash-bars .bar { flex: 1; background: var(--primary-light); border-radius: 5px 5px 0 0; }
.dash-bars .bar.hi { background: var(--primary); }
.float-note {
  position: absolute; z-index: 3;
  background: #fff; border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.18);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.float-note .ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.float-note .ftxt .ft { font-family:'Manrope',sans-serif; font-weight:700; font-size:14px; }
.float-note .ftxt .fs { font-size: 11px; color: var(--text-muted); }
.float-note.fn1 { top: -22px; right: -18px; }
.float-note.fn1 .ic { background: #ecfdf5; color: #10b981; }
.float-note.fn2 { bottom: 30px; left: -34px; }
.float-note.fn2 .ic { background: var(--accent); color: var(--primary); }

/* ===== Partner logos ===== */
.logos-strip {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  padding: 56px 0;
}
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 40px; margin-top: 28px;
}
.logo-pill {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px;
  color: #94a3b8; letter-spacing: -0.01em;
  opacity: .75; transition: opacity .2s, color .2s;
  filter: grayscale(1);
}
.logo-pill:hover { opacity: 1; color: var(--text-2); }
.center-badge { text-align: center; }

/* ===== Steps ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-card);
  position: relative; transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-num {
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--primary); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 24px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step-card h3 { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-2); margin: 0; }
.center-cta { text-align: center; margin-top: 44px; }

/* ===== Comparison ===== */
.compare {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  max-width: 920px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card);
}
.compare .ch { padding: 22px 24px 16px; font-family: 'Manrope', sans-serif; }
.compare .ch.feature { background: var(--surface); }
.compare .ch.direct { text-align: left; background: #F8FAFC; color: var(--text-2); }
.compare .ch.ross {
  text-align: left; background: #fff; color: var(--text);
  position: relative; padding-top: 28px;
  border-left: 1.5px solid #DCE8FF;
}
.compare .ch.ross::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--grad);
}
.compare .ch.ross h3 { color: var(--primary); }
.compare .ch h3 { font-size: 17px; font-weight: 700; color: inherit; }
.compare .ch .sub { font-size: 12px; opacity: .8; margin-top: 3px; }
.best-badge {
  position: absolute; top: 16px; right: 18px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.compare .cell {
  padding: 15px 24px; border-top: 1px solid var(--border);
  font-size: 14px; display: flex; align-items: center;
}
.compare .cell.feature { font-weight: 500; color: var(--text); }
.compare .cell.direct { justify-content: flex-start; color: var(--text-2); background: #FAFBFD; }
.compare .cell.ross { justify-content: flex-start; font-weight: 600; color: var(--text); background: #F3F8FF; border-left: 1.5px solid #DCE8FF; }
.compare .cell .x {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text-2);
}
.compare .cell .x::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: #eef2f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.compare .cell.ross .ck {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-right: 9px;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
  display: inline-flex; box-shadow: 0 2px 6px rgba(16,185,129,0.35);
}
.compare .cell .v { color: var(--primary); font-weight: 800; }

/* ===== Comparison: mobile (2 колонки: метка-строка на всю ширину + два значения рядом) ===== */
@media (max-width: 560px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare .ch.feature { display: none; }
  .compare .ch { padding: 16px 14px 12px; }
  .compare .ch h3 { font-size: 14px; }
  .compare .ch .sub { font-size: 11px; }
  .compare .cell {
    padding: 11px 14px; font-size: 13px;
    align-items: flex-start; line-height: 1.4;
    overflow-wrap: normal; word-break: normal;
    border-top: none;
  }
  /* метка-строка — подзаголовок группы на всю ширину */
  .compare .cell.feature {
    grid-column: 1 / -1;
    background: var(--surface);
    font-family: 'Manrope', sans-serif; font-weight: 700;
    font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 14px 5px;
    border-top: 1px solid var(--border);
  }
  .compare .cell.feature:first-of-type { border-top: none; }
  .compare .cell .x { gap: 6px; align-items: flex-start; }
  .compare .cell .x::before { margin-top: 1px; }
  .compare .cell.ross .ck { width: 18px; height: 18px; margin-right: 6px; margin-top: 1px; background-size: 11px; }
  .compare .cell .v { white-space: normal; }
  .best-badge { top: 12px; right: 10px; padding: 3px 8px; font-size: 10px; }
}

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 30px; box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px;
}
.stars { color: var(--star); font-size: 16px; letter-spacing: 2px; }
.testi-card .quote { font-size: 15px; color: var(--text); line-height: 1.6; flex: 1; }
.testi-foot { display: flex; align-items: center; gap: 12px; }
.testi-foot .avatar { width: 44px; height: 44px; font-size: 16px; }
.testi-foot .nm { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; }
.testi-foot .mt { font-size: 12px; color: var(--text-muted); }
.earn-badge {
  background: #ecfdf5; color: #059669; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 13px; padding: 6px 12px;
  border-radius: var(--r-pill); align-self: flex-start;
}

/* ===== Calculator ===== */
.calc-card {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 36px;
}
.calc-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.calc-field { display: flex; flex-direction: column; gap: 7px; }
.calc-field label { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 13px; color: var(--text-2); }
.calc-field select {
  border: 1px solid var(--border); border-radius: var(--r-btn);
  padding: 13px 16px; font-family: 'Inter', sans-serif; font-size: 15px;
  background: var(--surface); color: var(--text); cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.calc-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,94,255,0.12); }
.calc-note { text-align: center; color: var(--text-muted); font-size: 14px; margin: 22px 0 0; }
.calc-result {
  margin-top: 24px; background: var(--accent); border-radius: 16px;
  padding: 22px; text-align: center; display: none;
}
.calc-result.show { display: block; }
.calc-result .rl { font-size: 14px; color: var(--text-2); }
.calc-result .rv { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px; color: var(--primary); margin-top: 4px; letter-spacing: -0.02em; }

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(180deg, #1E5EFF 0%, #14B8D4 100%);
  text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.13) 1.4px, transparent 1.4px);
  background-size: 26px 26px; opacity: .5;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-weight: 800; font-size: 40px; letter-spacing: -0.025em; }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 18px; margin: 16px 0 32px; }
.final-cta .hero-actions { justify-content: center; }
.section-link { text-align: center; margin-top: 36px; }
.section-link a { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 38px; }
  .steps-grid, .features-grid, .testi-grid { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .float-note.fn2 { left: 0; }
  .float-note.fn1 { right: 0; }
}

/* ===== Header: touch targets + mobile nav ===== */
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.header-actions a[href^="tel"] { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) {
  .main-nav { display: none; }
}
/* On narrow phones the header phone link + CTA collide with the logo —
   drop the phone line (still reachable in CTA band, sticky CTA and footer). */
@media (max-width: 560px) {
  .header-actions a[href^="tel"] { display: none; }
  .header-inner { gap: 12px; }
  .logo { font-size: 20px; }
  .header-actions .btn-sm { padding: 9px 14px; }
}
@media (max-width: 380px) {
  .header-actions .btn-sm { padding: 9px 12px; font-size: 13px; }
}
