/* ========================================
   MLTOOLS.TECH - Glass-morphism Design
   Blue → Purple → Cyan gradient accents
   ======================================== */

/* === БАЗА === */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
}

body { 
  background: #0a0a0f; 
  color: #e5e5e5; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  font-size: 16px; 
  line-height: 1.6; 
  overflow-x: hidden; 
  min-height: 100vh;
}

/* === КОНТЕЙНЕР === */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
  width: 100%; 
}

/* === СЕКЦИИ === */
section { 
  padding: 100px 0; 
  position: relative; 
}

section::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b5cf6;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px; 
  color: #737373; 
  max-width: 640px; 
  margin-top: 16px;
  line-height: 1.7;
}

/* === HEADER === */
.header {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header .container {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header nav { 
  display: flex; 
  gap: 32px; 
  align-items: center; 
}

/* Header links - white */
.header a,
.header a:link,
.header a:visited,
.header a:active {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.header a:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* Partners and Cabinet links - always white */
.header a[href="partners.html"],
.header a[href="partners.html"]:link,
.header a[href="partners.html"]:visited,
.header a[href="partners.html"]:active,
.header a[href="cabinet.html"],
.header a[href="cabinet.html"]:link,
.header a[href="cabinet.html"]:visited,
.header a[href="cabinet.html"]:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.header a[href="partners.html"]:hover,
.header a[href="cabinet.html"]:hover {
  color: #ffffff !important;
  opacity: 0.8;
}

/* Nav menu specific styles */
.header nav a {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  position: relative;
}

.header nav a.active {
  color: #ffffff;
}

.header nav a::after {
  content: ''; 
  position: absolute; 
  bottom: -4px; 
  left: 0;
  width: 0; 
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.3s;
}

.header nav a:hover::after { 
  width: 100%; 
}

.nav-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

/* === HERO === */
.hero {
  height: calc(100vh - 80px);
  min-height: auto; 
  padding-top: 100px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 13px;
  color: #a3a3a3;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero .container {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 40px; 
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); 
  font-weight: 700;
  line-height: 1.15; 
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px; 
  color: #a3a3a3; 
  margin: 16px 0 20px; 
  max-width: 480px; 
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #737373;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: #737373;
}

/* Hero glow effects */
.hero-glow-1 {
  position: absolute; 
  width: 600px; 
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  right: -100px; 
  top: 30%; 
  pointer-events: none; 
  z-index: 0;
}

.hero-glow-2 {
  position: absolute; 
  width: 400px; 
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  right: 100px; 
  bottom: 10%; 
  pointer-events: none; 
  z-index: 0;
}

/* Particles canvas */
.particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Hero animation container */
.hero-animation {
  position: relative;
  z-index: 2;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Flow diagram SVG */
.flow-svg {
  width: 100%;
  height: 100%;
}

.flow-node {
  fill: rgba(255,255,255,0.03);
  stroke: url(#gradient-blue-purple);
  stroke-width: 1.5;
}

.flow-line {
  stroke: rgba(59,130,246,0.3);
  stroke-width: 1.5;
  fill: none;
}

.flow-line-animated {
  stroke: url(#gradient-blue-purple);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.flow-line-animated.animate {
  animation: drawLine 1.5s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.flow-dot {
  fill: #3b82f6;
}

.flow-text {
  fill: #e5e5e5;
  font-size: 13px;
  font-weight: 500;
  text-anchor: middle;
}

.flow-sublabel {
  fill: #737373;
  font-size: 11px;
  text-anchor: middle;
}

/* === КАРТОЧКИ (GLASS) === */
.card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12), 0 0 60px rgba(139,92,246,0.06);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.7;
}

/* === СЕТКИ КАРТОЧЕК === */
.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

/* === КНОПКИ === */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff; 
  padding: 10px 24px; 
  border-radius: 10px;
  font-weight: 500; 
  font-size: 14px; 
  border: none; 
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59,130,246,0.4);
}

.btn-secondary {
  background: transparent; 
  color: #e5e5e5;
  padding: 10px 24px; 
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  font-weight: 500; 
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 20px rgba(139,92,246,0.1);
}

.btn-text {
  font-size: 13px;
  color: #ffffff;
  transition: color 0.2s ease;
}

/* Header buttons */
.header .btn-primary {
  padding: 8px 20px;
  font-size: 13px;
}

/* === БЕЙДЖИ === */
.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; 
  padding: 8px 20px;
  font-size: 13px; 
  color: #a3a3a3; 
  font-weight: 500;
  margin-bottom: 20px;
}

/* Trust items pulse animation */
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #737373;
  position: relative;
}

.trust-item::before {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  opacity: 0.08;
  animation: trustPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes trustPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.15; }
}

/* === H2 === */
section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); 
  font-weight: 600;
  line-height: 1.2; 
  color: #fff;
}

/* === DATA HUB === */
.data-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hub-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59,130,246,0.4);
  border-radius: 16px;
  padding: 20px 32px;
  text-align: center;
}

.hub-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.hub-desc {
  font-size: 13px;
  color: #737373;
}

.hub-arrow {
  color: #3b82f6;
}

.hub-arrow svg {
  width: 24px;
  height: 24px;
}

/* === STEP CARDS === */
.step-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 8px;
}

.step-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.7;
}

/* === TIMELINE === */
.timeline {
  position: relative;
}

.timeline-track {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
}

.timeline-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 1.5s ease;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-top: 48px;
}

.timeline-dot {
  position: absolute;
  top: 16px;
  left: 0;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
  transform: scale(1.3);
}

.timeline-day {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.7;
}

.timeline-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  font-size: 14px;
  color: #737373;
  backdrop-filter: blur(8px);
}

/* === RESULTS === */
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.result-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}

.metric-value {
  font-size: clamp(2rem, 4vw, 2.8rem); 
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  transition: text-shadow 0.5s ease;
}

.metric-value.counted {
  text-shadow: 0 0 30px rgba(59,130,246,0.3), 0 0 60px rgba(139,92,246,0.15);
}

.metric-label {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.5;
  margin-bottom: 8px;
}

.metric-range {
  font-size: 12px;
  color: #737373;
}

.results-note {
  font-size: 14px;
  color: #737373;
  text-align: center;
}

/* === CASE CARDS === */
.case-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.case-card:hover::after {
  opacity: 1;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12), 0 0 60px rgba(139,92,246,0.06);
}

.case-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.case-industry {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  margin-bottom: 4px;
}

.case-company {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.case-geo {
  font-size: 13px;
  color: #737373;
}

.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-metric {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-metric-value {
  font-size: 15px;
  font-weight: 600;
  color: #22c55e;
  min-width: 60px;
}

.case-metric-label {
  font-size: 13px;
  color: #737373;
}

/* === ТАБЛИЦА === */
.comparison-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.comparison-table { 
  width: 100%; 
  border-collapse: collapse; 
  min-width: 700px;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px; 
  text-align: left; 
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comparison-table th { 
  color: #8b5cf6; 
  font-weight: 600; 
  background: rgba(255,255,255,0.02);
}

.comparison-table td:first-child {
  color: #fff;
  font-weight: 500;
}

.comparison-table td {
  color: #a3a3a3;
}

.comparison-table .check {
  color: #22c55e;
}

.comparison-table .cross {
  color: #737373;
}

.comparison-table .partial {
  color: #f59e0b;
}

.comparison-table tr:hover { 
  background: rgba(255,255,255,0.02); 
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* === CTA SECTION === */
.cta-section {
  padding: 100px 0;
}

.cta-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 48px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: #a3a3a3;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* === ФОРМА === */
.form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; 
  padding: 14px 16px;
  color: #e5e5e5; 
  font-size: 15px; 
  width: 100%;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none; 
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59,130,246,0.15);
}

.form-input::placeholder {
  color: #737373;
}

.cta-privacy {
  font-size: 13px;
  color: #737373;
}

.cta-privacy a {
  color: #3b82f6;
  text-decoration: none;
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
}

.faq-item { 
  border-bottom: 1px solid rgba(255,255,255,0.06); 
}

.faq-question {
  padding: 24px 0; 
  cursor: pointer;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  font-weight: 500; 
  font-size: 16px; 
  color: #e5e5e5;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #3b82f6;
}

.faq-answer {
  max-height: 0; 
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  color: #a3a3a3; 
  line-height: 1.7;
  opacity: 0;
}

.faq-item.active .faq-answer { 
  max-height: 500px; 
  padding-bottom: 24px; 
  opacity: 1;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease 0.2s;
}

.faq-icon { 
  transition: transform 0.3s; 
  font-size: 20px; 
  color: #737373; 
}

.faq-item.active .faq-icon { 
  transform: rotate(45deg); 
  color: #3b82f6; 
}

/* === FOOTER === */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: #737373;
  line-height: 1.7;
  max-width: 320px;
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a3a3a3;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: #737373;
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 13px;
  color: #737373;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #fff;
}

/* === PARTNERS PAGE === */
.partners-hero {
  padding: 160px 0 100px;
  text-align: center;
}

.partners-hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.partners-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 32px rgba(59,130,246,0.12);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.benefit-desc {
  font-size: 15px;
  color: #a3a3a3;
  line-height: 1.6;
}

/* Partner page sections */
#how-it-works-agency {
  padding: 80px 0;
}

#how-it-works-agency .timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

#how-it-works-agency .timeline-item {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#how-it-works-agency .timeline-item:last-child {
  border-bottom: none;
}

#how-it-works-agency .timeline-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #3b82f6;
  flex-shrink: 0;
}

#how-it-works-agency .timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

#how-it-works-agency .timeline-content p {
  font-size: 15px;
  color: #a3a3a3;
  line-height: 1.6;
}

#who-is-it-for {
  padding: 80px 0;
}

#partner-stats {
  padding: 60px 0;
}

#partner-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

#partner-stats .stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

#partner-stats .stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.3);
}

/* === COMING SOON === */
.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.coming-soon-card {
  max-width: 440px;
  text-align: center;
  padding: 48px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.coming-soon-icon svg {
  width: 48px;
  height: 48px;
}

.coming-soon h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.coming-soon > p {
  color: #737373;
  font-size: 15px;
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.progress-text {
  font-size: 12px;
  color: #737373;
  margin-bottom: 32px;
  text-align: left;
}

.coming-soon-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: left;
}

.coming-soon-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
  color: #a3a3a3;
}

.coming-soon-feature svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.notify-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.notify-form input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e5e5e5;
  font-size: 14px;
}

.notify-form input:focus {
  outline: none;
  border-color: #3b82f6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #737373;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: #fff;
}

/* === ADMIN PANEL === */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 48px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.login-logo p {
  font-size: 14px;
  color: #737373;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-panel {
  display: none;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px;
  overflow-y: auto;
  z-index: 100;
}

.admin-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-nav {
  list-style: none;
}

.admin-nav-item {
  margin-bottom: 4px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #a3a3a3;
  border-radius: 12px;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.admin-sidebar-footer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
}

.admin-logout-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.admin-main {
  margin-left: 260px;
  padding: 32px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.admin-actions {
  display: flex;
  gap: 12px;
}

.editor-section {
  display: none;
}

.editor-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.editor-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.editor-card h3 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.editor-field {
  margin-bottom: 16px;
}

.editor-field:last-child {
  margin-bottom: 0;
}

.editor-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editor-input,
.editor-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e5e5e5;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.editor-textarea {
  min-height: 80px;
  resize: vertical;
}

.editor-input:focus,
.editor-textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === SCROLL REVEAL === */
.reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 0.7s ease, transform 0.7s ease; 
}

.reveal.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

.card.reveal { 
  transition-delay: calc(var(--i) * 120ms); 
}

/* === TOAST === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlide 0.3s ease;
  font-size: 14px;
  color: #e5e5e5;
}

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-color: rgba(34, 197, 94, 0.4); }
.toast-error { border-color: rgba(239, 68, 68, 0.4); }

/* === MOBILE === */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-bullets {
    align-items: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .hero-animation {
    display: none;
  }
  
  .hero-glow-1,
  .hero-glow-2 {
    display: none;
  }
  
  .grid-3,
  .grid-5,
  .grid-6 { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-track {
    display: none;
  }
  
  .partners-benefits {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #partner-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  section { 
    padding: 60px 0; 
  }
  
  .container {
    padding: 0 20px;
  }
  
  .header nav { 
    display: none; 
  }
  
  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    min-height: auto; 
    padding-top: 100px; 
  }
  
  .hero .container {
    gap: 32px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .grid-3,
  .grid-4,
  .grid-5, 
  .grid-6 { 
    grid-template-columns: 1fr; 
  }
  
  .grid-2 { 
    grid-template-columns: 1fr; 
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline-item {
    padding-top: 0;
    padding-left: 32px;
    border-left: 2px solid rgba(255,255,255,0.06);
  }
  
  .timeline-dot {
    left: -9px;
    top: 0;
  }
  
  .data-hub {
    flex-direction: column;
    gap: 16px;
  }
  
  .hub-arrow {
    transform: rotate(90deg);
  }
  
  .cta-card {
    padding: 40px 24px;
  }
  
  .cta-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .comparison-wrap {
    margin: 0 -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  #partner-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #how-it-works-agency .timeline-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .notify-form {
    flex-direction: column;
  }
  
  .particles-canvas { 
    display: none; 
  }
}

@media (max-width: 480px) {
  .hero-bullets li {
    font-size: 14px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .login-card {
    padding: 32px 24px;
  }
  
  .coming-soon-card {
    padding: 32px 24px;
  }
  
  #partner-stats .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Яндекс.Форма в CTA ── */
.ya-form-wrap {
  width: 100%;
  max-width: 560px;
  margin: 24px auto 0;
}

.ya-form-wrap iframe {
  width: 100%;
  min-height: 260px;
  border: none;
  border-radius: 12px;
  background: transparent;
}

/* ── Яндекс.Форма — исправление цветов и скрытие watermark ── */
.ya-form-wrap {
  position: relative;
}

/* Скрываем watermark через overlay на нижнюю часть */
.ya-form-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: #0f1117;
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  z-index: 2;
}

/* Увеличиваем высоту iframe чтобы форма не обрезалась */
.ya-form-wrap iframe {
  min-height: 340px !important;
  background: transparent;
}

/* Инжектируем светлый фон в iframe через фильтр */
.ya-form-wrap iframe {
  filter: invert(0);
  color-scheme: dark;
}
