.model-page {
  --model-cyan: #48bce5;
  --model-ice: #b9e9f7;
  --model-navy: #032534;
  min-width: 320px;
  background: #edf6f9;
}

.model-hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding: 116px 0 52px;
  color: #fff;
  background:
    radial-gradient(circle at 73% 19%, rgba(71, 188, 229, .17), transparent 32%),
    linear-gradient(135deg, #032534 0%, #073b4e 58%, #042b3a 100%);
}

.model-hero__grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image:
    linear-gradient(rgba(117, 213, 242, .34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 213, 242, .34) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 67%, transparent 100%);
  pointer-events: none;
}

.model-hero__inner { position: relative; z-index: 1; }

.model-intro {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 72px;
  align-items: end;
}

.model-breadcrumbs {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .46);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.model-breadcrumbs a { transition: color .2s ease; }
.model-breadcrumbs a:hover { color: #fff; }
.model-intro .eyebrow { margin-bottom: 14px; }

.model-intro h1 {
  max-width: 1040px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 4.5vw, 78px);
  line-height: .94;
}

.model-intro__lead {
  max-width: 570px;
  margin: 0 0 3px;
  color: rgba(255, 255, 255, .69);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.62;
}

.model-studio {
  min-height: clamp(590px, 65vh, 730px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  overflow: hidden;
  background: #092f3f;
  border: 1px solid rgba(117, 213, 242, .28);
  box-shadow: 0 34px 90px rgba(0, 15, 23, .42);
}

.model-stage {
  min-width: 0;
  min-height: 590px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 39%, rgba(74, 154, 185, .34), transparent 38%),
    linear-gradient(160deg, #0b3d51 0%, #061f2b 72%);
}

.model-stage::before {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -37%;
  left: -10%;
  height: 68%;
  background-image:
    linear-gradient(rgba(98, 205, 237, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 205, 237, .15) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  transform: perspective(520px) rotateX(61deg);
  transform-origin: center top;
  pointer-events: none;
}

.model-stage__poster,
.model-stage__canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.model-stage__poster {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  opacity: .35;
  filter: saturate(.55) brightness(.6) contrast(1.08);
  transition: opacity .45s ease;
}

.model-stage__canvas {
  z-index: 2;
  display: block;
  opacity: 0;
  cursor: grab;
  outline: 0;
  touch-action: none;
  transition: opacity .45s ease;
}

.model-stage__canvas:active { cursor: grabbing; }
.model-stage.is-ready .model-stage__poster { opacity: 0; pointer-events: none; }
.model-stage.is-ready .model-stage__canvas { opacity: 1; }

.model-stage__topline {
  position: absolute;
  z-index: 5;
  top: 23px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.model-stage__topline span,
.model-stage__topline b {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .78);
  background: rgba(2, 31, 43, .66);
  border: 1px solid rgba(117, 213, 242, .22);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.model-stage__topline span i {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #50c6ed;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(80, 198, 237, .14);
}

.model-loader {
  width: 220px;
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease, visibility .3s ease;
}

.model-stage.is-ready .model-loader { opacity: 0; visibility: hidden; }

.model-loader__mark {
  width: 62px;
  height: 40px;
  position: relative;
  margin-bottom: 17px;
}

.model-loader__mark span {
  width: 32px;
  height: 32px;
  position: absolute;
  top: 4px;
  background: rgba(72, 188, 229, .22);
  border: 1px solid rgba(117, 213, 242, .78);
  transform: rotate(45deg);
  animation: modelLoader 1.3s ease-in-out infinite alternate;
}

.model-loader__mark span:nth-child(1) { left: 1px; }
.model-loader__mark span:nth-child(2) { left: 15px; animation-delay: .16s; }
.model-loader__mark span:nth-child(3) { left: 29px; animation-delay: .32s; }
.model-loader strong { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.model-loader > span { margin-top: 7px; color: #8cdbf2; font-size: 10px; font-weight: 800; }

.model-loader__track {
  width: 100%;
  height: 2px;
  margin-top: 17px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
}

.model-loader__track i {
  width: 0;
  height: 100%;
  display: block;
  background: #4bc4eb;
  box-shadow: 0 0 16px rgba(75, 196, 235, .7);
  transition: width .2s ease;
}

.model-error {
  width: min(410px, calc(100% - 40px));
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  padding: 22px;
  color: #fff;
  background: rgba(3, 37, 52, .9);
  border-left: 3px solid #48bce5;
  text-align: center;
  transform: translate(-50%, -50%);
}

.model-error strong,
.model-error span { display: block; }
.model-error span { margin-top: 7px; color: rgba(255, 255, 255, .62); font-size: 13px; }

.model-stage__toolbar {
  position: absolute;
  z-index: 6;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.model-gesture {
  min-height: 47px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  background: rgba(2, 31, 43, .72);
  border: 1px solid rgba(117, 213, 242, .18);
  backdrop-filter: blur(10px);
}

.model-gesture__mouse {
  width: 16px;
  height: 23px;
  position: relative;
  border: 1px solid #75d5f2;
  border-radius: 9px;
}

.model-gesture__mouse::after { width: 2px; height: 5px; position: absolute; top: 4px; left: 6px; background: #75d5f2; content: ""; }
.model-gesture b { color: #fff; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.model-gesture i { color: rgba(255, 255, 255, .45); font-size: 10px; font-style: normal; }
.model-tools { display: flex; gap: 7px; }

.model-tool {
  min-height: 47px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .7);
  background: rgba(2, 31, 43, .75);
  border: 1px solid rgba(117, 213, 242, .2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.model-tool:hover,
.model-tool.is-active { color: #fff; background: rgba(25, 115, 145, .88); border-color: rgba(117, 213, 242, .58); }
.model-tool span { color: #75d5f2; font-size: 16px; line-height: 1; }
.model-tool--square { width: 47px; padding: 0; }

.model-panel {
  position: relative;
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  color: #103747;
  background: #f4fafc;
}

.model-panel::before {
  width: 3px;
  height: 76px;
  position: absolute;
  top: 0;
  left: 0;
  background: #48bce5;
  content: "";
}

.model-panel__head { padding-bottom: 24px; border-bottom: 1px solid #d4e6ed; }
.model-panel__head span { display: block; margin-bottom: 9px; color: #258cb2; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.model-panel__head b { display: block; font-size: 28px; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.model-views { margin-top: 9px; }

.model-view {
  width: 100%;
  min-height: 79px;
  padding: 12px 5px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 9px;
  color: #183f50;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9e7ed;
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, padding-left .2s ease, background-color .2s ease;
}

.model-view:hover { padding-left: 10px; background: #eaf6fa; }
.model-view.is-active { color: #087ea8; background: linear-gradient(90deg, #e3f5fb, transparent); }
.model-view i { color: #48bce5; font-size: 10px; font-style: normal; font-weight: 850; }
.model-view span { min-width: 0; }
.model-view b,
.model-view small { display: block; }
.model-view b { font-size: 13px; letter-spacing: .01em; line-height: 1.15; text-transform: uppercase; }
.model-view small { margin-top: 5px; color: #78909b; font-size: 10px; }
.model-view em { color: #48bce5; font-size: 18px; font-style: normal; opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.model-view:hover em,
.model-view.is-active em { opacity: 1; transform: none; }

.model-panel__note {
  margin: auto 0 22px;
  padding: 16px;
  display: flex;
  gap: 12px;
  background: #e8f4f8;
  border-left: 2px solid #48bce5;
}

.model-panel__note > i { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; background: #48bce5; border-radius: 50%; box-shadow: 0 0 0 5px rgba(72, 188, 229, .13); }
.model-panel__note p { margin: 0; }
.model-panel__note b,
.model-panel__note span { display: block; }
.model-panel__note b { font-size: 11px; line-height: 1.35; text-transform: uppercase; }
.model-panel__note span { margin-top: 5px; color: #6b8490; font-size: 10px; line-height: 1.45; }
.model-panel__button { width: 100%; padding-inline: 18px; justify-content: space-between; }

.model-details { background: #fff; }
.model-details__head { display: grid; grid-template-columns: 1fr minmax(350px, .55fr); gap: 70px; align-items: end; }
.model-details__head h2 { margin-bottom: 0; }
.model-details__head > p { max-width: 590px; margin: 0 0 3px; color: #68818d; line-height: 1.65; }

.model-detail-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #d7e6ec;
  border-bottom: 1px solid #d7e6ec;
}

.model-detail-grid article { min-height: 210px; padding: 32px; border-right: 1px solid #d7e6ec; }
.model-detail-grid article:last-child { border-right: 0; }
.model-detail-grid span { color: #48bce5; font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.model-detail-grid b { display: block; margin: 35px 0 10px; color: #0b3446; font-size: 21px; text-transform: uppercase; }
.model-detail-grid p { max-width: 390px; margin: 0; color: #6b8390; font-size: 14px; line-height: 1.6; }

.model-next {
  min-height: 140px;
  margin-top: 48px;
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: #fff;
  background: #06394b;
  border-left: 4px solid #48bce5;
}

.model-next div span,
.model-next div b { display: block; }
.model-next div span { margin-bottom: 9px; color: #75d5f2; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.model-next div b { max-width: 760px; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.2; text-transform: uppercase; }
.model-next .button { flex: 0 0 auto; }

.model-stage:fullscreen,
.model-stage:-webkit-full-screen { width: 100vw; height: 100vh; min-height: 100vh; background: #061f2b; }

@keyframes modelLoader { from { opacity: .32; transform: translateY(4px) rotate(45deg); } to { opacity: 1; transform: translateY(-4px) rotate(45deg); } }

@media (max-width: 1280px) {
  .model-studio { grid-template-columns: minmax(0, 1fr) 330px; }
  .model-panel { padding-inline: 23px; }
  .model-gesture i { display: none; }
}

@media (max-width: 1060px) {
  .model-hero { padding-top: 105px; }
  .model-intro { grid-template-columns: 1fr; gap: 18px; }
  .model-intro__lead { max-width: 760px; }
  .model-studio { grid-template-columns: 1fr; }
  .model-stage { min-height: min(68vw, 650px); }
  .model-panel { display: grid; grid-template-columns: minmax(220px, .55fr) 1fr; gap: 0 28px; }
  .model-panel__head { grid-row: 1; }
  .model-views { grid-row: 1 / span 3; grid-column: 2; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .model-panel__note { margin: 24px 0 18px; }
  .model-panel__button { width: max-content; min-width: 270px; }
  .model-details__head { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .model-hero { padding: 96px 0 36px; }
  .model-intro { margin-bottom: 26px; }
  .model-breadcrumbs { margin-bottom: 17px; }
  .model-intro h1 { font-size: clamp(38px, 12vw, 54px); }
  .model-studio { min-height: 0; }
  .model-stage { min-height: 480px; }
  .model-stage__topline { top: 14px; right: 14px; left: 14px; }
  .model-stage__topline b { display: none; }
  .model-stage__toolbar { right: 12px; bottom: 12px; left: 12px; align-items: flex-end; }
  .model-gesture { width: 47px; padding: 0; justify-content: center; }
  .model-gesture b,
  .model-gesture i { display: none; }
  .model-tool { width: 47px; padding: 0; }
  .model-tool:not(.model-tool--square) { font-size: 0; }
  .model-tool span { font-size: 18px; }
  .model-panel { padding: 28px 20px 22px; display: block; }
  .model-panel__head b { font-size: 25px; }
  .model-views { margin-top: 8px; display: block; }
  .model-view { min-height: 70px; }
  .model-panel__note { margin-top: 22px; }
  .model-panel__button { width: 100%; min-width: 0; }
  .model-detail-grid { grid-template-columns: 1fr; }
  .model-detail-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid #d7e6ec; }
  .model-detail-grid article:last-child { border-bottom: 0; }
  .model-detail-grid b { margin-top: 22px; }
  .model-next { padding: 26px; align-items: stretch; flex-direction: column; }
  .model-next .button { width: 100%; }
}

@media (max-width: 440px) {
  .model-stage { min-height: 420px; }
  .model-stage__topline span { font-size: 8px; }
  .model-tools { gap: 4px; }
  .model-tool { width: 43px; min-height: 43px; }
  .model-gesture { width: 43px; min-height: 43px; }
  .model-detail-grid article { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .model-loader__mark span { animation: none; }
  .model-stage__poster,
  .model-stage__canvas,
  .model-view,
  .model-view em { transition: none; }
}
