@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --k: scale of the 1920x1080 artboard, --u: scale of loader UI */
  --k: 1;
  --u: 1;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --navy: #0f1a3b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1530;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid #2f8cff;
  outline-offset: 4px;
}

h1,
h2,
p {
  margin: 0;
}

/* ---------- screens ---------- */

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 0s linear 500ms;
}

.screen.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms var(--ease), visibility 0s;
}

/* 1920x1080 artboard scaled to cover the viewport */
.stage-cover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(1920px * var(--k));
  height: calc(1080px * var(--k));
  transform: translate(-50%, -50%);
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform: scale(var(--k));
  transform-origin: 0 0;
}

/* ---------- loader ---------- */

.loader {
  z-index: 30;
  background: #8fc4ef;
}

.loader__bg,
.loader__cloud-top,
.loader__cloud-bottom {
  position: absolute;
  pointer-events: none;
}

.loader__bg {
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
}

.loader__cloud-top {
  left: 0;
  top: 0;
}

.loader__cloud-bottom {
  left: 570px;
  bottom: 0;
}

/* logo printed on the carried boxes, skewed to the box face */
.loader__box-logo {
  position: absolute;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.loader__box-logo--mohawk {
  left: 219px;
  top: 618px;
  width: 78px;
  transform: skewX(-5deg) skewY(3deg);
}

.loader__box-logo--orange {
  left: 1226px;
  top: 884px;
  width: 60px;
  transform: skewY(10deg);
}

.loader__ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader__ui > * {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  line-height: 1.1;
}

.loader__logo {
  top: calc(34px * var(--u));
  width: calc(207px * var(--u));
  height: auto;
  transform: translateX(-50%);
}

.loader__slogan {
  top: calc(242px * var(--u));
  font-weight: 400;
  font-size: calc(21.5px * var(--u));
  letter-spacing: 0.1em;
  color: #3b3d40;
  transform: translate(-50%, -50%);
}

.loader__plate {
  top: calc(614 / 1080 * 100%);
  width: calc(924px * var(--u));
  height: calc(302px * var(--u));
  background: url("../assets/loading/plate.png") center / 100% 100% no-repeat;
  transform: translateX(calc(-50% + 7px * var(--u)));
}

.loader__plate > * {
  position: absolute;
  left: 50%;
  white-space: nowrap;
  line-height: 1.1;
}

.loader__title {
  top: calc(78px * var(--u));
  font-weight: 700;
  font-size: calc(42.9px * var(--u));
  letter-spacing: 0.012em;
  color: var(--navy);
  transform: translate(calc(-50% - 7px * var(--u)), -50%);
}

.loader__subtitle {
  top: calc(132px * var(--u));
  font-weight: 600;
  font-size: calc(21.5px * var(--u));
  letter-spacing: 0.012em;
  color: #5a6680;
  transform: translate(calc(-50% - 7px * var(--u)), -50%);
}

.loader__track {
  left: calc(104px * var(--u));
  top: calc(166px * var(--u));
  width: calc(704px * var(--u));
  height: calc(52px * var(--u));
  background: url("../assets/loading/area.png") center / 100% 100% no-repeat;
}

.loader__bar-empty {
  position: absolute;
  left: calc(7px * var(--u));
  top: calc(8px * var(--u));
  width: calc(611px * var(--u));
  height: calc(36px * var(--u));
  background: url("../assets/loading/bar-empty.png") center / 100% 100% no-repeat;
}

/* 3-slice keeps the rounded caps of bar-full.png intact at any width */
.loader__bar-fill {
  --p: 0;
  position: absolute;
  left: calc(8px * var(--u));
  top: calc(5px * var(--u));
  height: calc(42px * var(--u));
  width: calc((41px + 573px * var(--p)) * var(--u));
  border-style: solid;
  border-width: 0 calc(21px * var(--u));
  border-image: url("../assets/loading/bar-full.png") 0 21 fill / 0 calc(21px * var(--u)) stretch;
}

.loader__percent {
  position: absolute;
  right: calc(20px * var(--u));
  top: 50%;
  font-weight: 700;
  font-size: calc(20px * var(--u));
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--navy);
  transform: translateY(-50%);
  font-variant-numeric: tabular-nums;
}

.loader__wait {
  bottom: calc(89px * var(--u));
  font-weight: 400;
  font-size: calc(21.9px * var(--u));
  letter-spacing: 0.02em;
  color: #fff;
  transform: translate(-50%, 50%);
}

.loader__soon {
  bottom: calc(37px * var(--u));
  font-weight: 400;
  font-size: calc(21.5px * var(--u));
  letter-spacing: 0.1em;
  color: #fff;
  transform: translate(-50%, 50%);
}

.loader__soon::before,
.loader__soon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(54px * var(--u));
  height: max(1px, calc(2px * var(--u)));
  background: currentColor;
  transform: translateY(-50%);
}

.loader__soon::before {
  right: calc(100% + 9px * var(--u));
}

.loader__soon::after {
  left: calc(100% + 9px * var(--u));
}

.loader__skip {
  position: absolute;
  z-index: 5;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 24px;
  background: rgba(15, 26, 59, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 28px -12px rgba(15, 26, 59, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  font: 700 15px / 1 "Montserrat", sans-serif;
  letter-spacing: 0.03em;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

.loader__skip:hover {
  background: rgba(15, 26, 59, 0.88);
}

/* ready: the visitor taps to start the intro */
.loader.is-ready {
  cursor: pointer;
}

.loader__wait {
  transition: opacity 300ms var(--ease);
}

.loader.is-ready .loader__wait {
  opacity: 0;
}

.loader__start {
  bottom: calc(89px * var(--u));
  min-height: calc(54px * var(--u));
  padding: 0 calc(34px * var(--u));
  border: 0;
  border-radius: calc(27px * var(--u));
  background: rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px -10px rgba(15, 26, 59, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  font: 700 calc(22px * var(--u)) / 1 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(15, 26, 59, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 50%) scale(0.92);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), visibility 0s linear 400ms;
}

.loader.is-ready .loader__start {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 50%) scale(1);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), visibility 0s;
  animation: start-pulse 1.8s var(--ease) 400ms infinite;
}

.loader__start:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@keyframes start-pulse {
  0%, 100% {
    box-shadow: 0 10px 30px -10px rgba(15, 26, 59, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  70% {
    box-shadow: 0 10px 30px -10px rgba(15, 26, 59, 0.5), inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 calc(16px * var(--u)) rgba(255, 255, 255, 0);
  }
}

.screen.is-instant,
.screen.is-instant * {
  transition: none !important;
}

/* ---------- intro video ---------- */

.intro {
  z-index: 20;
  background: #000;
}

.intro__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__skip {
  position: absolute;
  z-index: 2;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.55), inset 0 1.5px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font: 700 15px / 1 "Montserrat", sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), background-color 200ms;
  pointer-events: none;
}

.intro.is-visible .intro__skip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 600ms;
}

.intro__skip:hover {
  background: rgba(255, 255, 255, 0.38);
}

.intro__skip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ---------- main scene ---------- */

.scene {
  z-index: 10;
}

.scene__reviews {
  position: absolute;
  z-index: 5;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.7), rgba(225, 238, 255, 0.45));
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 12px 28px -12px rgba(15, 26, 59, 0.55), inset 0 1.5px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  opacity: 0;
  transition: transform 250ms var(--ease), opacity 500ms var(--ease) 400ms;
}

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

.scene__reviews-star {
  font-size: 20px;
  color: #ffb400;
  text-shadow: 0 1px 2px rgba(15, 26, 59, 0.2);
}

@media (hover: hover) {
  .scene__reviews:hover {
    transform: translateY(-2px);
  }
}

.scene__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene__viewport.is-scrollable {
  overflow: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scene__viewport.is-scrollable::-webkit-scrollbar {
  display: none;
}

.scene__viewport.is-scrollable .stage-cover {
  position: relative;
  left: 0;
  top: 0;
  transform: none;
}

.scene__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

.char {
  position: absolute;
  display: block;
}

.char:focus-visible {
  outline-offset: -6px;
}

.char--left {
  left: 0;
  top: 443px;
  width: 487px;
  height: 637px;
}

.char--center {
  left: 565px;
  top: 324px;
  width: 761px;
  height: 756px;
}

.char--right {
  left: 1405px;
  top: 240px;
  width: 515px;
  height: 634px;
}

.char__hover {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 350ms var(--ease);
  pointer-events: none;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* soft edges only on the sides that sit inside the scene, so the crop blends into bg.jpg */
.char--left .char__hover {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px), linear-gradient(to left, transparent, #000 24px);
  mask-image: linear-gradient(to bottom, transparent, #000 24px), linear-gradient(to left, transparent, #000 24px);
}

.char--center .char__hover {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px), linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24px), linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.char--right .char__hover {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent), linear-gradient(to right, transparent, #000 24px);
  mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent), linear-gradient(to right, transparent, #000 24px);
}

.scene[data-active="left"] .char--left .char__hover,
.scene[data-active="center"] .char--center .char__hover,
.scene[data-active="right"] .char--right .char__hover {
  opacity: 1;
}

/* tooltip: the button box equals the visible card of plate.png (255x94 at 1:1) */
.tip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 94px;
  padding-left: var(--icon-x);
  text-align: left;
  translate: var(--dx, 0px) 0;
  transition: transform 300ms var(--ease), filter 300ms var(--ease);
}

.tip::before {
  content: "";
  position: absolute;
  inset: -33px -37px -38px -34px;
  z-index: -1;
  border-style: solid;
  border-width: 50px;
  border-image: url("../assets/main/plate.png") 50 fill / 50px stretch;
  pointer-events: none;
}

.tip__icon {
  flex: none;
  margin-right: var(--gap);
}

/* the mockup text is horizontally condensed (Photoshop text scale), hence scaleX */
.tip__text {
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  color: var(--navy);
  white-space: nowrap;
  transform: scaleX(0.85);
  transform-origin: 0 50%;
}

.tip__arrow {
  position: absolute;
  left: calc(50% - 49px);
  top: 72px;
  pointer-events: none;
  transition: transform 300ms var(--ease);
}

.tip--left {
  left: 153px;
  top: 348px;
  width: 255px;
  --icon-x: 32px;
  --gap: 22px;
}

.tip--center {
  left: 833px;
  top: 283px;
  width: 255px;
  --icon-x: 15px;
  --gap: 16px;
}

.tip--right {
  left: 1640px;
  top: 196px;
  width: max-content;
  padding-right: 28px;
  --icon-x: 22px;
  --gap: 14px;
}

.tip--right .tip__text {
  transform: none;
  font-size: 22px;
  line-height: 1;
}

.tip--center .tip__icon {
  margin-top: 1px;
}

.tip--center .tip__text {
  margin-top: 7px;
}

.scene[data-active="left"] .tip--left,
.scene[data-active="center"] .tip--center,
.scene[data-active="right"] .tip--right {
  transform: translateY(-6px) scale(1.04);
}

html[data-site="black"] .tip--right {
  height: 80px;
  padding-right: 22px;
  --icon-x: 18px;
  --gap: 12px;
}

html[data-site="black"] .tip--right::before {
  inset: -26px -28px -30px -26px;
}

html[data-site="black"] .tip--right .tip__arrow {
  top: 60px;
  width: 90px;
  height: auto;
}

.scene[data-active="left"] .tip--left .tip__arrow,
.scene[data-active="center"] .tip--center .tip__arrow,
.scene[data-active="right"] .tip--right .tip__arrow {
  transform: translateY(4px);
}

.tip:active {
  filter: brightness(0.97);
}

/* main screen entrance */
.scene .tip {
  opacity: 0;
}

.scene.is-visible .tip {
  opacity: 1;
  transition: transform 300ms var(--ease), filter 300ms var(--ease), opacity 500ms var(--ease) 250ms;
}

/* ---------- info windows: liquid glass ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  transition: visibility 0s linear 450ms;
}

.modal.is-open {
  visibility: visible;
  transition: visibility 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 45, 0.22);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.window {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100dvh - 24px);
  padding: 22px 24px 24px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.6) 0%, rgba(232, 241, 255, 0.36) 45%, rgba(211, 229, 249, 0.3) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.06);
  box-shadow:
    0 26px 60px -14px rgba(15, 26, 59, 0.38),
    0 2px 8px rgba(15, 26, 59, 0.08),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    inset 0 22px 44px -26px rgba(255, 255, 255, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 18px)) scale(0.96);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 0s linear 450ms;
}

.window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease), visibility 0s;
}

/* specular sheen */
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 70% at 12% -12%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(90% 60% at 108% 118%, rgba(150, 195, 255, 0.28), transparent 60%);
  pointer-events: none;
}

/* bright refracting rim */
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15) 38%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 255, 255, 0.85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.window > * {
  position: relative;
  z-index: 1;
}

.window__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-right: 48px;
}

.window__icon {
  flex: none;
}

.window__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}

.window__body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: #2b3350;
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}

.window__body:empty {
  display: none;
}

.window[data-window="center"],
.window[data-window="right"] {
  width: min(560px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100dvh - 24px);
  padding: 22px 24px 24px;
}

.window[data-window="left"] {
  width: min(640px, calc(100vw - 24px));
  padding: 24px 28px 22px;
}

.window[data-window="left"] .window__head {
  min-height: 52px;
}

.window[data-window="left"] .window__title {
  font-size: 28px;
}

.window[data-window="left"] .window__body {
  overflow: auto;
  margin-top: 16px;
}

.window__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(15, 26, 59, 0.16), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  transition: transform 250ms var(--ease), background-color 250ms var(--ease);
}

.window__close::before,
.window__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transform: translate(-50%, -50%) rotate(45deg);
}

.window__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) {
  .window__close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
  }
}

/* content rendered from data/content.json */

.content p {
  margin: 0 0 12px;
}

.content .content__lead {
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
}

.content__list {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
}

.content__list li {
  position: relative;
  padding: 10px 14px 10px 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(15, 26, 59, 0.06);
}

.content__list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #22d3ff, #2a8cff);
  box-shadow: 0 0 0 3px rgba(42, 140, 255, 0.18);
  transform: translateY(-50%);
}

.content__button,
.content__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background-color 250ms var(--ease);
}

.content__button {
  justify-content: center;
  width: fit-content;
  min-height: 50px;
  margin-top: 8px;
  padding: 0 28px;
  border-radius: 25px;
  background: linear-gradient(180deg, #1fd2ff 0%, #2a8cff 100%);
  box-shadow: 0 10px 22px -8px rgba(42, 140, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}

.content__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content__link {
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(15, 26, 59, 0.08);
  color: var(--navy);
}

.content__link-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.content__link-label {
  font-weight: 700;
  font-size: 17px;
}

.content__link-url {
  overflow: hidden;
  font-size: 13px;
  color: #5a6680;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.content__link-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1fd2ff, #2a8cff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.content__link-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 12px 0 0 11px;
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  transform: rotate(45deg);
}

.content__empty {
  color: #5a6680;
}

@media (hover: hover) {
  .content__button:hover,
  .content__link:hover {
    transform: translateY(-2px);
  }

  .content__link:hover {
    background: rgba(255, 255, 255, 0.7);
  }
}

/* ---------- salary calculator ---------- */

.calc {
  display: grid;
  gap: 10px;
}

.calc__section {
  display: grid;
  gap: 8px;
}

.calc__section-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8090b0;
  padding-left: 2px;
}

.calc__segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.calc__seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  font: 700 17px / 1 "Montserrat", sans-serif;
  color: #5a6680;
  cursor: pointer;
  transition: all 250ms var(--ease);
}

.calc__seg-btn.is-on {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(15, 26, 59, 0.55);
}

.calc__strip {
  display: flex;
  gap: 8px;
}

.calc__chip {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 26, 59, 0.05);
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.calc__chip-val {
  font: 700 20px / 1 "Montserrat", sans-serif;
  color: var(--navy);
  transition: color 200ms;
}

.calc__chip-unit {
  font: 600 12px / 1 "Montserrat", sans-serif;
  color: #8090b0;
  transition: color 200ms;
}

.calc__chip.is-on {
  background: linear-gradient(180deg, #1fd2ff 0%, #2a8cff 100%);
  box-shadow: 0 8px 18px -4px rgba(42, 140, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.calc__chip.is-on .calc__chip-val,
.calc__chip.is-on .calc__chip-unit {
  color: #fff;
}

.calc__method {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(15, 26, 59, 0.05);
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.calc__method-icon {
  font-size: 22px;
  line-height: 1;
}

.calc__method-name {
  font: 600 14px / 1 "Montserrat", sans-serif;
  color: #5a6680;
  transition: color 200ms;
}

.calc__method.is-on {
  background: linear-gradient(180deg, #1fd2ff 0%, #2a8cff 100%);
  box-shadow: 0 8px 18px -4px rgba(42, 140, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.calc__method.is-on .calc__method-name {
  color: #fff;
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 8px rgba(15, 26, 59, 0.06);
}

.calc__counter-label {
  font: 600 12px / 1 "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8090b0;
}

.calc__counter-row {
  display: flex;
  align-items: center;
}

.calc__counter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 140, 255, 0.1);
  font: 700 22px / 1 "Montserrat", sans-serif;
  color: #2a8cff;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  user-select: none;
}

.calc__counter-btn:active {
  transform: scale(0.92);
  background: rgba(42, 140, 255, 0.2);
}

.calc__counter-val {
  min-width: 56px;
  text-align: center;
  font: 700 32px / 1 "Montserrat", sans-serif;
  color: var(--navy);
}

.calc__bonus-grid {
  display: grid;
  gap: 8px;
}

.calc__bonus-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 26, 59, 0.05);
  cursor: pointer;
  transition: background 200ms, box-shadow 200ms;
}

.calc__bonus-card.is-on {
  background: rgba(42, 140, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(42, 140, 255, 0.35), 0 2px 8px rgba(42, 140, 255, 0.1);
}

.calc__bonus-check {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: #2a8cff;
  cursor: pointer;
}

.calc__bonus-info {
  display: grid;
  gap: 2px;
}

.calc__bonus-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.calc__bonus-value {
  font-weight: 600;
  font-size: 13px;
  color: #2a8cff;
}

.calc__premium-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 6px rgba(15, 26, 59, 0.05);
}

.calc__premium-tiers {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.calc__tier {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  transition: background 250ms, box-shadow 250ms;
}

.calc__tier.is-on {
  background: linear-gradient(180deg, rgba(31, 210, 255, 0.15), rgba(42, 140, 255, 0.15));
  box-shadow: inset 0 0 0 1.5px rgba(42, 140, 255, 0.3);
}

.calc__tier-count {
  font: 700 13px / 1 "Montserrat", sans-serif;
  color: var(--navy);
}

.calc__tier-bonus {
  font: 600 13px / 1 "Montserrat", sans-serif;
  color: #2a8cff;
}

.calc__result {
  padding: 16px 20px 12px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(15, 26, 59, 0.88), rgba(25, 42, 85, 0.92));
  box-shadow: 0 12px 32px -10px rgba(15, 26, 59, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 6px;
}

.calc__res-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.calc__res-row--dim {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.calc__res-divider {
  height: 1px;
  margin: 4px 0 2px;
  background: linear-gradient(90deg, transparent, rgba(31, 210, 255, 0.35), transparent);
}

.calc__res-hero {
  text-align: center;
}

.calc__res-hero-label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.calc__res-hero-value {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  background: linear-gradient(135deg, #1fd2ff, #6ee7ff, #2a8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc__note {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(15, 26, 59, 0.9), rgba(25, 42, 85, 0.92));
  box-shadow: 0 10px 24px -12px rgba(15, 26, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.calc__note b {
  color: #ffd24a;
}

@media (max-width: 560px) {
  .window {
    padding: 18px 16px 18px;
    border-radius: 22px;
  }

  .window[data-window="left"] {
    padding: 12px 12px 12px;
  }

  .window__close {
    top: 14px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .window__title {
    font-size: 20px;
  }

  .window__icon {
    width: auto;
    height: 36px;
  }

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

  .calc__chip-val { font-size: 14px; }
  .calc__counter-val { font-size: 20px; }
  .calc__res-hero-value { font-size: 20px; }
}
