/* ===== CSS VARIABLES ===== */
:root {
  --bg-dark: #0A0A0F;
  --bg-light: #F5F5F7;
  --bg-card: #16161D;
  --bg-card-light: #FFFFFF;
  --accent: #CAFF00;
  --accent-hover: #D4FF33;
  --text-primary: #FFFFFF;
  --text-secondary: #8A8A99;
  --text-dark: #1A1A2E;
  --text-dark-secondary: #6B6B80;
  --gradient-accent: linear-gradient(135deg, #CAFF00, #00D4FF);
  --border-subtle: rgba(255,255,255,0.06);
  --accent-on-light: #3A5C00; /* Тёмно-зелёный для светлых фонов, контраст 6.8:1 */
  --h1: clamp(2.5rem, 6vw, 4.5rem);
  --h2: clamp(2rem, 4vw, 3rem);
  --h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --body: clamp(0.95rem, 1.2vw, 1.125rem);
  --small: clamp(0.8rem, 1vw, 0.875rem);
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: clamp(1rem, 5vw, 2rem);
  --radius-card: 16px;
  --radius-btn: 50px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  font-size: var(--body);
  color: var(--text-dark);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: var(--radius-btn);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent);
}
.btn-ghost:hover { background: rgba(202,255,0,0.1); transform: translateY(-2px); }
.btn-gradient {
  background: var(--gradient-accent);
  color: var(--bg-dark);
}
.btn-gradient:hover { opacity: 0.9; transform: translateY(-2px); }

/* ===== SECTION HEADINGS ===== */
.section-tag {
  display: inline-block;
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: var(--h2);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: var(--body);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.3s ease, background 0.3s ease;
  padding: 20px 0;
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(10,10,15,0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-svg { width: auto; height: 32px; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav a {
  font-weight: 600;
  font-size: var(--small);
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav a:hover, .nav a.active { color: var(--text-primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 28px; font-size: var(--small); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--text-primary);
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px var(--container-px) 80px;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(202,255,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202,255,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 6s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
/* Dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(202,255,0,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(202,255,0,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: var(--small);
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: var(--h1);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero h1 .gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
}

.hero-metrics {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}
.metric {
  text-align: center;
}
.metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.metric-label {
  font-size: var(--small);
  color: var(--text-secondary);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}
.services .section-title { color: var(--text-dark); }
.services .section-subtitle { color: var(--text-dark-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card-light);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(58,92,0,0.09);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  color: var(--accent-on-light);
}
.service-icon svg { width: 28px; height: 28px; }
.service-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: var(--h3);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.service-desc {
  font-size: var(--small);
  color: var(--text-dark-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: var(--small);
  color: var(--accent-on-light);
  background: rgba(58,92,0,0.07);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* ===== PORTFOLIO ===== */
.portfolio {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(202,255,0,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.portfolio .section-title { color: var(--text-primary); }
.portfolio .section-subtitle { color: var(--text-secondary); }

/* Slider */
.portfolio-slider-wrap { position: relative; }
.portfolio-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}
.portfolio-slider::-webkit-scrollbar { display: none; }

.case-card {
  min-width: min(100%, 520px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem;
  flex-shrink: 0;
}

.case-tabs {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.25rem;
  width: fit-content;
}
.case-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--small);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.case-tab.active {
  background: var(--accent);
  color: var(--bg-dark);
}

.case-preview {
  border-radius: 10px;
  height: 360px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}
.case-screen {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}
.case-screen.hidden { opacity: 0; pointer-events: none; }

/* CSS mockup screens */
.screen-before {
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  filter: none;
}
.screen-after {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
}
.screen-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}
.screen-bar.accent { background: var(--accent); width: 60%; }
.screen-bar.wide { width: 90%; }
.screen-bar.med { width: 70%; }
.screen-bar.short { width: 40%; }
.screen-block {
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.screen-block.accent { background: rgba(202,255,0,0.2); }
.screen-row { display: flex; gap: 8px; }
.screen-row .screen-block { flex: 1; }
.screen-label {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.label-before { background: rgba(255,100,100,0.2); color: #ff6464; }
.label-after { background: rgba(202,255,0,0.2); color: var(--accent); }

.case-problems {
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: rgba(255,80,80,0.05); border-radius: 8px; border-left: 2px solid rgba(255,80,80,0.3);
}
.case-problems span {
  font-size: 11px; color: #ff9494;
  display: flex; align-items: center; gap: 6px;
}
.case-problems span::before { content: '✕'; font-size: 9px; }

.case-wins {
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  background: rgba(202,255,0,0.05); border-radius: 8px; border-left: 2px solid rgba(202,255,0,0.3);
}
.case-wins span {
  font-size: 11px; color: var(--accent);
  display: flex; align-items: center; gap: 6px;
}
.case-wins span::before { content: '✓'; font-size: 9px; }

.case-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.case-meta { font-size: var(--small); color: var(--text-secondary); margin-bottom: 1rem; }

.case-metrics {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.case-metric-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(202,255,0,0.1);
  color: var(--accent);
}

.case-links {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.case-link {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  display: flex; align-items: center; gap: 4px;
}
.case-link:hover { color: var(--accent); }

/* Slider arrows */
.slider-arrows {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; justify-content: flex-end;
}
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* Products */
.products-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(202,255,0,0.2);
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.product-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(202,255,0,0.1);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.product-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: var(--small);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.product-link {
  font-weight: 600;
  font-size: var(--small);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s ease;
}
.product-link:hover { gap: 10px; }

/* ===== CALCULATOR ===== */
.calculator {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}
.calculator .section-title { color: var(--text-dark); }
.calculator .section-subtitle { color: var(--text-dark-secondary); }

.calc-wrap {
  background: var(--bg-card-light);
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

/* Progress bar */
.calc-progress {
  height: 4px;
  background: rgba(0,0,0,0.06);
}
.calc-progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
  border-radius: 0 4px 4px 0;
}

.calc-body { padding: clamp(1.5rem, 4vw, 2.5rem); }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-step-label {
  font-size: var(--small);
  color: var(--text-dark-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.calc-step-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

/* Step 1: radio cards */
.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.calc-option {
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: var(--small);
  color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
}
.calc-option:hover { border-color: var(--accent); background: rgba(202,255,0,0.04); }
.calc-option.selected { border-color: var(--accent); background: rgba(202,255,0,0.08); color: var(--text-dark); }
.calc-option-icon { font-size: 1.2rem; flex-shrink: 0; }

/* Step 2: checkboxes */
.calc-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.calc-check {
  display: flex; align-items: center; gap: 12px;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-dark);
  min-height: 44px;
}
.calc-check:hover { border-color: rgba(202,255,0,0.4); }
.calc-check.checked { border-color: var(--accent); background: rgba(202,255,0,0.06); }
.calc-check.locked { opacity: 0.7; cursor: not-allowed; }
.check-box {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.calc-check.checked .check-box { background: var(--accent); border-color: var(--accent); }
.calc-check.checked .check-box::after { content: '✓'; font-size: 12px; color: var(--bg-dark); font-weight: 800; }

/* Step 3 & 4: large options */
.calc-options-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.calc-option-lg {
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.calc-option-lg:hover { border-color: var(--accent); }
.calc-option-lg.selected { border-color: var(--accent); background: rgba(202,255,0,0.06); }
.calc-option-lg-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.calc-option-lg-sub {
  font-size: var(--small);
  color: var(--text-dark-secondary);
}
.calc-option-lg.selected .calc-option-lg-title { color: var(--text-dark); }

/* Calc navigation */
.calc-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.calc-back {
  font-weight: 600; font-size: var(--small);
  color: var(--text-dark-secondary);
  padding: 10px 0;
  background: none;
  transition: color 0.3s ease;
}
.calc-back:hover { color: var(--text-dark); }
.calc-next { padding: 14px 36px; }

/* Result screen */
.calc-result { text-align: center; }
.result-price-label {
  font-size: var(--small);
  color: var(--text-dark-secondary);
  margin-bottom: 0.5rem;
}
.result-price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}
.result-price .accent-num { color: var(--accent-on-light); }
.result-terms {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  color: var(--text-dark-secondary);
  margin-bottom: 2rem;
}
.result-cta { margin-bottom: 1rem; }
.result-note {
  font-size: var(--small);
  color: var(--text-dark-secondary);
  line-height: 1.6;
}
.result-restart {
  margin-top: 1.5rem;
  font-size: var(--small);
  color: var(--text-dark-secondary);
  background: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.result-restart:hover { color: var(--text-dark); }

/* ===== WHY US ===== */
.whyus {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.whyus::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(202,255,0,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.whyus .section-title { color: var(--text-primary); }
.whyus .section-subtitle { color: var(--text-secondary); }

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.whyus-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
}
.whyus-card:hover { transform: translateY(-4px); border-color: rgba(202,255,0,0.2); }
.whyus-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.whyus-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.whyus-desc {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== PROCESS ===== */
.process {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}
.process .section-title { color: var(--text-dark); }
.process .section-subtitle { color: var(--text-dark-secondary); }

.timeline {
  position: relative;
  display: flex;
  gap: 0;
  justify-content: space-between;
  align-items: flex-start;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: rgba(0,0,0,0.08);
  z-index: 0;
}
.timeline-fill {
  position: absolute;
  top: 28px;
  left: 28px;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 1;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}
.step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark-secondary);
  transition: all 0.5s ease;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.step.lit .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 0 0 8px rgba(202,255,0,0.15);
}
.step-title {
  font-weight: 800;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.step-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--small);
  color: var(--accent-on-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.step-desc {
  font-size: var(--small);
  color: var(--text-dark-secondary);
  line-height: 1.5;
}

/* Mobile timeline */
@media (max-width: 767px) {
  .timeline {
    flex-direction: column;
    gap: 0;
  }
  .timeline::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-fill {
    top: 28px;
    left: 27px;
    width: 2px !important;
    height: 0;
    transition: height 1.5s cubic-bezier(0.16,1,0.3,1);
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 0 0 2rem;
  }
  .step-circle { margin-bottom: 0; flex-shrink: 0; }
  .step-body { flex: 1; }
}

/* ===== CONTACTS ===== */
.contacts {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.contacts::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(202,255,0,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.contacts .section-title { color: var(--text-primary); }
.contacts .section-subtitle { color: var(--text-secondary); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 767px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-label {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input, .form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: var(--small);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  min-height: 44px;
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(202,255,0,0.5);
  box-shadow: 0 0 0 3px rgba(202,255,0,0.08);
}
.form-input.error, .form-textarea.error {
  border-color: rgba(255,100,100,0.5);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-secondary); opacity: 0.5; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; margin-top: 0.5rem; }
.form-tg {
  text-align: center;
  font-size: var(--small);
  color: var(--text-secondary);
  margin-top: 0.5rem;
}
.form-tg a { color: var(--accent); font-weight: 600; }
.form-tg a:hover { text-decoration: underline; }

/* Form success — стили перенесены в блок СВЕТЛЫЕ СЕКЦИИ / конец файла */

/* Contact info */
.contact-info { padding-top: 0.5rem; }
.contact-info-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: var(--small); color: var(--text-secondary);
  margin-bottom: 2px;
}
.contact-item-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--small);
}
.contact-item-value a { color: var(--accent); }
.contact-item-value a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: var(--small);
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-links {
  display: flex; gap: 1.5rem; align-items: center;
}
.footer-links a {
  font-size: var(--small);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ===== FLOAT CHAT BUTTON ===== */
.float-menu {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 900;
}

.float-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(202,255,0,0.3);
  color: var(--bg-dark);
  flex-shrink: 0;
}
.float-toggle:hover { transform: scale(1.1); }
.float-toggle svg { width: 26px; height: 26px; }
.float-toggle .icon-close { display: none; }
.float-menu.open .float-toggle .icon-chat { display: none; }
.float-menu.open .float-toggle .icon-close { display: block; }

.float-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.float-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transform: translateY(16px) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.float-item:nth-child(1) { transition-delay: 0.05s; }
.float-item:nth-child(2) { transition-delay: 0s; }

.float-menu.open .float-item {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.float-item-label {
  background: rgba(13, 13, 26, 0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-main);
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.float-item-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.float-item:hover .float-item-icon { transform: scale(1.1); }
.float-item-icon svg { width: 22px; height: 22px; }

.float-item-tg .float-item-icon { background: #2AABEE; color: #fff; }
.float-item-max .float-item-icon { background: #7B61FF; color: #fff; }

.tg-ring {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  z-index: 899;
  opacity: 0;
  animation: ping 5s ease-out infinite;
}
@keyframes ping {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 0.6; }
  40% { opacity: 0; transform: scale(2.2); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 767px) {
  .float-menu, .tg-ring { bottom: 16px; right: 16px; }
  .float-toggle { width: 48px; height: 48px; }
  .float-toggle svg { width: 22px; height: 22px; }
  .tg-ring { width: 48px; height: 48px; }
  .float-item-icon { width: 42px; height: 42px; }
  .hero h1 br { display: none; }
  .hero-metrics { gap: 1.5rem; }
  .slider-arrows { display: none; }
}
@media (max-width: 480px) {
  .btn { padding: 14px 28px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}

/* ===== GRID STAGGER ===== */
.grid-stagger > *:nth-child(1) { transition-delay: 0s; }
.grid-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.grid-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.grid-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.grid-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.grid-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ===== MISC ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(202,255,0,0.3); color: var(--text-dark); }

/* ===== СВЕТЛЫЕ СЕКЦИИ: тёмный акцент вместо лайма ===== */
/* section-tag в светлых секциях */
.services .section-tag,
.calculator .section-tag,
.process .section-tag { color: var(--accent-on-light); }

/* calc progress-fill остаётся градиентом — ок на белом */
/* Кнопки-карточки калькулятора — рамка лайм → тёмная */
.calc-option.selected { border-color: var(--accent-on-light); background: rgba(58,92,0,0.06); }
.calc-option:hover { border-color: var(--accent-on-light); background: rgba(58,92,0,0.04); }
.calc-check.checked { border-color: var(--accent-on-light); background: rgba(58,92,0,0.05); }
.calc-check.checked .check-box { background: var(--accent-on-light); border-color: var(--accent-on-light); }
.calc-check.checked .check-box::after { color: #fff; }
.calc-option-lg.selected { border-color: var(--accent-on-light); background: rgba(58,92,0,0.05); }
.calc-option-lg:hover { border-color: var(--accent-on-light); }

/* Шаги процесса — активный круг остаётся лаймовым (тёмный фон круга + тёмный текст = ok) */

/* ===== МОБИЛЬНОЕ МЕНЮ: кнопка btn-primary ===== */
.mobile-menu a.btn-primary {
  color: #000000;
  -webkit-text-fill-color: #000000;
  font-size: 1.125rem;        /* перебиваем clamp(1.5rem…2.5rem) от .mobile-menu a */
  -webkit-font-smoothing: auto;
}
.mobile-menu a.btn-primary:hover { color: #000000; -webkit-text-fill-color: #000000; }

/* ===== ФОРМА: улучшенное сообщение об отправке ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  background: rgba(202,255,0,0.06);
  border: 1px solid rgba(202,255,0,0.15);
  animation: none;
}
.form-success.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(202,255,0,0.15);
  border: 2px solid rgba(202,255,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.25rem;
  margin: 0;
}
.success-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}
.success-desc {
  font-size: var(--body);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
}
.success-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--small);
  color: var(--accent);
  background: rgba(202,255,0,0.1);
  padding: 6px 14px;
  border-radius: 8px;
  margin-top: 0.25rem;
}

/* ===== PORTFOLIO REAL SCREENSHOTS ===== */
.case-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.case-screenshot:hover {
  opacity: 0.88;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  padding: 4px 8px;
}
.lightbox-close:hover {
  opacity: 1;
}
.screen-label {
  display: none;
}


/* ===== CASE DESCRIPTIONS ===== */
.case-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.case-desc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.label-before-txt { color: #ff6464; }
.label-after-txt  { color: var(--accent); }
.case-desc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.case-desc-list li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.label-before-txt ~ .case-desc-list li::before { content: '— '; color: #ff6464; }
.label-after-txt ~ .case-desc-list li::before  { content: '+ '; color: var(--accent); }