:root {
  --highlight-color: #000;
  --active-color: #f5f5f5;
  --hover-color: #e5e5e5;
  --tile-bg: #fff;
  --shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  --tile-border: 0px;                     /* Убираем скругления */
  
}

body {
  margin: 0; padding: 0;
  font-family: 'Arial', sans-serif;
  background: #ffffff;
  color: #000;
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  overscroll-behavior-y: contain; /* предотвращаем bounce на границах страницы */
}

.container {
  position: relative;
  max-width: 1200px; margin: 40px auto; padding: 0 20px;
}

/* ⭐ НОВОЕ: Логотип в правом верхнем углу */
.top-right-logo {
  position: absolute; /* ⭐ Статичный, исчезает при скролле */
  top: 10px;
  right: 250px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.top-right-logo img {
  height: 60px;
  width: auto;  
}

/* ⭐ НОВОЕ: Для мобильных устройств */
@media (max-width: 768px) {
  .top-right-logo {
    position: absolute; /* ⭐ ИЗМЕНЕНО: fixed → absolute */
    top: 15px;
    right: -255px;
    z-index: 1000;
  }
  
  .top-right-logo img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .top-right-logo {
    position: absolute; /* ⭐ ИЗМЕНЕНО: fixed → absolute */
    top: 15px;
    right: -595px;
    z-index: 1000;
  }
  
  .top-right-logo img {
    height: 60px;
  }
}

/* РАЗМЕРЫ ПАНЕЛЬКИ SUMMARY И МОДЕЛЕЙ СПРАВА */
.layout { display: flex; gap: 20px; }
.left-column {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.right-column {
  flex: 1.5;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top-bar */
.top-bar { 
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
  
.price-list-title { 
  font-size: 36px; 
  font-weight: bold; 
  line-height: 44px;
  color: #000;
}

span a {
  text-decoration: none;
  color: #000;
  cursor: pointer;
}
span a:hover {
  text-decoration: underline;
}

.user-info:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.05);
  border-color: #333;
}

.user-label {
  font-weight: 600;
  min-width: max-content;
  color: #000;
}

.price-modifier {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.brand-access {
  font-size: 12px;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Убираем все цветовые схемы - везде черно-белый стиль */
.user-info[data-user="admin"],
.user-info[data-user="porsche"],
.user-info[data-user="lotus"],
.user-info[data-user="vip"],
.user-info[data-user="partner"],
.user-info[data-user="guest"] {
  background: transparent;
  border: 2px solid transparent;
  color: #000;
}

.user-info[data-user="admin"]:hover,
.user-info[data-user="porsche"]:hover,
.user-info[data-user="lotus"]:hover,
.user-info[data-user="vip"]:hover,
.user-info[data-user="partner"]:hover,
.user-info[data-user="guest"]:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: #333;
}
/* Универсальное решение для всех элементов */
*, *::before, *::after {
  box-sizing: border-box;
}
  
#brandSelect {
  flex: 1; 
  padding: 10px; 
  font-size: 18px; 
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  border-radius: 10px;
  appearance: none;
  background: #ffffff; /* Черный фон */
  color: #000000; /* Белый текст */
  height: 44px;
  transition: all 0.2s ease;
  user-select: none;
}

#brandSelect option {
  background: #fff; /* Белый фон для опций */
  color: #000; /* Черный текст для опций */
}

#brandSelect option:checked { 
  background-color: var(--active-color);
  color: #000;
}

#brandSelect:focus {
  border: 2px solid transparent;
  outline: none;
}

#brandSelect:hover {
  cursor: pointer;
  background-color: #ffffff; /* Темнее при наведении */
  border: 2px solid #333;

}

/* Кросс-фейд главного изображения */
.car-image { position: relative; }  /* нужно для абсолютного позиционирования слоя */


.car-image img.xfade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease-in-out;
  pointer-events: none;
  border-radius: inherit; /* повторяем скругление контейнера */
}

.car-image img.xfade.show {
  opacity: 1;
}

/* растягивание с обрезкой сверху/снизу */
.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.4s ease-in-out;
  border-radius: inherit;
}


.car-image img.fade-out {
  opacity: 0;
}

.model-buttons { display: flex; flex-direction: column; gap: 10px; }

.model-button {
  width: 100%;
  padding: 0; 
  height: 44px; 
  font-size: 16px;
  font-weight: 500;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  border-radius: 10px;
  background: #0f0f0f; /* Черный фон */
  color: #fff; /* Белый текст */
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.model-button:hover {
  background: #333;
  border: 2px solid transparent;
}

.model-button.active {
  background: var(--active-color);
  color: #000; /* Черный текст для активной кнопки */
  border: 2px solid transparent;
  font-weight: bold;
}

/* Sticky container */
.sticky-container {
  position: sticky;
  top: 20px;
  z-index: 100;
  transition: all 0.3s ease;
  will-change: transform; /* оптимизация для GPU ускорения */
}

/* ⭐ НОВОЕ: Отключаем анимацию при быстром скролле на мобильных */
@media (max-width: 768px) {
  .sticky-container {
    transition: all 0.2s ease; /* более быстрая анимация на мобильных */
  }
}

/* ⭐ НОВОЕ: Полностью отключаем transition для пользователей с настройкой "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .sticky-container,
  .user-container {
    transition: none;
  }
}

/* User container */
.user-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  border: 2px solid transparent;
  align-items: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  will-change: background, box-shadow; /* оптимизация для GPU */
}

/* ⭐ НОВОЕ: Ускоренная анимация на мобильных */
@media (max-width: 768px) {
  .user-container {
    transition: all 0.2s ease;
  }
}

.sticky-container.scrolled .user-container {
  background: rgba(255, 255, 255, 0.98);
  /* Убираем изменение обводки при скроллинге */
  box-shadow: 
    var(--shadow),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-container .user-info {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 2px solid transparent;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: none;
}

.user-container .user-info:hover {
  transform: none;
  background: transparent;
  border: 2px solid transparent;
}

.user-container .user-label {
  font-weight: 600;
  color: #000;
}

/* Кнопка logout */
.logout-button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: 2px solid #ccc; /* Более тонкая обводка */
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.logout-button:hover {
  color: #fff;
  background: #000;
}

.logout-button:active {
  transform: translateY(1px);
}

/* Summary block */
.sticky-container .summary-block {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px); /* ⭐ УВЕЛИЧЕНО с 40px до 240px */
}

/* ⭐ НОВОЕ: Адаптивная высота для мобильных в горизонтальном положении */
@media (max-width: 768px) and (orientation: landscape) {
  .sticky-container .summary-block {
    max-height: calc(100vh - 0px); /* Уменьшаем отступ для landscape на мобильных */
  }
}

/* ⭐ НОВОЕ: Еще меньший отступ для очень маленьких экранов в landscape */
@media (max-width: 768px) and (max-height: 450px) and (orientation: landscape) {
  .sticky-container .summary-block {
    max-height: calc(100vh - 0px); /* Минимальный отступ для очень низких экранов */
  }
}

.summary {
  background: var(--tile-bg); 
  padding: 15px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 0;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* важно для корректной работы overflow в flex */
  overflow: hidden; /* скрываем переполнение контейнера */
}

.summary h3 {
  margin: 0; 
  text-align: center; 
  font-size: 18px; 
  font-weight: bold;
  color: #000;
  flex-shrink: 0; /* заголовок не сжимается */
}

.summary hr { 
  border: 2px solid transparent; 
  border-top: 2px solid #000; 
  margin: 10px 0;
  flex-shrink: 0; /* линии не сжимаются */
}

/* ⭐ КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Скроллируемый список опций */
.summary ul { 
  list-style: none; 
  padding: 0;
  padding-right: 8px; 
  margin: 0;
  overflow-y: auto; /* вертикальная прокрутка */
  flex: 1; /* занимает все доступное пространство */
  min-height: 0; /* позволяет сжиматься */
  max-height: 100%; /* ограничение по высоте */
}

/* ⭐ СТИЛИЗАЦИЯ СКРОЛЛБАРА */
.summary ul::-webkit-scrollbar {
  width: 8px;
}

.summary ul::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.summary ul::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.summary ul::-webkit-scrollbar-thumb:hover {
  background: #000;
}

.summary ul li {
  display: flex; 
  justify-content: space-between;
  align-items: center; /* ⭐ ДОБАВЛЕНО: вертикальное выравнивание */
  margin-bottom: 5px; 
  font-size: 14px;
  line-height: 1.4; /* ⭐ ДОБАВЛЕНО: фиксированная высота строки */
  color: #000;
  flex-shrink: 0;
}

/* ⭐ ДОБАВЛЕНО: Выравнивание для текста и цены внутри li */
.summary ul li span {
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.total-row {
  display: flex; 
  justify-content: space-between; 
  font-weight: bold; 
  font-size: 16px;
  color: #000;
  flex-shrink: 0; /* итоговая строка не сжимается */
  margin-top: auto; /* прижимается к низу */
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0; /* хедер не сжимается */
}

/* крестик сброса */
#resetSummary {
  background: transparent;
  border: 2px solid transparent;
  font-size: 18px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

#resetSummary:hover {
  color: #000;
  background-color: #f0f0f0;
}

#generatePdf {
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  white-space: nowrap;
  background-color: #fff;
  color: #000;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow); /* Добавляем тень */
   margin-bottom: 20px; /* ⭐ ДОБАВЛЕНО: отступ снизу у PDF кнопки */
}

#generatePdf:hover {
  background-color: #000000;
  color: #fff;
}


/* ⭐ ОБНОВЛЕНО: Аккордеоны - белые с черным контуром */
.accordion-header {
  display: flex;
  align-items: center;
  font-size: 17px;
  justify-content: space-between;
  font-weight: bold;
  color: #000; /* Черный текст */
  background-color: #fff; /* Белый фон */
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 2px solid transparent; /* Черный контур */
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  margin-top: 0;
  margin-bottom: 0px;
  padding: 12px 20px;
  transition: all 0.2s ease;
  }

.accordion-header:hover {
  background-color: #f5f5f5;
  border-color: transparent;
}

.accordion-header.open {
  background-color: #0f0f0f;
  color: #ffffff;
  border: 2px solid #333;
  }

/* АНИМАЦИЯ АККОРДЕОНОВ */
.accordion-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  padding: 0;
}

.accordion-content.open {
  max-height: 5000px;
  opacity: 1;
  padding: 10px 8px; /* 20px сверху и снизу */
}

/* Индикатор состояния аккордеона */
.accordion-header::after {
  content: '+';
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.accordion-header.open::after {
  transform: rotate(45deg);
}

/* Плавная анимация аккордеонов (динамическое наращивание) */
.sub-accordion-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.sub-accordion-content.open {
  overflow: visible;
}

/* Анимация появления контролов количества */
.quantity-control {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* СЕТКА И СПИСКИ */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 20px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 20px;
}

/* КАРТОЧКИ */
.option-grid .option-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  user-select: none;
  position: relative;
  background: var(--tile-bg);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 1rem;
  gap: 0.75em;
  transition: all 0.2s ease;
}

.option-list .option-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  position: relative;
  background: var(--tile-bg);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  border-radius: 10px;
  padding: 0.5rem;
  padding-left: 3rem;
  padding-right: 1rem;
  gap: 0.75em;
  transition: all 0.2s ease;
}

/* Карточки для Protection film special */
.option-card.highlight-yellow {
  background-color: #fff3b6;
}

/* ⭐ ОБНОВЛЕНО: Переименовываем и оставляем только эффект мерцания */
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Наведение на карточки */
.option-card:hover {
  background-color: var(--hover-color);
  /* Убираем обводку при hover */
}

/* Активные карточки */
.option-card.active { 
  background: var(--active-color);
  border: 2px solid #0f0f0f; /* Черная обводка для выбранных карточек */
}

/* ЧЕКБОКСЫ */
.option-card input[type="checkbox"] {
  align-self: flex-start;
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  width: 20px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #ccc; /* Более тонкая серая обводка */
  border-radius: 6px;
  background: #fff;
  transition: background 0.2s ease;
  pointer-events: none;
}

input[type="checkbox"]:checked {
  background-color: #0f0f0f;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Defender Special - бледно-желтый фон */
.option-card[data-id*="def_matte_"][data-id*="_special"] {
  border-color: transparent;
  background-color: #fff3b6;
  position: relative;
  overflow: hidden;
}

.option-card[data-id*="def_matte_"][data-id*="_special"]:hover {
  background-color: #ffefa0;
}

.option-card[data-id*="def_matte_"][data-id*="_special"].active {
  border-color: #000000;
  background-color: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.option-card[data-id*="def_matte_"][data-id*="_special"].disabled {
  background-color: #fff3b6 !important;
}
/* Увеличенный отступ слева для defender special карточек */
.option-card[data-id*="def_matte_"][data-id*="_special"] .option-card-content {
  padding-left: 40px; /* увеличиваем с обычных ~15px до 50px */
}

/* Уменьшаем размер шрифта если текст слишком длинный */
.option-card[data-id*="def_matte_"][data-id*="_special"] .label {
  font-size: 0.95rem; /* немного меньше обычного */
  line-height: 1.3; /* более плотная высота строки */
}

.option-list .option-card input[type="checkbox"] {
  left: 1rem;
  top: 50%;
  right: auto;
  transform: translateY(-50%);
}

.option-grid .option-card input[type="checkbox"] {
  top: 1.5rem;
  left: 1.5rem;
  right: auto;
  transform: none;
}

/* ИЗОБРАЖЕНИЯ */
.option-card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.option-card-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* КОНТЕНТ КАРТОЧЕК */
.option-card-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5em;
}

.option-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.option-right {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  text-align: right;
  justify-content: flex-end;
  gap: 8px;
}

/* ТЕКСТ */
.label {
  margin: 0;
  font-weight: normal;
  font-size: 1rem;
  color: #000;
}

.description {
  margin: 0.25em 0 0;
  font-size: 0.9rem;
  color: #333;
}

.price {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  margin: 0;
}

/* КОЛИЧЕСТВО */
.quantity-control {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.option-card.active .quantity-control {
  display: flex;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border: 2px solid #0f0f0f; /* Более тонкая обводка */
  background: #fff;
  color: #0f0f0f;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  user-select: none;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #000;
  color: white;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #0f0f0f;
  border-color: #0f0f0f;
}

.quantity-input {
  width: 32px;
  height: 24px;
  text-align: center;
  border: 2px solid #0f0f0f; /* Более тонкая обводка */
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  background: #fff;
  color: #000;
}

/* СЕТКА */
.option-grid .option-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 0;
}

.option-grid .option-left {
  width: 100%;
  text-align: left;
}

.option-grid .option-right {
  flex: unset;
  width: 100%;
  text-align: right;
}

.option-grid .quantity-control {
  justify-content: center;
}

/* Ремонт */
.repair-header {
  background-color: #d7d7d7; /* Светло-серый, темнее общего фона */
  color: #000;
  border: 2px solid transparent;
}

.repair-header:hover {
  background-color: #cbcbcb; /* Еще темнее при наведении */
}

/* PANORAMA ROOF И SPORTS PACKAGE КНОПКИ */
/* Ряд для маленьких овальных кнопок */
.pf-chips{
  display:flex;
  flex-wrap:wrap;     /* чтобы помещалось несколько на строке */
  gap:8px;
  align-items:center;
  width:100%;
}

/* Маленькие овальные кнопки (чипы) */
.panorama-roof-button,
.sports-package-button,
.carbon-package-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  margin:0;                 /* отступы даёт gap у .pf-chips */
  font-size:14px;
  font-weight:600;
  color:#333;
  background:#f5f6f7;
  border:1px solid #919294;
  border-radius:9999px;     /* овальная форма */
  box-shadow:none;
  width:auto;               /* отменяем прежние 100% */
  height:auto;              /* отменяем фиксированную высоту */
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
  grid-column:auto;         /* не растягивать на весь grid */
  white-space:nowrap;       /* чтобы не ломалась на 2 строки */
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}

.panorama-roof-button:hover,
.sports-package-button:hover,
.carbon-package-button:hover{
  background:#ffffff;
  border-color:#d1d5db;
  transform:translateY(-1px);
}

.panorama-roof-button:active,
.sports-package-button:active,
.carbon-package-button:active{
  transform:translateY(0);
}

.panorama-roof-button.panorama-active,
.sports-package-button.sports-active,
.carbon-package-button.carbon-active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.panorama-roof-button.panorama-active:hover,
.sports-package-button.sports-active:hover,
.carbon-package-button.carbon-active:hover{
  background:#222;
}

/* ⭐ Кнопка Used Car для interior_ceramic */
.used-car-button-interior {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #f5f6f7;
  border: 1px solid #919294;
  border-radius: 9999px;
  box-shadow: none;
  width: auto;
  height: auto;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  grid-column: auto;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.used-car-button-interior:hover {
  background: #ffffff;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.used-car-button-interior:active {
  transform: translateY(0);
}

.used-car-button-interior.used-car-interior-active {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

.used-car-button-interior.used-car-interior-active:hover {
  background: #000000;
  border-color: #000000;
}

/* MODEL SELECT */
.model-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 18px;
  font-weight: 500;
  color: #000000; /* Белый текст */
  background: #ffffff; /* Черный фон */
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" 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 12px center;
  background-size: 16px;
  padding-right: 40px;
  max-height: 44px;
}

.model-select:hover {
  background-color: #ffffff; /* Темнее при наведении */
  border: 2px solid #333;
}

.model-select:focus {
  outline: none;
  border: 2px solid transparent;
}

.model-select option {
  padding: 10px;
  background: #fff; /* Белый фон для опций */
  color: #000; /* Черный текст для опций */
  font-size: 14px;
}

.model-select option:checked {
  background-color: var(--active-color);
  color: #000;
  font-weight: bold;
}

.model-select option:hover {
  background-color: var(--hover-color);
}

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: 10px;
  border: 2px solid #000;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: #333;
  margin: 5px 0 0 0;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: 2px solid transparent;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #000;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.action-section {
  padding: 20px;
  border: 2px solid #000;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.action-section:hover {
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-description {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.email-section,
.customer-name-section,
.message-section {
  margin-bottom: 15px;
}

.customer-name-input,
.email-input,
.message-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #000;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  color: #000;
  background: #fff;
}

.customer-name-input:focus,
.email-input:focus,
.message-input:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.customer-name-input.error,
.email-input.error {
  border-color: #000;
  background: #f8f8f8;
}

.customer-name-note,
.email-note {
  margin-top: 8px;
  padding: 8px 12px;
  background: #ededed;
  border: 2px solid #ffffff;
  border-radius: 10px;
  color: #000;
}

.customer-name-note small,
.email-note small {
  font-size: 12px;
  line-height: 1.4;
  display: block;
}

.message-label {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  font-size: 14px;
}

.message-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
  font-family: inherit;
}

.message-input::placeholder {
  color: #666;
  font-style: italic;
}

.message-counter {
  text-align: right;
  margin-top: 4px;
  color: #666;
}

.message-counter small {
  font-size: 11px;
}

.message-counter.warning {
  color: #000;
}

.message-counter.error {
  color: #000;
}

.error-message {
  color: #000;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.action-button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.download-button {
  background: #0f0f0f;
  color: #ffffff;
}

.download-button:hover {
  background: #7b7b7b;
  color: #fff;
  transform: translateY(-1px);
}

.email-button {
  background: #0f0f0f;
  color: #ffffff;
}

.email-button:hover {
  background: #7b7b7b;
  color: #fff;
  transform: translateY(-1px);
}

.email-button:disabled {
  background: #f5f5f5;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.action-button:active {
  transform: translateY(0);
}

.loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-message {
  background: #f8f8f8;
  color: #000;
  padding: 12px;
  border: 10px;
  margin-top: 10px;
  display: none;
  font-size: 14px;
  border: 2px solid #000;
}

.success-message.show {
  display: block;
  animation: successSlideIn 0.3s ease-out;
}

@keyframes successSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  font-style: normal;
}

/* Адаптивность */
@media (max-width: 768px) {
  .model-select {
    font-size: 16px;
    padding: 14px 16px;
    padding-right: 40px;
  }
}

@media (max-width: 600px) {
  .modal-content {
    margin: 20px;
    padding: 20px;
    max-height: 85vh;
  }
  
  .modal-actions {
    gap: 15px;
  }
  
  .action-section {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .action-title {
    font-size: 15px;
  }
  
  .action-button {
    padding: 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 10px;
    padding: 15px;
  }
  
  .modal-close {
    top: 10px;
    right: 15px;
  }
  
  .action-section {
    padding: 12px;
  }
}
/* Ограничение высоты изображений для film_maintenance_kits */
.film-maintenance-group .option-card-image {
  max-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.film-maintenance-group .option-card-image img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.2s ease;
}

.film-maintenance-group .option-card:hover .option-card-image img {
  transform: scale(1.05);
}
/* ⭐ CSS для подаккордеона extra_film - уменьшенная высота и правильное выравнивание */
.extra-film-sub {
  margin-top: 0px;
  width: 100%;
  grid-column: 1 / -1;
}

.extra-film-sub .option-card {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 16px; /* Уменьшили отступы */
  background: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  gap: 20px; /* Отступ между чекбоксом и текстом */
  min-height: 20px; /* Уменьшили высоту с 60px до 48px */
  }

.extra-film-sub .option-card:hover {
  box-shadow: 0 4px 8px rgba(0,123,255,0.1);
  transform: translateY(-2px);
}

.extra-film-sub .option-card.active {
  border-color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

/* Чекбокс слева */
.extra-film-sub .option-card input[type="checkbox"] {
  
  margin: 0px;
  flex-shrink: 0;
 }

/* Текст с отступом от чекбокса */
.extra-film-sub .label {
  margin: 13px;
  font-weight: 500;
  color: #000;
  line-height: 1;
  flex: 1;
  margin-left: 40px; /* Дополнительный отступ от чекбокса */
}

/* Цена справа */
.extra-film-sub .price {
    font-weight: bold;
  color: #000;
  margin: 0px;
  flex-shrink: 0;
  white-space: nowrap;
}
.extra-film-sub .option-left {
  flex-direction: row;
}


/* Контейнер для кнопки Stealth */
.stealth-button-container {
  width: 100%;
  margin-bottom: 8px;
}

/* Стили для кнопки Stealth - во всю ширину */
.stealth-button {
  width: 100%; /* Занимает всю ширину контейнера (как 2 карточки) */
  padding: 14px 20px;
  background: linear-gradient(135deg, #4c4c4c 0%, #535353 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stealth-button:hover {
  background: linear-gradient(135deg, #626262 0%, #474747 100%);
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
  transform: translateY(-1px);
}

.stealth-button.stealth-active {
  background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stealth-button.stealth-active:hover {
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Стили для карточек extra_film при активном Stealth режиме */
.extra-film-sub.stealth-mode-active .option-card {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #d3d3d3 !important;
  transition: all 0.3s ease;
  position: relative;
}

.extra-film-sub.stealth-mode-active .option-card .label {
  color: #000000 !important;
  font-weight: 500;
}

.extra-film-sub.stealth-mode-active .option-card .description {
  color: #000000 !important;
}

.extra-film-sub.stealth-mode-active .option-card .price {
  color: #000000 !important;
  font-weight: 700;
}

.extra-film-sub.stealth-mode-active .option-card:hover {
  background-color: #ffffff !important;
  border-color: #e3e3e3 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.extra-film-sub.stealth-mode-active .option-card.active {
  background-color: #323232 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  
}

.extra-film-sub.stealth-mode-active .option-card.active .label,
.extra-film-sub.stealth-mode-active .option-card.active .description,
.extra-film-sub.stealth-mode-active .option-card.active .price {
  color: #ffffff !important;
}

/* Эмодзи для активных карточек в stealth режиме */
.extra-film-sub.stealth-mode-active .option-card.active::before {
  content: "Stealth";
  position: absolute;
  margin-right: 8px;
  top: 8px;
  right: 8px;
  font-size: 16px;
  opacity: 0.8;
  z-index: 1;
  font-weight: 700;
  color: #ff7a27
}

/* Анимация при переключении режима */
.extra-film-sub .option-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===== СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ===== */

/* Контейнер заголовка аккордеона */
.accordion-header-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

/* Кнопка "商品説明" */
.service-info-button {
  background: #fff;
  color: #000;
  border: 2px solid transparent;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  white-space: nowrap;
  min-width: 80px;
  position: relative;
  left: -10px;
}

.service-info-button:hover {
  background: #f5f5f5;
  border: 2px solid #333;
}

.service-info-button:active {
  border: 2px solid #333;
}

/* Модальное окно */
.service-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.service-info-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Overlay */
.service-info-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(206, 206, 206, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Контент модального окна */
.service-info-modal-content {
  background: #fff;
  border-radius: 10px;
  border: 0px solid #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 1200px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  animation: modalSlideIn 0.3s ease forwards;
}

.service-info-modal.active .service-info-modal-content {
  transform: scale(1) translateY(0);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Заголовок модального окна */
.service-info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #000;
  background: #f5f5f5;
}

.service-info-modal-header h3 {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
}

/* Кнопка закрытия */
.service-info-modal-close {
  background: transparent;
  border: 2px solid transparent;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.service-info-modal-close:hover {
  background: #f5f5f5;
  color: #000;
  transform: rotate(45deg);
}

/* Тело модального окна */
.service-info-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
  color: #000;
  font-size: 15px;
}

.service-info-modal-body p {
  margin-bottom: 16px;
  color: #000;
}

.service-info-modal-body p:last-child {
  margin-bottom: 0;
}

/* Скроллбар для модального окна */
.service-info-modal-body::-webkit-scrollbar {
  width: 6px;
}

.service-info-modal-body::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 10px;
}

.service-info-modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.service-info-modal-body::-webkit-scrollbar-thumb:hover {
  background: #000;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .service-info-modal-overlay {
    padding: 10px;
  }
  
  .service-info-modal-content {
    max-height: 90vh;
  }
  
  .service-info-modal-header {
    padding: 16px 20px;
  }
  
  .service-info-modal-header h3 {
    font-size: 18px;
  }
  
  .service-info-modal-body {
    padding: 20px;
    font-size: 14px;
  }
  
  .service-info-button {
    padding: 4px 8px;
    font-size: 11px;
    min-width: 70px;
  }
}

/* ── Мельче шрифты на карточках Protection Film (2×2) и Protection Film Special ── */
.option-group[data-service-id="protection_film"] .option-card .label,
.option-group[data-service-id="protection_film_special"] .option-card .label{
  font-size: 0.9rem;   /* было 1rem */
}

.option-group[data-service-id="protection_film"] .option-card .description,
.option-group[data-service-id="protection_film_special"] .option-card .description{
  font-size: 0.8rem;   /* было 0.9rem */
}

.option-group[data-service-id="protection_film"] .option-card .price,
.option-group[data-service-id="protection_film_special"] .option-card .price{
  font-size: 0.9rem;   /* было 1rem */
}

/* (опционально) чуть компактнее сами карточки в этих группах */
.option-group[data-service-id="protection_film"] .option-card,
.option-group[data-service-id="protection_film_special"] .option-card{
  gap: 0.5em;
  padding: 0.75rem;
}


/* --- Hero header (вместо PRICE LIST) --- */
.hero-copy{
  display:block;
  max-width: 680px;
  line-height: 1.15;
}

.hero-eyebrow{
  font-size: 14px;         /* маленькая строка сверху */
  font-weight: 500;
  color: #2b2b2b;
  margin-bottom: 4px;
}

.hero-headline{
  font-size: 30px;  /* большой жирный заголовок */
  font-weight: 700;
  color:#0f0f0f;
  letter-spacing: .01em;
  margin: 0 0 8px 0;
}

.hero-subline{
  font-size: 18px; /* серая подпись */
  font-weight: 400;
  color:#555;
}

.hero-subline strong{
  font-weight: 600;         /* “5分で予約確定。” — темнее и жирнее */
  color:#222;
}

/* опционально: удалить стили старого заголовка, если класс больше не используется */
.price-list-title{ display:none; }

/* Уплотняем межбуквенное расстояние в японском заголовке */
.hero-headline{
  letter-spacing: -0.2em;             /* было по умолчанию 0; делаем плотнее */
  font-kerning: normal;
  font-feature-settings: "palt" 1, "pkna" 1; /* если шрифт поддерживает, сжимает кана/знаки */
}

/* чуть плотнее на больших экранах, помягче на мобильных */
@media (min-width: 1024px){
  .hero-headline{ letter-spacing: -0.03em; }
}
@media (max-width: 600px){
  .hero-headline{ letter-spacing: -0.01em; }
}

/* Контейнер: чтобы слой не вылезал за рамки */
.car-image{
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* Вайп с мягким швом (45°), слева-направо */
.car-image img.xwipe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: inherit;
  /* ширина «перышка» (можно править) */
  --feather: 60px;

  /* маска: слева непрозрачно (видно), справа прозрачно (скрыто), между ними мягкий градиент шириной --feather */
  -webkit-mask-image: linear-gradient(
    45deg,
    #000 0,
    #000 calc(50% - var(--feather)),
    rgba(0,0,0,0) calc(50% + var(--feather))
  );
          mask-image: linear-gradient(
    45deg,
    #000 0,
    #000 calc(50% - var(--feather)),
    rgba(0,0,0,0) calc(50% + var(--feather))
  );

  /* двигаем саму маску от левого края к правому */
  -webkit-mask-size: 220% 220%;
          mask-size: 220% 220%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
   -webkit-mask-position: right center;   /* было: left center */
          mask-position: right center;   /* было: left center */


  transition:
    -webkit-mask-position .6s ease-in-out,
            mask-position .6s ease-in-out;
  will-change: mask-position;
}

/* «Показ»: смещаем маску к правому краю → картинка «наезжает» слева направо */
.car-image img.xwipe.show{
  -webkit-mask-position: left center;    /* было: right center */
          mask-position: left center;    /* было: right center */
}

/* FIX: модельный селект — чтобы не резало буквы */
.model-select {
  width: 100%;
  padding: 0px 40px 0px 16px; /* ⭐ ИЗМЕНЕНО: вернули симметричные отступы */
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" 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 12px center;
  background-size: 16px;
  height: 44px;
  min-height: 44px; /* ⭐ ДОБАВЛЕНО */
  max-height: 44px; /* ⭐ ДОБАВЛЕНО */
  line-height: normal; /* ⭐ ИЗМЕНЕНО: было 1.2 → стало normal */
  box-sizing: border-box; /* ⭐ ДОБАВЛЕНО */
  display: flex; /* ⭐ ДОБАВЛЕНО */
  align-items: center; /* ⭐ ДОБАВЛЕНО: центрирует текст вертикально */
}
/* (опционально) компактный вид ошибок и подсказок для Warranty */
#warrantyFail { display: none; color:#000; margin-top:8px; }
#warrantyPhotos { margin-top: 6px; }

/* === Warranty Claim: сделать размер 1в1 как у #generatePdf === */
.warranty-button {
  display: flex; /* ⭐ ИЗМЕНЕНО: block → flex */
  align-items: center; /* ⭐ ДОБАВЛЕНО: вертикальное выравнивание */
  justify-content: center; /* ⭐ ДОБАВЛЕНО: горизонтальное выравнивание */
  width: 100%;
  height: 40px; /* фиксированная высота */
  min-height: 40px; /* ⭐ ДОБАВЛЕНО: минимальная высота */
  max-height: 40px; /* ⭐ ДОБАВЛЕНО: максимальная высота */
  padding: 0;
  box-sizing: border-box;
  margin-top: 10px;
  font-weight: bold;
  font-size: 18px;
  line-height: 1; /* ⭐ ДОБАВЛЕНО: фиксируем высоту строки */
  white-space: nowrap;
  overflow: hidden; /* ⭐ ДОБАВЛЕНО: скрываем переполнение */
  text-overflow: ellipsis; /* ⭐ ДОБАВЛЕНО: многоточие если не влезает */
  background-color: #fff;
  color: #000;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  text-decoration: none; /* ⭐ ДОБАВЛЕНО: для <a> элементов */
}

.warranty-button:hover {
  background-color: #000;
  color: #fff;
}
.error-message {
color: #ff0000;
}
/* Убедимся, что стили работают и для ссылок */
a.warranty-button {
  display: flex !important; /* переопределяем возможный inline */
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

a.warranty-button:hover {
  text-decoration: none;
}
/* Ряд для одной «кнопки добавить фото» + имя файла */
.photo-inputs .photo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* Скрываем нативный input, кликаем по label */
.photo-inputs .file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Кнопка добавить фото — стиль как обычные action-кнопки проекта */
.photo-inputs .file-button {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #0f0f0f;  /* подстройте под ваши кнопки */
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .2s ease;
}

.photo-inputs .file-button:hover {
  background: #333;
}

.photo-inputs .file-name {
  font-size: 14px;
  color: #555;
  word-break: break-all;
}
/* Ряд: кнопка + имя файла + крестик */
.photo-inputs .photo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* Скрываем нативный input, кликаем по label */
.photo-inputs .file-input {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Кнопка выбора файла */
.photo-inputs .file-button {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #0f0f0f;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .2s ease;
  white-space: nowrap;
}
.photo-inputs .file-button:hover { background: #333; }

/* Имя файла — ОДНА строка, с обрезкой слева (мы подставим "…хвост") */
.photo-inputs .file-name {
  flex: 1;
  min-width: 0;              /* чтобы ellipsis работал во flex */
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;    /* показываем "…", если не влезает */
}

/* Крестик удаления */
.photo-inputs .file-remove {
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px 6px;
  user-select: none;
}
.photo-inputs .file-remove:hover { color: #c00; }
.photo-inputs .file-remove[hidden] { display: none; }

/* Баннер поверх картинки, у нижнего края */
.option-card[data-id="full_package"] .option-card-image {
  position: relative; /* для абсолютного позиционирования баннера внутри */
}

.option-card[data-id="full_package"] .entry-banner {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;          /* по нижнему краю картинки */
  z-index: 2;

  margin: 0;
  padding: 6px 10px;
  background: rgba(51, 155, 252, 0.96);  /* тот же голубой, чуть прозрачный */
  border: 1px solid transparent;
  color: #ffffff;
  border-radius: 20px;

  font-size: 12px;
  line-height: 1.2;

  pointer-events: none; /* клики по картинке проходят сквозь баннер */
}
/* гарантированное скрытие баннера */
.entry-banner.hidden { 
  display: none !important; 
}
/* Чекбокс в карточках: фиксируем положение и слой */
.option-card input[type="checkbox"] {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  z-index: 50;          /* выше плашки */
  display: block;
  opacity: 1;
  pointer-events: auto; /* кликается */
}

/* Для full_package можно дать ещё больший z-index на всякий случай */
.option-card[data-id="full_package"] input[type="checkbox"] {
  z-index: 100;
}
/* Master Maintenance accordion layout */
.option-group.maintenance-master .option-group {
  margin: 10px 0;
}
.option-group.maintenance-master > .accordion-header {
  font-size: 18px;
}
/* Дополнительное пространство внизу страницы, даже при закрытых аккордеонах */
#configurator::after {
  content: "";
  display: block;
  height: 200px;      /* ← отрегулируйте по вкусу: 80–160px */
  pointer-events: none;
}
/* Скрыть кнопку Entry Model для дилеров */
body.is-dealer .entry-model-button {
  display: none !important;
}

/* ===== Sub-accordions (共通スタイル) ===== */
.sub-accordion { margin-top: 8px; }

/* Заголовок подаккордеона */
.sub-accordion-header {
  cursor: pointer;
  padding: 12px 16px;
  margin: 8px 0 0 0;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

/* Индикатор + / × */
.sub-accordion-header::after {
  content: '+';
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .3s ease;
}
.sub-accordion-header.open { background-color: #e9ecef; }
.sub-accordion-header.open::after { transform: translateY(-50%) rotate(45deg); }

/* Контент подаккордеона */
.sub-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background-color: #fff;
  border: 0 solid #dee2e6;
  border-radius: 0 0 10px 10px;
}

/* Когда открыт */
.sub-accordion-content.open {
  max-height: 2000px;      /* достаточно большое значение для анимации */
  border-width: 1px;
}

/* Внутренний отступ списка опций внутри подаккордеона */
.sub-accordion-content .option-list { padding: 12px; }

/* Небольшая вложенность для サンルーフ → (サンルーフ1枚 / パノラミックルーフ) */
.wf-sunroof .sub-accordion .sub-accordion-header { margin-left: 4px; }
.wf-sunroof .sub-accordion .sub-accordion-content { margin-left: 4px; }

.brand {
  display: flex;
  align-items: center;   /* выравнивание по вертикали */
  gap: 8px;              /* расстояние между логотипом и текстом */
  
}

.xpel-logo {
  height: 50px;          /* подгони под свой top-bar */
  width: auto;
  display: block;
}

.brand-catch {
  white-space: nowrap;    /* не переносить на новую строку */
  font-weight: 600;
  letter-spacing: 0.08em; /* чуть «воздуха» для японского текста */
  line-height: 1;
  font-size: 20px;
  transform: translateY(10px);
}
.hr-fade-right {
  border: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    #000 0%,   /* слева чёткий чёрный */
    #000 10%,  /* держим плотный цвет до ~70% ширины */
    rgba(0,0,0,0) 100%  /* к правому краю плавно в прозрачность */
  );
}

/* ↓ опускаем селект марки и всю правую колонку */
.top-bar #brandSelect {        /* селект марки справа от хедера */
  margin-top: 80px;            /* 12–32px на твой вкус */
}

.right-column {                /* вся правая панель (модель + саммари + кнопки) */
  margin-top: 80px;            /* 16–48px на твой вкус */
}

/* чуть аккуратнее на десктопах */
@media (min-width: 1024px){
  .top-bar #brandSelect { margin-top: 80px; }
  .right-column { margin-top: 80px; }
}
/* === Film Type Selector === */

/* Container */
.film-selector-container {
    grid-column: 1 / -1;
    margin: 8px 0;
}

/* Accordion */
.film-type-accordion {
    width: 100%;
}

.film-type-header {
    cursor: pointer;
    padding: 12px 16px;
    margin: 0;
    background-color: #ffef9c;
    border: 2px solid #ffd558;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.film-type-header:hover {
    background-color: #f9ec97;
;
}

.film-type-header.open {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
}

/* Content */
.film-type-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    border: 0 solid #dee2e6;
    border-radius: 0 0 10px 10px;
}

.film-type-content.open {
    border-width: 1px;
}

/* Grid for cards */
.film-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

/* Cards */
.film-type-card {
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.film-type-card:hover {
    border-color: #9c9c9c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.film-type-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}


/* Ultimate Plus */
.film-type-card.selected.ultimate-plus {
    border-color: #ff9e30;
  background-color: #fff0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Ultimate Fusion */
.film-type-card.selected.ultimate-fusion {
    border-color: #5073be;
    background-color: #e6eeff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Ultimate Plus 10 */
.film-type-card.selected.ultimate-plus-10 {
    border-color: #14af5c;
    background-color:#daffeb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ExoArmor */
.film-type-card.selected.exo-armor {
    border-color: #b3697a;
  background-color: #ffebf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Card content */
.film-type-name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: #000000;
}

.film-type-desc {
    font-size: 14px;
    color: #494949;
    line-height: 1.4;
}

/* Entry notification overlay */
.entry-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

/* Disabled state for Entry Mode */
.film-selector-container.entry-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
    position: relative;
}

/* Price hiding until film selected */
.option-card.price-hidden .price {
    color: #565656 !important;
    font-size: 14px !important;
}

/* Film type highlights for option cards */
.option-card.film-plus {
  border-color: transparent;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.option-card.film-plus10 {
  border-color: transparent;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.option-card.film-fusion { 
  border-color: transparent;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.option-card.film-exo {
  border-color: transparent;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Hover и выделение карточек film types */

.option-card.film-plus:hover {
  background-color: #fbeddb;
  /* Убираем обводку при hover */
  
}
.option-card.film-plus.active {
  border-color: #ff9e30;
  background-color: #fff0e0;
 }

 .option-card.film-fusion:hover {
  background-color: #e3edff;
  /* Убираем обводку при hover */
  
}
.option-card.film-fusion.active {
  background-color: #e6eeff;
  border-color: #5073be;
 }

.option-card.film-plus10:hover {
  background-color: #e9fff3;
  /* Убираем обводку при hover */
  
}
.option-card.film-plus10.active {
  border-color: #14af5c;
  background-color:#daffeb;
 }

.option-card.film-exo:hover {
  background-color: #fef0f4;
  /* Убираем обводку при hover */
  
}
.option-card.film-exo.active {
  border-color: #b3697a;
  background-color: #ffebf0;
;
 }

/* Responsive adjustments */
@media (max-width: 768px) {
    .film-type-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .film-type-header {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .film-type-card {
        padding: 10px;
    }
}
/* Стили для модального окна успеха warranty */
.warranty-success-modal {
  z-index: 10000; /* Высокий z-index чтобы быть поверх других элементов */
}

.warranty-success-modal .service-info-modal-content {
  max-width: 500px;
  margin: 0 auto;
}

.warranty-success-modal .service-info-modal-body {
  text-align: left;
  line-height: 1.6;
  color: #333;
}

.warranty-success-modal .service-info-modal-body p {
  margin: 0 0 10px 0;
}

.warranty-success-modal .service-info-modal-body strong {
  color: #000000;
}
.film-type-image {
  width: 100%;
  height: 170px; /* или любая высота */
  overflow: hidden;
  border-radius: 8px 8px 0 0; /* скругление только сверху */
  margin-bottom: 12px;
}

.film-type-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* изображение покрывает всю область */
  object-position: center;
  transition: transform 0.3s ease;
}

.film-type-card:hover .film-type-img {
  transform: scale(1.05); /* легкое увеличение при наведении */
}

/* XPEL Stealth - карточка выбора типа пленки */
.film-type-card.stealth.selected {
    border-color: #495057;
    background-color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* XPEL Stealth - стили для карточек опций */
.option-card.film-stealth {
    border-color: transparent;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.option-card.film-stealth:hover {
    background-color: #e2e2e2;
}

.option-card.film-stealth.active {
    border-color: #000000;
    background-color: #e0e0e0;
    }


/* Плашка "人気のNo.1" в верхнем правом углу карточки full_package */
.option-card[data-id="full_package"] .popular-banner {
  position: absolute;
  top: 6px;
  right: 5px;
  z-index: 3; /* Выше entry-banner */
  
  margin: 0;
  padding: 4px 8px;
  background: #000000;
  border: 1px solid transparent;
  color: #ffffff;
  border-radius: 20px;
  
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  
  pointer-events: none; /* Клики проходят сквозь плашку */
  transition: opacity 0.3s ease;
}

/* Скрытие плашки при Entry Mode */
.popular-banner.hidden { 
  opacity: 0;
  visibility: hidden;
}
/* Жирный шрифт и увеличенный размер для основных пакетов protection_film */
.option-card[data-label="フロントフルパッケージ"] .label,
.option-card[data-label="フロントフルプラスパッケージ"] .label,
.option-card[data-label="フルパッケージ"] .label,
.option-card[data-label="マットプロテクションフィルム"] .label,
.option-card[data-label="フロントガラス保護フィルムのオプション"] .label,

.option-card[data-label="フロントフルパッケージ専用セラミックコーティング"] .label,
.option-card[data-label="フロントフルプラスパッケージ専用セラミックコーティング"] .label,
.option-card[data-label="フルパッケージ専用セラミックコーティング"] .label,
.option-card[data-label="マットプロテクションフィルム専用セラミックコーティング"] .label {
  font-weight: 700;
  font-size: 1.1rem; /* увеличение размера на 10% */
}
.option-card[data-label="カルパチアンエディション仕様PKG"] .label,
.option-card[data-label="トロフィーエディション仕様PKG"] .label,
.option-card[data-label="Xダイナミック仕様PKG"] .label,
.option-card[data-label="フルボディマットPKG"] .label,
.option-card[data-label="フルボディマット＆グロスコンビネーションPKG"] .label,
.option-card[data-label="マットスペアタイヤカバー"] .label,
.option-card[data-label="マットルーフ"] .label {
  font-weight: 600;
  font-size: 0.9rem;
  }
  /* Стили для плашки Fusion Plus SATIN */
.fusion-plus-satin-banner {
   position: absolute;
  top: 6px;
  right: 5px;
  z-index: 3; /* Выше entry-banner */
  
  margin: 0;
  padding: 4px 10px;
  background: #000000;
  border: 1px solid transparent;
  color: #ffffff;
  border-radius: 20px;
  
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  
  pointer-events: none; /* Клики проходят сквозь плашку */
  transition: opacity 0.3s ease;
}

.fusion-plus-satin-banner.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Специфические стили для PDF success modal */
.pdf-success-modal {
  z-index: 10001; /* Чуть выше обычных модальных окон */
}

.pdf-success-modal .service-info-modal-content {
  max-width: 600px;
  margin: 0 auto;
}

.pdf-success-modal .service-info-modal-body {
  text-align: left;
  line-height: 1.6;
  color: #333;
}

.pdf-success-modal .service-info-modal-body p {
  margin: 0 0 10px 0;
}

.pdf-success-modal .service-info-modal-body strong {
  color: #000000;
}

/* ⭐ НОВОЕ: Стили для Color Protection Film карточки */
.film-type-card.selected.color-protection-film {
  border-color: #9b59b6;
  background-color: #f3e5f5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.film-type-card.color-protection-film .color-preview-wrapper {
  width: 100%;
  height: 170px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.film-type-card.color-protection-film .color-preview {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.film-type-card.color-protection-film:hover .color-preview {
  transform: scale(1.05);
}

.film-type-card.color-protection-film .color-label-box {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  z-index: 2;
}

.film-type-card.color-protection-film .color-label-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.film-type-card.color-protection-film .color-label-code {
  color: #ffffff;
  font-size: 11px;
  margin: 0;
  opacity: 0.9;
}

/* ⭐ НОВОЕ: Стили для модального окна выбора цвета */
.color-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.color-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.color-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.4;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-option:hover {
  transform: translateY(-3px);
}

.color-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.color-option.selected .color-circle {
  border-color: #000000;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 5px #000000;
}

.color-name {
  font-size: 13px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin-bottom: 2px;
}

.color-code {
  font-size: 11px;
  color: #666666;
  text-align: center;
}

/* ⭐ НОВОЕ: Color Protection Film для опций */
.option-card.film-color {
  border-color: transparent;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.option-card.film-color:hover {
  background-color: #f9e5ff;
}

.option-card.film-color.active {
  border-color: #9b59b6;
  background-color: #f3e5f5;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .color-modal-content {
    width: 95%;
    padding: 20px;
  }
  
  .color-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .color-circle {
    width: 70px;
    height: 70px;
  }
  
  .color-modal-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .color-circle {
    width: 65px;
    height: 65px;
  }
}