
/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== SITE HEADER & DONATE BANNER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.donate-banner {
  position: relative;
  width: 100%;
  background: rgba(245, 245, 247, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.donate-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071e3 0%, #a855f7 35%, #ec4899 70%, #f59e0b 100%);
  opacity: 0.9;
}
.donate-banner.hidden {
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border-bottom: none !important;
}
.donate-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.donate-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.donate-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.2);
}
.donate-text {
  font-size: 13px;
  font-weight: 450;
  color: var(--text-secondary);
}
.donate-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.donate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  /* Retro Apple Aqua + Cupertino Glass pill */
  background: linear-gradient(180deg, #1d8cf8 0%, #0071e3 50%, #005ec3 100%);
  color: #ffffff !important;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.012em;
  line-height: 1.3;
  border-radius: 980px;
  border: 1px solid rgba(0, 68, 150, 0.45);
  box-shadow: 
    0 2px 6px rgba(0, 113, 227, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.65),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  text-shadow: 0 1px 1.5px rgba(0, 24, 64, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
/* Specular gloss reflection of classic Apple Aqua / macOS glass pill */
.donate-btn::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  right: 2px;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-radius: 980px 980px 60% 60% / 980px 980px 14px 14px;
  pointer-events: none;
}
.donate-btn > * {
  position: relative;
  z-index: 2;
}
.donate-btn-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.donate-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.9;
}
.donate-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #359aff 0%, #007bf2 50%, #0068d1 100%);
  box-shadow: 
    0 4px 16px rgba(0, 113, 227, 0.48),
    0 2px 4px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25);
  color: #ffffff !important;
}
.donate-btn:hover .donate-arrow {
  transform: translateX(3px);
  opacity: 1;
}
.donate-btn:hover .donate-btn-icon {
  transform: scale(1.15) rotate(-6deg);
}
.donate-btn:active {
  transform: translateY(0.5px) scale(0.985);
  background: linear-gradient(180deg, #005eb8 0%, #006ad6 60%, #0077e6 100%);
  box-shadow: 
    0 1px 3px rgba(0, 113, 227, 0.3),
    inset 0 1.5px 3.5px rgba(0, 0, 0, 0.35);
}
.donate-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}
.donate-banner-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}
.donate-banner-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  transform: scale(1.1);
}

body.dark-theme .donate-banner {
  background: rgba(12, 12, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-theme .donate-badge {
  background: rgba(41, 151, 255, 0.15);
  color: #2997ff;
  border-color: rgba(41, 151, 255, 0.3);
}
body.dark-theme .donate-btn {
  background: linear-gradient(180deg, #3aa0ff 0%, #1a88f7 50%, #006ee0 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 2px 10px rgba(0, 113, 227, 0.5),
    0 0 16px rgba(41, 151, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 20, 60, 0.5);
}
body.dark-theme .donate-btn:hover {
  background: linear-gradient(180deg, #54acff 0%, #2b95fc 50%, #0e7be8 100%);
  box-shadow: 
    0 4px 20px rgba(41, 151, 255, 0.65),
    0 0 24px rgba(41, 151, 255, 0.4),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}
body.dark-theme .donate-btn:active {
  background: linear-gradient(180deg, #0060cc 0%, #006ee0 60%, #1a88f7 100%);
  box-shadow: 
    0 1px 4px rgba(41, 151, 255, 0.4),
    inset 0 1.5px 3px rgba(0, 0, 0, 0.4);
}
body.dark-theme .donate-btn:focus-visible {
  outline-color: #2997ff;
}
body.dark-theme .donate-banner-close {
  background: rgba(255, 255, 255, 0.08);
}
body.dark-theme .donate-banner-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (max-width: 640px) {
  .donate-text { display: none; }
  .donate-banner-inner { justify-content: center; padding: 6px 14px; gap: 8px; }
  .donate-btn { font-size: 12px; padding: 5px 13px; }
}

:root {
  --white: #ffffff;
  --bg: #fbfbfd;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.5);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.06);
  --card-hover-shadow: 0 12px 48px rgba(0,0,0,0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --section-padding: 80px 0;
  --nav-height: 52px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --hero-top: #f5f5f7;
  --nav-bg: rgba(251,251,253,0.82);
  --nav-bg-scrolled: rgba(251,251,253,0.96);
  
  /* Additional section gradients */
  --cta-mid: #f5f5f7;
  --win-ie-bg1: #f5f5f7;
  --win-ie-bg2: #ebebed;
  --modem-card1: #f5f5f7;
  --modem-card2: #e8e8ed;
  --modem-body1: #f5f5f7;
  --modem-body2: #d2d2d7;
  --card-sites1: #e3f2fd;
  --card-sites2: #bbdefb;
  --card-forums1: #fce4ec;
  --card-forums2: #f8bbd0;
  --card-search1: #fff3e0;
  --card-search2: #ffe0b2;
  --section-mid: #f0f0f5;
}

body.dark-theme {
  --white: #0a0a0c; /* Было #1c1c1e, стало почти полностью черным */
  --bg: #000000;
  --text-primary: #ffffff; /* Более яркий белый для контраста */
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #4fb0ff;
  --glass-bg: rgba(10,10,12,0.85); /* Более темное матовое стекло */
  --glass-border: rgba(255,255,255,0.05); /* Менее заметная граница */
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.6);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.8);
  --card-hover-shadow: 0 12px 48px rgba(0,0,0,0.9);
  --hero-top: #050a1f; /* Космический тёмно-синий для верха */
  --nav-bg: rgba(10,10,12,0.82);
  --nav-bg-scrolled: rgba(10,10,12,0.96);
  
  --cta-mid: #050a1f;
  --win-ie-bg1: #2c2c2e;
  --win-ie-bg2: #1c1c1e;
  --modem-card1: #1c1c1e;
  --modem-card2: #2c2c2e;
  --modem-body1: #3a3a3c;
  --modem-body2: #1c1c1e;
  --card-sites1: #0a192f;
  --card-sites2: #112240;
  --card-forums1: #2d132c;
  --card-forums2: #411e3f;
  --card-search1: #3e2723;
  --card-search2: #4e342e;
  --section-mid: #050a1f;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: var(--nav-height); }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
.headline-xl { font-size: clamp(48px, 8vw, 96px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.headline-lg { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.headline-md { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.headline-sm { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.body-lg { font-size: clamp(17px, 1.8vw, 21px); font-weight: 400; line-height: 1.58; color: var(--text-secondary); }
.body-md { font-size: 17px; font-weight: 400; line-height: 1.47; color: var(--text-secondary); }
.body-sm { font-size: 14px; font-weight: 400; line-height: 1.43; color: var(--text-tertiary); }
.eyebrow { font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 8px; }
.section-subtitle { max-width: 640px; margin: 16px auto 0; text-align: center; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #0071e3, #a855f7, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV ===== */
nav {
  position: relative; width: 100%;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}
body.dark-theme nav { border-bottom: 1px solid rgba(255,255,255,0.06); }
nav.scrolled { background: var(--nav-bg-scrolled); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 52px; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--text-primary); }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-cta { font-size: 14px; font-weight: 400; color: var(--accent); }
.lang-switcher { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; }
.lang-switcher a { color: var(--text-tertiary); padding: 3px 6px; border-radius: 6px; transition: all 0.2s; }
.lang-switcher a:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
body.dark-theme .lang-switcher a:hover { background: rgba(255,255,255,0.08); }
.lang-switcher a.active { color: var(--accent); font-weight: 600; }
.lang-switcher span { color: var(--text-tertiary); }

.theme-toggle {
  background: transparent; border: none; font-size: 16px; cursor: pointer;
  padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.theme-toggle:hover { background: rgba(0,0,0,0.04); }
body.dark-theme .theme-toggle:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 768px) { .nav-links { display: none; } }

/* ===== SECTIONS — scroll anchor fix ===== */
.section-era,
.section-gallery,
.section-tech,
.section-archive,
.section-cta {
  scroll-margin-top: calc(var(--nav-height) + 40px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 24px 64px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  background: rgba(0,113,227,0.08); border-radius: 100px; font-size: 13px; font-weight: 500;
  color: var(--accent); margin-bottom: 32px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { max-width: 900px; margin-bottom: 24px; }
.hero .body-lg { max-width: 600px; margin-bottom: 48px; }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  background: var(--accent); color: #fff; border-radius: 100px; font-size: 17px; font-weight: 400;
  border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: scale(1.02); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  background: transparent; color: var(--accent); border-radius: 100px; font-size: 17px; font-weight: 400;
  border: none; cursor: pointer; transition: all 0.3s;
}
.btn-secondary:hover { text-decoration: underline; }

/* Hero 3D CRT render */
.hero-visual { margin-top: 64px; perspective: 1200px; width: 100%; max-width: 680px; }
.crt-render {
  position: relative; transform: rotateX(4deg) rotateY(-2deg); transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: float-3d 6s ease-in-out infinite;
}
.crt-render:hover { transform: rotateX(0deg) rotateY(0deg) scale(1.02); }
@keyframes float-3d {
  0%, 100% { transform: rotateX(4deg) rotateY(-2deg) translateY(0); }
  50% { transform: rotateX(2deg) rotateY(1deg) translateY(-12px); }
}
.crt-body {
  background: linear-gradient(145deg, #e8e8ed, #d2d2d7);
  border-radius: 32px 32px 8px 8px; padding: 28px 28px 20px; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
.crt-screen { background: #1a1a2e; border-radius: 8px; aspect-ratio: 4/3; overflow: hidden; position: relative; box-shadow: inset 0 2px 12px rgba(0,0,0,0.5); }
.crt-screen::after {
  content: ''; position: absolute; inset: 0; border-radius: 8px;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
  pointer-events: none;
}
.crt-content { padding: 20px; height: 100%; display: flex; flex-direction: column; }
.crt-taskbar { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: linear-gradient(180deg, #3a78c4, #2460a8); border-radius: 4px; margin-bottom: 12px; }
.crt-start-btn { display: flex; align-items: center; gap: 4px; padding: 2px 10px; background: linear-gradient(180deg, #4fa0e8, #2a72c0); border-radius: 3px; font-size: 10px; color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.crt-taskbar-time { margin-left: auto; font-size: 9px; color: rgba(255,255,255,0.9); font-family: 'Courier New', monospace; }
.crt-window { flex: 1; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05)); border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.crt-win-titlebar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: linear-gradient(180deg, rgba(80,140,220,0.6), rgba(40,90,180,0.6)); }
.crt-win-dot { width: 8px; height: 8px; border-radius: 50%; }
.crt-win-dot.red { background: #ff5f57; } .crt-win-dot.yellow { background: #ffbd2e; } .crt-win-dot.green { background: #28c840; }
.crt-win-title { font-size: 9px; color: rgba(255,255,255,0.9); margin-left: 4px; }
.crt-win-body { padding: 12px; }
.crt-ie-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: rgba(255,255,255,0.06); border-radius: 3px; margin-bottom: 8px; }
.crt-ie-bar span { font-size: 8px; color: rgba(255,255,255,0.4); font-family: monospace; }
.crt-ie-bar .url { flex: 1; font-size: 8px; color: rgba(255,255,255,0.6); }
.crt-page-lines { display: flex; flex-direction: column; gap: 4px; }
.crt-page-line { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); }
.crt-page-line:nth-child(1) { width: 70%; background: rgba(100,180,255,0.2); }
.crt-page-line:nth-child(2) { width: 45%; } .crt-page-line:nth-child(3) { width: 85%; } .crt-page-line:nth-child(4) { width: 30%; }
.crt-stand { width: 120px; height: 60px; margin: 0 auto; background: linear-gradient(180deg, #d2d2d7, #c7c7cc); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.crt-base { width: 200px; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #c7c7cc, #b4b4b9); border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,0.08), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -40%); pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}
@keyframes glow-pulse { 0% { opacity: 0.6; transform: translate(-50%,-40%) scale(1); } 100% { opacity: 1; transform: translate(-50%,-40%) scale(1.15); } }

/* ===== ERA SECTION ===== */
.section-era { padding: var(--section-padding); }
.era-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 64px; }
.era-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--card-shadow); transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); position: relative; overflow: hidden; cursor: default; }
.era-card:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); }
.era-card-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; font-size: 28px; position: relative; }
.era-card-icon.icq { background: linear-gradient(135deg, #5ece48, #3bb22d); }
.era-card-icon.msn { background: linear-gradient(135deg, #00a4ef, #0078d4); }
.era-card-icon.winamp { background: linear-gradient(135deg, #f5a623, #f7931e); }
.era-card-icon.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.era-card-icon.lj { background: linear-gradient(135deg, #00618a, #004d73); }
.era-card-icon.napster { background: linear-gradient(135deg, #1c1c1e, #3a3a3c); }
.era-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.era-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.era-card-year { position: absolute; top: 20px; right: 24px; font-size: 13px; font-weight: 500; color: var(--text-tertiary); }
.era-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(0,113,227,0.3), transparent); opacity: 0; transition: opacity 0.4s; }
.era-card:hover::after { opacity: 1; }
.era-card-icon svg { width: 32px; height: 32px; fill: #fff; }

/* ===== GALLERY ===== */
.section-gallery { padding: var(--section-padding); background: linear-gradient(180deg, var(--bg), var(--section-mid), var(--bg)); }
.gallery-scroll { overflow-x: auto; padding: 64px 0 24px; position: relative; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll:active { cursor: grabbing; }
.gallery-track { display: flex; flex-wrap: nowrap; gap: 24px; width: max-content; }
.gallery-item { flex: 0 0 380px; min-width: 380px; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.4s, box-shadow 0.4s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.gallery-window { aspect-ratio: 4/3; position: relative; overflow: hidden; }

/* MSN */
.win-msn { background: linear-gradient(180deg, #e8f4fd, #d4ecfa); }
.win-msn .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #0078d4, #005a9e); }
.win-msn .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.win-msn .win-chrome-dots { display: flex; gap: 4px; margin-left: auto; }
.win-msn .win-chrome-dot { width: 10px; height: 10px; border-radius: 2px; background: rgba(255,255,255,0.3); }
.win-msn .win-body-msn { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msn-contact { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,120,212,0.06); border-radius: 10px; }
.msn-avatar { width: 32px; height: 32px; border-radius: 50%; }
.msn-avatar.green { background: linear-gradient(135deg, #34c759, #28a745); }
.msn-avatar.blue { background: linear-gradient(135deg, #5ac8fa, #007aff); }
.msn-avatar.pink { background: linear-gradient(135deg, #ff6b9d, #ff2d55); }
.msn-avatar.orange { background: linear-gradient(135deg, #ffcc02, #ff9500); }
.msn-name { font-size: 12px; font-weight: 500; color: var(--text-primary); }
.msn-status { font-size: 10px; color: var(--text-tertiary); }
.msn-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.msn-status-dot.online { background: #34c759; } .msn-status-dot.away { background: #ff9500; } .msn-status-dot.busy { background: #ff3b30; }

/* ICQ */
.win-icq { background: linear-gradient(180deg, #f0f8e8, #e2f0d5); }
.win-icq .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #5ece48, #3bb22d); }
.win-icq .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.win-icq .win-body-icq { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.icq-msg { display: flex; gap: 8px; }
.icq-msg-bubble { padding: 8px 14px; border-radius: 14px; font-size: 11px; max-width: 200px; line-height: 1.4; }
.icq-msg.sent .icq-msg-bubble { background: linear-gradient(135deg, #5ece48, #47b83a); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.icq-msg.received .icq-msg-bubble { background: rgba(0,0,0,0.05); color: var(--text-primary); border-bottom-left-radius: 4px; }
.icq-uh-oh { text-align: center; font-size: 10px; color: var(--text-tertiary); padding: 4px; font-style: italic; }

/* Winamp */
.win-winamp { background: linear-gradient(180deg, #1a1a2e, #16213e); }
.win-winamp .win-chrome { display: flex; align-items: center; padding: 6px 10px; background: linear-gradient(180deg, #3a3a5c, #2a2a4c); }
.win-winamp .win-chrome-title { font-size: 10px; color: #8b8bab; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.winamp-display { margin: 12px; padding: 12px; background: #0a0a1a; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.winamp-title { font-size: 10px; color: #00ff41; font-family: monospace; letter-spacing: 0.05em; margin-bottom: 6px; white-space: nowrap; overflow: hidden; }
.winamp-title span { display: inline-block; animation: scroll-text 8s linear infinite; }
@keyframes scroll-text { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.winamp-time { font-size: 22px; color: #00ff41; font-family: 'Courier New', monospace; font-weight: 700; }
.winamp-vis { height: 32px; display: flex; align-items: flex-end; gap: 2px; margin-top: 8px; }
.winamp-bar { width: 4px; border-radius: 1px; animation: eq-bar 0.6s ease-in-out infinite alternate; }
.winamp-bar:nth-child(odd) { animation-duration: 0.5s; } .winamp-bar:nth-child(3n) { animation-duration: 0.7s; }
@keyframes eq-bar { 0% { height: 4px; } 100% { height: 28px; } }
.winamp-controls { display: flex; justify-content: center; gap: 8px; margin: 12px; }
.winamp-btn { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.winamp-btn svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.5); }
.winamp-progress { margin: 0 12px 12px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.winamp-progress-fill { width: 42%; height: 100%; background: linear-gradient(90deg, #00ff41, #00cc33); border-radius: 2px; }

/* IE Browser */
.win-ie { background: linear-gradient(180deg, var(--win-ie-bg1), var(--win-ie-bg2)); }
.win-ie .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #4a90d9, #3a78c4); }
.win-ie .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.ie-toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(0,0,0,0.03); }
.ie-nav-btn { width: 22px; height: 22px; border-radius: 4px; background: rgba(0,0,0,0.06); }
.ie-address { flex: 1; padding: 4px 10px; background: #fff; border-radius: 4px; font-size: 10px; color: var(--text-secondary); border: 1px solid rgba(0,0,0,0.08); }
.ie-page { padding: 12px; }
.ie-logo-text { text-align: center; font-size: 24px; font-weight: 700; margin: 16px 0 4px; }
.ie-logo-text span:nth-child(1) { color: #4285f4; } .ie-logo-text span:nth-child(2) { color: #ea4335; }
.ie-logo-text span:nth-child(3) { color: #fbbc05; } .ie-logo-text span:nth-child(4) { color: #4285f4; }
.ie-logo-text span:nth-child(5) { color: #34a853; } .ie-logo-text span:nth-child(6) { color: #ea4335; }
.ie-search { margin: 12px auto 0; max-width: 220px; padding: 8px 14px; background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.ie-search span { font-size: 10px; color: var(--text-tertiary); }

.gallery-caption { padding: 24px 28px; }
.gallery-caption h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.gallery-caption p { font-size: 14px; color: var(--text-secondary); }

/* Yahoo Mail */
.win-yahoo { background: linear-gradient(180deg, #f5f0ff, #ede4ff); }
.win-yahoo .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #7b1fa2, #6a1b9a); }
.win-yahoo .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.yahoo-inbox { padding: 10px; display: flex; flex-direction: column; gap: 1px; }
.yahoo-mail-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(123,31,162,0.04); border-radius: 6px; }
.yahoo-mail-row:nth-child(odd) { background: rgba(123,31,162,0.08); }
.yahoo-mail-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.yahoo-mail-dot.unread { background: #7b1fa2; } .yahoo-mail-dot.read { background: #ccc; }
.yahoo-mail-from { font-size: 10px; font-weight: 600; color: var(--text-primary); width: 70px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yahoo-mail-subj { font-size: 10px; color: var(--text-secondary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yahoo-mail-date { font-size: 9px; color: var(--text-tertiary); flex-shrink: 0; }

/* Notepad */
.win-notepad { background: #fff; }
.win-notepad .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #d6d6d6, #c0c0c0); }
.win-notepad .win-chrome-title { font-size: 11px; color: var(--text-primary); font-weight: 500; }
.notepad-menu { display: flex; gap: 12px; padding: 3px 12px; background: #ececec; border-bottom: 1px solid #ddd; }
.notepad-menu span { font-size: 10px; color: var(--text-secondary); }
.notepad-body { padding: 10px 14px; font-family: 'Courier New', monospace; font-size: 11px; line-height: 1.7; color: var(--text-primary); white-space: pre-wrap; min-height: 120px; }

/* mIRC */
.win-mirc { background: #fff; }
.win-mirc .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #3a78c4, #2460a8); }
.win-mirc .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.mirc-body { display: flex; height: calc(100% - 34px); }
.mirc-chat { flex: 1; padding: 8px; font-family: 'Courier New', monospace; font-size: 9px; line-height: 1.6; overflow: hidden; background: #fff; }
.mirc-chat .ts { color: #888; } .mirc-chat .nick { font-weight: 700; }
.mirc-chat .nick.blue { color: #0000cc; } .mirc-chat .nick.red { color: #cc0000; }
.mirc-chat .nick.green { color: #009900; } .mirc-chat .nick.purple { color: #9900cc; }
.mirc-chat .action { color: #9900cc; font-style: italic; }
.mirc-users { width: 80px; padding: 6px; background: #f5f5f5; border-left: 1px solid #ddd; font-family: 'Courier New', monospace; font-size: 9px; line-height: 1.7; color: var(--text-secondary); }
.mirc-users .op { color: #cc0000; }

/* Windows Media Player */
.win-wmp { background: linear-gradient(180deg, #1a1a2e, #0d0d1a); }
.win-wmp .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #2a4a8a, #1a3060); }
.win-wmp .win-chrome-title { font-size: 11px; color: rgba(255,255,255,0.9); font-weight: 600; }
.wmp-vis { display: flex; align-items: center; justify-content: center; height: 100px; position: relative; overflow: hidden; }
.wmp-circle { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(60,130,246,0.3); position: absolute; animation: wmp-pulse 3s ease-in-out infinite; }
.wmp-circle:nth-child(2) { width: 56px; height: 56px; border-color: rgba(60,130,246,0.5); animation-delay: 0.5s; }
.wmp-circle:nth-child(3) { width: 32px; height: 32px; border-color: rgba(60,130,246,0.8); animation-delay: 1s; background: rgba(60,130,246,0.1); }
@keyframes wmp-pulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
.wmp-info { text-align: center; padding: 8px 12px; }
.wmp-title { font-size: 11px; color: #7bafff; font-weight: 500; }
.wmp-artist { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.wmp-controls { display: flex; justify-content: center; gap: 10px; padding: 8px; }
.wmp-btn { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

/* Opera Browser */
.win-opera { background: linear-gradient(180deg, #fff5f5, #ffe8e8); }
.win-opera .win-chrome { display: flex; align-items: center; padding: 8px 12px; background: linear-gradient(180deg, #ff1b2d, #cc0016); }
.win-opera .win-chrome-title { font-size: 11px; color: #fff; font-weight: 600; }
.opera-tabs { display: flex; gap: 2px; padding: 0 8px; background: rgba(0,0,0,0.03); }
.opera-tab { padding: 5px 14px; font-size: 9px; color: var(--text-tertiary); background: rgba(0,0,0,0.02); border-radius: 6px 6px 0 0; }
.opera-tab.active { background: #fff; color: var(--text-primary); font-weight: 500; }
.opera-speed-dial { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opera-dial-item { aspect-ratio: 16/10; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; border: 1px solid rgba(0,0,0,0.06); }
.dial-mailru { background: linear-gradient(135deg,#e3f2fd,#bbdefb); color: #1565c0; }
.dial-yandex { background: linear-gradient(135deg,#fce4ec,#f8bbd0); color: #c62828; }
.dial-bashorq { background: linear-gradient(135deg,#e8f5e9,#c8e6c9); color: #2e7d32; }
.dial-habr { background: linear-gradient(135deg,#fff3e0,#ffe0b2); color: #e65100; }
.dial-lj { background: linear-gradient(135deg,#f3e5f5,#e1bee7); color: #7b1fa2; }
.dial-forum { background: linear-gradient(135deg,#e0f7fa,#b2ebf2); color: #00838f; }

/* Sites visual (tech section) */
.sites-visual-wrap { text-align: center; }
.sites-visual-icon { font-size: 48px; margin-bottom: 8px; }
.sites-visual-lines { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sites-line { height: 4px; border-radius: 2px; background: rgba(0,0,0,0.06); }
.sites-line-wide { width: 140px; }
.sites-line-narrow { width: 100px; }
.sites-visual-boxes { display: flex; gap: 8px; margin-top: 8px; }
.sites-box { width: 50px; height: 50px; background: rgba(0,0,0,0.04); border-radius: 6px; }

/* Forum avatars */
.avatar-purple { background: linear-gradient(135deg,#a78bfa,#818cf8); }
.avatar-pink { background: linear-gradient(135deg,#f472b6,#ec4899); }
.avatar-green { background: linear-gradient(135deg,#34d399,#10b981); }

/* Forum text line widths */
.line-w65 { width: 65%; } .line-w90 { width: 90%; }
.line-w80 { width: 80%; } .line-w50 { width: 50%; }
.line-w55 { width: 55%; } .line-w75 { width: 75%; }

/* Search icons */
.icon-google { background: linear-gradient(135deg,#4285f4,#34a853); }
.icon-yahoo { background: linear-gradient(135deg,#7b1fa2,#e040fb); }
.icon-rambler { background: linear-gradient(135deg,#ff6f00,#ffa726); }
.search-icon span { color: #fff; }

/* ===== TECH SECTION ===== */
.section-tech { padding: var(--section-padding); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; }
@media (max-width: 768px) { .tech-grid { grid-template-columns: 1fr; } }
.tech-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.4s; }
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.tech-card-visual { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tech-card-visual.modems { background: linear-gradient(135deg, var(--modem-card1), var(--modem-card2)); }
.tech-card-visual.sites { background: linear-gradient(135deg, var(--card-sites1), var(--card-sites2)); }
.tech-card-visual.forums { background: linear-gradient(135deg, var(--card-forums1), var(--card-forums2)); }
.tech-card-visual.search { background: linear-gradient(135deg, var(--card-search1), var(--card-search2)); }
.modem-3d { perspective: 800px; }
.modem-body { width: 120px; height: 45px; background: linear-gradient(145deg, var(--modem-body1), var(--modem-body2)); border-radius: 22px; position: relative; transform: rotateX(15deg) rotateY(-20deg); box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9); }
.modem-body::before { content: ''; position: absolute; top: 50%; left: -12px; transform: translateY(-50%); width: 12px; height: 14px; background: linear-gradient(180deg, #c7c7cc, #a2a2a7); border-radius: 2px 0 0 2px; }
.modem-led { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 8px rgba(52,199,89,0.6); animation: blink-led 1.5s infinite; }
@keyframes blink-led { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.modem-label { position: absolute; top: 50%; left: 24px; transform: translateY(-50%); font-size: 7px; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
.forum-visual { display: flex; flex-direction: column; gap: 4px; width: 80%; }
.forum-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,0.7); border-radius: 6px; }
.forum-avatar { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.forum-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.forum-text-line { height: 3px; border-radius: 2px; background: rgba(0,0,0,0.08); }
.forum-text-line:first-child { width: 80%; background: rgba(0,0,0,0.15); }
.search-icons { display: flex; gap: 20px; }
.search-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.tech-card-text { padding: 32px; }
.tech-card-text h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.tech-card-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

/* ===== ARCHIVE SECTION ===== */
.section-archive { padding: var(--section-padding); background: linear-gradient(180deg, var(--bg), var(--section-mid), var(--bg)); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 64px; }
.archive-banner { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 5/3; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; cursor: default; transition: all 0.4s; box-shadow: var(--card-shadow); }
.archive-banner:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.archive-banner.b1 { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.archive-banner.b2 { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; }
.archive-banner.b3 { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; }
.archive-banner.b4 { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #1d1d1f; }
.archive-banner.b5 { background: linear-gradient(135deg, #fa709a, #fee140); color: #1d1d1f; }
.archive-banner.b6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #1d1d1f; }
.archive-banner .banner-count { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; margin-bottom: 4px; }
.archive-banner h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.archive-banner p { font-size: 13px; opacity: 0.85; max-width: 200px; }
.archive-banner .banner-icon { font-size: 36px; margin-bottom: 12px; }
.archive-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 60%); pointer-events: none; }

/* ===== CTA SECTION ===== */
.section-cta { padding: 160px 24px; text-align: center; background: linear-gradient(180deg, var(--bg) 0%, var(--cta-mid) 50%, var(--bg) 100%); position: relative; }
.cta-glass { max-width: 800px; margin: 0 auto; padding: 64px 48px; border-radius: var(--radius-xl); background: var(--glass-bg); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.cta-glass .headline-md { margin-bottom: 16px; }
.cta-glass .body-lg { max-width: 520px; margin: 0 auto 32px; }

/* ===== FOOTER ===== */
footer { padding: 48px 0 24px; border-top: 1px solid rgba(0,0,0,0.06); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; margin-bottom: 48px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text-tertiary); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: var(--text-tertiary); }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-tertiary); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } .reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; } .reveal-delay-4 { transition-delay: 0.4s; } .reveal-delay-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --section-padding: 80px 0; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .hero-visual { max-width: 100%; }
  .era-grid { grid-template-columns: 1fr; }
  .cta-glass { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

