/* Директ Контроль — fluid, non-blocky design */

:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --text: #f4f4f6;
  --text-muted: #8b8b9e;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.4);
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 24px;
  --radius-sm: 12px;
  --font: 'Onest', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--accent-light) !important;
}

.btn-demo {
  background: var(--accent);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-demo:hover {
  background: var(--accent-light);
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s;
}
.menu-toggle::before { top: 0; }
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle::after { bottom: 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #4f46e5;
  bottom: 10%;
  left: -100px;
  animation-delay: -7s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  top: 50%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-block { width: 100%; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 500px;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero-visual { display: none; }
}

/* Flow sections — fluid, non-blocky */
.flow-section {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 2rem;
  overflow: hidden;
}

.flow-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.flow-content.flow-reverse {
  margin-left: auto;
  margin-right: 10%;
}

.flow-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.flow-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
}

.flow-dark { background: var(--bg); }
.flow-light { background: var(--bg-soft); }
.flow-accent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.flow-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.flow-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -150px;
  right: -150px;
}

.flow-shape-2 {
  width: 400px;
  height: 400px;
  background: #7c3aed;
  bottom: -100px;
  left: -100px;
}

.flow-shape-3 {
  width: 450px;
  height: 450px;
  background: var(--accent);
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
}

.flow-shape-4 {
  width: 350px;
  height: 350px;
  background: #4f46e5;
  top: -80px;
  right: 10%;
}

/* Extra section */
.extra-section {
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.extra-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.extra-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.extra-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Pricing */
.pricing-section {
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  background: var(--bg);
}

.pricing-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.pricing-intro h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.pricing-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.price-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.price-featured {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 40px var(--accent-glow);
}

.price-featured .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.price-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price {
  margin-bottom: 1.5rem;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price .unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-card li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* CTA section */
.cta-section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 2rem;
  overflow: hidden;
}

.cta-bg .blob-cta {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(120px);
  opacity: 0.2;
}

.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.cta-form-wrap h2,
.cta-register h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-form-wrap p,
.cta-register p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.callback-form input,
.callback-form textarea {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
  color: var(--text-muted);
}

.callback-form input:focus,
.callback-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form-message.success { color: #34d399; }
.form-message.error { color: #f87171; }

@media (max-width: 768px) {
  .cta-grid { grid-template-columns: 1fr; }
  .menu-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}
