/* AeroMobilis — главная: живые полки, секции, proof из каталога.
   Часть styles.css (нарезка 2026-10-18, без правок): подключается сразу за styles.css, порядок кусков = каскад. */
/* ---------- Живые полки главной ---------- */
.home-shelves-section {
  width: 100%;
  background: #fff;
  padding: 8px 0 28px;
}

.home-shelves {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--site-gutter-x);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-shelf {
  min-width: 0;
}

.home-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-shelf-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45em 0.65em;
  margin: 0;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}

.home-shelf-count {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted, #6b7685);
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

a.home-shelf-all.site-text-btn {
  flex-shrink: 0;
  text-decoration: none;
  padding: 0 0 3px;
  min-height: 0;
}

.home-shelf-scroller {
  min-width: 0;
}

.home-shelf-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* На десктопе страницы «прозрачны» — карточки в общей сетке */
.home-shelf-page {
  display: contents;
}

.home-shelf-track.is-watching-shift {
  opacity: 0.72;
  transition: opacity 0.22s ease;
}

.home-shelf-dots {
  display: none;
}

.home-shelf-dot {
  appearance: none;
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.home-shelf-dot.is-active {
  background: rgba(15, 23, 42, 0.55);
}

.home-lot-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(27, 36, 48, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-lot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 36, 48, 0.1);
}

.home-lot-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dfe5ec;
  overflow: hidden;
}

.home-lot-card-media img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  /* Чуть выше кадра: нижняя сервисная полоска IAAI (лот/дата) уходит за край */
  height: 112%;
  object-fit: cover;
  object-position: center top;
  transform: translateX(100%);
  transition: none;
  z-index: 0;
  will-change: transform;
}

.home-lot-card-media img.is-active {
  transform: translateX(0);
  z-index: 1;
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-lot-card-media img.is-leaving {
  transform: translateX(-100%);
  z-index: 1;
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-lot-card-media img.is-enter {
  transform: translateX(100%);
  z-index: 2;
  transition: none;
}

.home-lot-card-media img.is-enter-prev {
  transform: translateX(-100%);
  z-index: 2;
  transition: none;
}

.home-lot-card-media img.is-leaving-next {
  transform: translateX(100%);
  z-index: 1;
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-lot-photo-nav {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Стрелки только после первого тапа по фото */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.home-lot-card-media.is-gallery-on .home-lot-photo-nav {
  opacity: 1;
  pointer-events: auto;
}

.home-lot-photo-nav span {
  display: block;
  margin-top: -1px;
}

.home-lot-photo-nav--prev {
  left: 6px;
}

.home-lot-photo-nav--next {
  right: 6px;
}

.home-lot-photo-nav:active {
  background: rgba(15, 23, 42, 0.62);
}

.home-lot-photo-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(27, 36, 48, 0.18);
  z-index: 5;
  pointer-events: none;
}

.home-lot-photo-thumb {
  height: 100%;
  width: calc(100% / var(--photo-count, 1));
  /* Фирменный красный (не системный синий range/progress). */
  background: #e63946;
  background: var(--accent, #e63946);
  transform: translateX(calc(var(--photo-i, 0) * 100%));
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .home-lot-card-media img,
  .home-lot-card-media img.is-active,
  .home-lot-card-media img.is-leaving,
  .home-lot-card-media img.is-leaving-next,
  .home-lot-photo-thumb {
    transition: none;
  }
}

.home-lot-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  flex: 1;
  min-height: 0;
}

.home-lot-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  height: 1.25em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-lot-card-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 1.6em;
  font-size: 0.8rem;
  color: var(--muted);
}

.home-lot-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.home-lot-badge--copart { background: #2f6fed; }
.home-lot-badge--iaai { background: #d62828; }

.home-lot-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f8a4c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.home-lot-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
}

.home-lot-price-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.home-lot-price-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.home-lot-price-val--bn {
  color: #1f8a4c;
}

@media (max-width: 1100px) {
  .home-shelf-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-shelf-title {
    font-size: 0.95rem;
  }
  .home-shelf-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .home-shelf-scroller::-webkit-scrollbar {
    display: none;
  }
  .home-shelf-track {
    display: flex;
    gap: 0;
    width: 100%;
  }
  .home-shelf-track.is-watching-shift {
    opacity: 1;
  }
  .home-shelf-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  /* Неполная последняя страница — одна карточка слева */
  .home-shelf-page .home-lot-card:only-child {
    max-width: calc((100% - 10px) / 2);
  }
  .home-shelf-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    min-height: 12px;
  }
  .home-lot-card:hover {
    transform: none;
  }
  .home-lot-card-title {
    font-size: 0.86rem;
  }
  .home-lot-card-body {
    padding: 8px 9px 10px;
    gap: 6px;
  }
  .home-lot-prices {
    padding: 6px 8px;
    gap: 6px;
  }
  .home-lot-price-val {
    font-size: 0.9rem;
  }
  .home-lot-card-meta {
    font-size: 0.72rem;
    gap: 6px;
  }
  .home-lot-photo-nav {
    width: 26px;
    height: 26px;
    font-size: 1.25rem;
  }
  .home-lot-photo-nav--prev {
    left: 4px;
  }
  .home-lot-photo-nav--next {
    right: 4px;
  }
}

@media (max-width: 420px) {
  .home-shelf-page {
    gap: 8px;
  }
  .home-shelf-page .home-lot-card:only-child {
    max-width: calc((100% - 8px) / 2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    animation: none;
    transition: none;
    transform: none;
  }
}

.hero-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 28px auto 0;
  max-width: 720px;
  text-align: left;
  counter-reset: step;
}
.hero-steps li {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 12px 12px 36px;
  font-size: 0.9rem;
  position: relative;
}
.hero-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  font-weight: 700;
  color: #fff;
}

.section-lead {
  color: var(--muted);
  margin: -8px 0 22px;
  max-width: 640px;
  font-size: 0.95rem;
}

.service-list {
  list-style: disc;
  padding-left: 1.2em;
  font-size: 0.92rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.service-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.service-tagline {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.service-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.service-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 10px 0 10px 1.2em;
  max-width: 36em;
}

.footer-link {
  color: #cfd8e3;
  text-decoration: none;
}
.footer-link:hover { color: #fff; }

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* ---------- Секции ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
#services { padding-top: 48px; }
#services,
#sold-proof,
#catalog,
#calc,
#contact {
  scroll-margin-top: 72px;
}

/* ---------- Главная: proof из каталога ---------- */
.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.home-proof[hidden] { display: none; }

.home-proof-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.home-proof-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.1);
}
.home-proof-featured-photo {
  min-height: 220px;
  background: linear-gradient(135deg, #e8edf3, #d3dce6);
}
.home-proof-featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-proof-featured-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.home-proof-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-proof-title {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
}
.home-proof-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.home-proof-thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.home-proof-thumb {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.home-proof-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.08);
}
.home-proof-thumb-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #e8edf3, #d3dce6);
}
.home-proof-thumb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-proof-thumb-body {
  padding: 8px 12px 8px 0;
  min-width: 0;
}
.home-proof-thumb-body .home-proof-title {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-proof-actions {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .home-proof {
    grid-template-columns: 1fr;
  }
  .home-proof-featured {
    grid-template-columns: 1fr;
  }
  .home-proof-featured-photo {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }
  .home-proof-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-proof-thumb {
    grid-template-columns: 1fr;
  }
  .home-proof-thumb-photo { aspect-ratio: 4 / 3; }
  .home-proof-thumb-body {
    padding: 10px 12px 12px;
  }
  .home-proof-thumb-body .home-proof-title {
    white-space: normal;
  }
}
.section h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 24px;
}

.section h1,
.page-seo-intro h1 {
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.25;
}

.page-seo-intro {
  padding: 28px 0 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-seo-intro .section-lead {
  margin: 0;
  max-width: 640px;
}

.ss-browse-welcome__title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--ink, #1b2430);
}

