:root {
  --bg: #f4f0e8;
  --paper: #fffdfa;
  --ink: #111817;
  --muted: #68736f;
  --line: rgba(38, 47, 43, 0.13);
  --accent: #07936b;
  --accent-dark: #055a43;
  --gold: #c58b31;
  --blue: #2c6aa8;
  --yellow: #c6811b;
  --red: #b94a48;
  --shadow: 0 28px 90px rgba(20, 25, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(7, 147, 107, 0.11), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(197, 139, 49, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f3eb 0%, #f1ece2 52%, #f8f5ee 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.18;
  pointer-events: none;
  animation: floatAmbient 12s ease-in-out infinite;
}

.ambient-one {
  top: 12%;
  left: -180px;
  background: #07936b;
}

.ambient-two {
  right: -200px;
  bottom: 8%;
  background: #c58b31;
  animation-delay: -5s;
}

@keyframes floatAmbient {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -18px, 0) scale(1.08); }
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 235, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(22px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #07936b, #173f34 55%, #c58b31);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.header-cta,
.button {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.header-cta {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 28px rgba(18, 24, 22, 0.06);
}

.hero,
.pain,
.impossible,
.answers,
.custom,
.launch,
.price,
.lead-section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 54px;
}

.hero-copy,
.dashboard {
  position: relative;
  z-index: 5;
}

.hero-product {
  position: absolute;
  inset: 28px -20px 28px 43%;
  z-index: -1;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 240, 232, 0.98) 0%, rgba(244, 240, 232, 0.78) 24%, rgba(244, 240, 232, 0.1) 55%),
    radial-gradient(circle at 78% 30%, rgba(7, 147, 107, 0.3), transparent 26%),
    radial-gradient(circle at 72% 78%, rgba(197, 139, 49, 0.28), transparent 28%),
    linear-gradient(135deg, #19231f, #314035);
  box-shadow: 0 38px 120px rgba(19, 25, 22, 0.28);
}

.hero-product::before,
.hero-product::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-product::before {
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, black 42%, black 100%);
  opacity: 0.5;
}

.hero-product::after {
  z-index: 2;
  width: 520px;
  height: 520px;
  margin: auto 8% auto auto;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, rgba(131, 213, 188, 0.12), rgba(131, 213, 188, 0.55), rgba(197, 139, 49, 0.35), rgba(131, 213, 188, 0.12));
  filter: blur(8px);
  opacity: 0.62;
  animation: orbitGlow 18s linear infinite;
}

@keyframes orbitGlow {
  to { transform: rotate(360deg); }
}

.signal {
  position: absolute;
  z-index: 4;
  width: min(300px, 30vw);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 14px;
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  animation: signalFloat 7s ease-in-out infinite;
}

.signal span {
  display: block;
  color: #b8e9d9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.18;
}

.signal em {
  display: block;
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.72);
  font-style: normal;
  font-size: 14px;
}

.signal-call {
  top: 18%;
  right: 22%;
}

.signal-vk {
  top: 47%;
  right: 9%;
  animation-delay: -2.3s;
}

.signal-action {
  bottom: 13%;
  right: 27%;
  animation-delay: -4.6s;
}

@keyframes signalFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.flow-line {
  position: absolute;
  z-index: 3;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(131, 213, 188, 0.82), transparent);
  opacity: 0.72;
  animation: linePulse 3.6s ease-in-out infinite;
}

.line-one {
  top: 40%;
  right: 23%;
  width: 260px;
  transform: rotate(24deg);
}

.line-two {
  top: 64%;
  right: 25%;
  width: 300px;
  transform: rotate(-22deg);
  animation-delay: -1.3s;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.82; }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 72px);
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #2f3a36;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, #07936b, #046048);
  box-shadow: 0 18px 36px rgba(7, 147, 107, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  box-shadow: 0 22px 44px rgba(7, 147, 107, 0.34);
}

.microcopy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: cardFloat 7s ease-in-out infinite;
  justify-self: end;
  width: min(100%, 520px);
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(7, 147, 107, 0.18), rgba(197, 139, 49, 0.18));
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dashboard-label,
.metric span,
.issue p,
.price-note {
  margin: 0;
  color: var(--muted);
}

.dashboard-top strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #7a241f;
  background: #f7dfd8;
  font-size: 13px;
  font-weight: 760;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.metric,
.pain-grid div,
.answer-list div,
.steps div,
.price-lines div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.metric {
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.metric-money small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.check-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.68);
}

.check-control span {
  color: #59645f;
  font-size: 14px;
  font-weight: 760;
}

.check-control input {
  width: 130px;
  border: 1px solid rgba(38, 47, 43, 0.16);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 820;
  text-align: right;
}

.issue-list {
  display: grid;
  gap: 12px;
}

.issue {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.blue { background: var(--blue); }

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: 820px;
}

.pain,
.impossible,
.answers,
.custom,
.launch,
.price,
.lead-section {
  padding: 54px 0;
}

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

.pain-grid div {
  position: relative;
  min-height: 96px;
  padding: 18px;
  padding-top: 46px;
  font-weight: 720;
  box-shadow: 0 18px 44px rgba(26, 30, 27, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pain-grid div:hover,
.answer-list div:hover,
.steps div:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(26, 30, 27, 0.09);
}

.pain-grid div span {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #07936b, #c58b31);
}

.impossible {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.impossible-copy {
  max-width: 520px;
}

.impossible-copy p:not(.eyebrow) {
  color: #3c463f;
  font-size: 18px;
}

.automation-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  background:
    radial-gradient(circle at 74% 26%, rgba(44, 106, 168, 0.22), transparent 24%),
    radial-gradient(circle at 48% 52%, rgba(7, 147, 107, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.7));
  box-shadow: 0 28px 80px rgba(17, 24, 23, 0.12);
}

.automation-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.automation-map path {
  fill: none;
  stroke: rgba(7, 147, 107, 0.58);
  stroke-width: 3;
  stroke-dasharray: 10 12;
  animation: dashFlow 10s linear infinite;
}

.map-node,
.map-core {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 23, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 22px 56px rgba(17, 24, 23, 0.12);
  backdrop-filter: blur(16px);
  font-weight: 880;
}

.map-node {
  width: 116px;
  height: 70px;
}

.map-core {
  left: 50%;
  top: 50%;
  width: 158px;
  height: 158px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #07936b, #12382d);
  box-shadow: 0 26px 70px rgba(7, 147, 107, 0.28);
}

.map-core span {
  font-size: 42px;
  line-height: 1;
}

.map-core b {
  margin-top: -36px;
  font-size: 14px;
}

.map-node.call { left: 5%; top: 15%; }
.map-node.vk { left: 6%; top: 42%; }
.map-node.crm { left: 5%; bottom: 15%; }
.map-node.actions { right: 4%; top: 15%; }
.map-node.money {
  right: 4%;
  bottom: 15%;
  color: #251708;
  background: linear-gradient(135deg, #fff1c4, #d39b3f);
}

@keyframes dashFlow {
  to { stroke-dashoffset: -120; }
}

.answers {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.answer-list,
.steps,
.price-lines {
  display: grid;
  gap: 12px;
}

.answer-list div,
.steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  font-weight: 720;
}

.answer-list span,
.steps span {
  color: var(--accent-dark);
  font-weight: 800;
}

.custom-card,
.price,
.lead-section {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(7, 147, 107, 0.18), transparent 36%),
    linear-gradient(135deg, #111817, #1c2a24 58%, #27322b);
  color: #fffdf8;
  box-shadow: 0 30px 88px rgba(17, 24, 23, 0.18);
}

.custom-card {
  padding: clamp(26px, 5vw, 54px);
}

.custom-card p {
  max-width: 790px;
  color: #d9dfd8;
  font-size: 18px;
}

.custom-card strong {
  display: block;
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
}

.launch .steps {
  grid-template-columns: repeat(4, 1fr);
}

.launch .steps div {
  grid-template-columns: 1fr;
  min-height: 132px;
}

.price {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: clamp(26px, 5vw, 54px);
}

.price .eyebrow,
.custom-card .eyebrow,
.lead-section .eyebrow {
  color: #83d5bc;
}

.price-lines div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
}

.price-lines strong {
  white-space: nowrap;
}

.price-note {
  grid-column: 2;
  color: #d9dfd8;
}

.lead-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 54px;
  padding: clamp(26px, 5vw, 54px);
}

.lead-copy p:not(.eyebrow) {
  color: #d9dfd8;
  font-size: 18px;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 58px rgba(5, 16, 12, 0.18);
}

.lead-form label,
.lead-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #38423b;
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.lead-form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
}

.lead-form fieldset label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 580;
}

.lead-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.consent {
  color: var(--muted);
  font-size: 13px;
}

.consent a {
  color: var(--accent-dark);
}

.form-button {
  width: 100%;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status[data-state="success"] {
  color: var(--accent-dark);
}

.form-status[data-state="error"] {
  color: var(--red);
}

.footer {
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  background: var(--paper);
}

.legal {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.legal h1 {
  margin: 22px 0 24px;
  font-size: clamp(34px, 5vw, 54px);
}

.legal h2 {
  margin-top: 28px;
  font-size: 24px;
}

.legal p {
  color: #3c463f;
}

.back-link {
  color: var(--accent-dark);
  font-weight: 760;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .nav {
    display: none;
  }

  .hero,
  .answers,
  .impossible,
  .price,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-product {
    inset: 24px -18px auto -18px;
    height: 420px;
    opacity: 0.62;
  }

  .hero-product::before {
    background:
      linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  }

  .signal {
    width: 260px;
  }

  .signal-call { right: 17%; }
  .signal-vk { right: 4%; }
  .signal-action { right: 19%; }

  .price-note {
    grid-column: auto;
  }

  .pain-grid,
  .launch .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hero,
  .pain,
  .answers,
  .custom,
  .launch,
  .price,
  .lead-section,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    padding: 14px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-product {
    height: 360px;
    border-radius: 0 0 16px 16px;
  }

  .signal {
    display: none;
  }

  .lead {
    font-size: 18px;
  }

  .metric-grid,
  .pain-grid,
  .launch .steps {
    grid-template-columns: 1fr;
  }

  .price-lines div {
    display: grid;
    gap: 6px;
  }
}
