/* Дополнения поверх стилей Webflow. Ничего из оригинала не переопределяем,
   кроме бейджа Webflow, которого на своём хостинге быть не должно. */

.w-webflow-badge {
  display: none !important;
}

/* Счётчик количества в корзине */
.tg-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tg-qty button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease-out, background-color 0.2s ease-out;
}

.tg-qty button:hover {
  border-color: var(--accent);
  background: rgba(239, 255, 53, 0.1);
}

/* Страница AR — рендерим модель во всю ширину контейнера */
.tg-ar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.tg-ar model-viewer {
  width: 100%;
  max-width: 900px;
  height: 70vh;
  min-height: 420px;
  background: transparent;
  --poster-color: transparent;
}

.tg-ar__qr {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--border-radius-m, 12px);
}

.tg-ar__poster {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--border-radius-m, 12px);
}

/* Блок бронирования на карточке аренды */
.tg-book {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tg-book__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tg-book__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tg-book__field .w-input {
  margin-bottom: 0;
  color-scheme: dark;
}

.tg-book__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tg-book__error {
  color: #ff6b6b;
}

/* Разметка корзины Webflow остаётся в DOM ради карты элементов IX2,
   но не показывается — вместо неё работает собственная корзина. */
[data-tg-legacy-cart] {
  display: none !important;
}

/* Данные лайтбокса лежат в div вместо script — не показываем их. */
.w-json {
  display: none !important;
}

/* --- Оформление заказа ------------------------------------------------ */
.tg-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .tg-checkout__grid {
    grid-template-columns: 1fr;
  }
}

.tg-checkout__fields,
.tg-checkout__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tg-field .w-input {
  margin-bottom: 0;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-m, 12px);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white, #fff);
  color-scheme: dark;
  transition: border-color 0.2s ease-out;
}

.tg-field .w-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.tg-field textarea.w-input {
  min-height: 120px;
  resize: vertical;
}

.tg-checkout__line,
.tg-checkout__total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tg-checkout__line-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-checkout__done,
.tg-checkout__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 0;
}

.tg-checkout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button.button-primary {
  border: none;
  font: inherit;
  cursor: pointer;
}

button.button-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Собственные страницы (чекаут, AR) используют типографику сайта, но
   не участвуют в его анимациях: IX2 узнаёт классы вроде .h3 и гасит их
   до срабатывания триггера, которого здесь нет. */
.tg-own,
.tg-own *:not(.w-json) {
  opacity: 1 !important;
  transform: none !important;
}
