﻿.tvt-offers {
  padding: 56px 16px;
}

.tvt-offers__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tvt-offers__header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.tvt-offers__header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.tvt-offers__line {
  flex: 1;
  height: 2px;
  background: #10559a;
}

.tvt-offers__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.tvt-offer-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.tvt-offer-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1f5f9;
}

.tvt-offer-card__body {
  padding: 18px;
}

.tvt-offer-card__ship,
.tvt-offer-card__port,
.tvt-offer-card__date {
  margin: 0 0 8px;
  color: #475569;
  font-size: .92rem;
}

.tvt-offer-card__ship {
  font-weight: 700;
  color: #10559a;
}

.tvt-offer-card__title {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tvt-offer-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0;
}

.tvt-offer-card__price span {
  width: 100%;
  color: #64748b;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tvt-offer-card__price strong {
  color: #0f172a;
  font-size: 2rem;
  line-height: 1;
}

.tvt-offer-card__price small {
  color: #64748b;
}

.tvt-offer-card__button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #10559a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.tvt-offer-card__button:hover,
.tvt-offer-card__button:focus-visible {
  background: #0b437b;
}

.tvt-offer-data {
  display: none !important;
}

.tvt-offer-modal[hidden] {
  display: none;
}

.tvt-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 16px;
}

.tvt-offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .68);
}

.tvt-offer-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.tvt-offer-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.tvt-offer-modal__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.tvt-offer-modal__media {
  min-height: 100%;
  background: #f1f5f9;
}

.tvt-offer-modal__media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.tvt-offer-modal__content {
  padding: 36px;
}

.tvt-offer-modal__eyebrow {
  margin: 0 0 8px;
  color: #10559a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
}

.tvt-offer-modal__content h2 {
  margin: 0 44px 18px 0;
  color: #0f172a;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.tvt-offer-modal__content h3 {
  margin: 22px 0 8px;
  color: #0f172a;
  font-size: 1rem;
}

.tvt-offer-modal__content p {
  color: #475569;
  line-height: 1.6;
}

.tvt-offer-modal__facts {
  display: grid;
  gap: 6px;
}

.tvt-offer-modal__facts p {
  margin: 0;
}

.tvt-offer-modal__price {
  margin: 22px 0;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.tvt-offer-modal__price span,
.tvt-offer-modal__price small {
  display: block;
  color: #64748b;
}

.tvt-offer-modal__price strong {
  display: block;
  margin: 4px 0;
  color: #0f172a;
  font-size: 2.3rem;
}

.tvt-offer-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tvt-offer-modal__primary,
.tvt-offer-modal__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.tvt-offer-modal__primary {
  background: #10559a;
  color: #fff;
}

.tvt-offer-modal__secondary {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #fff;
}

.tvt-offer-modal__contact {
  margin: 18px 0 0;
}

.tvt-offer-modal__contact a {
  color: #10559a;
  font-weight: 700;
}

@media (max-width: 760px) {
  .tvt-offers {
    padding: 40px 12px;
  }

  .tvt-offers__header {
    gap: 10px;
  }

  .tvt-offers__header h2 {
    white-space: normal;
  }

  .tvt-offers__track {
    grid-auto-columns: minmax(84%, 84%);
  }

  .tvt-offer-modal {
    padding: 8px;
  }

  .tvt-offer-modal__dialog {
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .tvt-offer-modal__layout {
    grid-template-columns: 1fr;
  }

  .tvt-offer-modal__media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .tvt-offer-modal__content {
    padding: 24px 18px 20px;
  }

  .tvt-offer-modal__actions {
    flex-direction: column;
  }

  .tvt-offer-modal__primary,
  .tvt-offer-modal__secondary {
    width: 100%;
  }
}

.tvt-offer-card__title {
  color: #10559a;
}

.tvt-offers__tax-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.tvt-offer-modal__content [data-modal-title] {
  color: #10559a;
}
