/* Каталог: карточки машин и SEO-текст классов */

.auto_car {
  position: relative;
  isolation: isolate;
  cursor: pointer;
  transition: box-shadow .28s ease, border-color .28s ease;
}
/* вся карточка ведёт на страницу машины */
.auto_hit {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}
.auto_car .js-active-popup { position: relative; z-index: 6; }
.auto_car .auto_year,
.auto_car .auto_vikup { pointer-events: none; }
.auto_car .auto_link:focus-visible { outline: 3px solid #FEB600; outline-offset: 4px; border-radius: 4px; }
.auto_img { transition: background .35s ease; }
.auto_img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.auto_img:hover img { transform: none; }

.auto_specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 6px;
}
.auto_spec {
  background: #F3F6FC;
  border-radius: 12px;
  padding: 10px 6px 9px;
  text-align: center;
  line-height: 1.15;
  transition: background .25s ease;
}
.auto_spec::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  background: center / contain no-repeat;
}
.auto_spec--kpp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2'/%3E%3Ccircle cx='12' cy='6' r='2'/%3E%3Ccircle cx='18' cy='6' r='2'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='12' cy='18' r='2'/%3E%3Cpath d='M6 8v8M12 8v8M18 8v4H6'/%3E%3C/svg%3E"); }
.auto_spec--fuel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v15M3 20h12M4 10h10M14 8l3 3v6a1.5 1.5 0 0 0 3 0V9l-3-3'/%3E%3C/svg%3E"); }
.auto_spec--drop::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z'/%3E%3C/svg%3E"); }
.auto_spec--trunk::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='7' width='16' height='13' rx='2'/%3E%3Cpath d='M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M4 12h16'/%3E%3C/svg%3E"); }
.auto_spec--seats::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 20v-1a6 6 0 0 1 12 0v1M16 4a3 3 0 0 1 0 6M21 20v-1a6 6 0 0 0-4-5.6'/%3E%3C/svg%3E"); }
.auto_spec--class::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346577A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14v-4l-2-5H7l-2 5v4zM5 17v2M19 17v2M9 5h6v3H9z'/%3E%3Ccircle cx='8' cy='14' r='1'/%3E%3Ccircle cx='16' cy='14' r='1'/%3E%3C/svg%3E"); }
.auto_spec b { display: block; font-size: 15px; color: #1B1B1B; white-space: nowrap; }
.auto_spec span { display: block; font-size: 12px; color: #9198A2; margin-top: 2px; }

.auto_peek {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #1B1B1B;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.auto_peek::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FEB600' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) {
  .auto_car:hover,
  .auto_car:focus-within {
    border-color: #FEB600;
    box-shadow: 0 0 0 2px #FEB600, 0 0 0 8px rgba(254, 182, 0, .16), 0 24px 48px -24px rgba(27, 27, 27, .35);
  }
  .auto_car:hover .auto_img img,
  .auto_car:focus-within .auto_img img { transform: scale(1.07); }
  .auto_car:hover .auto_img { background: #FFF1C7; }
  .auto_car:hover .auto_spec { background: #FFF8E1; }
  .auto_car:hover .auto_peek { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 400px) {
  .auto_spec b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .auto_car,
  .auto_car * { transition: none !important; }
  .auto_car:hover .auto_img img { transform: none !important; }
}

/* SEO-текст классов: вступление и 4 блока по 2 в строке */
.wbx-seo__lead p:last-child { margin-bottom: 0; }
.wbx-seo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.wbx-seo__block {
  min-width: 0;
  background: #F7F9FC;
  border: 1px solid #E5EBF4;
  border-radius: 17px;
  padding: 32px 34px 17px;
}
.wbx-seo__block h3 { margin-top: 0; }
.wbx-seo__block h4 { margin-top: 24px; }
.wbx-seo__block .wbx-seo__scroll { background: #fff; }
.wbx-seo__block table { min-width: 0; }
.wbx-seo__block th,
.wbx-seo__block td { padding: 12px 14px; }
.wbx-seo__block tbody tr:nth-child(even) { background: #F3F6FC; }

@media (max-width: 900px) {
  .wbx-seo__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
}
@media (max-width: 768px) {
  .wbx-seo__block { padding: 24px 18px 9px; }
  .wbx-seo__block table { min-width: 480px; }
}
