/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #FF6B00;
  --orange-light: #FF8C33;
  --orange-dark: #E05500;
  --white: #FFFFFF;
  --gray-light: #F8F8F8;
  --gray: #666666;
  --dark: #1A1A2E;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(255, 107, 0, 0.15);
  --shadow-hover: 0 12px 40px rgba(255, 107, 0, 0.25);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
p { font-size: 1.05rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .logo { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}
.navbar.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--orange-light); }

.nav-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(255,255,255,0.2);
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
}
.navbar.scrolled .nav-btn {
  background: var(--orange);
  color: var(--white) !important;
  border-color: var(--orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}
.navbar.scrolled .burger span { background: var(--dark); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 40%, #FFB366 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 650px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
}
.hero-phone {
  width: 280px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.phone-header {
  text-align: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.phone-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
}
.phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #4CAF50; }
.dot-yellow { background: #FFC107; }
.dot-red { background: #F44336; }

/* ========== SECTIONS ========== */
section { padding: 100px 0; position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.05));
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* ========== PROBLEMS ========== */
.problems { background: var(--white); }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(255,107,0,0.2);
}
.problem-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.problem-card h3 { margin-bottom: 10px; }
.problem-card p { color: var(--gray); font-size: 0.95rem; }

/* ========== PRICING ========== */
.pricing {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.pricing-card.featured {
  border: 2px solid var(--orange);
}
.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--orange);
  color: var(--white);
  padding: 4px 40px;
  font-size: 0.75rem;
  font-weight: 600;
  transform: rotate(45deg);
}
.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.pricing-period { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}
.pricing-link {
  color: var(--orange);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.95rem;
}
.pricing-link:hover { gap: 12px; }

/* ========== MVP CASES ========== */
.cases {
  background: var(--white);
}
.cases-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.cases-timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange), var(--orange-light));
  border-radius: 3px;
}
.case-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}
.case-dot {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
}
.case-content {
  background: var(--gray-light);
  padding: 28px;
  border-radius: var(--radius);
  flex: 1;
}
.case-content h3 { margin-bottom: 8px; }
.case-content p { color: var(--gray); font-size: 0.95rem; }
.case-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.case-stat {
  background: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
}
.case-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--orange);
}
.case-stat span { font-size: 0.8rem; color: var(--gray); }

/* ========== REVIEWS ========== */
.reviews {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: var(--white);
}
.reviews .section-label { background: rgba(255,255,255,0.15); color: var(--white); }
.reviews .section-header h2 { color: var(--white); }
.reviews .section-header p { color: rgba(255,255,255,0.8); }
.reviews-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 32px;
  font-style: italic;
}
.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }
.review-card {
  min-width: 340px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 32px;
  scroll-snap-align: start;
}
.review-stars { font-size: 1.2rem; margin-bottom: 16px; }
.review-text { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; opacity: 0.95; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.review-name { font-weight: 600; }
.review-role { font-size: 0.8rem; opacity: 0.7; }

/* ========== PARTNERS ========== */
.partners { background: var(--gray-light); }
.partners-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 40px;
  font-style: italic;
}
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partner-logo {
  width: 140px;
  height: 60px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #bbb;
  font-size: 0.85rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}
.partner-logo:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* ========== CONTACTS ========== */
.contacts { background: var(--white); }
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--gray-light);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: var(--gray); font-size: 0.95rem; }

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
  text-align: center;
}
.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 12px;
}
.footer p { font-size: 0.85rem; }

/* ========== COOKIE ========== */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--white);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cookie-popup.show { transform: translateY(0); }
.cookie-popup p { font-size: 0.85rem; color: var(--gray); flex: 1; }
.cookie-popup .btn { padding: 10px 24px; font-size: 0.85rem; white-space: nowrap; }

/* ========== ORDER PAGE ========== */
.order-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
}
.order-form-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}
.order-form-wrap h2 { margin-bottom: 8px; }
.order-form-wrap > p { color: var(--gray); margin-bottom: 32px; }
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,0,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

.success-msg {
  display: none;
  text-align: center;
  padding: 40px 0;
}
.success-msg.show { display: block; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-msg h3 { color: var(--orange); margin-bottom: 8px; }

/* ========== DETAIL PAGE ========== */
.detail-page {
  padding-top: 100px;
  min-height: 100vh;
}
.detail-hero {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-light), var(--white));
}
.detail-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange);
  margin: 16px 0 4px;
}
.detail-price span { font-size: 1.2rem; color: var(--gray); font-weight: 400; }
.detail-features {
  padding: 60px 0;
}
.features-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
}
.features-list li {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(255,107,0,0.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-weight: 700;
}
.feature-text h4 { margin-bottom: 4px; }
.feature-text p { color: var(--gray); font-size: 0.9rem; }

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--dark) !important; font-size: 1.2rem; }
  .nav-links.open .nav-btn { background: var(--orange); color: var(--white) !important; }
  .burger { display: flex; }

  .hero { padding-top: 100px; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }

  .pricing-grid { grid-template-columns: 1fr; }

  .review-card { min-width: 280px; }

  .partners-grid { gap: 24px; }

  .cookie-popup {
    flex-direction: column;
    max-width: 100%;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .order-form-wrap { padding: 32px 24px; }
}
