/* ==========================================================================
   Воронка CRM — landing page
   ========================================================================== */

body.landing { background: var(--surface-2); }

/* --- Top nav --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(243, 245, 242, .82);
  border-bottom: 1px solid var(--line-2);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .15s var(--ease); }
.nav__links a:hover { color: var(--brand); }
.nav__cta { margin-left: 1.2rem; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* --- Hero ------------------------------------------------------------ */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__title { max-width: 15ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: var(--forest); text-wrap: balance; }
.hero__lead { margin-top: 1.5rem; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 42ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* --- Hero funnel (signature) ----------------------------------------- */
.funnel-hero {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.funnel-hero__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem;
}
.funnel-hero__cap .num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.fh { display: flex; flex-direction: column; gap: 6px; }
.fh__row {
  display: grid; grid-template-columns: 7.2rem 1fr 4.6rem;
  align-items: center; gap: .9rem;
}
.fh__label { font-size: .86rem; color: var(--ink-2); }
.fh__bar {
  justify-self: center;
  width: var(--w); height: 44px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--forest) calc(100% - var(--i) * 17%), var(--brand-100));
  color: #fff;
  animation: fh-grow .9s var(--ease) both;
  animation-delay: calc(.15s + var(--i) * .11s);
}
.fh__bar b { font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.fh__row:nth-child(n+4) .fh__bar { color: var(--forest); }
.fh__row--won .fh__bar { background: var(--saffron); color: var(--ink); }
.fh__val { text-align: right; font-size: .88rem; font-weight: 600; color: var(--ink); }
.funnel-hero__foot {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-2);
  font-size: .9rem; color: var(--muted);
}
.funnel-hero__foot b { color: var(--forest); font-weight: 700; }
@keyframes fh-grow {
  from { width: 8%; opacity: 0; }
  to   { width: var(--w); opacity: 1; }
}
@media (max-width: 520px) {
  .funnel-hero { padding: 1.2rem 1rem 1rem; }
  .fh__row { grid-template-columns: 5.6rem 1fr 3.8rem; gap: .5rem; }
  .fh__label, .fh__val { font-size: .78rem; }
  .fh__bar { height: 38px; }
}

/* --- Section shells -------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--surface); }
.section--flush { padding-top: 0; }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: .9rem; color: var(--ink-2); font-size: 1.08rem; }

/* --- "What is CRM": before / after ----------------------------------- */
.what { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.what__intro p { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.08rem; max-width: 44ch; }
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.compare__col { padding: 1.7rem 1.6rem; }
.compare__col h3 { font-size: 1rem; margin-bottom: 1.1rem; }
.compare__col li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.45; }
.compare__col li + li { margin-top: .9rem; }
.compare__col li::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 1rem; height: 1rem; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.compare__col--before { background: var(--surface-3); color: var(--muted); }
.compare__col--before h3 { color: var(--ink-2); }
.compare__col--before li::before {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  color: var(--slate);
}
.compare__col--after { background: var(--forest); color: #e4efe9; }
.compare__col--after h3 { color: #fff; }
.compare__col--after li::before {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  color: var(--saffron);
}
@media (max-width: 900px) { .what { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }

/* --- Features: ruled 4-up, no card chrome ---------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 1.8rem 1.6rem 0 0; }
.feature + .feature { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.feature__ico { width: 28px; height: 28px; color: var(--brand); margin-bottom: 1.4rem; }
.feature h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: .55rem; letter-spacing: -.02em; }
.feature p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; border-top: 0; }
  .feature, .feature + .feature { padding: 1.6rem 1.4rem 1.6rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .feature:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* --- How it works: connected timeline -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 22px; right: calc((100% - 4.5rem) / 4 - 22px); top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--brand-100), var(--brand) 70%, var(--saffron));
}
.step { position: relative; }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: var(--surface-2); color: var(--forest); border: 2px solid var(--brand);
  margin-bottom: 1.2rem; position: relative;
}
.step:last-child .step__n { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: .95rem; max-width: 30ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--brand-100), var(--brand) 70%, var(--saffron)); }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; }
  .step__n { grid-row: span 2; margin-bottom: 0; }
}

/* --- CTA band -------------------------------------------------------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  border-radius: var(--r-xl);
  background: var(--forest);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.4rem) clamp(1.5rem, 5vw, 3.4rem);
}
.cta h2 { color: #fff; }
.cta p { margin-top: .9rem; max-width: 52ch; color: #cfe2d8; font-size: 1.05rem; }

/* --- Footer ---------------------------------------------------------- */
.footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer .brand { font-size: .95rem; color: var(--ink); }
.footer .brand__mark { width: 26px; height: 26px; }
