:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #080808;
  --muted: #626262;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --black: #000000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 56px;
}

.listing-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.listing-type {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--white);
  font-size: 0.96rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.gallery {
  min-width: 0;
}

.main-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  color: var(--muted);
}

.main-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-photo img[hidden] {
  display: none;
}

.main-photo span {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
}

.thumb:hover,
.thumb.is-active {
  border-color: var(--black);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb span {
  padding: 12px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.25;
}

.price-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.price-option {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.price-option--best {
  border-color: var(--black);
  background: var(--soft);
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  color: var(--muted);
  font-size: 0.98rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.price-line strong {
  font-size: inherit;
  line-height: inherit;
}

.price-option small {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.badge {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--black);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.call-button:hover {
  background: #222222;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 42px;
}

.description {
  padding-top: 3px;
}

.description h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.description p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.details div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.details dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .listing-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .price-panel {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .call-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .listing-header {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .main-photo {
    border-radius: 12px;
  }

  .thumbs {
    gap: 7px;
  }

  .thumb {
    border-radius: 10px;
  }

  .thumb span {
    padding: 8px;
    font-size: 0.75rem;
  }

  .price-panel {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 12px;
  }

  .price-option {
    padding: 16px;
  }

  .price-line {
    font-size: 2.4rem;
  }

  .content-grid {
    margin-top: 32px;
  }

  .details {
    grid-template-columns: 1fr;
  }
}
