:root {
  --accent: #1B7F4E;
  --accent-hover: #156B40;
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --text: #1C1917;
  --text-2: #57534E;
  --dark: #0F0F0F;
  --dark-2: #1A1A1A;
  --dark-text: #EDEDED;
  --dark-text-2: #9CA3AF;
  --radius: 12px;
  --container: min(1180px, 92vw);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  animation: fadeIn .45s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }

.bg {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(1200px 500px at 0% -10%, rgba(27,127,78,.10), transparent 60%),
              radial-gradient(1000px 440px at 95% 0%, rgba(0,0,0,.06), transparent 62%),
              linear-gradient(130deg, #fafaf9, #f4f6f2, #fafaf9);
  background-size: 180% 180%;
  animation: drift 24s ease infinite;
}
@keyframes drift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.grain::after {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

.floaters { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(27,127,78,.18); filter: blur(.3px);
  animation: float 16s linear infinite;
}
.dot:nth-child(1){left:10%;top:22%;animation-duration:20s}
.dot:nth-child(2){left:78%;top:18%;animation-duration:18s}
.dot:nth-child(3){left:88%;top:72%;animation-duration:24s}
.dot:nth-child(4){left:15%;top:78%;animation-duration:21s}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,15,15,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: white; font-weight: 700; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #9CA3AF; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.container { width: var(--container); margin: 0 auto; }
section { padding: 64px 0; }
@media(min-width:1024px){ section { padding: 104px 0; } }

.reveal { opacity: 0; transform: translateY(24px); transition: .62s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 600; font-size: 15px; border-radius: 10px; padding: 12px 22px; transition: all .2s ease;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,127,78,.3); }

/* Hero */
.hero { background: linear-gradient(180deg,#0f0f0f,#121212 60%, #111); color: var(--dark-text); overflow: hidden; padding-top: 120px !important; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media(min-width:980px){ .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.06; max-width: 14ch; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--dark-text-2); max-width: 52ch; margin-bottom: 26px; }

.phone-wrap { perspective: 1200px; display: flex; justify-content: center; }
.phone {
  width: min(360px, 86vw); padding: 10px; border-radius: 44px; background: #080808;
  box-shadow: 0 22px 58px rgba(0,0,0,.45); transform: rotateY(-13deg) rotateX(5deg);
  transition: transform .35s ease;
}
.phone:hover { transform: rotateY(-8deg) rotateX(3deg) translateY(-4px); }
.phone-inner { border-radius: 36px; overflow: hidden; border: 1px solid #2f2f2f; background: #121212; position: relative; }
.notch { position:absolute; top:7px; left:50%; transform:translateX(-50%); width:118px; height:25px; border-radius:0 0 14px 14px; background:#000; z-index:2; }
.telegram { margin-top: 22px; background: linear-gradient(180deg,#1c2732,#141b22); min-height: 520px; }
.tg-head { display:flex; align-items:center; gap:10px; padding: 14px; background: rgba(20,25,32,.92); color:#fff; }
.tg-avatar { width:30px; height:30px; border-radius:50%; background: linear-gradient(140deg,#1b7f4e,#2ca05f); display:grid; place-items:center; font-weight:700; font-size:14px; }
.chat { display:grid; gap:8px; padding: 12px; }
.bubble { max-width: 86%; font-size: 12.6px; border-radius: 14px; padding: 9px 11px; line-height: 1.35; }
.u { margin-left:auto; background:#2b5278; color:#eaf4ff; border-bottom-right-radius:4px; }
.b { background:#23313d; color:#e7edf3; border-bottom-left-radius:4px; }
.t { display:block; text-align:right; opacity:.65; margin-top:4px; font-size:10px; }

/* Sections */
.intro h2, .split h2, .cta h2, .faq-section h2 { font-size: clamp(34px,5.2vw,58px); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.intro p, .split p { max-width: 62ch; color: var(--text-2); font-size: 18px; }

.strip { display:grid; gap:28px; margin-top: 34px; }
@media(min-width:900px){ .strip { grid-template-columns: repeat(3,1fr); } }
.metric strong { font-size: clamp(34px,5vw,56px); letter-spacing:-.03em; display:block; line-height:1; }
.metric span { color: var(--text-2); font-size: 15px; }

.product { background: var(--dark); color: var(--dark-text); }
.product-grid { display:grid; gap:24px; align-items:center; }
@media(min-width:980px){ .product-grid{ grid-template-columns: 1.25fr .9fr; gap:36px; } }
.dashboard {
  background: #171b1f; border-radius: 16px; padding: 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,.25);
}
.dash-top { display:flex; justify-content:space-between; color:#d6dde5; margin-bottom: 12px; }
.mini-kpi { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom: 12px; }
.mini-kpi div { background:#20262c; border-radius:10px; padding:10px; }
.mini-kpi span{font-size:11px;color:#9fb0be;display:block}
.mini-kpi strong{font-size:20px;letter-spacing:-.02em}
.bars { display:flex; align-items:flex-end; gap:8px; height:170px; background:#1f252b; border-radius: 12px; padding: 14px; }
.bar{flex:1;background:linear-gradient(180deg,#2da462,#1b7f4e);border-radius:6px 6px 2px 2px;transition:.2s ease}
.bar:hover{transform:scaleY(1.05)}
.bar:nth-child(1){height:28%}.bar:nth-child(2){height:44%}.bar:nth-child(3){height:31%}.bar:nth-child(4){height:58%}.bar:nth-child(5){height:72%}.bar:nth-child(6){height:53%}.bar:nth-child(7){height:82%}.bar:nth-child(8){height:61%}

.split-grid { display:grid; gap:36px; align-items:center; }
@media(min-width:980px){ .split-grid { grid-template-columns: 1fr 1fr; } }
.flowline { margin-top: 18px; display:grid; gap:14px; }
.line-item { background: rgba(27,127,78,.08); padding: 12px 14px; border-radius: 10px; color: #244133; font-weight: 500; }

/* How steps */
.how-steps { display: grid; gap: 12px; }
.how-step { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #2f4c3c; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* FAQ */
.faq-section { background: var(--bg); }
.faq-grid { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: white; border-radius: 12px; padding: 0;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.faq-item p a { color: var(--accent); }

/* CTA */
.cta { text-align: center; background: linear-gradient(180deg,#0f0f0f,#121212); color: var(--dark-text); }
.cta p { color: var(--dark-text-2); max-width: 58ch; margin: 0 auto 22px; font-size: 18px; }

/* Footer */
.footer { background: #080808; color: #666; padding: 32px 0; text-align: center; font-size: 14px; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media(max-width:700px){
  .telegram{min-height:460px}
  .mini-kpi{grid-template-columns:1fr}
  .bars{height:130px}
  .nav-links a:not(.btn) { display: none; }
}
