:root { --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); --glass-tint: rgba(12, 15, 22, 0.20); --glass-border: rgba(255, 255, 255, 0.10); --window-bg: #1e1e1e; --window-header: #2d2d2d; --window-border: #3f3f46; --laptop-max-width: 750px; --laptop-base-overhang: 1%; --laptop-height-limit: 78vh; } .laptop-container { display: flex; justify-content: center; align-items: center; width: min(var(--laptop-max-width), 90vw, var(--laptop-height-limit)); flex: 0 0 auto; } .laptop { width: 100%; position: relative; } .screen { background-color: #000; border: clamp(8px, 1.5vh, 12px) solid #121212; border-bottom: none; border-radius: 12px 12px 0 0; width: 100%; aspect-ratio: 16 / 10; position: relative; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 0 1px #27272a; display: flex; justify-content: center; align-items: center; padding: 1.5%; } .screen::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 15%; height: 2.5%; background-color: #121212; border-radius: 0 0 8px 8px; z-index: 50; } .screen::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient( 45deg, transparent 40%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55% ); transform: rotate(-15deg); pointer-events: none; z-index: 40; } /* База ноутбука */ .base { background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%); height: clamp(10px, 1.8vh, 16px); border-radius: 0 0 12px 12px; position: relative; box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8); display: flex; justify-content: center; width: calc(100% + var(--laptop-base-overhang) * 2); margin-left: calc(var(--laptop-base-overhang) * -1); z-index: 10; } .trackpad-indent { width: 15%; height: 30%; background-color: #111; border-radius: 0 0 6px 6px; margin-top: 0; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); } .window { position: absolute; background: var(--window-bg); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--window-border); display: flex; flex-direction: column; max-height: 85%; max-width: 80%; transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s; } .window:hover { transform: scale(1.03) translateZ(20px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--window-border); z-index: 30 !important; } .window:hover { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--window-border); } /* Шапка окна */ .window-header { height: 18px; background: var(--window-header); display: flex; align-items: center; padding: 0 8px; gap: 5px; border-bottom: 1px solid var(--window-border); flex-shrink: 0; } .dot { width: 7px; height: 7px; border-radius: 50%; } .dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; } .window img { width: 100%; height: auto; display: block; object-fit: contain; } .window-main { top: 10%; left: 8%; width: 48%; z-index: 10; } .window-run { bottom: 10%; right: 8%; width: 48%; z-index: 20; } @media (max-width: 768px) { .window-main { width: 55%; top: 8%; left: 5%; } .window-run { width: 55%; bottom: 8%; right: 5%; } .laptop-container { width: min(95%, var(--laptop-height-limit)); } } @media (max-height: 640px) { h1 { font-size: clamp(1.3rem, 4vh, 2rem); } p.subtitle { font-size: clamp(0.75rem, 1.8vh, 0.9rem); margin-bottom: 1rem; } }