:root {
  --ink: oklch(0.2 0 0);
  --ink-head: oklch(0.32 0 0);
  --muted: oklch(0.55 0.01 250);
  --muted-soft: oklch(0.65 0.01 250);
  --accent: oklch(0.55 0.2 260);
  --accent-btn: oklch(0.62 0.18 260);
  --accent-btn-hover: oklch(0.56 0.19 260);
  --header: oklch(0.32 0.05 250 / 0.95);
  --surface: #fff;
  --surface-alt: oklch(0.98 0.005 250);
  --line: oklch(0.92 0.005 250);
  --ok: oklch(0.62 0.15 155);
  --danger: oklch(0.62 0.2 20);
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .stat-value {
  font-family: Unbounded, Inter, sans-serif;
  color: var(--ink-head);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 2rem;
  height: 68px;
}
.brand { font-size: 1.28rem; font-weight: 700; color: #fff; }
.brand em { font-style: normal; color: oklch(0.7 0.16 260); }
.site-nav { display: flex; gap: 1.9rem; margin-inline: auto; }
.site-nav a { color: oklch(0.85 0.01 250); font-size: 0.93rem; transition: color 0.15s; }
.site-nav a:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.4rem; color: #fff; margin-left: auto;
}
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 0.93rem; font-weight: 600;
  padding: 0.72rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-btn); color: #fff; }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero .wrap { position: relative; text-align: center; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  background: oklch(0.95 0.03 260); border: 1px solid oklch(0.88 0.05 260);
  font-size: 0.82rem; font-weight: 500; color: oklch(0.42 0.12 260);
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ok);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  font-weight: 700;
  margin: 1.6rem auto 0;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  margin: 1.5rem auto 0; max-width: 60ch;
  color: var(--muted); font-size: 1.03rem;
}
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Browser chrome for screenshots ---------- */

.mockup-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; background: var(--surface-alt); border-bottom: 1px solid var(--line);
}
.mockup-bar i { width: 11px; height: 11px; border-radius: 999px; display: block; }
.mockup-bar i:nth-child(1) { background: #f87171; }
.mockup-bar i:nth-child(2) { background: #fbbf24; }
.mockup-bar i:nth-child(3) { background: #34d399; }
.mockup-bar span { margin-left: 0.6rem; font-size: 0.8rem; color: var(--muted); }

.mockup-view { overflow: hidden; }
.mockup-view img { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */

section { padding: 5.5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}

.icon-badge {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 1.3rem;
}
.icon-badge.tone-danger { background: oklch(0.95 0.04 20); color: var(--danger); }
.icon-badge.tone-ok { background: oklch(0.94 0.05 155); color: var(--ok); }
.icon-badge.tone-accent { background: oklch(0.95 0.03 260); color: var(--accent); }

/* Problem / solution */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.duo h3 { font-size: 1.35rem; font-weight: 700; }
.duo p { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.marks { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.marks li { display: flex; gap: 0.65rem; font-size: 0.92rem; color: oklch(0.42 0.01 250); }
.marks svg { flex: 0 0 auto; margin-top: 0.28rem; }

/* Roles */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trio h3 { font-size: 1.2rem; font-weight: 700; }
.trio .role-sub { margin-top: 0.4rem; font-size: 0.83rem; color: var(--muted-soft); }
.arrows { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.arrows li { display: flex; gap: 0.7rem; font-size: 0.9rem; color: oklch(0.42 0.01 250); }
.arrows li::before { content: "›"; color: var(--accent); font-weight: 700; line-height: 1.4; }

/* Feature blocks */

.feature-list { display: grid; gap: 4.5rem; }
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.feature:nth-child(even) { direction: rtl; }
.feature:nth-child(even) > * { direction: ltr; }
.feature-shot {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-md);
}
.feature-shot .mockup-view { height: 420px; }
.feature-shot .mockup-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature h3 { font-size: 1.55rem; font-weight: 700; }
.feature .feature-sub { margin-top: 0.45rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.feature > div > p:not(.feature-sub) { margin-top: 1.1rem; color: var(--muted); font-size: 0.96rem; }

/* Comparison */

.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--surface-alt); text-align: left; padding: 1.05rem 1.5rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
thead th:last-child { color: var(--accent); }
tbody td { padding: 1.05rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.93rem; }
tbody td:first-child { font-weight: 500; }
tbody td:nth-child(2) { color: var(--muted-soft); }
.up {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: oklch(0.94 0.05 155); color: var(--ok); margin-left: 0.5rem; vertical-align: -0.3rem;
}

/* Migration timeline */

.timeline { display: grid; gap: 1.2rem; max-width: 900px; margin-inline: auto; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1.5rem; align-items: start; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1px solid oklch(0.88 0.05 260); color: var(--accent);
  font-family: Unbounded, sans-serif; font-weight: 700; font-size: 0.9rem;
  position: relative; margin-left: 6px;
}
.step:not(:last-child) .step-num::after {
  content: ""; position: absolute; top: 46px; left: 50%; width: 1px; height: calc(100% + 1.2rem - 46px + 46px);
  background: var(--line);
}
.step-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.step-body h3 { display: inline; font-size: 1.15rem; font-weight: 700; }
.step-tag {
  display: inline-block; margin-left: 0.7rem; padding: 0.16rem 0.6rem; border-radius: 999px;
  background: oklch(0.95 0.03 260); color: var(--accent); font-size: 0.76rem; font-weight: 600;
  vertical-align: 0.12rem;
}
.step-body p { margin-top: 0.7rem; color: var(--muted); font-size: 0.92rem; }

/* Results */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.stat-value { font-size: 2.1rem; font-weight: 700; }
.stat-value small { font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-left: 0.15rem; }
.stat p { margin-top: 0.5rem; font-size: 0.87rem; color: var(--muted); }

/* Pricing */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.85rem;
}
.price-card.featured {
  border-color: oklch(0.78 0.08 260);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Выгодно";
  position: absolute; top: -0.7rem; right: 1.2rem;
  padding: 0.2rem 0.7rem; border-radius: 999px;
  background: var(--accent-btn); color: #fff;
  font-size: 0.72rem; font-weight: 600;
}
.price-tag {
  margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
}
.price-card h3 { font-size: 1.2rem; font-weight: 700; }
.price-value {
  font-family: Unbounded, Inter, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem); font-weight: 700;
  color: var(--ink-head); line-height: 1.2;
}
.price-value small {
  display: block; margin-top: 0.35rem;
  font-family: Inter, sans-serif; font-size: 0.82rem; font-weight: 500; color: var(--muted);
}
.price-card > p:not(.price-tag) {
  margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1;
}
.price-card .btn { margin-top: 0.6rem; }

/* CTA */

.cta { background: oklch(0.97 0.02 260 / 0.5); }
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
.cta > .wrap > div > p { margin-top: 1.1rem; color: var(--muted); }
.cta-perks { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; }
.cta-perks li { display: flex; gap: 0.55rem; align-items: center; font-size: 0.9rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.4rem; }
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.4rem; color: oklch(0.42 0.01 250); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.55 0.2 260 / 0.12);
}
.form-note { margin-top: 0.9rem; text-align: center; font-size: 0.78rem; color: var(--muted-soft); }
.form-note a { color: var(--accent); }
.form-status { margin-top: 0.9rem; font-size: 0.88rem; text-align: center; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

/* Footer */

.site-footer { background: var(--surface-alt); border-top: 1px solid var(--line); padding: 3.5rem 0 0; }
.site-footer .brand { color: var(--ink-head); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.footer-grid h4 { font-size: 0.95rem; font-weight: 600; margin: 0 0 1rem; color: var(--ink-head); }
.footer-grid p { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); max-width: 34ch; }
.footer-links { display: grid; gap: 0.65rem; font-size: 0.89rem; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-qr {
  display: block; width: 128px; height: 128px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.subscribe { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.subscribe input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 0.86rem;
  padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.subscribe input:focus { outline: 0; border-color: var(--accent); }
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: oklch(0.94 0.005 250); color: var(--muted); transition: background 0.15s, color 0.15s;
}
.socials a:hover { background: var(--accent-btn); color: #fff; }
.footer-bottom {
  margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.83rem; color: var(--muted-soft);
}
.footer-bottom nav { display: flex; gap: 1.6rem; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .duo, .trio, .feature, .cta .wrap, .pricing { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { direction: ltr; gap: 2rem; }
  .feature-list { gap: 3.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta .wrap { gap: 2.5rem; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), 100% - 2rem); }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 3.5rem; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem;
    background: oklch(0.32 0.05 250); margin-inline: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .site-header .header-cta { display: none; }
  .stats, .footer-grid { grid-template-columns: 1fr; }
  .feature-shot .mockup-view { height: 260px; }
  .table-card { overflow-x: auto; }
  table { min-width: 620px; }
}
