/* ======================================================
   MAIN PAGE — 7422.by
====================================================== */

.home-page {
  min-height: 100vh;
  color: #ffffff;
  background: #05070c;
}

/* HERO */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(30,136,229,0.12), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(46,204,113,0.06), transparent 60%),
    #05070c;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.hero-left .badge {
  background: rgba(30,136,229,0.15);
  border: 1px solid rgba(30,136,229,0.3);
  color: #7ac4ff;
  padding: 7px 14px;
  border-radius: 40px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-left h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 900;
}

.hero-left h1 span {
  color: #1e88e5;
}

.hero-left p {
  font-size: 18px;
  color: #b0b3bc;
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stats-wrapper {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.stats {
  display: flex;
  gap: 34px;
  background: rgba(15, 20, 30, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 28px;
  padding: 18px 28px;
  border: 1px solid rgba(30,136,229,0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 30px;
  font-weight: 900;
  color: #1e88e5;
}

.stat-item p {
  font-size: 13px;
  color: #9da1ab;
  margin: 0;
}

.hero-right {
  width: 100%;
}

.hero-desktop-banner {
  display: block;
  width: 100%;
}

.hero-desktop-banner img {
  width: 100%;
  display: block;
  border-radius: 34px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(30,136,229,0.2);
}

.hero-mobile-slider {
  display: none;
}

/* FILTER */

.mini-filter {
  background: #0f1219;
  margin: 40px auto 20px;
  border-radius: 34px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.filter-select {
  width: 100%;
  background-color: #1a1f2c;
  border: none;
  padding: 14px 44px 14px 18px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2388aaff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.filter-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filter-btn {
  background: #2ecc71;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  color: #0a0c10;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: 0.2s ease;
}

.filter-btn:hover {
  background: #35e47f;
  transform: translateY(-1px);
}

/* QUICK ICONS */

.quick-icons {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-content: stretch;
  gap: 14px;
  margin: 22px auto 10px;
}

.icon-filter {
  min-width: 0;
  min-height: 128px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(30,136,229,0.12), transparent 56%),
    #0f1219;
  border-radius: 18px;
  padding: 8px 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(122,196,255,0.32);
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
}

.icon-filter img {
  width: 100%;
  height: 82px;
  max-width: 185px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.32));
  transition: 0.2s ease;
}

.icon-filter span {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.icon-filter:hover {
  border-color: rgba(122,196,255,0.75);
  background:
    radial-gradient(ellipse at 50% 18%, rgba(30,136,229,0.18), transparent 58%),
    #111722;
}

.icon-filter:hover img {
  transform: translateY(-2px) scale(1.04);
}

/* COMMON SECTIONS */

.section {
  padding: 56px 0 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 16px;
}

.section-header.centered {
  justify-content: center;
  text-align: center;
}

.section-header h2,
.section > h2 {
  font-size: clamp(28px, 4vw, 36px) !important;
  font-weight: 900;
  margin: 0;
}

.section-header p {
  max-width: 720px;
  color: #9da1ab;
  line-height: 1.6;
}

/* SOCIAL */

.social-alert {
  background: linear-gradient(105deg, #0b111e, #070b12);
  border-radius: 28px;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin: 40px 0;
  border: 1px solid rgba(30,136,229,0.25);
}

.social-alert h3 {
  margin: 0 0 8px;
}

.social-alert p {
  color: #9da1ab;
  margin: 0;
}

.social-icons-lg {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social-icons-lg a {
  background: #1e2a32;
  padding: 12px 24px;
  border-radius: 60px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease;
}

.social-icons-lg a i {
  font-size: 22px;
}

.social-icons-lg a:hover {
  background: #2ecc71;
  color: #05070c;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(15, 18, 25, 0.82);
  border: 1px solid rgba(30,136,229,0.14);
  text-decoration: none;
  color: #ffffff;
  transition: 0.22s ease;
}

.service-card::after {
  content: "Подробнее →";
  margin-top: auto;
  padding-top: 18px;
  color: #7ac4ff;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,136,229,0.45);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(30,136,229,0.1), transparent 50%),
    rgba(15, 18, 25, 0.96);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(30,136,229,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.service-card h4 {
  font-size: 23px;
  margin: 0 0 12px;
  color: #ffffff;
}

.service-card p {
  font-size: 14px;
  color: #cbd5e6;
  line-height: 1.6;
  margin: 0;
}

/* BENEFITS */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.benefit {
  background: #0f1219;
  padding: 28px 20px;
  border-radius: 26px;
  text-align: center;
  border: 1px solid rgba(30,136,229,0.1);
}

.benefit i {
  font-size: 38px;
  color: #1e88e5;
}

.benefit h3 {
  margin: 14px 0 8px;
}

.benefit p {
  color: #9da1ab;
  margin: 0;
  line-height: 1.5;
}

/* REVIEWS */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.review-card {
  background: #0f1219;
  border-radius: 26px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.stars {
  color: #ffc107;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #dddddd;
}

.review-author {
  color: #8f96a3;
}

/* HOME LATEST TITLE SAFETY */

.home-latest-section .section-header h2,
.home-latest-cars-section .section-header h2,
.latest-cars-section .section-header h2 {
  white-space: nowrap;
}

/* ADAPTIVE */

@media (max-width: 1200px) {
  .quick-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .icon-filter {
    min-height: 132px;
  }

  .icon-filter img {
    height: 86px;
    max-width: 210px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .stats-wrapper {
    justify-content: center;
  }

  .hero-right {
    width: 100%;
  }

  .hero-desktop-banner {
    display: none;
  }

  .hero-mobile-slider {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 26px;
    background: #05070c;
    border: 1px solid rgba(30,136,229,0.2);
  }

  .hero-mobile-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
  }

  .hero-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
  }

  .hero-mobile-slide img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    border: none;
    object-fit: cover;
    object-position: center;
  }

  .hero-mobile-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
  }

  .hero-mobile-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    cursor: pointer;
    transition: 0.2s ease;
  }

  .hero-mobile-dots button.active {
    width: 22px;
    border-radius: 999px;
    background: #2ecc71;
  }

  .mini-filter {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 14px;
  }

  .filter-select,
  .filter-btn {
    width: 100%;
  }

  .social-alert {
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }

  .social-icons-lg {
    justify-content: center;
  }

  .reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 42px 0 28px;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .home-latest-section .section-header,
  .home-latest-cars-section .section-header,
  .latest-cars-section .section-header {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }

  .home-latest-section .section-header h2,
  .home-latest-cars-section .section-header h2,
  .latest-cars-section .section-header h2 {
    font-size: 25px !important;
    white-space: nowrap;
  }

  .services-grid,
  .benefits {
    grid-template-columns: 1fr;
  }

  .quick-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 10px;
  }

  .icon-filter {
    min-height: 108px;
    border-radius: 15px;
    padding: 7px 6px 9px;
  }

  .icon-filter img {
    width: 108px;
    max-width: 108px;
    height: 66px;
  }

  .icon-filter span {
    min-height: 28px;
    font-size: 12.5px;
    font-weight: 900;
  }

  .home-services-section .section-header {
    text-align: center;
  }

  .home-services-section .section-header .btn {
    width: 100%;
    justify-content: center;
  }

  .service-card {
    align-items: center;
    text-align: center;
    min-height: auto;
    padding: 24px 20px;
    border-color: rgba(122,196,255,0.24);
  }

  .service-card::after {
    width: 100%;
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 999px;
    background: rgba(30,136,229,0.14);
    border: 1px solid rgba(122,196,255,0.28);
    color: #ffffff;
    box-sizing: border-box;
  }

  .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .social-alert {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .social-icons-lg {
    width: 100%;
    flex-direction: column;
  }

  .social-icons-lg a {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 34px 0 28px;
  }

  .hero-left .badge {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-left p {
    font-size: 15px;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .btn-group .btn {
    width: 100%;
  }

  .stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-radius: 20px;
    padding: 14px 10px;
  }

  .stat-number {
    font-size: 21px;
  }

  .stat-item p {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-mobile-slider {
    height: 168px;
    border-radius: 22px;
  }

  .mini-filter {
    margin-top: 28px;
  }

  .service-card,
  .review-card {
    padding: 20px;
    border-radius: 22px;
  }
}

@media (max-width: 380px) {
  .stat-number {
    font-size: 19px;
  }

  .stat-item p {
    font-size: 10px;
  }

  .hero-mobile-slider {
    height: 150px;
  }

  .home-latest-section .section-header h2,
  .home-latest-cars-section .section-header h2,
  .latest-cars-section .section-header h2 {
    font-size: 22px !important;
  }
}