:root {
  color-scheme: dark;
  --scale: 1;
  --mobile-scale: 1;
  --paper: #f2e5e5;
  --accent: #e15555;
  --phone: #156fe5;
  --button: #292b30;
  --active-green: #05ff33;
  --active-red: #ff0b0b;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #bccbd1;
}

body { font-family: "Roboto Condensed", Arial, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }

.viewport {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: #bccbd1;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--scale));
  transform-origin: center;
  isolation: isolate;
  background: #ced7da;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.scene.is-visible { opacity: 1; }

.scene__business,
.scene__fog,
.scene__question-fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene__fog { opacity: 0.7; }

.scene__presenter {
  position: absolute;
  left: -50px;
  top: 115px;
  width: 1152px;
  height: 768px;
  object-fit: contain;
}

.scene__question-person {
  position: absolute;
  left: -20px;
  top: 65px;
  width: 760px;
  height: 1140px;
  object-fit: contain;
}

.brand-backdrop {
  position: absolute;
  left: 118px;
  top: 37px;
  width: 865px;
  height: 184px;
  border-radius: 35px 42px 35px 35px;
  background: rgba(104, 101, 101, 0.24);
  filter: blur(26.85px);
}

.brand {
  position: absolute;
  left: 161px;
  top: 65px;
  width: 803px;
  height: 161px;
  margin: 0;
  color: rgba(242, 229, 229, 0.58);
  font-size: 140px;
  font-weight: 500;
  line-height: 161px;
  letter-spacing: -2px;
  opacity: 0.77;
  white-space: nowrap;
}

.message {
  position: absolute;
  left: 161px;
  top: 546px;
  color: var(--paper);
}

.message p { margin: 0; }

.message__speaker,
.message__price,
.contacts__label,
.contacts__write {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

.message__speaker {
  width: 341px;
  height: 48px;
  color: var(--accent);
  font-size: 48px;
  line-height: 36px;
}

.message__promise {
  width: 560px;
  height: 233px;
  color: var(--paper);
  font-size: 64px;
  font-weight: 400;
  line-height: 74px;
  letter-spacing: 9.6px;
  text-transform: uppercase;
}

.message__price {
  position: absolute;
  left: 0;
  top: 281px;
  width: 625px;
  color: var(--accent);
  font-size: 48px;
  line-height: 36px;
  white-space: nowrap;
}

.message__price span { font-size: 32px; }

.contacts {
  position: absolute;
  left: 911px;
  top: 676px;
  width: 335px;
  height: 125px;
}

.contacts__label,
.contacts__write {
  position: absolute;
  left: 0;
  width: 228px;
  font-size: 48px;
  line-height: 36px;
}

.contacts__label {
  top: 0;
  color: var(--paper);
  opacity: 0.77;
}

.contacts__phone {
  position: absolute;
  left: 0;
  top: 50px;
  color: var(--phone);
  font-size: 48px;
  font-weight: 700;
  line-height: 36px;
  text-decoration: none;
  white-space: nowrap;
}

.contacts__write {
  top: 89px;
  color: var(--accent);
}

.contacts__max {
  position: absolute;
  left: 219px;
  top: 92px;
  width: 103px;
  height: 33px;
  object-fit: cover;
}

.scene-menu {
  position: absolute;
  right: 80px;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scene-button {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  padding: 20px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  cursor: pointer;
}

.scene-button img {
  width: 40px;
  height: 40px;
}

.scene-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  pointer-events: none;
}

.scene-button.is-active::after {
  border-color: var(--active-green);
  box-shadow: 0 0 12px 3px rgba(5, 255, 51, 0.6);
}

.scene-button.is-active.is-question::after {
  border-color: var(--active-red);
  box-shadow: 0 0 12px 4px rgba(255, 17, 21, 0.65);
}

.scene-button:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 5px;
}

.menu-arrow {
  position: absolute;
  left: 1163px;
  top: 256px;
  width: 89px;
  height: 29px;
}

.stage--mobile {
  display: none;
  width: 390px;
  height: 693px;
  transform: translate(-50%, -50%) scale(var(--mobile-scale));
}

.mobile-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.mobile-scene.is-visible { opacity: 1; }

.mobile-scene__fog {
  position: absolute;
  inset: 0;
  width: 390px;
  height: 693px;
  object-fit: cover;
}

.mobile-scene__window {
  position: absolute;
  left: 37px;
  top: 96px;
  width: 255px;
  height: 132px;
  border-radius: 14px;
  object-fit: cover;
}

.mobile-scene__person {
  position: absolute;
  left: -24px;
  top: 199px;
  width: 330px;
  height: 495px;
  object-fit: contain;
}

.mobile-brand-backdrop {
  position: absolute;
  left: 0;
  top: 11px;
  width: 384px;
  height: 91px;
  border-radius: 35px 42px 35px 35px;
  background: rgba(104, 101, 101, 0.24);
  filter: blur(26.85px);
}

.mobile-brand {
  position: absolute;
  left: 35px;
  top: 26px;
  width: 320px;
  height: 70px;
  margin: 0;
  color: rgba(242, 229, 229, 0.72);
  font-size: 56px;
  font-weight: 500;
  line-height: 60px;
  opacity: 0.77;
  text-shadow: 0 4px 8px rgba(10, 26, 36, 0.34);
  white-space: nowrap;
}

.mobile-message p { margin: 0; }

.mobile-message__speaker,
.mobile-message__price,
.mobile-contacts__label,
.mobile-contacts__write {
  font-family: "Caveat", cursive;
  font-weight: 700;
}

.mobile-message__speaker {
  position: absolute;
  left: 35px;
  top: 390px;
  width: 230px;
  height: 32px;
  color: var(--accent);
  font-size: 26px;
  line-height: 28px;
}

.mobile-message__promise {
  position: absolute;
  left: 35px;
  top: 424px;
  width: 300px;
  height: 120px;
  color: var(--paper);
  font-size: 38px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 5.7px;
  text-transform: uppercase;
}

.mobile-message__price {
  position: absolute;
  left: 35px;
  top: 541px;
  width: 280px;
  height: 60px;
  color: var(--accent);
  font-size: 27px;
  line-height: 24px;
}

.mobile-message__price span { font-size: 20px; }

.mobile-contacts__label {
  position: absolute;
  left: 35px;
  top: 595px;
  width: 102px;
  height: 18px;
  color: var(--paper);
  font-size: 20px;
  line-height: 22px;
  opacity: 0.77;
}

.mobile-contacts__phone {
  position: absolute;
  left: 35px;
  top: 615px;
  width: 220px;
  height: 26px;
  color: var(--phone);
  font-size: 27px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-contacts__write {
  position: absolute;
  left: 35px;
  top: 637px;
  width: 120px;
  height: 24px;
  color: var(--accent);
  font-size: 22px;
  line-height: 24px;
}

.mobile-contacts__max {
  position: absolute;
  left: 147px;
  top: 639px;
  width: 74px;
  height: 24px;
  object-fit: cover;
}

.mobile-scene-menu {
  right: 20px;
  top: 98px;
  gap: 4.333px;
}

.mobile-scene-menu .scene-button {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 4px;
}

.mobile-scene-menu .scene-button img {
  width: 20px;
  height: 20px;
}

.mobile-scene-menu .scene-button::after {
  border-width: 2px;
  border-radius: 4px;
}

.mobile-scene-menu .scene-button.is-active::after {
  box-shadow: 0 0 7px 2px rgba(5, 255, 51, 0.72);
}

.mobile-scene-menu .scene-button.is-active.is-question::after {
  border-color: #ff121a;
  box-shadow: 0 0 7px 2px rgba(255, 13, 20, 0.78);
}

.mobile-menu-arrow {
  position: absolute;
  right: 69px;
  top: 249px;
  width: 32px;
  height: 10.427px;
}

@media (max-width: 820px) {
  .stage--desktop { display: none; }
  .stage--mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .mobile-scene { transition: none; }
}
