/* ============================================
   SECTIONS.CSS - Auto Lux Service
   Layout for each page section
   ============================================ */

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: var(--color-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--color-light-gray);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.img-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.3;
}

.img-placeholder__label {
  max-width: 80%;
  text-align: center;
  opacity: 0.5;
}

/* --- About Layout (text + image side by side) --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* --- Process horizontal timeline (desktop) --- */
.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--color-border);
  display: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--color-black);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--color-red-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
  mask-image: linear-gradient(to right, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
  z-index: 0;
}

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

.hero__content {
  max-width: 640px;
  padding: 40px 0;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-light-gray);
  margin-top: 20px;
  line-height: 1.6;
  max-width: 540px;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.hero__stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.hero__stats-item {
  font-size: 0.875rem;
  color: var(--color-light-gray);
}

.hero__stats-item strong {
  color: var(--color-white);
  font-weight: 600;
}

.hero__stats-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* --- Problems --- */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Problems section background decoration */
#problems {
  position: relative;
  overflow: hidden;
}

#problems::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

#problems::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle dot pattern overlay */
.problems-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.problems__cta {
  text-align: center;
  margin-top: 40px;
}

.problems__note {
  text-align: center;
  margin-top: 48px;
  font-size: 0.9375rem;
  color: var(--color-light-gray);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.about-grid__text h2 {
  margin-bottom: 20px;
}

.about-grid__text p {
  font-size: 0.9375rem;
  color: var(--color-light-gray);
  line-height: 1.7;
  text-align: left;
}

.about-grid__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-grid__image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* --- Services --- */
#services {
  background: #111111;
  position: relative;
  border-top: 1px solid rgba(227, 30, 36, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.services-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.services-grid::-webkit-scrollbar { display: none; }

.services-grid .service-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  min-height: 420px;
  overflow: hidden;
}

/* Desktop: grid instead of carousel */
@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .services-grid .service-card {
    flex: none;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hidden cards on desktop (show more) */
@media (min-width: 768px) {
  .service-card--hidden {
    display: none;
  }
  .services-grid.expanded .service-card--hidden {
    display: block;
  }
}

/* On mobile, hidden cards are visible (carousel) */
@media (max-width: 767px) {
  .service-card--hidden {
    display: block;
  }
  .services-more {
    display: none !important;
  }
}

.services-more .btn svg {
  transition: transform 0.3s ease;
}

.services-more.expanded .btn svg {
  transform: rotate(180deg);
}

/* --- Process --- */
.process__cta {
  text-align: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .process__cta {
    margin-top: 64px;
  }
}

/* --- Advantages --- */
/* Uses .grid-3 + .advantage components */

/* --- Brands --- */
.brands__note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--color-light-gray);
}

.brands__cta {
  text-align: center;
  margin-top: 24px;
}

/* --- Reviews --- */
/* Uses .reviews-slider component */

/* --- FAQ --- */
/* Uses .faq-list component */

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #3D080B 0%, #5C0B0F 25%, #7A1118 50%, #5C0B0F 75%, #3D080B 100%);
  background-attachment: fixed;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Dark overlay */
.cta-section .cta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Glass card wrapper */
.cta-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}

/* Декоративные частицы/элементы */
.cta-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  max-width: 600px;
  margin: 0 auto;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 16px auto 0;
}

.cta-section .section-header {
  margin-bottom: 32px;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta__note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Декоративные точки-частицы */
.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-particles span:nth-child(1) { top: 15%; left: 10%; width: 6px; height: 6px; }
.cta-particles span:nth-child(2) { top: 30%; right: 15%; width: 3px; height: 3px; }
.cta-particles span:nth-child(3) { bottom: 20%; left: 20%; width: 5px; height: 5px; }
.cta-particles span:nth-child(4) { top: 60%; right: 25%; width: 4px; height: 4px; }
.cta-particles span:nth-child(5) { bottom: 35%; left: 45%; width: 3px; height: 3px; }
.cta-particles span:nth-child(6) { top: 20%; right: 40%; width: 5px; height: 5px; }
.cta-particles span:nth-child(7) { bottom: 15%; right: 10%; width: 6px; height: 6px; }
.cta-particles span:nth-child(8) { top: 45%; left: 5%; width: 4px; height: 4px; }

/* --- Contacts --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__note {
  font-size: 0.9375rem;
  color: var(--color-light-gray);
  margin-top: 8px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
