/**
 * СОВРЕМЕННЫЕ СТИЛИ ДЛЯ ZALOGCARS.RU 2025
 * Улучшенный дизайн с фокусом на конверсию и UX
 */

/* ========================================
   ОБЩИЕ УЛУЧШЕНИЯ
   ======================================== */

:root {
  --primary-color: #0066FF;
  --primary-dark: #0052CC;
  --primary-light: #3385FF;
  --accent-color: #00CC66;
  --accent-dark: #00A852;
  --warning-color: #FF6B00;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.btn, .get-loan, .back-call {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}

.get-loan {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.get-loan:hover {
  background: linear-gradient(135deg, var(--primary-dark), #003D99);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.get-konsul {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
}

.get-konsul:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #F8F9FA 0%, #E3F2FD 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.unique-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-top: 20px;
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent-color);
}

.text2 p {
  font-size: 17px;
  margin-bottom: 12px;
  padding-left: 8px;
  color: var(--text-dark);
}

/* ========================================
   STATISTICS SECTION (NEW)
   ======================================== */

.statistics-section {
  padding: 60px 0;
  background: white;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #FFFFFF, #F8F9FA);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   HOW IT WORKS SECTION (NEW)
   ======================================== */

.how-it-works {
  padding: 80px 0;
  background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 2px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.step-number {
  position: absolute;
  top: -15px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  font-size: 64px;
  margin: 20px 0;
  filter: grayscale(20%);
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.step-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ========================================
   LOCAL BENEFITS & POPULAR CARS (NEW)
   ======================================== */

.local-benefits, .popular-cars {
  padding: 60px 0;
  background: white;
}

.benefits-content, .cars-list {
  padding: 32px;
  background: linear-gradient(135deg, #F8F9FA, #E3F2FD);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}

.cars-list {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
}

/* ========================================
   REVIEWS SECTION (NEW)
   ======================================== */

.reviews-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #FFFFFF, #F8F9FA);
}

.review-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-right: 16px;
  flex-shrink: 0;
}

.review-author {
  flex: 1;
}

.review-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
}

.review-date {
  font-size: 13px;
  color: var(--text-light);
}

.review-rating {
  margin-bottom: 16px;
}

.star {
  color: #FFB800;
  font-size: 20px;
  margin-right: 2px;
}

.star.filled {
  color: #FFB800;
}

.review-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-gray);
  margin: 0;
}

/* ========================================
   FAQ SECTION (NEW)
   ======================================== */

.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-item {
  margin-bottom: 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 24px 28px;
  cursor: pointer;
  background: #F8F9FA;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: #E3F2FD;
}

.faq-question h3 {
  font-size: 18px;
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
}

.faq-toggle {
  font-size: 28px;
  color: var(--primary-color);
  font-weight: 300;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 24px 28px;
  background: white;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin: 0;
}

/* ========================================
   CONDITIONS SECTION
   ======================================== */

.conditions {
  padding: 60px 0 0;
}

.conditions .bg {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 40px 0;
  border-radius: var(--radius-lg);
  margin-top: 30px;
}

.conditions .white {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.conditions .white p {
  font-size: 17px;
  margin-bottom: 8px;
}

.conditions .top {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  padding: 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #F8F9FA, #E8F5E9);
  border-radius: var(--radius-md);
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */

.calculator {
  padding: 80px 0;
  background: linear-gradient(180deg, #F8F9FA, #FFFFFF);
}

.calculator .bg {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
}

.calculator .total {
  text-align: center;
}

#month-summ {
  font-size: 48px;
  font-weight: 700;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator .srok {
  font-size: 14px;
  opacity: 0.9;
  margin: 20px 0;
}

/* ========================================
   DOCUMENTS SECTION
   ======================================== */

.documents {
  padding: 80px 0;
  background: white;
}

.documents img.doc {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ========================================
   REQUEST SECTION
   ======================================== */

.request {
  padding: 80px 0;
  background: linear-gradient(135deg, #E3F2FD, #F8F9FA);
}

.request .bg {
  background: white;
  padding: 40px 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

/* ========================================
   SOCIAL PROOF NOTIFICATION (NEW)
   ======================================== */

#social-proof-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  max-width: 350px;
}

.social-proof-notification {
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-color);
  display: flex;
  align-items: center;
  animation: slideInLeft 0.4s ease-out, fadeOutLeft 0.4s ease-in 4.6s;
  animation-fill-mode: forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

.social-proof-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 14px;
  flex-shrink: 0;
}

.social-proof-content {
  flex: 1;
}

.social-proof-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.social-proof-text {
  font-size: 13px;
  color: var(--text-gray);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2.section-title {
    font-size: 28px;
  }

  .stat-card, .step-card, .review-card {
    margin-bottom: 20px;
  }

  #social-proof-container {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .unique-intro {
    font-size: 16px;
    padding: 20px;
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* ========================================
   REGIONAL TEXT SECTION (NEW v2.1)
   ======================================== */

.regional-text {
  padding: 80px 0;
  background: white;
}

.regional-content {
  background: linear-gradient(135deg, #F8F9FA, #FFFFFF);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}

.regional-content img {
  margin-bottom: 15px;
}

.districts-info {
  background: linear-gradient(135deg, #E3F2FD, #F8F9FA);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.districts-info h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.districts-info p {
  font-size: 16px;
  color: var(--text-gray);
  margin: 0;
  font-weight: 500;
}

.advantages-box, .requirements-box {
  background: white;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.advantages-box:hover, .requirements-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.advantages-box h3, .requirements-box h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.advantages-box ul, .requirements-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantages-box li, .requirements-box li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-gray);
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
}

.advantages-box li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 18px;
}

.requirements-box li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 768px) {
  .regional-content {
    padding: 20px;
    font-size: 15px;
  }

  .districts-info {
    padding: 20px;
  }

  .advantages-box, .requirements-box {
    padding: 20px;
    margin-bottom: 20px;
  }
}
