.catalog-product-page {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.catalog-product-page img {
  max-width: 100%;
}

.catalog-product-hero,
.catalog-product-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.catalog-product-hero {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: 132px 0 44px;
}

.catalog-hero-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.catalog-back-link,
.catalog-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.catalog-back-link {
  width: fit-content;
  text-decoration: none;
}

.catalog-product-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(52px, 7vw, 92px);
  line-height: .9;
  letter-spacing: 0;
}

.catalog-hero-text {
  max-width: 620px;
  margin: 0;
  color: #4f5661;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.catalog-hero-media {
  order: 0;
  min-width: 0;
}

.catalog-product-hero-full {
  position: relative;
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #111827;
}

.catalog-product-hero-full > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-product-hero-full::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 18, .68), rgba(8, 12, 18, .22) 48%, rgba(8, 12, 18, .06));
  content: "";
}

.catalog-hero-full-overlay {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  gap: 14px;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(128px, 16vh, 190px) max(18px, calc((100vw - 1240px) / 2));
  color: #fff;
}

.catalog-hero-full-overlay .catalog-back-link,
.catalog-hero-full-overlay .catalog-label,
.catalog-hero-full-overlay .catalog-hero-text,
.catalog-hero-full-overlay h1 {
  color: #fff;
}

.catalog-hero-full-overlay .catalog-hero-text {
  max-width: 660px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.catalog-hero-full-overlay h1 {
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}

.catalog-hero-full-metrics {
  position: absolute;
  z-index: 1;
  left: max(18px, calc((100vw - 1240px) / 2));
  right: max(18px, calc((100vw - 1240px) / 2));
  bottom: 28px;
}

.catalog-hero-full-metrics div {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
}

.catalog-product-slider {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #e8e8ed;
  box-shadow: 0 22px 70px rgba(15, 21, 31, .1);
}

.catalog-product-slider img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .28s ease;
}

.catalog-product-slider img.is-active {
  opacity: 1;
}

.catalog-product-page[data-qhome-product-page="sofia"] .catalog-product-slider {
  aspect-ratio: 16 / 9;
  background: #d1d1d1;
}

.catalog-product-page[data-qhome-product-page="sofia"] .catalog-product-slider img {
  object-fit: contain;
}

.catalog-product-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.catalog-product-thumbs button {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.catalog-product-thumbs button.is-active {
  border-color: var(--accent);
}

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

.catalog-hero-metrics,
.catalog-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.catalog-hero-metrics {
  grid-column: 1 / -1;
}

.catalog-hero-metrics div,
.catalog-spec-card,
.catalog-included-card,
.catalog-seo-card,
.catalog-price-summary,
.catalog-config-column,
.catalog-plan-copy {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-hero-metrics div,
.catalog-spec-card {
  padding: 16px;
}

.catalog-hero-metrics span,
.catalog-spec-card span,
.catalog-plan-stats span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-hero-metrics strong,
.catalog-spec-card strong,
.catalog-plan-stats strong {
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.catalog-specs-section,
.catalog-story-section,
.catalog-plan-section,
.catalog-included-section,
.catalog-seo-section,
.catalog-configurator-section,
.catalog-inquiry-section,
.catalog-final-media {
  padding: 44px 0;
}

.catalog-spec-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.catalog-section-heading h2 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.catalog-section-heading p:not(.catalog-label) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.catalog-product-gallery-section {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.catalog-product-gallery-copy h2 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.catalog-product-gallery-copy > p:not(.catalog-label) {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.catalog-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-feature-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #34343a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-product-fade-slider {
  position: relative;
  min-width: 0;
}

.catalog-product-fade-slider figure {
  display: none;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #d1d1d1;
  box-shadow: 0 20px 58px rgba(15, 21, 31, .08);
}

.catalog-product-fade-slider figure.is-active {
  display: block;
}

.catalog-product-fade-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-story-list {
  display: grid;
  gap: 18px;
}

.catalog-story-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .72fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
}

.catalog-story-card.is-reversed {
  grid-template-columns: minmax(300px, .72fr) minmax(0, .9fr);
}

.catalog-story-card.is-reversed figure {
  order: 2;
}

.catalog-story-card figure,
.catalog-final-media figure,
.catalog-technical-gallery figure {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #e8e8ed;
}

.catalog-story-card img,
.catalog-final-media img,
.catalog-technical-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-story-card figure {
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 58px rgba(15, 21, 31, .08);
}

.catalog-story-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: .98;
}

.catalog-story-copy p:not(.catalog-label),
.catalog-plan-note,
.catalog-included-card p,
.catalog-seo-card p,
.catalog-inquiry-copy p {
  color: var(--muted);
  line-height: 1.58;
}

.catalog-media-pair-section {
  padding: 44px 0;
}

.catalog-media-pair {
  display: block;
  cursor: pointer;
  outline: none;
}

.catalog-media-pair-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 20px 58px rgba(15, 21, 31, .08);
}

.catalog-media-pair-frame > img,
.catalog-media-pair-frame > video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-media-pair-frame > video {
  opacity: 0;
  transition: opacity .24s ease;
}

.catalog-media-pair:hover .catalog-media-pair-frame > video,
.catalog-media-pair:focus-visible .catalog-media-pair-frame > video,
.catalog-media-pair.is-open .catalog-media-pair-frame > video {
  opacity: 1;
}

.catalog-media-pair:hover .catalog-media-pair-frame > img,
.catalog-media-pair:focus-visible .catalog-media-pair-frame > img,
.catalog-media-pair.is-open .catalog-media-pair-frame > img {
  opacity: 0;
}

.catalog-media-pair:focus-visible .catalog-media-pair-frame {
  outline: 3px solid rgba(36, 99, 235, .45);
  outline-offset: 4px;
}

.catalog-feature-list,
.catalog-room-chips,
.catalog-inquiry-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.catalog-feature-list span,
.catalog-room-chips span,
.catalog-inquiry-points span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-plan-layout,
.catalog-inquiry-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .46fr);
  gap: 18px;
  align-items: start;
}

.catalog-technical-gallery {
  display: grid;
  gap: 12px;
}

.catalog-technical-gallery:not(.is-single) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-technical-gallery figure {
  min-height: 320px;
}

.catalog-plan-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, .78fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(90px, .7fr);
  grid-template-rows: repeat(3, minmax(110px, 1fr));
  grid-template-areas:
    "bedroom living living terrace"
    "wardrobe living living terrace"
    "bath guest guest terrace";
  gap: 8px;
  min-height: 430px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 58px rgba(15, 21, 31, .08);
}

.catalog-plan-diagram .room {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 21, 27, .12);
  border-radius: 8px;
  background: #f3f5f7;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.catalog-plan-diagram .living {
  grid-area: living;
  background: #e8f2ff;
}

.catalog-plan-diagram .bedroom {
  grid-area: bedroom;
}

.catalog-plan-diagram .guest {
  grid-area: guest;
}

.catalog-plan-diagram .wardrobe {
  grid-area: wardrobe;
}

.catalog-plan-diagram .bath {
  grid-area: bath;
  background: #eef7f4;
}

.catalog-plan-diagram .terrace {
  grid-area: terrace;
  background: #fff5e8;
}

.catalog-plan-diagram strong,
.catalog-plan-diagram em {
  position: absolute;
  right: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .9);
  color: #fff;
  font-style: normal;
  line-height: 1;
}

.catalog-plan-diagram strong {
  bottom: 48px;
  font-size: 18px;
}

.catalog-plan-diagram em {
  bottom: 18px;
  font-size: 12px;
  font-weight: 850;
}

.catalog-plan-copy,
.catalog-config-column,
.catalog-price-summary {
  padding: 20px;
}

.catalog-plan-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.catalog-plan-stats div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f9;
}

.catalog-included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-included-card {
  position: relative;
  padding: 20px;
}

.catalog-included-card > span {
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.catalog-included-card h3,
.catalog-config-column h3,
.catalog-price-summary h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.catalog-included-card p,
.catalog-seo-card p {
  margin: 0;
}

.catalog-seo-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.catalog-seo-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.catalog-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, .48fr);
  gap: 14px;
  align-items: start;
}

.catalog-package-grid,
.catalog-option-grid {
  display: grid;
  gap: 10px;
}

.catalog-package-card,
.catalog-option-card,
.text-config-preset {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
}

.catalog-package-card:has(input:checked),
.catalog-option-card:has(input:checked),
.text-config-preset:has(input:checked),
.text-config-option:has(input:checked) {
  border-color: rgba(0, 113, 227, .62);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 113, 227, .1);
}

.catalog-package-title {
  color: var(--text);
  font-weight: 850;
}

.catalog-check {
  display: none;
}

.catalog-price-summary {
  position: sticky;
  top: 108px;
}

.catalog-price-summary dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.catalog-price-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(210, 210, 215, .72);
}

.catalog-price-summary dt,
.catalog-price-summary dd {
  margin: 0;
}

.catalog-price-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.catalog-price-summary dd {
  max-width: 58%;
  color: var(--text);
  font-weight: 850;
  text-align: right;
}

.catalog-final-price {
  align-items: center;
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #111827;
}

.catalog-final-price dt,
.catalog-final-price dd {
  color: #fff;
}

.catalog-price-summary .button {
  width: 100%;
  margin-top: 16px;
}

.text-config-section {
  padding-top: 56px;
}

.text-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
  gap: 18px;
  align-items: start;
}

.text-config-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.text-config-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.text-config-preset {
  min-height: 150px;
}

.text-config-preset strong {
  color: var(--text);
  font-size: 20px;
}

.text-config-preset small,
.text-config-option small {
  color: var(--muted);
  line-height: 1.45;
}

.text-config-universal {
  display: grid;
  grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.text-config-universal h3 {
  margin: 0;
}

.text-config-universal ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-config-universal li {
  position: relative;
  padding-left: 18px;
  color: #34343a;
  line-height: 1.45;
}

.text-config-universal li::before {
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.text-config-groups {
  display: grid;
  gap: 10px;
}

.text-config-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.text-config-group summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.text-config-group summary::-webkit-details-marker {
  display: none;
}

.text-config-group summary span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.text-config-group summary strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.text-config-note {
  margin: -4px 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #7c4a03;
  font-size: 13px;
  line-height: 1.45;
}

.text-config-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.text-config-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(210, 210, 215, .82);
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
}

.text-config-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.text-config-option span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.text-config-option strong {
  color: var(--text);
  line-height: 1.25;
}

.text-config-rules {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.text-config-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.catalog-inquiry-copy {
  padding: 26px;
}

.catalog-inquiry-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.catalog-inquiry-form.is-wide,
.compact-form .is-wide {
  grid-column: 1 / -1;
}

.catalog-final-media figure {
  aspect-ratio: 16 / 8.5;
  box-shadow: 0 20px 58px rgba(15, 21, 31, .08);
}

.catalog-final-media-full {
  width: 100%;
  padding: 0;
}

.catalog-final-media-full figure {
  width: 100%;
  min-height: 100svh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.catalog-final-media-full img {
  object-fit: cover;
}

.catalog-final-hover-media figure {
  position: relative;
}

.catalog-final-hover-media .catalog-final-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.catalog-final-hover-media:hover .catalog-final-image-hover,
.catalog-final-hover-media:focus-within .catalog-final-image-hover {
  opacity: 1;
}

.product-video-card.is-wide-video {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111;
}

.product-video-card iframe,
.product-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .catalog-product-hero,
  .catalog-story-card,
  .catalog-story-card.is-reversed,
  .catalog-plan-layout,
  .catalog-inquiry-section,
  .catalog-product-gallery-section,
  .text-configurator {
    grid-template-columns: 1fr;
  }

  .catalog-story-card.is-reversed figure {
    order: initial;
  }

  .catalog-price-summary {
    position: static;
  }

  .catalog-plan-copy {
    order: -1;
  }

  .catalog-configurator {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-configurator .catalog-price-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .catalog-product-hero,
  .catalog-product-section {
    width: min(100% - 28px, 520px);
  }

  .catalog-product-hero {
    padding-top: 86px;
  }

  .catalog-product-hero-full {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 92svh;
    padding-top: 0;
  }

  .catalog-product-hero-full::after {
    background: linear-gradient(180deg, rgba(8, 12, 18, .1), rgba(8, 12, 18, .72));
  }

  .catalog-hero-full-overlay {
    width: min(100% - 28px, 520px);
    margin: 0 auto 180px;
  }

  .catalog-hero-full-metrics {
    left: 14px;
    right: 14px;
    bottom: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-product-hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .catalog-hero-metrics,
  .catalog-spec-grid,
  .catalog-included-grid,
  .catalog-seo-card,
  .catalog-configurator,
  .catalog-technical-gallery:not(.is-single),
  .text-config-presets,
  .text-config-universal,
  .text-config-universal ul,
  .text-config-options {
    grid-template-columns: 1fr;
  }

  .catalog-product-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-plan-diagram {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, minmax(76px, auto));
    grid-template-areas:
      "living living"
      "bedroom guest"
      "wardrobe bath"
      "terrace terrace";
    min-height: 0;
  }

  .catalog-section-heading h2,
  .catalog-story-copy h2,
  .catalog-inquiry-copy h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .text-config-group summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .text-config-preset {
    min-height: 0;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }
}
