* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


header {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #4A90E2;
}

.logo img {
  width: 162px;
  height: 60px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #4A90E2;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}


.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero-text h1 .underline-text {
  position: relative;
  display: inline-block;
}

.hero-text h1 .underline-text::after {
  content: '';
  position: absolute;
  left: -10px;
  bottom: -5px;
  width: 110%;
  height: 3px;
  background: #4A90E2;
  border-radius: 2px;
  transform: rotate(-1deg);
}

.hero-text p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.btn-primary {
  background: #4A90E2;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: #357ABD;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.hero-image {
  position: relative;
  margin-right: -20px;
}

.hero-image img {
  width: 120%;
  max-width: 120%;
  height: auto;
  margin-left: auto;
  display: block;
}


.brands {
  padding: 50px 0;
  background: #fff;
}

.brand-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.brand-logos img {
  width: 60px;
  height: 60px;
  opacity: 0.6;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}

.brand-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}


.steps {
  padding: 80px 0;
  background: #fff;
}

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

.section-subtitle {
  text-align: center;
  color: #4A90E2;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 36px;
  color: #2c3e50;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  position: relative; 
}

.step-card {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  transition: transform 0.3s;
  position: relative; 
}


.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30%;
  right: -40px;
  width: 80px;
  height: 0;
  border-top: 2px dashed #CCCCCC;
  transform: translateY(-30%);
}

@media (max-width: 768px) {
  
  .step-card:not(:last-child)::after {
      display: none;
  }
  
  
  .step-card:not(:last-child)::after {
      top: auto;
      bottom: -40px;
      right: 50%;
      width: 0;
      height: 40px;
      border-top: none;
      border-left: 2px dashed #CCCCCC;
      transform: translateX(50%);
  }
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 80px;
  height: 80px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.step-card p {
  color: #666;
  font-size: 14px;
}


.why-us {
  padding: 80px 0;
  background: #f8f9fa;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-us-image img {
  width: 100%;
  height: auto;
}

.why-us-text h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #2c3e50;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: auto;
  height: 100%;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #2c3e50;
}

.feature-item p {
  color: #666;
  font-size: 14px;
}


.catalog {
  padding: 80px 0;
  background: #f8f9fa;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.car-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border: 1px solid #E5E7EB;
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.car-image {
  width: 100%;
  object-fit: contain;
  background: #F9FAFB;
}

.car-info {
  padding: 20px;
}

.car-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  min-height: 40px;
}

.car-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.rating-number {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars img {
  width: 14px;
  height: 14px;
}

.rating-text {
  color: #9CA3AF;
  font-size: 13px;
  margin-left: 4px;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #F3F4F6;
}

.car-price {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
}

.btn-calculate {
  background: transparent;
  color: #4A90E2;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-calculate:hover {
  background: #EBF5FF;
}

.btn-calculate::after {
  content: '→';
  font-size: 16px;
}


.testimonials {
  padding: 80px 0;
  background: #f8f9fa;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  display: none;
  gap: 30px;
  align-items: center;
  min-height: 300px;
}

.testimonial-card.active {
  display: flex;
}

.testimonial-image {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-content {
  flex: 1;
}

.testimonial-content p {
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-rating span {
  font-weight: 600;
  font-size: 18px;
  color: #2c3e50;
}


.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: #4A90E2;
  color: #fff;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}


.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.dot {
  width: 40px;
  height: 3px;
  background: #E5E7EB;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #4A90E2;
  width: 50px;
}


@media (max-width: 768px) {
  .testimonials-slider {
      flex-direction: column;
  }
  
  .testimonial-card {
      flex-direction: column;
      text-align: center;
      padding: 30px 50px;
  }

  .testimonial-image {
      width: 120px;
      height: 120px;
  }

  .slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
  }

  .slider-arrow-left {
      left: 0px;
  }

  .slider-arrow-right {
      right: 0px;
  }

  .testimonial-rating {
    justify-content: center;
  }
}


.contact {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.contact-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 30px;
  height: 30px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.contact-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.contact-card a {
  color: #4A90E2;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}


footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #4A90E2;
}

.company-info p {
  color: #bbb;
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #888;
  font-size: 14px;
}


@media (max-width: 768px) {
  .burger {
      display: flex;
  }

  .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background: #fff;
      width: 100%;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: 0.3s;
  }

  .nav-menu.active {
      left: 0;
  }

  .hero-content {
      grid-template-columns: 1fr;
  }

  .hero-text h1 {
      font-size: 32px;
  }

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

  .why-us-content {
      grid-template-columns: 1fr;
  }

  .catalog-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .catalog-arrow {
      display: flex;
  }

  .catalog-arrow-left {
      left: 10px;
  }

  .catalog-arrow-right {
      right: 10px;
  }

  .testimonial-card {
      flex-direction: column;
      text-align: center;
  }

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

  .footer-content {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
      font-size: 28px;
  }

  .section-title h2 {
      font-size: 28px;
  }
}


.catalog-slider-wrapper {
  position: relative;
  margin-top: 60px;
}

.catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.catalog-arrow:hover {
  background: #4A90E2;
  color: #fff;
}

.catalog-arrow-left {
  left: -10px;
}

.catalog-arrow-right {
  right: -10px;
}

.catalog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.catalog-dot {
  width: 40px;
  height: 3px;
  background: #E5E7EB;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.catalog-dot.active {
  background: #4A90E2;
  width: 50px;
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  position: relative;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: #E5E7EB;
}


.modal-form {
  padding: 50px 40px;
}

.modal-form h3 {
  font-size: 24px;
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
}

.modal-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-form input {
  padding: 15px 20px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 16px;
  transition: border 0.3s;
}

.modal-form input:focus {
  outline: none;
  border-color: #4A90E2;
}

.phone-input {
  display: flex;
  align-items: center;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding-left: 20px;
  transition: border 0.3s;
}

.phone-input:focus-within {
  border-color: #4A90E2;
}

.phone-input span {
  color: #666;
  font-weight: 600;
  margin-right: 10px;
}

.phone-input input {
  border: none;
  padding: 15px 20px 15px 0;
  flex: 1;
}


.modal-car-details {
  max-width: 900px;
  padding: 40px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.modal-gallery {
  position: relative;
}

.modal-gallery img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  height: 350px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-arrow:hover {
  background: #fff;
}

.gallery-arrow-left {
  left: 10px;
}

.gallery-arrow-right {
  right: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.gallery-dot {
  width: 30px;
  height: 3px;
  background: #E5E7EB;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: #4A90E2;
}

.modal-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.modal-info ul {
  list-style: none;
  margin-bottom: 20px;
}

.modal-info ul li {
  padding: 8px 0;
  color: #666;
  font-size: 15px;
}

.modal-info ul li b {
  color: #2c3e50;
}

.car-popup__price {
  margin: 20px 0;
}

.car-popup__old {
  margin-bottom: 10px;
}

.car-popup__old span {
  font-size: 14px;
  color: #999;
}

.car-popup__old del {
  display: block;
  font-size: 20px;
  color: #999;
  margin-top: 5px;
}

.car-popup__new span {
  font-size: 14px;
  color: #E63946;
  font-weight: 600;
}

.car-popup__new strong {
  display: block;
  font-size: 32px;
  color: #E63946;
  margin-top: 5px;
}

.modal-vin {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
  color: #666;
  font-size: 14px;
}

.modal-vin span {
  font-weight: 600;
  color: #2c3e50;
}


@media (max-width: 768px) {
  .modal-body {
      grid-template-columns: 1fr;
  }
  
  .modal-car-details {
      padding: 30px 20px;
  }
  
  .modal-form {
      padding: 40px 25px;
  }
}