.hero-laptop-scene {
  perspective: 2400px;
  perspective-origin: 50% 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  width: 100%;
}

.hero-scene-light {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 650px;
  background: radial-gradient(circle at center,
    rgba(255,85,0,0.15) 0%,
    rgba(255,85,0,0.07) 25%,
    rgba(255,85,0,0.02) 50%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-scene-light-2 {
  position: absolute;
  top: 25%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 500px;
  background: radial-gradient(circle at center,
    rgba(255,0,80,0.08) 0%,
    rgba(255,0,80,0.03) 40%,
    transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-scene-light-3 {
  position: absolute;
  bottom: 10%;
  left: 30%;
  transform: translate(-50%, 0);
  width: 400px;
  height: 350px;
  background: radial-gradient(circle at center,
    rgba(0,100,255,0.06) 0%,
    transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-laptop {
  position: relative;
  width: 100%;
  max-width: 100%;
  transform-style: preserve-3d;
  z-index: 2;
}

.hero-laptop-screen {
  position: relative;
  background: linear-gradient(180deg, #4a4e52 0%, #3a3e42 50%, #2e3236 100%);
  border-radius: 10px 10px 2px 2px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 10px 28px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 12px 30px rgba(0,0,0,0.7);
  transform-origin: bottom center;
  transform: rotateX(-1deg);
  transform-style: preserve-3d;
}

.hero-laptop-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 5;
}

.hero-laptop-display {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  box-shadow: inset 0 0 0 2px #0a0a0a;
}

.hero-laptop-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-screen-logo {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  color: #8a8e92;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  z-index: 5;
  background: rgba(0,0,0,0.45);
  padding: 3px 16px;
  border-radius: 3px;
}

.hero-laptop-hinge {
  position: relative;
  height: 6px;
  background: linear-gradient(180deg, #1a1e22 0%, #0e1216 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 2px rgba(0,0,0,0.6);
  transform-origin: top center;
  transform: rotateX(22deg);
  transform-style: preserve-3d;
}

.hero-laptop-base {
  position: relative;
  background: linear-gradient(180deg,
    #6a6e72 0%,
    #565a5e 20%,
    #464a4e 60%,
    #383c40 100%);
  border-radius: 2px 2px 12px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 20px 40px rgba(0,0,0,0.85);
  transform-origin: top center;
  transform: rotateX(48deg);
  transform-style: preserve-3d;
}

.hero-keyboard-layout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.hero-kb-row {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 28px;
  flex: 0 0 28px;
}

.hero-key {
  position: relative;
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(180deg,
    #383d42 0%,
    #2a2f34 45%,
    #1e2328 100%);
  color: #eef1f3;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  padding: 2px 3px;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.7),
    0 2px 2px rgba(0,0,0,0.5);
  transition: background .15s;
}

.hero-key:hover {
  background: linear-gradient(180deg,
    #43484d 0%,
    #33383d 45%,
    #262b30 100%);
}

.hero-key .en {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.hero-key .ru {
  font-size: 11px;
  font-weight: 500;
  color: #c8cdd2;
  line-height: 1;
  margin-top: 1px;
}

.hero-key .fnum {
  font-size: 8px;
  font-weight: 500;
  color: #9aa0a8;
  line-height: 1;
  margin-top: 1px;
}

.hero-key .fn-icon {
  font-size: 12px;
  color: #d0d4d8;
  line-height: 1;
}

.hero-key.backspace .en {
  font-size: 10px;
  letter-spacing: 0;
}

.hero-key.triple .en {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.hero-key.wide   { flex: 1.4 1 0; }
.hero-key.wide2  { flex: 2 1 0; }
.hero-key.wide3  { flex: 2.4 1 0; }
.hero-key.space  { flex: 5.5 1 0; }

.hero-key.small {
  font-size: 11px;
  color: #d0d4d8;
}

.hero-arrow-block {
  display: grid;
  grid-template-columns: 26px 26px 26px;
  grid-template-rows: repeat(2, 13px);
  gap: 3px;
  margin-left: 6px;
  flex: 0 0 auto;
}

.hero-arrow-block .hero-arrow-up    { grid-column: 2; grid-row: 1; }
.hero-arrow-block .hero-arrow-left  { grid-column: 1; grid-row: 1 / 3; }
.hero-arrow-block .hero-arrow-down  { grid-column: 2; grid-row: 2; }
.hero-arrow-block .hero-arrow-right { grid-column: 3; grid-row: 1 / 3; }

.hero-arrow-key {
  align-self: stretch;
  background: linear-gradient(180deg,
    #383d42 0%,
    #2a2f34 45%,
    #1e2328 100%);
  border-radius: 4px;
  color: #f0f2f4;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  line-height: 1;
  overflow: hidden;
  padding: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.7),
    0 2px 2px rgba(0,0,0,0.5);
  transition: background .15s;
}

.hero-arrow-key:hover {
  background: linear-gradient(180deg,
    #43484d 0%,
    #33383d 45%,
    #262b30 100%);
}

.hero-trackpad {
  width: 44%;
  height: 120px;
  margin: 14px auto 0 auto;
  background: linear-gradient(180deg,
    #5a5e62 0%,
    #464a4e 100%);
  border-radius: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.3),
    0 0 0 1px rgba(0,0,0,0.4);
}

.hero-laptop-shadow {
  position: absolute;
  bottom: -70px;
  left: 8%;
  right: 8%;
  height: 90px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.4) 40%,
    transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

.hero-laptop-reflection {
  position: absolute;
  bottom: -30px;
  left: 15%;
  right: 15%;
  height: 50px;
  background: linear-gradient(180deg,
    rgba(255,85,0,0.08) 0%,
    transparent 100%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-kb-row { height: 24px; flex: 0 0 24px; }
  .hero-key .en { font-size: 11px; }
  .hero-key .ru { font-size: 9px; }
  .hero-key.backspace .en { font-size: 9px; }
  .hero-key.triple .en { font-size: 10px; }
  .hero-key.small { font-size: 9px; }
  .hero-trackpad { height: 100px; }
  .hero-arrow-block { grid-template-columns: 22px 22px 22px; grid-template-rows: repeat(2, 12px); }
  .hero-arrow-key { font-size: 10px; }
  .hero-scene-light { width: 550px; height: 500px; }
  .hero-scene-light-2 { width: 400px; height: 350px; }
  .hero-scene-light-3 { width: 300px; height: 250px; }
  .hero-laptop-screen { padding: 8px 8px 24px 8px; }
  .hero-screen-logo { bottom: 6px; font-size: 8px; }
}

@media (max-width: 768px) {
  .hero-laptop-scene { perspective: 1200px; }
  .hero-laptop-base { padding: 8px 10px 10px; transform: rotateX(46deg); }
  .hero-laptop-hinge { transform: rotateX(20deg); }
  .hero-kb-row { height: 20px; flex: 0 0 20px; gap: 3px; }
  .hero-key { border-radius: 3px; padding: 1px 2px; }
  .hero-key .en { font-size: 9px; }
  .hero-key .ru { font-size: 7px; }
  .hero-key .fnum { font-size: 6px; }
  .hero-key .fn-icon { font-size: 8px; }
  .hero-key.backspace .en { font-size: 7px; }
  .hero-key.triple .en { font-size: 8px; }
  .hero-key.small { font-size: 8px; }
  .hero-trackpad { height: 80px; }
  .hero-arrow-block { grid-template-columns: 18px 18px 18px; grid-template-rows: repeat(2, 10px); }
  .hero-arrow-key { font-size: 8px; }
  .hero-scene-light { width: 400px; height: 350px; }
  .hero-scene-light-2 { width: 300px; height: 250px; }
  .hero-scene-light-3 { width: 220px; height: 180px; }
  .hero-laptop-screen { padding: 6px 6px 20px 6px; }
  .hero-screen-logo { bottom: 5px; font-size: 7px; padding: 2px 12px; }
}