/* ============================================================
   fcc-cars.css — редизайн карточек автомобилей с ценами (слайдер
   .car-slider, блок .example-prices). Утверждённый дизайн:
   белые карточки со скруглением, золотистой рамкой и мягкой тенью
   на кремовом фоне секции; шапка таблицы Service / Rate — serif
   обычным регистром с золотым штрихом под текстом (единый стиль
   с fcc-tables.css); цены единым serif-шрифтом (Georgia) одного
   веса, все чёрные; примечания VAT и криптовалюты двумя строками
   с золотой галочкой и значком биткоина в золотом кружке;
   кнопка Book this car: зелёная в покое, баклажановая при наведении.
   Внедрение: чистый CSS поверх существующей разметки + две точечные
   правки шаблона карточки (см. задание).
   Подключение: <link rel="stylesheet" href="/css/fcc-cars.css?v=1">
   Высокая специфичность html body — чтобы перебить !important темы.
   ============================================================ */

/* --- Секция флота: кремовый фон, чтобы белые карточки читались --- */
html body section:has(> .container .car-slider) {
  background: #f2f0ec !important;
  padding-top: 30px;
  padding-bottom: 30px;
}

/* --- Карточка --- */
html body .car-slider .swiper-slide {
  background: #ffffff !important;
  border: 1px solid #d9cdb2 !important;
  border-radius: 16px !important;
  padding: 24px 22px 26px !important;
  box-shadow: 0 10px 28px rgba(26, 26, 26, .08) !important;
  box-sizing: border-box;
}

/* --- Таблица цен --- */
html body .example-prices table {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-collapse: collapse !important;
  width: 100% !important;
  margin-top: 6px !important;
}
html body .example-prices table thead { display: table-header-group !important; }

/* Шапка Service / Rate: serif обычным регистром, золотой штрих под текстом —
   единый стиль с таблицами fcc-tables.css (решение заказчика 20.07.2026).
   Удвоенный класс .example-prices.example-prices и варианты с table.fcc-price
   нужны, чтобы перебить уже существующие на сайте правила
   .fcc-price thead th { Merriweather, uppercase !important }. */
html body .example-prices.example-prices table th,
html body .example-prices table.fcc-price thead th,
html body .example-prices table.fcc-price tbody tr:first-child th {
  background: transparent !important;
  border: none !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 4px 10px !important;
  text-indent: 0 !important;
  text-align: left !important;
  vertical-align: bottom;
}
html body .example-prices.example-prices table th:last-child {
  text-align: right !important;
  padding-right: 4px !important;
}
html body .example-prices.example-prices table th::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #a8863f;
  margin: 6px 0 0;
}
html body .example-prices.example-prices table th:last-child::after { margin-left: auto; }

/* Строки: единый serif, один вес, всё чёрное */
html body .example-prices table td {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #ded8c8 !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  padding: 12px 4px !important;
  text-align: left !important;
}
html body .example-prices table td:first-child { padding-left: 4px !important; }
html body .example-prices table td:last-child {
  text-align: right !important;
  padding-right: 4px !important;
  font-variant-numeric: tabular-nums;
}
/* Вложенные strong/b/span не ломают единый вид (тема утолщает последнюю колонку) */
html body .example-prices table td * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
}
html body .example-prices table tr:last-child td { border-bottom: none !important; }

/* --- Примечания: две строки, Arial, приглушённый цвет --- */
html body .example-prices .fcc-note {
  font-family: Arial, sans-serif !important;
  font-size: 11.5px !important;
  color: #8a8578 !important;
  margin: 10px 0 14px !important;
  text-align: center;
}
html body .example-prices .fcc-note span.ln { display: block; margin-top: 3px; }
html body .example-prices .fcc-note .g { color: #a8863f; font-weight: bold; }
/* Значок биткоина в золотом кружке, по центру строки */
html body .example-prices .fcc-note .btc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid #a8863f;
  border-radius: 50%;
  font-size: 9.5px;
  line-height: 1;
  color: #a8863f;
  font-weight: bold;
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: 5px;
}

/* --- Кнопка Book this car: зелёная → баклажановая при наведении --- */
html body .example-prices a.back-to-services {
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-weight: bold !important;
  padding: 14px 34px !important;
  border-radius: 8px !important;
  transition: all .3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
  background: #108567 !important;
  border: 1px solid #108567 !important;
  color: #fff !important;
}
html body .example-prices a.back-to-services:hover,
html body .example-prices a.back-to-services:focus {
  background: #40122D !important;
  border-color: #40122D !important;
  color: #fff !important;
}
/* Подчёркивания и декоративные элементы темы — гасим во всех состояниях */
html body .example-prices a.back-to-services,
html body .example-prices a.back-to-services:hover,
html body .example-prices a.back-to-services:focus,
html body .example-prices a.back-to-services:active {
  text-decoration: none !important;
  box-shadow: none !important;
}
html body .example-prices a.back-to-services *,
html body .example-prices a.back-to-services:hover * {
  text-decoration: none !important;
  border-bottom: none !important;
}
html body .example-prices a.back-to-services::before,
html body .example-prices a.back-to-services::after { display: none !important; }

/* --- Карточный вид для одиночных блоков цен и слайдера OUR FLEET ---
   Одиночные .example-prices с таблицей (страницы моделей /cars) и слайды
   .vehicle-slider (OUR FLEET на категориях и моделях) получают ту же
   белую карточку, что и слайды на главной. :not(.swiper-slide div)
   исключает блоки внутри слайдеров — у них карточка уже на слайде. */
html body div.example-prices:has(table):not(.swiper-slide div),
html body .vehicle-slider .swiper-slide {
  background: #ffffff !important;
  border: 1px solid #d9cdb2 !important;
  border-radius: 16px !important;
  padding: 24px 22px 26px !important;
  box-shadow: 0 10px 28px rgba(26, 26, 26, .08) !important;
  box-sizing: border-box;
}
/* Одиночная карточка на страницах моделей — тот же габарит, что на главной */
html body div.example-prices:has(table):not(.swiper-slide div) {
  max-width: 440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* --- Мобильные --- */
@media (max-width: 560px) {
  html body .car-slider .swiper-slide { padding: 18px 14px 20px !important; }
  html body .example-prices table td { font-size: 14px !important; padding: 10px 4px !important; }
  html body div.example-prices:has(table):not(.swiper-slide div),
  html body .vehicle-slider .swiper-slide { padding: 18px 14px 20px !important; }
  html body div.example-prices:has(table):not(.swiper-slide div) {
    max-width: 88% !important;
  }
}

/* --- Компактная высота карточек (решение заказчика 21.07.2026):
   карточка целиком помещается в экран десктопа и телефона --- */
html body .car-slider .swiper-slide { padding: 18px 20px 20px !important; }
html body .car-slider .swiper-slide .car-title { margin-bottom: 4px !important; }
html body .car-slider .swiper-slide .car-title h3,
html body .car-slider .swiper-slide .car-title a { font-size: 19px !important; }
html body .car-slider .swiper-slide picture img,
html body .vehicle-slider .swiper-slide picture img {
  max-height: 140px !important;
  width: auto !important;
  max-width: 82% !important;
  object-fit: contain;
  margin: 0 auto !important;
  display: block;
}
html body .car-slider .swiper-slide img[src*="eco" i],
html body .car-slider .swiper-slide img[alt*="eco" i],
html body .vehicle-slider .swiper-slide img[src*="eco" i],
html body .vehicle-slider .swiper-slide img[alt*="eco" i] {
  max-height: 14px !important; width: auto !important; margin: 2px auto 0 !important;
}

/* Фото в слайдах без <picture> (Meet & Greet, events, туры) — тот же габарит, что на главной (решение заказчика 22.07.2026) */
html body .car-slider .swiper-slide img {
  max-height: 140px !important;
  width: auto !important;
  max-width: 82% !important;
  object-fit: contain;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}
html body .car-slider .swiper-slide .h4,
html body .car-slider .swiper-slide a.h4 { font-size: 19px !important; }
html body .car-slider .swiper-slide br { display: none !important; }
html body .example-prices table { margin-top: 2px !important; }
html body .example-prices.example-prices table th { padding: 0 4px 7px !important; font-size: 14.5px !important; }
html body .example-prices table td { padding: 9px 4px !important; font-size: 15px !important; }
html body .example-prices .fcc-note { margin: 8px 0 10px !important; font-size: 11px !important; }
html body .example-prices a.back-to-services { padding: 12px 30px !important; }

/* --- Компактные фото и компоновка (решение заказчика 22.07.2026) ---
   1) Фото в одиночной карточке Example price (страницы моделей) было
      гигантским — ограничиваем, как в слайдерах.
   2) Слайды OUR FLEET (.vehicle-slider) растягивались с пустотой —
      собираем контент флекс-колонкой по центру, высота по контенту. */
html body div.example-prices:has(table):not(.swiper-slide div) img {
  max-height: 150px !important;
  width: auto !important;
  max-width: 80% !important;
  object-fit: contain;
  margin: 0 auto !important;
  display: block;
}
html body div.example-prices:has(table):not(.swiper-slide div) img[src*="eco" i],
html body div.example-prices:has(table):not(.swiper-slide div) img[alt*="eco" i] {
  max-height: 14px !important;
  margin: 2px auto 0 !important;
}
html body .vehicle-slider,
html body .vehicle-slider .swiper-wrapper { height: auto !important; }
html body .vehicle-slider .swiper-slide {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  height: auto !important;
  min-height: 0 !important;
}
/* Внутренние контейнеры слайда не распирают карточку (media-правила темы
   на широких экранах задают им высоты/отступы) */
html body .vehicle-slider .swiper-slide > div,
html body .vehicle-slider .swiper-slide .text-center {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .vehicle-slider .swiper-slide picture {
  display: block;
  height: auto !important;
  margin: 0 !important;
}
html body .vehicle-slider .swiper-slide img {
  max-height: 150px !important;
  width: auto !important;
  max-width: 88% !important;
  object-fit: contain;
}
html body .vehicle-slider .swiper-slide .example-prices { margin: 0 !important; }
/* OUR FLEET: карточка фиксированной ширины по центру слайда — как на главной.
   Слайд прозрачный, белую карточку рисует ::before; работает при любой
   ширине экрана и любом числе слайдов в ряду. */
html body .vehicle-slider .swiper-slide {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  padding: 26px 0 !important;
}
html body .vehicle-slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(480px, 94%);
  background: #fff;
  border: 1px solid #d9cdb2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(26, 26, 26, .08);
  z-index: 0;
}
html body .vehicle-slider .swiper-slide > * { position: relative; z-index: 1; }
/* --- Компактная одиночная карточка Example price (решение заказчика 22.07.2026):
   габарит один в один с карточками главной, помещается на экран телефона --- */
html body div.example-prices:has(table):not(.swiper-slide div) { padding: 16px 18px 18px !important; }
html body div.example-prices:has(table):not(.swiper-slide div) br { display: none !important; }
html body div.example-prices:has(table):not(.swiper-slide div) p { margin: 0 0 6px !important; }
html body div.example-prices:has(table):not(.swiper-slide div) p.h3,
html body div.example-prices:has(table):not(.swiper-slide div) .h3 {
  font-size: 19px !important;
  margin: 0 0 6px !important;
}
html body div.example-prices:has(table):not(.swiper-slide div) img { max-height: 120px !important; }
html body div.example-prices:has(table):not(.swiper-slide div) img[src*="eco" i],
html body div.example-prices:has(table):not(.swiper-slide div) img[alt*="eco" i] {
  max-height: 13px !important;
  margin: 2px auto 0 !important;
}
html body div.example-prices:has(table):not(.swiper-slide div) table { margin-top: 0 !important; }
html body div.example-prices:has(table):not(.swiper-slide div) table td {
  padding: 8px 4px !important;
  font-size: 14.5px !important;
}
html body .example-prices.example-prices:has(table):not(.swiper-slide div) table th {
  padding: 0 4px 6px !important;
  font-size: 14px !important;
}
html body div.example-prices:has(table):not(.swiper-slide div) .fcc-note {
  margin: 6px 0 8px !important;
  font-size: 10.5px !important;
}
html body div.example-prices:has(table):not(.swiper-slide div) a.back-to-services {
  padding: 11px 26px !important;
  font-size: 11.5px !important;
}

/* --- OUR FLEET (.vehicle-slider): вместимость, цена «от», золотые точки,
   скрытие стрелок. Данные — fleetSpecs() (тот же источник, что каталог /cars) --- */
html body .vehicle-slider .swiper-slide .fcc-cap {
  display: flex; justify-content: center; gap: 20px; margin: 2px 0 8px;
}
html body .vehicle-slider .swiper-slide .fcc-cap .vehicle-capacity__type {
  font-family: Arial, sans-serif; font-size: 12.5px; color: #6b6b6b;
}
html body .vehicle-slider .swiper-slide .fcc-from {
  font-family: Georgia, 'Times New Roman', serif; font-size: 16.5px;
  color: #1a1a1a; margin: 2px 0 4px; text-align: center;
}
html body .vehicle-slider .swiper-slide .fcc-from span { color: #a8863f; }
/* стрелки прячем только у этого слайдера */
html body .vehicle-slider .swiper-button-prev,
html body .vehicle-slider .swiper-button-next { display: none !important; }
/* золотые точки-пагинация */
html body .vehicle-slider .swiper-pagination { position: static; margin: 20px 0 4px; }
html body .vehicle-slider .swiper-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px; background: #d9cdb2; opacity: 1;
  border-radius: 50%; cursor: pointer; transition: all .3s ease;
}
html body .vehicle-slider .swiper-pagination .swiper-pagination-bullet-active {
  background: #a8863f; width: 22px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html body .example-prices a.back-to-services { transition: none !important; }
}

/* больше воздуха под точками карусели fccFleet, чтобы не липли к секции ниже (26.07.2026) */
html body .fcc-fleet .ff-dots {
  margin-bottom: 30px !important;
}
@media (max-width: 600px) {
  html body .fcc-fleet .ff-dots { margin-bottom: 34px !important; }
}

/* Стык кольца: при телепорте с копии на реальный слайд не проигрывать въезд заново */
.fcc-fleet .ff-slide.is-active.ff-noanim .ff-car{animation:none!important}
.fcc-fleet .ff-slide.is-active.ff-noanim .ff-shadow{animation:none!important}
