.detail-page {
  padding: 52px 0 90px;
  background: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 219, 80, 0.22), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(120deg, rgba(255, 219, 80, 0.36) 0 22px, transparent 22px 44px);
}

.gallery-mobile-title {
  display: none;
}

.gallery-main__image {
  display: grid;
  min-height: 470px;
  place-items: center;
  border: 1px solid #ece7d5;
  color: rgba(17, 17, 17, 0.58);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #ffdb50;
  color: #111;
  font-size: 34px;
  font-weight: 900;
  transform: translateY(-50%);
}

.gallery-arrow_prev {
  left: 18px;
}

.gallery-arrow_next {
  right: 18px;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 14px;
  margin-top: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb {
  min-height: 64px;
  border: 2px solid transparent;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 219, 80, 0.28), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(120deg, rgba(255, 219, 80, 0.4) 0 12px, transparent 12px 24px);
}

.gallery-thumb.is-active {
  border-color: #ffdb50;
}

.video-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: #ffbd22;
  color: #111;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

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

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.62);
}

.video-modal__dialog {
  position: relative;
  width: min(880px, 100%);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.video-modal__dialog h2 {
  margin: 0 48px 20px 0;
  color: #333;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.video-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #ffdb50;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.video-modal__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-card {
  position: sticky;
  top: 104px;
  padding: 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(20, 20, 20, 0.14);
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #2a2a2a;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.08;
}

.detail-card__lead {
  margin: 0 0 24px;
  color: #667085;
  font-size: 18px;
  line-height: 1.45;
}

.availability-card {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}

.availability-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.availability-card__header span {
  color: #111;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-card__header strong {
  color: #ffbd22;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.availability-list {
  display: grid;
  gap: 10px;
}

.availability-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #f8f8f5;
}

.availability-item strong {
  display: block;
  color: #111;
  font-size: 16px;
  font-weight: 900;
}

.availability-item span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.availability-item b {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #ffdb50;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-item_empty b {
  background: #111;
  color: #fff;
}

.availability-item_available b {
  background: #ffdb50;
  color: #111;
}

.availability-card__note {
  margin: 14px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.warranty-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8d8, #fff);
}

.warranty-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.warranty-card__header span {
  color: #111;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.warranty-card__header strong {
  color: #ffbd22;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.warranty-card__body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.warranty-card__badge {
  display: grid;
  min-height: 106px;
  place-items: center;
  padding: 14px;
  border: 2px solid #111;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.warranty-card__badge b {
  color: #111;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.warranty-card__badge span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.warranty-card__body p,
.warranty-card__note {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.warranty-card__note {
  margin-top: 14px;
}

.payment-fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.payment-title {
  margin: 0 0 14px;
  color: #777;
  font-size: 18px;
}

.payment-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #2a2a2a;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.payment-option input {
  width: 28px;
  height: 28px;
  margin: 0;
  appearance: none;
  border: 2px solid #ffbd22;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.payment-option input:checked {
  background: #ffdb50;
}

.payment-option:hover span {
  color: #111;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-action {
  flex: 1 1 220px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #ffdb50;
  color: #111;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.detail-action_dark {
  background: #111;
  color: #fff;
}

.detail-action_leasing {
  flex-basis: 280px;
  font-size: 14px;
}

.detail-specs {
  margin-top: 46px;
  max-width: 760px;
}

.detail-specs h2 {
  margin: 0 0 22px;
  color: #111;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  text-transform: uppercase;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #111;
  font-size: 21px;
  line-height: 1.22;
  list-style: none;
}

.spec-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
}

@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-card {
    position: static;
  }
}

@media (max-width: 700px) {
  * {
    min-width: 0;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main,
  .site-header,
  .site-footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .detail-page {
    overflow-x: hidden;
    padding-top: 24px;
  }

  .detail-page .container {
    width: min(100% - 30px, var(--container));
    max-width: 100%;
    overflow: hidden;
  }

  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 8px;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    min-width: 0;
    max-width: 100%;
  }

  .detail-layout,
  .detail-gallery,
  .gallery-main,
  .detail-card,
  .detail-specs,
  .availability-card,
  .availability-list,
  .availability-item,
  .warranty-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gallery-main__image {
    min-height: 245px;
    padding: 24px 70px;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .gallery-arrow {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .gallery-arrow_prev {
    left: 12px;
  }

  .gallery-arrow_next {
    right: 12px;
  }

  .gallery-thumbs {
    display: flex;
    max-width: 100%;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-thumb {
    flex: 0 0 104px;
    min-height: 58px;
  }

  .detail-card {
    padding: 24px;
  }

  .detail-card h1 {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .detail-card__lead,
  .spec-list {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .spec-list li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .detail-specs {
    margin-top: 36px;
  }

  .detail-specs h2 {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-action {
    min-height: 54px;
    width: 100%;
    min-width: 0;
  }

  .detail-action_leasing {
    font-size: 13px;
  }

  .availability-card__header,
  .warranty-card__header {
    align-items: flex-start;
    gap: 8px;
  }

  .availability-card__header span,
  .warranty-card__header span {
    font-size: 17px;
    line-height: 1.15;
  }

  .availability-card__header strong,
  .warranty-card__header strong {
    flex-shrink: 0;
    font-size: 12px;
  }

  .availability-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .availability-item b {
    width: fit-content;
  }

  .warranty-card__body {
    grid-template-columns: 1fr;
  }

  .warranty-card__badge {
    min-height: 86px;
  }
}

@media (max-width: 700px) {
  body {
    position: relative;
  }

  body,
  body * {
    max-width: 100%;
  }

  .site-header,
  .detail-page,
  .detail-page .container,
  .detail-layout,
  .detail-layout > *,
  .detail-gallery,
  .gallery-main,
  .gallery-main__image,
  .detail-specs,
  .detail-card,
  .availability-card,
  .warranty-card,
  .site-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .gallery-main {
    border-radius: 8px;
  }

  .gallery-mobile-title {
    display: block;
    margin: 0 0 12px;
    color: #202020;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    overflow-wrap: anywhere;
  }

  .gallery-main__image {
    width: 100%;
    min-height: 220px;
    padding: 22px 64px;
  }

  .gallery-thumbs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .gallery-thumb {
    max-width: none;
  }

  .detail-specs h2 {
    font-size: 30px;
  }

  .detail-card > .section-kicker,
  .detail-card > h1 {
    display: none;
  }

  .spec-list li,
  .detail-card__lead,
  .warranty-card__body p,
  .warranty-card__note,
  .availability-item strong,
  .availability-item span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
