/* ============================================
   АВТОВЫКУП ХМАО - MODERN DESIGN SYSTEM
   ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Colors */
  --color-bg-primary: #0a0e1a;
  --color-bg-secondary: #141824;
  --color-bg-card: rgba(20, 24, 36, 0.8);
  --color-accent-primary: #ff6b35;
  --color-accent-secondary: #4ecdc4;
  --color-accent-hover: #ff8555;
  --color-text-primary: #ffffff;
  --color-text-secondary: #b8c1ec;
  --color-text-muted: #8892b8;
  --color-success: #2ecc71;
  --color-warning: #f39c12;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --gradient-secondary: linear-gradient(135deg, #4ecdc4 0%, #44a3a0 100%);
  --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #141824 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--gradient-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent-primary);
}

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

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.6), 0 0 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--color-bg-primary);
  font-weight: 700;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 242, 234, 0.5);
}

.btn-outline {
  background: rgba(255, 107, 53, 0.05);
  border: 1px solid var(--color-accent-primary);
  color: var(--color-accent-primary);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.1);
}

.btn-outline:hover {
  background: var(--color-accent-primary);
  color: var(--color-text-primary);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

/* === CARDS === */
.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  border-color: rgba(0, 242, 234, 0.3);
  background: rgba(20, 24, 36, 0.9);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-accent-primary);
}

.phone-header svg {
  width: 24px;
  height: 24px;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 53, 0.3));
}

.car-illustration {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Money float animations */
@keyframes floatMoney {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatMoney2 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

@keyframes floatMoney3 {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-10deg);
  }
}

.money-float {
  animation: floatMoney 3s ease-in-out infinite;
}

.money-float-2 {
  animation: floatMoney2 4s ease-in-out infinite;
}

.money-float-3 {
  animation: floatMoney3 3.5s ease-in-out infinite;
}

.hero-badge {
  display: inline-block;
  background: rgba(78, 205, 196, 0.2);
  color: var(--color-accent-secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(78, 205, 196, 0.3);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-secondary);
}

.hero-feature svg {
  color: var(--color-accent-secondary);
  flex-shrink: 0;
}

/* === SECTION === */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.2);
  color: var(--color-accent-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* === PROBLEMS SECTION === */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.problem-card {
  position: relative;
}

.problem-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: white;
  font-size: var(--font-size-2xl);
}

.problem-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

/* === SOLUTION SECTION === */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.solution-item {
  text-align: center;
  padding: var(--space-lg);
}

.solution-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

/* === CASE STUDY === */
.case-study {
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* === OBJECTIONS === */
.objections-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.objection-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.objection-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

/* === FORM === */
.form-section {
  background: var(--color-bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
}

.form-magnet {
  background: var(--gradient-secondary);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-xl);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
  appearance: none;
}

/* Fix for select options containing white text on white background in some browsers */
.form-group select option {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* === FOOTER === */
.footer {
  background: var(--color-bg-secondary);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-phone {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--color-accent-primary);
  margin-bottom: var(--space-md);
  display: block;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.5rem;
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .header-content {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .phone-header {
    font-size: var(--font-size-lg);
  }

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

  .objection-card {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .card {
    padding: var(--space-md);
  }

  .form-section {
    padding: var(--space-md);
  }
}