/* ============================================================
   СОБСТВЕННЫЙ САЙТ Ludvig2457 — ДИЗАЙН В СТИЛЕ 2011 ГОДА
   (контент не менялся, только оформление)
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #e8e8e8;
  --bg2: #dcdcdc;
  --bg3: #cfcfcf;
  --card: #f7f7f7;
  --border: #9a9a9a;
  --text: #111111;
  --text2: #333333;
  --text3: #555555;
  --accent: #2050a0;
  --accent2: #1a7a3a;
  --glow: rgba(32, 80, 160, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Arial, sans-serif;
  background-color: #c3c3c3;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 2px),
    radial-gradient(#e6e6e6, #b8b8b8);
  color: var(--text);
  line-height: 1.6;
  font-size: 13px;
}

a { color: #0000cc; }
a:visited { color: #660099; }
a:hover { color: #ff3300; }
a:active { color: #cc0000; }
img { max-width: 100%; border: 1px solid #999; }

/* ==================================================================
   ИНДЕКС (главная) — ретро-классы для существующей разметки
   ================================================================== */

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #3f7fd8, #1a4d9e);
  border-bottom: 3px solid #0d3575;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 20px;
  font-weight: bold;
  color: #ffe97a;
  text-shadow: 1px 1px 0 #0d3575;
  letter-spacing: 1px;
}
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a {
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 0 #0d3575;
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid transparent;
}
.nav-links a:hover { color: #ffe97a; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 50px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.55) 0%, transparent 60%),
    linear-gradient(180deg, #bfe0ff 0%, #d6eaff 55%, #eef6ff 100%);
  border-bottom: 4px solid #1a4d9e;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; max-width: 760px; }

.hero-badge {
  display: inline-block;
  padding: 4px 18px;
  background: #ffe97a;
  border: 2px outset #fff09c;
  color: #7a2d00;
  font-family: "Comic Sans MS", cursive;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 46px;
  font-weight: bold;
  color: #123a8c;
  text-shadow: 2px 2px 0 #ffffff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.gradient-text { color: #cc3300; }

.hero p { font-size: 15px; color: #333; max-width: 600px; margin: 0 auto 30px; }

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS — глянцевые ретро-кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: "Comic Sans MS", cursive;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  border: 2px outset #ffffff;
  background: linear-gradient(180deg, #9fd0ff, #2f6fd0);
  color: #ffffff;
  text-shadow: 1px 1px 0 #1a4d9e;
}
.btn:hover { border-style: inset; background: linear-gradient(180deg, #2f6fd0, #9fd0ff); }
.btn-primary { background: linear-gradient(180deg, #9fd0ff, #2f6fd0); }
.btn-primary:hover { background: linear-gradient(180deg, #2f6fd0, #9fd0ff); }
.btn-secondary { background: linear-gradient(180deg, #d0d0d0, #888888); color: #222; text-shadow: 1px 1px 0 #eee; }
.btn-secondary:hover { background: linear-gradient(180deg, #888888, #d0d0d0); }
.btn-large { padding: 15px 34px; font-size: 16px; }

/* SECTIONS */
.section { padding: 60px 24px; }
.section-dark { background: linear-gradient(180deg, #9dc9f5, #6ba3e0); }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-icon {
  width: 60px; height: 60px; border-radius: 0; display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin: 0 auto 14px;
  border: 3px outset #ffffff; box-shadow: 2px 2px 0 #666;
}
.section-header h2 {
  font-family: "Comic Sans MS", cursive;
  font-size: 32px; font-weight: bold; color: #123a8c;
  border-bottom: 3px double #123a8c; display: inline-block; padding-bottom: 4px;
  margin-bottom: 8px;
}
.section-sub { font-size: 15px; color: #333; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 40px; }
.feature-card {
  background: var(--card);
  border: 2px outset #f0f0f0; border-radius: 0;
  padding: 22px 18px;
  box-shadow: 3px 3px 0 #9a9a9a;
}
.feature-card:hover { border-style: inset; }
.feature-card i { font-size: 30px; color: #1a4d9e; margin-bottom: 12px; display: block; }
.feature-card h3 { font-family: "Comic Sans MS", cursive; font-size: 16px; font-weight: bold; color: #123a8c; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: #333; }

/* DOWNLOAD BLOCK */
.download-block {
  background: linear-gradient(180deg, #fff, #f0f0f0);
  border: 2px outset #eeeeee; border-radius: 0;
  padding: 26px; text-align: center; margin-bottom: 24px;
  box-shadow: 3px 3px 0 #9a9a9a;
}
.download-info { margin-bottom: 18px; }
.download-version { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.version-badge {
  display: inline-block; padding: 3px 14px; background: #ffe97a;
  border: 2px outset #fff09c; font-weight: bold; font-size: 15px; color: #7a2d00;
  font-family: "Comic Sans MS", cursive;
}
.version-date { font-size: 13px; color: #555; }
.download-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #333; }
.download-meta i { margin-right: 6px; color: #1a4d9e; }
.download-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* SYS REQS */
.sys-reqs {
  background: var(--card); border: 2px outset #f0f0f0; border-radius: 0;
  padding: 20px 24px; box-shadow: 3px 3px 0 #9a9a9a;
}
.sys-reqs h3 { font-family: "Comic Sans MS", cursive; font-size: 15px; font-weight: bold; color: #123a8c; margin-bottom: 12px; }
.reqs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.reqs-grid div { font-size: 13px; color: #333; }
.reqs-grid strong { color: #123a8c; }

/* SPECS */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.spec {
  background: var(--card); border: 2px outset #f0f0f0; border-radius: 0;
  padding: 16px; text-align: center; box-shadow: 3px 3px 0 #9a9a9a;
}
.spec-label { display: block; font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.spec-value { font-size: 14px; font-weight: bold; color: #123a8c; }

/* ABOUT */
.about-content { max-width: 680px; margin: 0 auto; text-align: center; }
.about-content h2 {
  font-family: "Comic Sans MS", cursive; font-size: 30px; font-weight: bold; color: #123a8c;
  margin-bottom: 16px; border-bottom: 3px double #123a8c; display: inline-block; padding-bottom: 4px;
}
.about-content p { font-size: 14px; color: #333; margin-bottom: 14px; }
.about-links { display: flex; justify-content: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.about-links a {
  display: flex; align-items: center; gap: 8px; padding: 9px 18px;
  background: #fff; border: 2px outset #eee; font-size: 13px; font-weight: bold;
  text-decoration: none; box-shadow: 2px 2px 0 #9a9a9a;
}
.about-links a:hover { background: #ffe97a; }
.about-links i { font-size: 16px; color: #1a4d9e; }

/* FOOTER */
.footer { padding: 28px 24px; border-top: 3px solid #0d3575; background: #3a3a3a; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-brand {
  font-family: "Comic Sans MS", cursive; font-size: 18px; font-weight: bold; color: #ffe97a;
  text-shadow: 1px 1px 0 #000;
}
.footer-copy { font-size: 12px; color: #cccccc; }

code { background: #dddddd; padding: 1px 6px; border: 1px inset #999; font-family: "Courier New", monospace; color: #000; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #d5d5d5; }
::-webkit-scrollbar-thumb { background: linear-gradient(#7a7a7a,#555); border-radius: 0; border: 2px outset #888; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .nav-links { gap: 10px; }
  .features { grid-template-columns: 1fr 1fr; }
  .reqs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 26px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .reqs-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ==================================================================
   ГЛОБАЛЬНЫЙ РЕТРО-ОВЕРРАЙ (для остальных страниц сайта).
   Подключается последним в <head>, поэтому перебивает встроенные стили.
   ================================================================== */

html {
  background: #c3c3c3 !important;
}

/* Тёплый "бумажный"/плитчатый фон */
body {
  background-color: #dbdbdb !important;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #e2e2e2, #c9c9c9) !important;
  color: #111111 !important;
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 13px !important;
}

/* Текст: большинство страниц рисовали белым на тёмном — возвращаем тёмное на светлом */
h1, h2, h3, h4, h5, h6, p, li, span, td, th, label, small, strong, b, em, i {
  /* не перекрашиваем всё жёстко — только параграфы и заголовки общие */
}
p, li, td, th, label { color: #1c1c1c !important; }
h1, h2, h3, h4, h5, h6 { color: #123a8c !important; }
a:not(.btn) { color: #0000cc !important; }
a:not(.btn):visited { color: #660099 !important; }

/* Заголовки в ретро-шрифте */
h1, h2, h3, .section-title, .page-title {
  font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}

/* Карточки/блоки — глянцевый ретро-стиль, если есть такие классы */
.card, .feature, .box, .panel, .project, .post, .entry {
  border: 2px outset #f0f0f0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff, #ececec) !important;
  box-shadow: 3px 3px 0 #9a9a9a !important;
  color: #111 !important;
}

/* Кнопки (общий образ) */
button, .btn, .button, input[type="submit"], input[type="button"] {
  font-family: "Comic Sans MS", cursive !important;
  font-weight: bold !important;
  border: 2px outset #ffffff !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #9fd0ff, #2f6fd0) !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 0 #1a4d9e !important;
}
button:hover, .btn:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  border-style: inset !important;
}

/* Таблицы — с рамками 2011 */
table { border-collapse: collapse !important; }
table, th, td { border: 1px solid #999 !important; }
th { background: linear-gradient(#7a7a7a, #555) !important; color: #fff !important; }
td { background: #fafafa !important; }

/* Код — тёмный блок с зелёным текстом, как в консоли */
code, pre {
  background: #1a1a1a !important;
  color: #9c6 !important;
  border: 1px inset #555 !important;
}
pre code { background: transparent !important; }

/* Панель навигации, если имя отличается */
.nav, .header, .topbar {
  background: linear-gradient(180deg, #3f7fd8, #1a4d9e) !important;
  border-bottom: 3px solid #0d3575 !important;
}
.nav a, .header a, .topbar a, nav a { color: #ffffff !important; text-decoration: none !important; }

/* Разделители — пунктир в духе 2011 */
hr { border: 0 !important; border-top: 2px dashed #888 !important; }

::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: #d5d5d5; }
::-webkit-scrollbar-thumb { background: linear-gradient(#7a7a7a,#555); border: 2px outset #888; }
