/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #FF6600;
  --orange-hover: #e55a00;
  --orange-glow: rgba(255, 102, 0, 0.2);
  --bg-dark: #FFFFFF;
  --bg-section: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFBFD;
  --text-white: #111827;
  --text-gray: #6B7280;
  --text-light: #374151;
  --border: rgba(0, 0, 0, 0.09);
  --radius: 16px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 24px var(--orange-glow);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.4);
}

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

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== HEADER / NAV ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo span {
  color: var(--text-white);
}

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

nav a {
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 10px 20px;
  font-size: 15px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition);
  border-radius: 2px;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text-white);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
}

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

/* ===== HERO ===== */
#hero {
  padding: 160px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 102, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 102, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 70%, transparent 100%);
}

.hero-content {
  position: relative;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

#hero h1 {
  margin-bottom: 24px;
  color: var(--text-white);
}

#hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 680px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-hint {
  font-size: 14px;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-hint::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
}

/* ===== PAINS ===== */
#pains {
  background: var(--bg-section);
}

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.pain-card:hover {
  border-color: rgba(255, 102, 0, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.pain-card h3 {
  margin-bottom: 12px;
  color: var(--text-white);
}

.pain-card p {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.65;
}

.pains-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 18px;
  padding: 24px 32px;
  background: rgba(255, 102, 0, 0.07);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: var(--radius);
}

/* ===== SOLUTION ===== */
#solution {
  background: var(--bg-dark);
}

.solution-sub {
  text-align: center;
  color: var(--text-gray);
  font-size: 18px;
  max-width: 640px;
  margin: -32px auto 56px;
  line-height: 1.7;
}

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

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
  border-color: rgba(255, 102, 0, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.solution-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.solution-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.solution-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== PRICING ===== */
#pricing {
  background: var(--bg-section);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.popular {
  border-color: var(--orange);
  background: linear-gradient(160deg, #FFF3EA 0%, var(--bg-card) 100%);
  box-shadow: 0 4px 32px rgba(255, 102, 0, 0.18);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-gray);
}

.pricing-note {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-footer {
  text-align: center;
  color: var(--text-gray);
  font-size: 15px;
}

.pricing-footer strong {
  color: var(--text-light);
}

/* ===== STATS ===== */
#stats {
  background: var(--bg-dark);
  padding: 80px 0;
}

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

.stat-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
  border-color: rgba(255, 102, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 102, 0, 0.08);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  color: var(--text-gray);
}

.clients-title {
  text-align: center;
  font-size: 15px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 28px;
}

.clients-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.client-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  transition: all var(--transition);
}

.client-tag:hover {
  border-color: rgba(255, 102, 0, 0.4);
  color: var(--text-white);
  background: rgba(255, 102, 0, 0.08);
}

/* ===== CASES ===== */
#cases {
  background: var(--bg-section);
}

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

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.case-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.case-tag {
  display: inline-block;
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.case-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text-white);
}

.case-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-item {
  display: flex;
  gap: 12px;
}

.case-item-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  width: 100px;
  flex-shrink: 0;
  padding-top: 2px;
}

.case-item-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

.case-result {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 10px;
}

.case-result-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 4px;
}

.case-result-text {
  font-size: 15px;
  color: var(--text-white);
  font-weight: 500;
}

/* ===== AUDIT / CTA ===== */
#audit {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.audit-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.audit-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.audit-inner h2 {
  margin-bottom: 16px;
}

.audit-inner > p {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.audit-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

#bitrix24-form-container p {
  color: var(--text-gray);
  font-size: 16px;
  padding: 40px 20px;
}

#bitrix24-form-container a {
  color: var(--orange);
}

.audit-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.audit-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray);
  font-size: 16px;
}

.audit-contact-icon {
  font-size: 20px;
}

.audit-contact-item a {
  color: var(--text-light);
  font-weight: 500;
}

.audit-contact-item a:hover {
  color: var(--orange);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 15px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
}

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

.footer-copy {
  color: var(--text-gray);
  font-size: 14px;
}

.footer-note {
  color: var(--text-gray);
  font-size: 14px;
  text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }

  section { padding: 72px 0; }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-grid { margin-bottom: 32px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 680px) {
  h1 { font-size: 32px; letter-spacing: -0.5px; }
  h2 { font-size: 26px; }
  body { font-size: 16px; }

  #hero { padding: 120px 0 72px; }

  .pains-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-number { font-size: 38px; }

  .audit-contacts {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .audit-form-wrap {
    padding: 24px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note { text-align: left; }

  .btn { font-size: 16px; padding: 14px 24px; }

  .case-card { padding: 28px 24px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
