/* One in-flow stage plays the same camera path on every screen. */
.flavor-film {
  --film-height: clamp(24rem, 86vh, 53rem);
  position: relative;
  isolation: isolate;
  color: #14282d;
  background: #172228;
}
@supports (height: 100svh) {
  .flavor-film { --film-height: clamp(24rem, 86svh, 53rem); }
}
.flavor-film *, .flavor-film *::before, .flavor-film *::after { box-sizing: border-box; }
.flavor-film span[lang="en"], html[lang="en"] .flavor-film span[lang="ps"] { display: none; }
html[lang="en"] .flavor-film span[lang="en"] { display: inline; }
.film-screen-reader {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.film-stage, .film-pin { position: relative; }
.film-act { position: relative; isolation: isolate; height: var(--film-height); overflow: clip; }
.film-nav {
  position: absolute;
  z-index: 7;
  inset: clamp(.8rem, 3.2vh, 2.1rem) 0 auto;
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  pointer-events: none;
}
.film-nav button {
  pointer-events: auto;
  min-height: 2.75rem;
  padding: .22rem clamp(.65rem, 2.2vw, 1.15rem);
  border: 1px solid #f0eee84d;
  border-radius: 2rem;
  background: #13252eea;
  color: #fcfdf9;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}
.film-nav button:hover { background: #273e48; }
.flavor-film :is(a, button, summary, select):focus-visible { outline: 3px solid #071717; outline-offset: 3px; box-shadow: 0 0 0 6px #f2ffbe; }
.film-detail {
  background:
    radial-gradient(ellipse at 50% 70%, rgb(var(--film-flavor-rgb, 150 220 140) / .52), transparent 49%),
    linear-gradient(156deg, #fafcfa 5%, #e1f1f3 59%, #c1dee8 100%);
}
.film-detail::before {
  content: "";
  position: absolute;
  width: 126%; height: 38%;
  inset: auto -13% -21%;
  pointer-events: none;
  border-radius: 50%;
  border-top: 1px solid #e6ffd185;
  background: linear-gradient(#ffffff60, #9bc6cd);
  transform: rotate(-5deg);
}
.film-detail h2 {
  position: absolute;
  z-index: 2;
  inset: auto 7% clamp(1.45rem, 6vh, 4rem);
  margin: 0;
  color: #1e3b40;
  font-size: clamp(1.06rem, 2vw, 1.7rem);
  font-weight: 750;
  line-height: 1.5;
}
.film-flat {
  position: absolute;
  z-index: 1;
  left: 50%; top: 48%;
  width: auto; height: 74%;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-7deg);
  filter: drop-shadow(1.2rem 1.2rem 1.1rem #18212d42);
}
.film-flat-signature { height: 68%; transform: translate(-50%, -50%) rotate(-3deg); }
.film-signature { background: #f3ac48 url("amber-burst.webp") center / cover no-repeat; }
.film-family {
  background:
    radial-gradient(ellipse at 79% 12%, #fffcf0 0%, transparent 40%),
    linear-gradient(156deg, #bad5e3 0%, #f0f6f7 39%, #d3e5ea 68%, #e9f5ee 90%, #c8dddf);
}
.film-family::before {
  content: "";
  position: absolute;
  inset: -20% -7%;
  pointer-events: none;
  transform: rotate(-13deg);
  background: linear-gradient(0deg, transparent 38%, #fcffff51 39.2%, transparent 42%, transparent 56%, #fdfdfc45 60%, transparent 68%);
}
.film-fleet { position: absolute; inset: 14% 3% 20%; direction: ltr; container-type: size; }
.film-fleet-can {
  position: absolute;
  left: var(--lane); top: var(--level);
  width: min(9.15cqw, 26cqh);
  aspect-ratio: 352 / 832;
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--lean));
}
.film-fleet-can:nth-child(1) { --lane: 7%; --level: 61%; --lean: -7deg; }
.film-fleet-can:nth-child(2) { --lane: 21%; --level: 57%; --lean: -5deg; }
.film-fleet-can:nth-child(3) { --lane: 35%; --level: 53%; --lean: -3deg; }
.film-fleet-can:nth-child(4) { --lane: 50%; --level: 49%; --lean: -1deg; width: min(11.6cqw, 32cqh); }
.film-fleet-can:nth-child(5) { --lane: 65%; --level: 45%; --lean: 3deg; }
.film-fleet-can:nth-child(6) { --lane: 79%; --level: 41%; --lean: 5deg; }
.film-fleet-can:nth-child(7) { --lane: 93%; --level: 37%; --lean: 7deg; }
.film-fleet-body {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(1px 1px 1px #29434a36) drop-shadow(3px 8px 5px #3049562b);
}
.film-fleet-lid {
  position: absolute;
  left: 13%; top: .2%; width: 74%; height: 3.9%;
  border-radius: 50%; object-fit: fill;
  box-shadow: inset 0 1px #fff9, 0 1px 1px #65737f;
}
.film-family-copy {
  position: absolute;
  inset: auto 0 clamp(1.4rem, 5.5vh, 4rem);
  display: flex;
  justify-content: center;
}
.film-range-link {
  color: #193a42;
  padding: .4rem .6rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: .28em;
}
.film-model { display: none; }
.is-film-static .film-act[inert] { display: none; }
.is-film-live .film-stage { block-size: var(--film-height); isolation: isolate; overflow: clip; }
.is-film-live .film-act { position: absolute; height: auto; inset: 0; }
.is-film-live .film-act[inert] { pointer-events: none; }
.is-film-live .film-signature { z-index: 1; opacity: var(--film-amber, 0); }
.is-film-live .film-family { z-index: 4; opacity: var(--film-silver, 0); }
.is-film-live .film-model {
  display: block;
  position: absolute;
  z-index: 5;
  height: 88%; width: 63%; left: 50%; top: 48%;
  transform: translate(calc(-50% + var(--camera-x, 0vw)), calc(-50% + var(--camera-y, 0vh)));
  opacity: var(--model-alpha, 1);
  pointer-events: none;
}
.film-model canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.flavor-film[data-backend="webgl"] .film-gl, .flavor-film[data-backend="canvas"] .film-soft { visibility: visible; }
.is-film-live:is([data-backend="webgl"], [data-backend="canvas"]) .film-flat { visibility: hidden; }
.is-film-live .film-fleet-can {
  --entry: clamp(0, (var(--fleet-enter, 0) - var(--delay, 0)) * 1.48, 1);
  opacity: var(--entry);
  transform: translate(-50%,calc(-50% - 12% * (1 - var(--entry))))
    rotate(calc(var(--lean) * (.45 + .55 * var(--entry)))) scale(calc(.84 + .16 * var(--entry)));
}
.film-fleet-can:is(:nth-child(1), :nth-child(7)) { --delay: .28; }
.film-fleet-can:is(:nth-child(2), :nth-child(6)) { --delay: .13; }
.is-film-live .film-fleet-can:nth-child(4) { opacity: var(--center-join, 0); --entry: 1; }
.is-film-live .film-family-copy { opacity: var(--fleet-enter, 0); }
@media (max-width: 650px) {
  .film-nav { width: calc(100% - 1.5rem); }
  .film-nav button { font-size: .81rem; }
  .film-flat { height: 68%; }
  .is-film-live .film-model { width: 93%; height: 79%; }
  .film-fleet { inset: 18% 4% 20%; }
  .film-fleet-can { width: min(15cqw, 10.1cqh); }
  .film-fleet-can:nth-child(1) { --lane: 16%; --level: 18%; }
  .film-fleet-can:nth-child(2) { --lane: 14%; --level: 50%; }
  .film-fleet-can:nth-child(3) { --lane: 16%; --level: 82%; }
  .film-fleet-can:nth-child(4) { --lane: 50%; --level: 50%; width: min(30cqw, 27cqh); }
  .film-fleet-can:nth-child(5) { --lane: 84%; --level: 18%; }
  .film-fleet-can:nth-child(6) { --lane: 86%; --level: 50%; }
  .film-fleet-can:nth-child(7) { --lane: 84%; --level: 82%; }
}


.film-catalog-info {
  position: absolute;
  z-index: 3;
  inset-inline-end: 8%;
  inset-block-start: 49%;
  inline-size: min(42%, 32rem);
  max-block-size: calc(100% - 7.4rem);
  padding-block: .42rem;
  overflow: auto;
  transform: translateY(calc(-50% + (1 - var(--info-alpha, 1)) * .5rem));
  opacity: var(--info-alpha, 1);
  scrollbar-width: thin;
  color: #183033;
  text-align: start;
}
.film-catalog-info h3 {
  margin: 0 0 .45rem;
  font-size: clamp(1.38rem, 2.8vw, 2.45rem);
  line-height: 1.3;
  letter-spacing: normal;
}
.film-ingredients {
  margin: 0;
  font-size: clamp(.91rem, 1.43vw, 1.13rem);
  line-height: 1.68;
}
.film-ingredients[lang="ru"] { font-family: system-ui, sans-serif; line-height: 1.52; }
[data-catalog-shot] .film-flat-detail {
  left: 28%;
  height: 63%;
  transform: translate(-50%, -50%) rotate(-4deg);
}
[dir="rtl"] [data-catalog-shot] .film-flat-detail { left: 72%; }
@media (max-width: 650px) {
  .film-catalog-info {
    inset-inline-end: 5%;
    inset-block-start: 50%;
    inline-size: 60%;
    max-block-size: calc(100% - 7.1rem);
  }
  .film-catalog-info h3 { font-size: clamp(1.12rem, 5vw, 1.45rem); }
  .film-ingredients { font-size: clamp(.83rem, 3.65vw, .98rem); }
  [data-catalog-shot] .film-flat-detail { left: 19%; height: min(46%, 40vw); }
  [dir="rtl"] [data-catalog-shot] .film-flat-detail { left: 81%; }
}
