/* ═══════════════════════════════════════════════════════════════
   Кузнецов Системс — Premium Styles + WOW Animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg: #07101c;
  --bg2: #0c1827;
  --card: #101f31;
  --line: #233650;
  --text: #f4f8ff;
  --muted: #9fb0c7;
  --accent: #55d7c8;
  --accent2: #8b7cff;
  --white: #fff;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
  --glass: rgba(16,31,49,.6);
  --glass-border: rgba(85,215,200,.12);
}

/* ── Reset & Base ──────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', Inter, Manrope, Arial, sans-serif;
  background: radial-gradient(circle at 80% 0, #122d42 0, transparent 36%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* ── Glass Card Effect ─────────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

/* ── Scroll Reveal Animations ──────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }

/* ── Shine Sweep Button Effect ─────────────────────────────── */
.shine-effect {
  position: relative;
  overflow: hidden;
}
.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 45%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.18) 55%, transparent 60%);
  transform: skewX(-25deg);
  animation: shine-sweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%, 70%, 100% { left: -80%; }
  30% { left: 150%; }
}

/* ── Glow Hover for Ghost Button ───────────────────────────── */
.glow-hover {
  transition: box-shadow .35s, border-color .35s, transform .25s;
}
.glow-hover:hover {
  box-shadow: 0 0 24px rgba(85,215,200,.25), 0 0 60px rgba(85,215,200,.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Pulse Badge Dot ───────────────────────────────────────── */
.pulse-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent); transform: scale(1); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(85,215,200,.3); transform: scale(1.3); }
}

/* ── Floating Glow (Hero) ──────────────────────────────────── */
.floating-glow {
  animation: float-glow 6s ease-in-out infinite;
}
@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}

/* ── Tilt Card (Dashboard) ─────────────────────────────────── */
.tilt-card {
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
}
.tilt-card:hover {
  transform: rotate(-2deg) scale(1.02) translateY(-8px);
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 60px rgba(85,215,200,.06);
}

/* ── Deal Cards Cascade Animation ──────────────────────────── */
.deal-animated-1 { animation: deal-pop .5s .3s both; }
.deal-animated-2 { animation: deal-pop .5s .5s both; }
.deal-animated-3 { animation: deal-pop .5s .7s both; }
.deal-animated-4 { animation: deal-pop .5s .9s both; }
@keyframes deal-pop {
  0% { opacity: 0; transform: translateY(16px) scale(.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Status Dot Pulse ──────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 4px;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Chart Wave Animation ──────────────────────────────────── */
.chart-wave {
  position: absolute;
  left: 5%; right: 5%; bottom: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: skewY(-10deg);
  box-shadow: 0 0 20px var(--accent);
  animation: chart-pulse 3s ease-in-out infinite;
}
@keyframes chart-pulse {
  0%, 100% { opacity: .7; box-shadow: 0 0 12px var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(85,215,200,.15); }
}

/* ── Card Link ─────────────────────────────────────────────── */
.card-link {
  color: var(--accent);
  font-weight: 800;
  display: inline-block;
  margin-top: 6px;
  transition: transform .2s, color .2s;
}
.card-link:hover {
  transform: translateX(4px);
  color: #8e8cff;
}

/* ── Contact Link ──────────────────────────────────────────── */
.contact-link {
  display: block;
  margin: 9px 0;
  color: #dce8f6;
  transition: color .2s;
}
.contact-link:hover {
  color: var(--accent);
}

/* ── Dashboard Tag ─────────────────────────────────────────── */
.dashboard-tag {
  color: var(--muted);
  font-size: 12px;
}

/* ══════════════════════════════════════════════════════════════
   Original Layout Styles (cleaned up & enhanced)
   ══════════════════════════════════════════════════════════════ */

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,16,28,.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s;
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand img {
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .22em;
}
.nav {
  display: flex;
  gap: 26px;
  color: #c9d5e5;
  font-size: 14px;
}
.nav a {
  position: relative;
  transition: color .25s;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}
.nav a:hover, .nav a.active {
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 21px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #4baaf7);
  color: #041018;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(85,215,200,.18);
  transition: transform .25s, box-shadow .3s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(85,215,200,.28);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.small {
  padding: 11px 17px;
  font-size: 14px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 90px 0 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(85,215,200,.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  background: rgba(85,215,200,.07);
}
h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 24px 0 24px;
}
h1 span, h2 span {
  background: linear-gradient(90deg, var(--accent), #8e8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 42px;
}
.proof-card {
  padding: 18px;
  border-radius: 16px;
  transition: transform .3s, border-color .3s;
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85,215,200,.3);
}
.proof-card b {
  display: block;
  font-size: 18px;
}
.proof-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Visual / Dashboard ────────────────────────────────────── */
.visual {
  position: relative;
  min-height: 500px;
}
.glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85,215,200,.25), rgba(139,124,255,.08) 45%, transparent 70%);
  filter: blur(10px);
}
.dashboard {
  position: absolute;
  inset: 44px 0 30px 30px;
  border: 1px solid #2a405a;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(18,37,57,.96), rgba(8,18,30,.97));
  box-shadow: var(--shadow);
  padding: 24px;
  transform: rotate(-2deg);
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-logo img {
  width: 58px; height: 58px;
  border-radius: 14px;
}
.status {
  font-size: 12px;
  color: var(--accent);
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.col {
  background: #0b1726;
  border: 1px solid #20344d;
  border-radius: 14px;
  padding: 13px;
}
.col small { color: var(--muted); }
.deal {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #14263a;
  font-size: 11px;
  border: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.deal:hover {
  border-color: var(--accent);
  background: rgba(85,215,200,.05);
}
.chart {
  height: 115px;
  margin-top: 20px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(85,215,200,.15), transparent),
              repeating-linear-gradient(90deg, transparent 0 49px, rgba(255,255,255,.04) 50px);
  position: relative;
  overflow: hidden;
}

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 84px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(32px, 4.3vw, 52px);
  line-height: 1.08;
  margin: 8px 0;
}
.section-head p {
  max-width: 520px;
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
}

/* ── Cards Grid ────────────────────────────────────────────── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 26px;
  border-radius: 20px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(85,215,200,.3);
  box-shadow: 0 20px 50px rgba(85,215,200,.06);
}
.icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(85,215,200,.09);
  color: var(--accent);
  font-weight: 900;
}
.card h3 { font-size: 21px; margin: 18px 0 9px; }
.card p, .card li { color: var(--muted); font-size: 14px; }
.card ul { padding-left: 18px; margin: 14px 0 0; }

/* ── Band Section ──────────────────────────────────────────── */
.band {
  background: linear-gradient(120deg, #101f31, #132b40);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Steps ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 25px;
  border-radius: 18px;
  transition: transform .35s, border-color .3s;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(85,215,200,.3);
}
.step b {
  color: var(--accent);
  font-size: 13px;
}
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ── Partner Section ───────────────────────────────────────── */
.partner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.partner-card {
  padding: 30px;
  border-radius: 24px;
  background: #fff !important;
  color: #182133;
  border: none !important;
  transition: transform .35s;
}
.partner-card:hover {
  transform: translateY(-6px);
}
.partner-card img {
  width: 120px;
  border-radius: 22px;
}
.partner-card .level {
  display: inline-flex;
  margin-top: 18px;
  background: #f7c38c;
  padding: 6px 11px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}
.partner-card a {
  color: #00a8e8;
  transition: color .2s;
}
.partner-card a:hover { color: var(--accent); }

/* ── Checks List ───────────────────────────────────────────── */
.checks { display: grid; gap: 13px; }
.check {
  padding: 16px 18px;
  border-radius: 14px;
  transition: transform .3s, border-color .3s;
}
.check:hover {
  transform: translateX(6px);
  border-color: rgba(85,215,200,.3);
}
.check::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 10px;
}

/* ── Contact Section ───────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 35px;
}
.contact-box {
  padding: 28px;
  border-radius: 22px;
}

/* ── Form ──────────────────────────────────────────────────── */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 28px;
  border-radius: 22px;
}
.form label {
  font-size: 12px;
  color: var(--muted);
}
.form input,
.form textarea,
.form select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(7,19,33,.7);
  color: #fff;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(85,215,200,.12);
}
.form textarea,
.form .full,
.form .consent { grid-column: 1/-1; }
.consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
}
.consent input { width: auto; margin-top: 4px; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}
.legal { max-width: 650px; }

/* ── Subpages ──────────────────────────────────────────────── */
.subhero { padding: 76px 0 48px; }
.subhero h1 { max-width: 900px; }
.service-table { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.service-row {
  display: flex; gap: 18px; padding: 22px;
  border: 1px solid var(--line); border-radius: 17px;
  background: #0b1726;
}
.service-row b { color: var(--accent); font-size: 13px; }
.service-row h3 { margin: 0 0 7px; }
.service-row p { margin: 0; color: var(--muted); font-size: 14px; }
.note {
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: rgba(85,215,200,.06);
  color: #c9d8e8;
}

/* ── Form Status ───────────────────────────────────────────── */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-status {
  min-height: 24px;
  font-size: 14px;
  font-weight: 700;
}
.form-status.success { color: #65d68c; }
.form-status.error { color: #ff7d7d; }

/* ── Mobile Navigation Toggle ──────────────────────────────── */
.mobile { display: none; }

/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav, .header .btn.small { display: none; }
  .mobile { display: block; }
  .hero, .partner, .contact { grid-template-columns: 1fr; }
  .visual { min-height: 420px; }
  .grid3, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .service-table { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 26px, 1180px); }
  .hero { padding-top: 58px; }
  .proof, .grid3, .steps { grid-template-columns: 1fr; }
  .visual { min-height: 350px; }
  .dashboard { inset: 25px 0 15px 0; padding: 16px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .form > * { grid-column: 1; }
  .header-inner { height: 68px; }
  .brand img { width: 42px; height: 42px; }
}
