
:root {
  --bg: #050816;
  --panel: rgba(7, 14, 28, .84);
  --panel2: rgba(11, 18, 32, .94);
  --line: rgba(125, 211, 252, .24);
  --text: #e5eefc;
  --muted: #9fb2cc;
  --cyan: #7dd3fc;
  --amber: #f59e0b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5,8,22,.88), rgba(5,8,22,.64), rgba(5,8,22,.94)),
    linear-gradient(180deg, rgba(5,8,22,.12), rgba(5,8,22,.98)),
    url("/assets/bg.png") center / cover no-repeat;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  padding: 16px clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(280px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  background: rgba(5, 8, 22, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125,211,252,.16);
}
.brand { color: var(--text); text-decoration: none; display: grid; gap: 3px; justify-self: start; }
.brand strong { font-size: 25px; letter-spacing: .03em; }
.brand span { color: var(--muted); font-size: 12px; }

.top-search {
  justify-self: stretch;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 100px;
  gap: 8px;
  align-items: center;
}
.top-search input,
.top-search select {
  width: 100%;
  color: var(--text);
  background: rgba(11,18,32,.82);
  border: 1px solid rgba(125,211,252,.24);
  border-radius: 999px;
  padding: 9px 13px;
  outline: none;
}
.top-search button {
  color: #031018;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}
.top-lang {
  justify-self: center;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.20);
  background: rgba(7,14,28,.72);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.top-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.18);
  background: rgba(11,18,32,.70);
}
.top-lang a.active {
  border-color: rgba(125,211,252,.55);
  background: rgba(125,211,252,.16);
}
.top-lang img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 10px; }
nav a, .back {
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(125,211,252,.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(11,18,32,.58);
}
.page-shell {
  width: min(1540px, calc(100% - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 210px;
  gap: 22px;
  align-items: start;
}
main {
  width: 100%;
  margin: 0 auto;
  padding: 52px 0 80px;
}
.side {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  margin-top: 52px;
  padding: 16px;
  border: 1px solid rgba(125,211,252,.18);
  border-radius: 22px;
  background: rgba(7,14,28,.78);
  box-shadow: 0 16px 50px rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
}
.side-title {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}
.side-links, .day-links { display: grid; gap: 8px; }
.side-links a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(11,18,32,.62);
  border: 1px solid rgba(125,211,252,.13);
  font-size: 14px;
}
.side-links a:hover {
  color: var(--cyan);
  border-color: rgba(125,211,252,.35);
}
.day-link {
  display: grid;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(11,18,32,.62);
  border: 1px solid rgba(125,211,252,.13);
}
.day-link strong { font-size: 14px; }
.day-link span { color: var(--muted); font-size: 12px; }
.day-link.active {
  border-color: rgba(125,211,252,.48);
  background: rgba(125,211,252,.13);
}
.hero {
  max-width: 880px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(7,14,28,.92), rgba(11,18,32,.70));
  box-shadow: 0 26px 90px rgba(0,0,0,.46);
}
.kicker, .rubric, .meta {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .95;
}
.hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 19px;
}
.section-head {
  margin: 54px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.section-head h2 { margin: 0; font-size: 30px; }
.section-head a { color: var(--cyan); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.card {
  display: block;
  min-height: 230px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(125,211,252,.20);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 46px rgba(0,0,0,.32);
}
.card.big { grid-column: span 2; min-height: 305px; }
.card h3 { margin: 12px 0; line-height: 1.14; font-size: 22px; }
.card.big h3 { font-size: 32px; }
.card p { color: var(--muted); line-height: 1.5; }
.card em {
  display: block;
  margin-top: 18px;
  color: #7890ad;
  font-style: normal;
  font-size: 13px;
}
.archive-list { display: grid; gap: 10px; }
.archive-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(7,14,28,.82);
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 14px;
}
.archive-row strong { color: var(--text); }
.archive-row span { color: var(--muted); font-size: 13px; }
.article {
  max-width: 900px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(7,14,28,.92);
  border: 1px solid rgba(125,211,252,.22);
  border-radius: 26px;
}
.article h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.03; }
.article h2 { margin-top: 34px; color: var(--cyan); }
.article p, .article li {
  color: #d8e5f7;
  line-height: 1.72;
  font-size: 18px;
}
footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(125,211,252,.14);
}
@media (max-width: 1050px) {
  .page-shell { grid-template-columns: 1fr; width: min(100% - 24px, 1180px); }
  .side { position: relative; top: auto; max-height: none; margin-top: 24px; }
  .side-left { order: 1; }
  main { order: 2; padding-top: 28px; }
  .side-right { order: 3; }
}
@media (max-width: 850px) {
  .topbar { grid-template-columns: 1fr; justify-items: stretch; }
  .top-search { grid-template-columns: 1fr; }
  .top-lang { justify-self: start; }
  nav { justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; }
  .archive-row { grid-template-columns: 1fr; }
}
