
:root {
  --bg: #0b0f14;
  --bg-2: #121922;
  --panel: rgba(18, 26, 36, 0.88);
  --panel-soft: rgba(25, 35, 48, 0.82);
  --text: #e8dcc2;
  --muted: #9ba8b5;
  --link: #d7b36a;
  --link-hover: #f5d58d;
  --line: rgba(215, 179, 106, 0.22);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(88, 111, 142, .22), transparent 35%),
    linear-gradient(180deg, rgba(7, 10, 14, .98), rgba(11, 15, 20, .98)),
    var(--bg);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; border-radius: 12px; display: inline-block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.vk-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,14,19,.95), rgba(10,14,19,.78));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.vk-topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.vk-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vk-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f2e5c5;
}
.vk-brand-subtitle {
  font-size: .82rem;
  color: var(--muted);
}
.vk-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.vk-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.vk-nav a:hover {
  border-color: var(--line);
  background: rgba(215, 179, 106, .08);
}
.vk-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px 60px;
}
body > table:first-of-type,
body > p:first-of-type,
body > h1:first-of-type,
body > h2:first-of-type {
  margin-top: 0;
}
table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 22px;
  background: linear-gradient(180deg, rgba(17,24,34,.95), rgba(13,19,27,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
td, th {
  border-color: rgba(255,255,255,.06);
  padding: 14px 16px;
  vertical-align: top;
  color: var(--text);
  background: transparent !important;
}
tr + tr td, tr + tr th { border-top: 1px solid rgba(255,255,255,.06); }
td + td, th + th { border-left: 1px solid rgba(255,255,255,.06); }
h1, h2, h3, h4 {
  color: #f4e6c5;
  line-height: 1.18;
  margin: .2em 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
p { margin: 0 0 1.1rem; }
small, font[size="1"], .small { color: var(--muted); }
blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--link);
  background: rgba(255,255,255,.03);
  border-radius: 0 12px 12px 0;
}
body > table:first-of-type {
  position: relative;
  overflow: hidden;
}
body > table:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,12,.18), rgba(6,8,12,.72)),
    radial-gradient(circle at center, rgba(215, 179, 106, .12), transparent 45%);
  pointer-events: none;
}
body > table:first-of-type td,
body > table:first-of-type th {
  position: relative;
  z-index: 1;
}
body > table:first-of-type h1,
body > table:first-of-type h2,
body > table:first-of-type h3 {
  text-align: center;
  margin-bottom: .25rem;
}
body > table:first-of-type h2 strong big,
body > table:first-of-type h2 big {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body > table:first-of-type small strong,
body > table:first-of-type td[colspan] strong {
  color: var(--muted);
}
body > p:first-of-type strong {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17,24,34,.9), rgba(12,18,25,.9));
  box-shadow: var(--shadow);
}
body > table:nth-of-type(2) td[bgcolor],
body table td[bgcolor="#C0C0C0"] {
  background: linear-gradient(180deg, rgba(30,44,61,.96), rgba(19,28,38,.96)) !important;
}
.vk-shell > table + p,
.vk-shell > p + table {
  margin-top: 26px;
}
a[target="_blank"]::after {
  content: " ↗";
  font-size: .9em;
  opacity: .7;
}
img[src=""], img:not([src]) { display: none !important; }
a[href=""], a[href="#"] { opacity: .72; }
body > div[align="center"],
body > center,
body > noscript {
  display: none !important;
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .vk-topbar-inner { flex-direction: column; align-items: stretch; }
  .vk-nav { justify-content: flex-start; }
  .vk-shell { padding: 20px 14px 40px; }
  table, tbody, tr, td, th { word-break: break-word; }
}
@media (max-width: 640px) {
  .vk-brand-title { font-size: 1rem; }
  .vk-nav a { padding: 7px 10px; font-size: .92rem; }
  td, th { padding: 10px 11px; }
  body > table:first-of-type h2 strong big,
  body > table:first-of-type h2 big { font-size: 1.7rem; }
}
