/* Одна видеосцена со сменой автомобиля и характеристик. */
.showroom {
  --studio-bg: #e9eaec;
  --studio-line: #23252926;
  --studio-gutter: max(var(--gutter), (100% - 1480px) / 2);
  background: var(--studio-bg);
}
.showroom-heading, .showroom-case, .showroom-bottom {
  margin-inline: var(--studio-gutter);
}
.showroom-heading { padding-block: 46px 24px; }
.showroom-heading > p {
  color: #515358;
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.showroom-heading > p::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 9px 2px 0;
  background: var(--accent);
}
.showroom-heading h2 {
  font-size: clamp(1.5rem, 3vw, 3.25rem);
  margin-top: 10px;
  line-height: 1.15;
}
.showroom-case {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-block: 25px;
  border-top: 1px solid var(--studio-line);
}
.showroom-media {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
}
.showroom-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.showroom-frame {
  visibility: hidden;
  container-type: size;
  overflow: hidden;
  --frame-fit: max(100cqw, 177.778cqh);
  --frame-position: 50%;
}
.showroom-frame-clip {
  position: absolute;
  right: 0;
  top: var(--frame-position);
  width: var(--frame-fit);
  aspect-ratio: 16 / 9;
  transform: translateY(calc(-1 * var(--frame-position)));
  overflow: hidden;
}
.showroom-frame-clip > img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 300%;
  max-width: none;
  display: block;
}
.showroom-playing .showroom-frame { visibility: visible; }
.showroom-playing .showroom-photo { visibility: hidden; }
.showroom-ready .showroom-frame {
  -webkit-mask-image: linear-gradient(90deg, #000 0 95%, transparent);
  mask-image: linear-gradient(90deg, #000 0 95%, transparent);
}
.showroom-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.showroom-photo[hidden], .showroom-details[hidden] { display: none; }
@media (min-width: 800px) {
  .showroom:not(.showroom-enhanced) .showroom-details + .showroom-details { grid-column: 2; }
}
.showroom-vehicle img { display: block; width: 100%; height: auto; }
@supports (aspect-ratio: 2) and (clip-path: polygon(0% 0%, 100% 0%, 100% 100%)) {
  .showroom-vehicle {
    position: relative;
    width: min(88%, 870px, 110vh);
    aspect-ratio: 2.02;
    transform: translateY(13%);
  }
  .showroom-vehicle::before {
    content: '';
    position: absolute;
    inset: auto 1% 6% 2%;
    height: 17%;
    background: radial-gradient(ellipse, #24293342 0%, #30364222 42%, transparent 72%);
  }
  .showroom-vehicle img {
    position: absolute;
    width: 202%;
    max-width: none;
    top: -74%;
    left: -94%;
    clip-path: var(--car-silhouette);
  }
}
.showroom-model {
  font-size: clamp(1.875rem, 3.7vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
}
.showroom-model > span {
  display: block;
  margin-bottom: 8px;
  font-family: 'Inter Tight', Arial, sans-serif;
  font-weight: 650;
  font-size: .38em;
  letter-spacing: .005em;
}
.showroom-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 22px 0 20px;
}
.showroom-specs > div {
  padding-block: 9px;
  border-top: 1px solid var(--studio-line);
}
.showroom-specs dt { color: #55575c; font-size: .75rem; }
.showroom-specs dd { margin: 1px 0 0; font-size: .975rem; font-weight: 620; }
.showroom-result { border-top: 1px solid var(--studio-line); padding-top: 16px; }
.showroom-price {
  font: 560 clamp(1.5rem, 2.65vw, 2.875rem)/1.16 Unbounded, sans-serif;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.showroom-price-note {
  margin-top: 9px;
  color: #55575c;
  max-width: 29ch;
  font-size: .875rem;
  line-height: 1.35;
}
.showroom-delivery {
  margin-top: 12px;
  font-size: .9375rem;
  font-weight: 640;
}
.showroom-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 14px;
  border-top: 1px solid var(--studio-line);
}
.showroom-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px clamp(14px, 2vw, 28px); }
.showroom-nav button, .showroom-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  font-size: .85rem;
  font-weight: 620;
}
.showroom-nav { display: none; }
.showroom-enhanced .showroom-nav { display: flex; }
.showroom-nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
}
.showroom-nav button > span { font-size: .65rem; color: #5a5d62; }
.showroom-nav button[aria-pressed="true"], .showroom-nav button:hover, .showroom-cta:hover { color: var(--accent); }
.showroom-cta > span:last-child { color: var(--accent); font-size: 1.2rem; }
.showroom-progress { display: none; }

.showroom-ready .showroom-scroll {
  height: calc(100vh * 4.15 - var(--header-h) - 1px);height: calc(100svh * 4.15 - var(--header-h) - 1px);
}
.showroom-ready .showroom-stage {
  position: sticky;
  top: calc(var(--header-h) + 1px);
  height: calc(100vh - var(--header-h) - 1px);height: calc(100svh - var(--header-h) - 1px);
  overflow: clip;
  isolation: isolate;
  background: radial-gradient(ellipse at 30% 18%, #fbfbfc 0%, #ebedef 58%, #d9dce0 100%);
}
.showroom-ready .showroom-heading {
  position: absolute;
  z-index: 4;
  inset: 0 auto auto 0;
  max-width: 58%;
  padding-block: clamp(22px, 4vh, 52px) 0;
  pointer-events: none;
}
.showroom-ready .showroom-case {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
}
.showroom-ready .showroom-media {
  position: absolute;
  inset: 0 27% 0 0;
  aspect-ratio: auto;
  overflow: hidden;
}
.showroom-ready .showroom-details {
  z-index: 3;
  position: relative;
  margin: 66px var(--gutter) 48px 0;
  width: clamp(250px, 26.5vw, 420px);
}
.showroom-ready .showroom-bottom {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  padding-block: 7px;
}
.showroom-ready .showroom-progress {
  position: absolute;
  inset: -2px 0 auto;
  height: 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.showroom-progress i { background: var(--accent); transform: scaleX(0); transform-origin: left; }

.motion-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.motion-count { display: inline-grid; font-variant-numeric: tabular-nums; }
.motion-count::before { content: attr(data-final); visibility: hidden; }
.motion-count::before, .motion-count > span { grid-area: 1 / 1; }
.facts strong .motion-number, .facts strong .motion-number span { font: inherit; color: inherit; }

.trust-vehicle {
  margin-top: clamp(20px, 3vw, 40px);
  overflow: clip;
}
.trust-vehicle img {
  width: 100%;
  height: auto;
}

@media(max-width: 799px), (max-aspect-ratio: 5/4) {
  .showroom-case { grid-template-columns: 1fr; gap: 16px; }
  .showroom-ready .showroom-scroll {
    height: calc(100vh * 3.85 - var(--header-h) - 1px);height: calc(100svh * 3.85 - var(--header-h) - 1px);
  }
  .showroom-heading { padding-block: 24px 14px; }
  .showroom-ready .showroom-stage {
    background: linear-gradient(#f3f4f5, #e1e4e8 57%, #f4f4f5 73%);
  }
  .showroom-ready .showroom-heading {
    max-width: none;
    padding-top: 13px;
  }
  .showroom-ready .showroom-heading h2 {
    font-size: clamp(1rem, 4.35vw, 1.5rem);
    margin-top: 4px;
  }
  .showroom-ready .showroom-heading > p { font-size: .56rem; }
  .showroom-ready .showroom-case {
    inset: 54px 0 49px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    justify-items: stretch;
  }
  .showroom-ready .showroom-media {
    position: relative;
    grid-row: 1;
    inset: auto;
  }
  .showroom-ready .showroom-frame {
    --frame-position: 70%;
    -webkit-mask-image: linear-gradient(transparent, #000 9% 89%, transparent);
    mask-image: linear-gradient(transparent, #000 9% 89%, transparent);
  }
  .showroom-ready .showroom-vehicle {
    width: min(92%, 610px);
    transform: none;
  }
  .showroom-ready .showroom-details[hidden] { display: block; visibility: hidden; }
  .showroom-ready .showroom-details {
    grid-area: 2 / 1;
    width: auto;
    min-height: 246px;
    margin: 0 var(--gutter) 10px;
  }
  .showroom-ready .showroom-model { font-size: clamp(1.2rem, 5.4vw, 1.7rem); }
  .showroom-ready .showroom-model > span { display: inline; font: inherit; }
  .showroom-ready .showroom-specs { margin-block: 10px 6px; }
  .showroom-ready .showroom-specs > div { padding-block: 4px; }
  .showroom-ready .showroom-specs dt { font-size: .67rem; }
  .showroom-ready .showroom-specs dd { font-size: .87rem; line-height: 1.25; }
  .showroom-ready .showroom-result { padding-top: 7px; }
  .showroom-ready .showroom-price { font-size: clamp(1.42rem, 6vw, 1.85rem); }
  .showroom-ready .showroom-price-note { margin-top: 5px; max-width: 42ch; font-size: .75rem; }
  .showroom-ready .showroom-delivery { margin-top: 5px; font-size: .8125rem; }
  .showroom-ready .showroom-nav { gap: 10px; }
  .showroom-ready .showroom-nav button { gap: 4px; font-size: .73rem; }
  .showroom-ready .showroom-cta { font-size: .73rem; }
}
@media (max-height: 639px) and (max-width: 799px), (max-height: 639px) and (max-aspect-ratio: 5/4) {
  .showroom-ready .showroom-heading { padding-top: 8px; }
  .showroom-ready .showroom-heading h2 { margin-top: 2px; }
  .showroom-ready .showroom-case { inset: 44px 0 50px; }
  .showroom-ready .showroom-vehicle { width: min(92%, 64vh); }
  .showroom-ready .showroom-frame { --frame-fit: min(100cqw, 177.778cqh); }
  .showroom-ready .showroom-details { min-height: 174px; margin-bottom: 5px; }
  .showroom-ready .showroom-model { font-size: clamp(1rem, 4.8vw, 1.35rem); }
  .showroom-ready .showroom-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 10px;
    margin-block: 5px 4px;
  }
  .showroom-ready .showroom-specs > div { padding-block: 3px; }
  .showroom-ready .showroom-specs dt { font-size: .625rem; }
  .showroom-ready .showroom-specs dd { font-size: .75rem; }
  .showroom-ready .showroom-result { padding-top: 5px; }
  .showroom-ready .showroom-price { font-size: clamp(1.2rem, 5.5vw, 1.55rem); }
  .showroom-ready .showroom-price-note,
  .showroom-ready .showroom-delivery { margin-top: 3px; font-size: .6875rem; }
  .showroom-ready .showroom-bottom { padding-block: 4px; }
}
@media(max-width: 420px) {
  .showroom-ready .showroom-cta > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .showroom-ready .showroom-cta { padding-inline: 10px; }
}
@media(min-width: 800px) and (max-height: 760px) {
  .showroom-ready .showroom-model { font-size: clamp(1.85rem, 3vw, 3.25rem); }
  .showroom-ready .showroom-specs { margin-block: 13px 10px; }
  .showroom-ready .showroom-specs > div { padding-block: 6px; }
  .showroom-ready .showroom-result { padding-top: 10px; }
}

/* Контуры заданы в координатах исходных фотографий 1440 × 810. */
[data-car="glb"] {
  --car-silhouette: polygon(47.43% 66.05%, 47.57% 63.70%, 47.43% 60.99%, 47.71% 59.63%, 48.26% 58.27%, 48.33% 55.43%, 48.68% 53.33%, 49.72% 51.98%, 51.39% 50.74%, 53.89% 49.63%, 56.67% 48.64%, 59.03% 47.90%, 61.60% 41.98%, 64.44% 39.01%, 66.18% 37.65%, 68.33% 36.91%, 70.49% 36.79%, 75.56% 37.04%, 76.94% 36.17%, 78.75% 35.80%, 81.67% 35.80%, 84.72% 36.42%, 87.08% 37.41%, 88.82% 38.15%, 90.14% 40.00%, 90.83% 42.47%, 91.67% 45.43%, 93.06% 49.01%, 93.54% 49.88%, 93.96% 51.11%, 94.31% 56.05%, 94.38% 59.63%, 94.10% 62.72%, 93.54% 65.80%, 93.12% 68.02%, 92.36% 69.88%, 91.25% 70.99%, 90.00% 71.48%, 88.82% 71.23%, 87.99% 70.37%, 87.36% 68.52%, 87.01% 67.16%, 84.24% 67.41%, 80.90% 68.27%, 75.90% 69.75%, 73.75% 69.88%, 72.99% 72.35%, 72.08% 73.83%, 70.83% 74.69%, 69.10% 74.94%, 67.92% 74.32%, 66.88% 72.72%, 66.04% 70.86%, 64.79% 70.62%, 56.94% 70.00%, 56.18% 71.48%, 54.86% 72.47%, 53.54% 72.72%, 52.08% 72.35%, 50.97% 71.36%, 50.00% 68.89%, 48.06% 68.02%, 47.43% 67.28%);
}
[data-car="a3"] {
  --car-silhouette: polygon(47.78% 68.77%, 48.26% 67.04%, 48.06% 65.19%, 47.78% 62.59%, 48.12% 60.74%, 48.82% 58.52%, 49.03% 57.04%, 49.93% 54.69%, 51.60% 52.84%, 54.17% 51.48%, 57.99% 50.12%, 59.03% 48.77%, 61.25% 45.31%, 64.03% 42.35%, 66.39% 40.86%, 69.10% 40.12%, 73.96% 39.51%, 79.44% 39.75%, 80.14% 38.89%, 80.28% 39.88%, 83.54% 40.12%, 85.83% 41.36%, 87.43% 43.33%, 89.03% 46.05%, 90.35% 48.40%, 91.39% 50.74%, 91.94% 52.47%, 91.94% 55.19%, 92.36% 59.38%, 92.43% 62.59%, 92.15% 65.31%, 91.74% 66.67%, 91.11% 68.64%, 90.07% 69.88%, 88.75% 70.74%, 87.57% 70.37%, 86.67% 69.38%, 86.11% 67.78%, 84.10% 68.15%, 78.54% 69.88%, 74.31% 71.11%, 73.68% 72.72%, 72.64% 74.07%, 71.39% 74.69%, 69.86% 74.57%, 68.75% 73.46%, 67.92% 71.60%, 66.25% 71.60%, 58.47% 71.11%, 56.46% 70.99%, 55.49% 71.85%, 54.17% 72.47%, 52.71% 72.59%, 51.46% 71.98%, 50.49% 70.86%, 48.82% 70.37%, 47.99% 69.75%);
}
[data-car="tayron"] {
  --car-silhouette: polygon(45.69% 65.68%, 45.76% 62.72%, 45.83% 60.00%, 46.32% 57.90%, 46.81% 55.93%, 46.94% 53.46%, 47.15% 51.73%, 48.26% 50.12%, 50.07% 49.14%, 52.78% 48.52%, 55.42% 47.78%, 57.15% 47.28%, 58.19% 45.06%, 60.76% 41.36%, 62.92% 38.77%, 65.00% 37.28%, 66.67% 36.30%, 69.03% 35.93%, 73.19% 36.30%, 75.76% 36.42%, 77.01% 35.43%, 79.31% 35.31%, 82.71% 35.80%, 86.46% 37.04%, 88.68% 38.52%, 89.72% 40.37%, 90.56% 43.46%, 92.08% 46.17%, 93.12% 47.53%, 93.61% 49.38%, 93.89% 52.22%, 93.75% 55.31%, 94.10% 59.38%, 94.10% 63.33%, 93.40% 64.94%, 92.78% 67.53%, 91.94% 70.00%, 90.90% 71.11%, 89.58% 71.73%, 88.40% 71.36%, 87.50% 70.37%, 86.94% 68.40%, 86.46% 66.91%, 84.58% 67.28%, 80.42% 68.15%, 76.11% 69.26%, 74.51% 70.00%, 73.12% 70.37%, 72.50% 72.96%, 71.39% 74.94%, 70.07% 75.68%, 68.19% 75.80%, 66.60% 75.19%, 65.69% 73.83%, 64.93% 71.48%, 62.85% 71.11%, 55.56% 70.25%, 54.79% 71.85%, 53.61% 72.96%, 52.43% 73.58%, 50.83% 73.46%, 49.58% 72.72%, 48.75% 71.48%, 47.99% 69.75%, 46.32% 69.01%, 45.83% 67.90%);
}
