:root {
  --yellow: #ffcc00;
  --black: #000000;
  --white: #ffffff;

  /* Светлая тема (по умолчанию) */
  --bg-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f9f9f9;

  --border-radius: 8px;
  --transition-speed: 0.3s;
  --font: 'Arial', sans-serif;

  --heading-size: 1.1rem;
  --price-size: 1rem;
  --text-size: 0.9rem;

  --label-color: #ccc;
  --value-color: #fff;
}


body.light-theme {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #f9f9f9;
  --label-color: #444;
  --value-color: #000;
}
body.dark-theme {
  --bg-color: #1c1c1c;
  --text-color: #dcdcdc;
  --card-bg: #2a2a2a;
}

/* Если хочешь, сюда перенеси и цвета заголовков, логотипа, и прочее: */
body.light-theme .car-title,
body.light-theme .car-price {
  color: var(--text-color);
}
body.light-theme .car-detal {
  color: #646464;
}
body.light-theme .logo {
  background-image: url('../img/logo.jpg');
}

body.dark-theme .car-title,
body.dark-theme .car-price {
  color: var(--text-color);
}
body.dark-theme .car-detal {
  color: #646464;
}
body.dark-theme .logo {
  background-image: url('../img/logo2.jpg');
}

.car-detal p {
  margin-bottom: 4px;
}


* {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: var(--font);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Шапка */
.header-bar {
  position: relative;
  text-align: center;
}

.logo {
  width: 100%;
  height: auto;
  max-width: 1549px;
  margin: 0 auto;
  margin-bottom: -5px;
}

/* Кнопка «Назад» — закреплённая сверху */
.back-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  padding: 6px 12px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(4px);
}

/* Темная тема */
.dark-theme .back-button {
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffcc00;
}

/* Светлая тема */
.light-theme .back-button {
  background-color: rgba(255, 255, 255, 0.8);
  color: #222;
  border: 1px solid #ddd;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.light-theme .back-button:hover {
  background-color: rgba(255, 255, 255, 1);
}


/* Подвал */
.footer-bar {
  background: var(--black);
  padding: 5%;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 10%;
  
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  margin: 0 25px;
  font-size: 17px;
  font-weight: bold;
}

.footer-link:hover {
  color: var(--yellow);
}

/* Фильтр */
.filters-bar {
  background: var(--card-bg);
  padding: 15px;
  margin: 10px;
  border-radius: var(--border-radius);
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.filter-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-size: var(--text-size);
  margin-bottom: 5px;
}

#searchInput {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: var(--border-radius);
  font-size: var(--text-size);
  color: var(--text-color);
}

#sortSelect {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--card-bg);
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: var(--border-radius);
  font-size: var(--text-size);
  color: var(--text-color);
  background-image: url("data:image/svg+xml,%3Csvg fill='%23aaa' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M0 2l5 5 5-5H0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

/* Заголовок раздела */
.section-heading {
  /* margin: 10px; */
  font-size: 1.2rem;
  color:white;
  text-align: center;
  margin-top: 5%;
}

/* Сетка PREMIUM */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px; /* Уменьшили до 5px */
  padding: 3.5%;
  margin-bottom: 20px;
  justify-items: center;
}

/* Сетка обычных машин */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px; /* Уменьшили до 5px */
  padding: 3.5%;
  margin-bottom: 60px;
  justify-items: center;
}

/* Карточки */
.card, .car-card, .premium-card {
  background: none;
  width: 220px;
  height: 300px;
  margin: 0;
  padding: 3.5%;
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* выравнивание */
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover, .car-card:hover, .premium-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Изображения карточек */
.dish-img, .car-img-wrap {
  width: 100%;
  /* height: 120px; */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* Цена сверху (белая, крупная) */
.price, .card .price {
  font-size: 16px; /* Крупный шрифт */
  color: white;    /* Белый цвет */
  font-weight: bold;
  margin-bottom: 5px;
}

/* Название авто, год */
.car-title, .card h3 {
  font-size: 14px;
  font-weight: normal;
  color: #ddd;
  margin-top: 3px;
  margin-bottom: 3px;
}

/* Пробег и т.д. (мелким шрифтом) */
.car-props, .card .car-props {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* Страница деталей */
.car-detail {
  margin: 10px;
  margin-bottom: 40%;
}

.car-details-box {
  margin: 10px 0;
  padding: 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--text-color);
}

/* Сетка характеристик */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 15px; /* отступ между строками */
}

/* Каждая строка – flex, с пространством между колонками */
.detail-row {
  display: flex;
  /* align-items: center; */
  justify-content: center; 
  /* При желании: align-items: center; */
  font-size: 0.95rem; /* подберите нужный размер */
}

/* Левая колонка */
.detail-label {
  flex: 1;
  text-align: left;
  color: var(--label-color);
  font-weight: normal; /* или bold, если нужно */
  margin-right: 10px;
}

/* Правая колонка */
.detail-value {
  flex: 1;
  text-align: left;
  color: var(--value-color);
}

.description {
  background: none;
  color: var(--text-color);
  padding: 10px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--yellow);
  margin-bottom: 10px;
  font-size: var(--text-size);
}

/* Кнопка Позвонить */
.call-button-details {
  position: fixed;
  text-decoration: none;
  bottom: 11%;
  left: 50%;
  transform: translateX(-100%);
  z-index: 9999;
  background: var(--yellow);
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  font-size: var(--text-size);
  color: var(--black);
  height: 6.5%;
  width: 47%;

    /* Новые свойства для центрирования */
    display: flex;             /* включаем флексбокс */
    align-items: center;       /* по вертикали по центру */
    justify-content: center;   /* по горизонтали по центру */
}

.call-button-details:hover {
  background: #ffd633;
}

/* Блок photo-box (слайдер) */
.photo-box {
  /* background: var(--card-bg); */
  border-radius: var(--border-radius);
  margin: 10px 0;
  /* padding: 15px; */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-box .swiper-container {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.photo-box .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-box .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.fullscreen-pagination.swiper-pagination-fraction {
  position: absolute;
  top: 3.7%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  z-index: 10000;
  margin: 0; /* на случай, если swiper задаёт margin */
  text-align: center; /* если нужно */
  height: fit-content;
  width: fit-content;
}


.swiper-pagination-current {
  color: var(--yellow);
}

.swiper-pagination-total {
  color: var(--white);
}

.divider {
  color: #fff;
  margin: 0 2px;
}

/* Убираем стрелки слайдера */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* Лайтбокс с листанием */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  z-index: 9999;
  overflow: hidden; /* скрываем скролл */
  transition: opacity 0.3s ease;
}

.lightbox-header {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 25%;
  left: 3%;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-counter {
  color: white;
  font-size: 1rem;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 8px;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center; 
  justify-content: center;
  touch-action: none;               /* Отключаем системную прокрутку/масштаб */
  overscroll-behavior: none;       /* Запрещаем «прокручивание» за границы */
  /* Можно также указать: overscroll-behavior-y: contain; */
  overscroll-behavior-y: contain;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  padding: 0 10px;
  user-select: none;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Запрещаем прокрутку фоновой страницы, когда лайтбокс открыт */
body.lightbox-open {
  overflow: hidden;
}

/* Плавная анимация для смены фото в лайтбоксе */
#lightboxImage {
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 3px;
}

.fullscreen-swiper {
  width: 100%;
  height: 100%;
}
.fullscreen-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  
}


/* Адаптивность */
@media (max-width: 768px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    height: 220px;
  }
}

@media (max-width: 400px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 90px;
  } */
  .photo-box .swiper-container {
    height: 180px;
  }
}

/* Mobile S (до 320px) */
@media (max-width: 320px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    height: 220px;
  }
}

/* Mobile M (до 375px) */
@media (max-width: 375px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    height: 220px;
  }
}

/* Mobile L (до 425px) */
@media (max-width: 425px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    height: 220px;
  }
}

/* Laptop (до 1024px) */
@media (max-width: 1024px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    height: 220px;
  }
}

/* Laptop (до 1440px) */
@media (max-width: 1440px) {
  .card, .car-card, .premium-card {
    width: 105%;
    height: 105%;
  }
}
  /* .dish-img, .car-img-wrap {
    height: 100px;
  } */
  .photo-box .swiper-container {
    /* height: 220px; */
    height: 300px;
  }



  .loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #ffcc00;
    animation: spin 1s linear infinite;
    z-index: 9999;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .load-more-btn {
    display: none;
    margin: 20px auto;
    padding: 10px 20px;
    background: var(--yellow);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
  }
  
  .error-message {
    display: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
    white-space: pre-wrap;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .dark-theme .error-message {
    background-color: #3b0c0c;
    color: #ffbcbc;
    border: 1px solid #8a2c2c;
  }
  
  .light-theme .error-message {
    background-color: #ffeaea;
    color: #a60000;
    border: 1px solid #ffc4c4;
  }

  /* Стили для страницы "Связь" */
.contact-section {
  padding: 20px;
  margin: 20px;
  background-color: var(--card-bg); /* Если в вашем проекте определён цвет карточек */
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-section .section-heading {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.contact-info p {
  font-size: 1.1rem;
  margin: 15px 0;
}

.contact-info a {
  color: var(--yellow);
  text-decoration: none;
}

/* Стили для кнопок обратной связи */
.feedback-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.btn {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  color: var(--white);
}

.btn.whatsapp {
  background-color: #25D366;
}

.btn.contact {
  /* margin-top: 10px; */
  background-color: #ffcc00;
}

.btn.call {
  background-color: #000000;
}

.btn:hover {
  opacity: 0.9;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-color, #fff);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color);
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 10px 0 5px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 15px;
}

.close-btn {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}

.close-btn:hover {
  color: #000;
}

/* Блок пагинации */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: -50px auto 135px auto;
  padding: 0 10px;
  text-align: center;
  /* Если нужно, чтобы не закрывалось футером:
     margin-bottom: 80px; 
     или что-то в этом духе
  */
}

.pagination-container .btn {
  /* Используем твои стили кнопок, можно взять за основу .btn из contact */
  background-color: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
  text-decoration: none;
}

/* При наведении — чуть светлее */
.pagination-container .btn:hover {
  opacity: 0.8;
}

/* Если кнопка отключена */
.pagination-container .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Стиль индикатора "Страница X из Y" */
#pageIndicator {
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: bold;
}

.car-img {
  width: 100%;
  /* height: 100%; */
  height: 130px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.car-price {
  font-size: 16px;
  color: white;
  font-weight: bold;
  margin-bottom: 5px;
}

.car-title {
  font-size: 15px;
  font-weight: normal;
  color: #ddd;
  margin-top: 5px;
  margin-bottom: 5px;
}

.car-detal {
  font-size: 14px;
  font-weight: normal;
  color: #aaa;
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Добавьте эти стили в ваш CSS-файл */
.about-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.about-content h1 {
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}

.about-content p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 16px;
  text-align: justify;
  white-space: pre-line;
}

.about-content p:last-child {
  margin-bottom: -5px;
}

/* Стили для темной темы */
@media (prefers-color-scheme: dark) {
  .about-content h1 {
    color: var(--white);
  }
  
  .about-content p {
    color: #dcdcdc;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .about-content {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  .about-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1.2rem;
  }
  
  .about-content p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .about-content h1 {
    font-size: 1.5rem;
  }
  
  .about-content p {
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
  }
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.load-more-btn:hover {
  background-color: #333;
}

.load-more-btn:disabled {
  background-color: #888;
  cursor: not-allowed;
}

/* Уведомление, когда все авто загружены */
#noMoreCarsNotice {
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  padding: 20px;
  /* margin: -100px auto 110px auto; */
  margin: -130px auto 120px auto;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

#noMoreCarsNotice p {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: bold;
}

#noMoreCarsNotice .btn.contact {
  background-color: var(--yellow);
  color: var(--black);
  font-weight: bold;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-size: 15px;
  transition: 0.3s ease;
  cursor: pointer;
}

#noMoreCarsNotice .btn.contact:hover {
  background-color: #f4c400;
}

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


.tabs-bar {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 10px;
}

.tab-btn {
  padding: 2% 8.5%;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  color: black; /* добавляем явный цвет текста */
  -webkit-appearance: none; /* отключаем синий стиль Safari */
  appearance: none;
  text-decoration: none;
}

.tab-btn.active {
  background-color: #ffa500;
  color: white;
}

.whatsapp-button-details {
  position: fixed;
  bottom: 11%; /* немного выше, чем кнопка "Позвонить" */
  left: 50%;
  transform: translateX(5%);
  z-index: 9999;
  background: #25D366; /* зелёный цвет WhatsApp */
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  font-size: var(--text-size);
  color: white;
  height: 6.5%;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-button-details:hover {
  background: #20b858;
}

.detail-description {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
  white-space: pre-wrap;
  border-radius: 8px;
  padding: 10px 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-theme .detail-description {
  background-color: #2b2b2b;
  color: #f1f1f1;
  border: 1px solid #444;
}

.light-theme .detail-description {
  background-color: #f7f7f7;
  color: #222;
  border: 1px solid #ccc;
}

.feature-line {
  /* line-height: 1.4; */
  margin-bottom: 15px;
  /* padding: 2px 0; */
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Светлая тема */
.light-theme .feature-line {
  color: #222;
  background-color: transparent; /* или #f9f9f9 для лёгкого выделения */
}

/* Тёмная тема */
.dark-theme .feature-line {
  color: #f1f1f1;
  background-color: transparent; /* или #2b2b2b если нужно легкое затемнение */
}


.no-photo {
  width: 100%;
  height: 300px;
  background-color: #eee;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 8px;
  text-align: center;
}

.dark-theme .no-photo {
  background-color: #2a2a2a;
  color: #666;
}

.fullscreen-swiper,
.fullscreen-swiper .swiper-wrapper,
.fullscreen-swiper .swiper-slide {
  height: 100%;
}

/* 💡 ОБЯЗАТЕЛЬНЫЕ стили для горизонтального Swiper */
.photo-box .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  transition-property: transform;
  box-sizing: content-box;
}

.photo-box .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  height: 100%;
}

.update-notice {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #4caf50;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: fadein 0.3s ease-in-out;
}

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

.total-count {
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  margin: 12px 0;
  color: var(--text-color);
}

/* Блок цены в деталях */
.detail-price {
  background: var(--card-bg);
  padding: 16px;
  border-radius: var(--border-radius);
  margin: 0%;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.detail-price h3 {
  margin: 0;
  font-size: var(--price-size);
  color: var(--text-color);
  line-height: 1.2;
}

.detail-price .price-value {
  color: var(--yellow);
  font-weight: 600;
}


/* Стили для пометки "(необязательно)" под полем */
.optional-label {
  display: block;          /* чтобы label был блочным и занимал всю ширину */
  text-align: center;      /* центрируем содержимое */
  margin-top: 4px;         /* расстояние от поля */
}

.optional-label .optional-text {
  display: inline-block;   /* чтобы можно было задавать свои отступы */
  font-size: 0.75rem;      /* чуть меньше основного текста */
  color: #aaa;             /* нежный серый (любой подходящий вам) */
  line-height: 1;          /* чтобы не давило сверху/снизу */
  margin: 0;               /* сбрасываем отступы браузера */
  margin-bottom: 27px;
}
