/* retro.css — строгий ретро-стиль начала 2000-х + адаптация под мобильные */

:root{
  --bg: #d6dbe6;
  --panel: #ffffff;
  --border:#7b8aa6;
  --border2:#c9d1e2;
  --text:#1b1b1b;
  --muted:#4d4d4d;
  --link:#0033cc;
  --link2:#551a8b;
  --shadow: rgba(0,0,0,0.20);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size:14px;
  line-height:1.45;
}

.topbar{
  background: linear-gradient(#3b62b8, #244a9d);
  color:#fff;
  border-bottom: 1px solid #1a3572;
}
.topbar-inner{
  max-width: 980px;
  margin:0 auto;
  padding: 12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  font-weight:bold;
  letter-spacing:0.2px;
  font-size:16px;
}
.brand small{
  display:block;
  font-weight:normal;
  opacity:0.9;
  font-size:12px;
}

a{ color:var(--link); }
a:visited{ color:var(--link2); }
a:hover{ text-decoration:none; }

.container{
  max-width: 980px;
  margin: 16px auto;
  padding: 0 12px 24px;
}

.window{
  background: var(--panel);
  border:1px solid var(--border);
  box-shadow: 2px 2px 0 var(--shadow);
}
.window-hd{
  background: linear-gradient(#f6f7fb, #e6eaf4);
  border-bottom:1px solid var(--border2);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.window-hd h1{
  margin:0;
  font-size:16px;
}
.window-bd{
  padding: 12px;
}

.btn{
  display:inline-block;
  padding: 8px 12px;
  border:1px solid #203a7a;
  background: linear-gradient(#6f8fe0, #2f56bf);
  color:#fff !important;
  text-decoration:none;
  font-weight:bold;
  border-radius:3px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  white-space:nowrap;
}
.btn:hover{ filter:brightness(1.03); }
.btn:active{ transform: translateY(1px); }
.btn.secondary{
  border-color:#6e6e6e;
  background: linear-gradient(#f8f8f8,#dcdcdc);
  color:#111 !important;
  text-shadow:none;
}

.field{ margin:10px 0; }
label{ display:block; margin-bottom:6px; font-weight:bold; }
input[type="file"]{
  width:100%;
  padding:8px;
  border:1px solid var(--border2);
  background:#fff;
}
.help{ color:var(--muted); font-size:12px; }
.meta{ color:var(--muted); font-size:12px; }

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table th{
  text-align:left;
  background: linear-gradient(#f4f6fb,#e6eaf4);
  border-bottom:1px solid var(--border2);
  padding:10px 8px;
  font-weight:bold;
}
.table td{
  border-bottom:1px solid #e8ecf5;
  padding:10px 8px;
  vertical-align:top;
}
.table tr:hover td{ background:#f7f9ff; }

.alert{
  border:1px solid #e1b4b4;
  background:#ffecec;
  color:#3b0b0b;
  padding:10px 12px;
  border-radius:3px;
  margin: 10px 0 12px;
}
.note{
  border:1px solid #c8d5ff;
  background:#eef3ff;
  padding:10px 12px;
  border-radius:3px;
  margin: 10px 0 12px;
}

.video-wrap{
  background:#000;
  border:1px solid var(--border);
  box-shadow: 2px 2px 0 var(--shadow);
}
video{ width:100%; height:auto; display:block; }

.footer{
  margin-top: 12px;
  color: var(--muted);
  font-size:12px;
}

/* Мобильная адаптация */
@media (max-width: 640px){
  body{ font-size:15px; }
  .topbar-inner{ flex-direction:column; align-items:flex-start; }
  .btn{ width:100%; text-align:center; }
  .table th:nth-child(2), .table td:nth-child(2),
  .table th:nth-child(3), .table td:nth-child(3){ display:none; }
}
