:root {
  --navy: #1a1640;
  --purple: #5b4dff;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --orange: #f57c00;
  --green: #22c55e;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f7f8fc;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(37, 22, 90, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 20px;
}
.logo-name { font-weight: 800; font-size: 13px; letter-spacing: .02em; line-height: 1.15; }
.logo-sub { font-size: 10px; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: #334155; }
.nav a:hover { color: var(--violet); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none; font-family: inherit;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.btn-ghost {
  padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid #5b4dff; color: #4f46e5; background: transparent; font-size: 13px;
}
.btn-primary {
  padding: 16px 34px; border-radius: 999px; color: #fff; background: var(--grad);
  font-size: 14px; box-shadow: 0 12px 30px rgba(79,70,229,.35);
}
.btn-primary:hover { filter: brightness(1.06); }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.12; letter-spacing: -.03em; text-transform: uppercase;
}
.hero p { margin: 0 0 28px; font-size: 18px; color: #475569; font-weight: 500; line-height: 1.5; max-width: 540px; }
.stars { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stars b { color: #f59e0b; letter-spacing: 2px; font-size: 18px; }

.hero-visual { position: relative; min-height: 460px; display: grid; place-items: center; }
.blob {
  position: absolute; width: 420px; height: 420px; border-radius: 42% 58% 62% 38% / 42% 38% 62% 58%;
  background: linear-gradient(135deg, #4f46e5, #a855f7 70%);
  transform: rotate(-12deg);
}
.phone {
  position: relative; width: 248px; background: #0b1020;
  border: 8px solid #111827; border-radius: 36px; transform: rotate(8deg);
  box-shadow: 24px 30px 60px rgba(15,23,42,.35);
  overflow: hidden;
}
.phone:before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 10px; background: #000; border-radius: 10px; z-index: 2;
}
.phone-screen { background: #fff; }
.phone-screen img { width: 100%; height: 310px; object-fit: cover; }
.phone-meta { padding: 10px 12px 16px; }
.pill-red {
  display: inline-block; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px; margin-bottom: 6px;
}
.phone-meta h3 { margin: 0; font-size: 13px; }
.phone-meta span { font-size: 11px; color: #64748b; }

/* Problem */
.problem { padding: 72px 0; background: var(--bg); text-align: center; }
.section-title {
  margin: 0 0 40px; font-size: clamp(24px, 3vw, 32px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.02em;
}
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.icon-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.icon-wrap {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: #eef2ff; color: #4f46e5; display: grid; place-items: center;
}
.icon-card h3 { margin: 0 0 8px; font-size: 18px; }
.icon-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.punch { margin: 40px 0 0; font-size: 22px; font-weight: 900; text-transform: uppercase; }

/* Cases */
.cases { padding: 80px 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: #0f172a; border-radius: 18px; padding: 12px; color: #fff;
  box-shadow: var(--shadow);
}
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shot { position: relative; border-radius: 12px; overflow: hidden; background: #1e293b; }
.shot img { width: 100%; height: 210px; object-fit: cover; }
.tag {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
}
.tag-before { background: #334155; color: #cbd5e1; }
.tag-after { background: #4f46e5; color: #fff; }
.metrics { display: flex; gap: 6px; padding: 10px 4px 4px; }
.metric {
  flex: 1; background: #14532d; color: #bbf7d0; font-size: 11px; font-weight: 800;
  text-align: center; padding: 6px 4px; border-radius: 8px;
}

/* Quiz */
.quiz { padding: 70px 0; background: var(--bg); }
.quiz-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95);
  color: #fff; border-radius: 26px; padding: 44px 40px;
}
.quiz h2 { margin: 0 0 22px; font-size: 26px; line-height: 1.3; }
.q-label { display: block; font-size: 12px; color: #c4b5fd; font-weight: 700; margin-bottom: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.opt {
  border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.opt.active { background: #fff; color: #4c1d95; border-color: #fff; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress { flex: 1; height: 6px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin-right: 12px; }
.progress > span { display: block; height: 100%; background: #a78bfa; width: 25%; }
.step-n { font-size: 12px; font-weight: 700; color: #c4b5fd; min-width: 70px; }
.quiz input[type=text], .quiz input[type=tel], .cta-form input {
  width: 100%; border-radius: 12px; border: 0; padding: 12px 14px; font: inherit; margin-bottom: 10px;
}
.pdf {
  text-align: center; background: rgba(255,255,255,.08); border-radius: 18px; padding: 28px 18px;
}
.pdf-stack {
  width: 92px; height: 110px; margin: 0 auto 12px; position: relative;
}
.pdf-page {
  position: absolute; inset: 0; background: #fff; border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.pdf-page:nth-child(1) { transform: rotate(-8deg) translate(-8px, 6px); }
.pdf-page:nth-child(2) { transform: rotate(6deg) translate(8px, 4px); background: #ddd6fe; }
.pdf-page:nth-child(3) { background: linear-gradient(#fff, #eef2ff); display: grid; place-items: center; color: #4f46e5; font-weight: 900; font-size: 18px; }

/* Tariffs */
.tariffs { padding: 80px 0; text-align: center; }
.tariff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.tariff {
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px;
  padding: 36px 26px; display: flex; flex-direction: column; position: relative;
}
.tariff.hit {
  border: 2px solid #4f46e5; transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(79,70,229,.18);
}
.badge-hit {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff;
  font-size: 10px; font-weight: 800; padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.tariff h3 { margin: 0 0 14px; font-size: 22px; text-transform: uppercase; text-align: center; }
.tariff.hit h3 { color: #4f46e5; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 20px; }
.tariff li { padding: 9px 0; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 14px; font-weight: 600; }
.price {
  text-align: center; font-size: 28px; font-weight: 900; margin: 8px 0 16px;
}
.tariff .btn { width: 100%; padding: 12px; border-radius: 999px; font-size: 13px; }

/* Reviews */
.reviews { padding: 70px 0; background: var(--bg); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: left;
}
.review p { color: #334155; font-size: 14px; line-height: 1.5; }
.who { display: flex; align-items: center; gap: 10px; }
.ava {
  width: 36px; height: 36px; border-radius: 50%; background: #e0e7ff; color: #4f46e5;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.dots { text-align: center; margin-top: 22px; color: var(--muted); font-weight: 700; letter-spacing: 4px; }

/* CTA */
.cta { padding: 70px 0 80px; }
.cta-box {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95); color: #fff;
  border-radius: 26px; padding: 44px 40px;
}
.cta h2 { margin: 0 0 22px; font-size: 28px; text-transform: uppercase; line-height: 1.2; }
.messengers { display: flex; gap: 12px; flex-wrap: wrap; }
.msg { padding: 12px 18px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.tg { background: #0284c7; }
.wa { background: #16a34a; }
.cta-form { background: #fff; color: var(--text); border-radius: 18px; padding: 28px; }
.cta-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #475569; }
.cta-form input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font: inherit;
}
.form-ok { display: none; color: #166534; font-weight: 700; text-align: center; padding: 18px 8px; }

footer {
  border-top: 1px solid var(--line); padding: 28px 0;
}
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { text-decoration: none; font-weight: 600; }

@media (max-width: 960px) {
  .nav, .header .btn-ghost { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
  }
  .burger { display: block; }
  .hero-grid, .quiz-box, .cta-box, .cards-3, .case-grid, .tariff-grid, .review-grid {
    grid-template-columns: 1fr;
  }
  .tariff.hit { transform: none; }
  .hero-visual { min-height: 380px; }
}


/* ===== v1.2: same mockup, tighter craft ===== */
.btn {
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 16px 32px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(180deg, #6d5cff 0%, #4f46e5 55%, #6d28d9 100%);
  font-size: 13px;
  letter-spacing: .06em;
  box-shadow:
    0 10px 24px rgba(79, 70, 229, .32),
    inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(79, 70, 229, .42);
}
.btn-ghost {
  padding: 10px 20px;
  border-radius: 14px;
  border: 1.5px solid #6366f1;
  color: #4f46e5;
  background: #fff;
  font-size: 12px;
  letter-spacing: .05em;
}
.btn-ghost:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}
.icon-card { transition: transform .2s ease, box-shadow .2s ease; }
.icon-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(79,70,229,.08); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  background: #0f172a;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  transition: transform .2s ease;
}
.work:hover { transform: translateY(-4px); }
.work img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}
.work .metrics { display: flex; gap: 6px; padding: 10px 2px 4px; }
.work .metric {
  flex: 1;
  background: #14532d;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
}
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin: -24px 0 28px; font-weight: 600; }
.old { text-decoration: line-through; color: #94a3b8; font-size: 14px; font-weight: 700; display: block; text-align: center; margin-bottom: -4px; }

@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ===== v1.2.1 logo + clip/contrast fixes ===== */
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: none; box-shadow: none; padding: 0; overflow: visible;
}
.logo-mark img, .logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-name { font-size: 15px; font-weight: 800; letter-spacing: -.02em; text-transform: none; }
.logo-sub { font-size: 11px; color: #6366f1; font-weight: 700; letter-spacing: 0; }

.phone { overflow: hidden; }
.phone-screen { display: flex; flex-direction: column; background: #fff; }
.phone-screen img { width: 100%; height: 268px; object-fit: cover; object-position: center top; flex-shrink: 0; }
.phone-meta { padding: 12px 14px 18px; flex-shrink: 0; }
.phone-meta h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.3; color: #0f172a; }
.phone-meta .muted { display: block; font-size: 11px; color: #64748b; }
.phone-meta .pill-red {
  display: inline-block;
  background: #4f46e5;
  color: #fff !important;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}

.tariffs { overflow: visible; padding-top: 96px; }
.tariff-grid { overflow: visible; }
.tariff { overflow: visible; }
.tariff.hit {
  overflow: visible;
  padding-top: 48px;
}
.badge-hit {
  top: 14px;
  z-index: 2;
  color: #fff;
  background: #f97316;
  font-size: 11px;
  padding: 5px 14px;
}

/* ===== v1.3 clip-proof phone, badge, blog ===== */
.phone { width: 250px; overflow: hidden; transform: rotate(7deg); }
.phone-screen { position: relative; display: block; background: #111; }
.phone-screen img {
  width: 100%; height: auto; aspect-ratio: 3/4;
  object-fit: cover; object-position: center top; display: block;
}
.pill-overlay {
  position: absolute; left: 12px; bottom: 14px; z-index: 3;
  background: #4f46e5; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15,23,42,.28);
}

.tariffs { overflow: visible; padding-top: 72px; }
.tariff-grid { overflow: visible; align-items: stretch; }
.tariff { overflow: visible; }
.tariff.hit {
  transform: none;
  overflow: visible;
  padding-top: 28px;
  border: 2px solid #4f46e5;
  box-shadow: 0 20px 40px rgba(79,70,229,.16);
}
.badge-hit {
  position: static;
  transform: none;
  display: inline-block;
  align-self: center;
  margin: 0 auto 14px;
  top: auto; left: auto;
  background: #f97316; color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}

.blog-page { padding: 56px 0 80px; }
.blog-kicker {
  margin: 0 0 8px; color: #4f46e5; font-size: 12px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.blog-h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.blog-lead { margin: 0 0 36px; max-width: 620px; color: #64748b; font-size: 17px; line-height: 1.5; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(79,70,229,.12); }
.blog-cover { display: block; background: linear-gradient(135deg, #eef2ff, #fae8ff); min-height: 180px; }
.blog-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-cover-fallback {
  display: grid; place-items: center; height: 180px;
  color: #4f46e5; font-weight: 900; font-size: 28px; letter-spacing: .04em;
}
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body time { color: #94a3b8; font-size: 12px; font-weight: 700; }
.blog-card-body h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.blog-card-body h2 a { text-decoration: none; color: #0f172a; }
.blog-card-body h2 a:hover { color: #4f46e5; }
.blog-card-body p { margin: 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.blog-more { margin-top: auto; padding-top: 10px; color: #4f46e5; font-weight: 800; font-size: 13px; text-decoration: none; }
.blog-empty {
  background: #f8fafc; border: 1px dashed #c7d2fe; border-radius: 20px;
  padding: 48px 32px; text-align: center;
}
.blog-empty h2 { margin: 0 0 10px; }
.blog-empty p { color: #64748b; margin: 0 0 22px; }

.article-page { padding: 48px 0 80px; }
.article-wrap { max-width: 760px; }
.blog-back { display: inline-block; margin-bottom: 18px; color: #4f46e5; font-weight: 700; text-decoration: none; }
.article-h1 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.2; }
.article-hero { border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-body { font-size: 17px; line-height: 1.7; color: #1e293b; }
.article-body p { margin: 0 0 16px; }
.article-cta {
  margin-top: 40px; padding: 28px; border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); text-align: center;
}
.article-cta p { font-weight: 800; margin: 0 0 14px; }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
}
