:root {
  color-scheme: dark;
  --bg: #03050b;
  --surface: #091121;
  --surface-2: #0c1830;
  --line: rgba(212, 175, 55, .22);
  --line-soft: rgba(148, 163, 184, .16);
  --gold: #d4af37;
  --gold-light: #f4d675;
  --text: #f4f5f7;
  --muted: #a9b0c2;
  --green: #49d17d;
  --red: #ff7474;
  --amber: #ffbd59;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(33, 58, 120, .45), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(212, 175, 55, .09), transparent 24rem),
    var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--gold-light);
  color: #111;
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 5, 11, .87);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img {
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .45);
  box-shadow: 0 0 28px rgba(212, 175, 55, .24);
}
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: .92rem; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: .76rem; margin-top: 4px; }
nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
nav a, .x-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .88rem;
  border: 1px solid transparent;
  transition: .18s ease;
}
nav a:hover, nav a:focus-visible, nav a.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(212, 175, 55, .08);
}
.x-link { border-color: var(--line); color: var(--gold-light); white-space: nowrap; }
.x-link:hover, .x-link:focus-visible { background: var(--gold-light); color: #121212; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: 8px; }
.lang-switch { position: relative; }
.lang-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 17, 33, .78);
  color: var(--gold-light);
  cursor: pointer;
  white-space: nowrap;
}
.lang-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 30;
  display: none;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 5, 11, .98);
  box-shadow: var(--shadow);
}
.lang-menu.open { display: grid; }
.lang-menu button {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: start;
}
.lang-menu button:hover, .lang-menu button:focus-visible,
.lang-menu button[aria-selected="true"] { background: rgba(212, 175, 55, .12); color: var(--gold-light); }

.hero {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding-block: 82px 64px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-block-start: 0; }
h1 {
  max-width: 780px;
  margin-block-end: 18px;
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  line-height: 1.07;
  letter-spacing: -.045em;
}
.hero-copy { max-width: 760px; color: #c2c8d6; font-size: clamp(1rem, 2.1vw, 1.2rem); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 17, 33, .72);
  font-weight: 750;
}
.button.primary { background: linear-gradient(135deg, #f4d675, #b68c1d); color: #111; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.method-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 24, 48, .92), rgba(6, 11, 22, .92));
  box-shadow: var(--shadow);
}
.method-label { display: block; color: var(--muted); font-size: .84rem; }
.method-card strong { display: block; margin: 2px 0 12px; color: var(--gold-light); font-size: 2.1rem; }
.method-card p { color: var(--muted); }
.text-button { padding: 0; border: 0; background: none; color: var(--gold-light); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }

.methodology, .projects-section, .editorial-note {
  margin-block-end: 28px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(9, 17, 33, .94), rgba(4, 8, 17, .94));
  box-shadow: var(--shadow);
}
.methodology[hidden] { display: none; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2, .editorial-note h2 { margin-bottom: 7px; font-size: clamp(1.55rem, 4vw, 2.45rem); line-height: 1.25; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.update-box { min-width: 150px; padding: 10px 14px; border-inline-start: 2px solid var(--gold); }
.update-box span { display: block; color: var(--muted); font-size: .76rem; }
.update-box time { font-size: .9rem; }
.criteria { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.criterion { padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(12, 24, 48, .52); }
.criterion strong { display: block; color: var(--gold-light); }
.criterion span { color: var(--muted); font-size: .82rem; }
.disclaimer { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(212, 175, 55, .07); color: #d8cfae; font-size: .9rem; }
.toolbar { margin-bottom: 18px; }
.toolbar label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .82rem; }
.toolbar input {
  width: min(100%, 420px);
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-soft);
  background: #060b16;
  color: #fff;
  outline: none;
}
.toolbar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .1); }

.cards { display: grid; gap: 18px; }
.project-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(8, 15, 30, .78);
}
.score-column { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.score-ring {
  --score-color: var(--gold);
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) calc(var(--score) * 1%), rgba(148, 163, 184, .12) 0);
}
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #070d19; }
.score-ring strong { position: relative; font-size: 1.45rem; line-height: 1; }
.score-ring small { position: relative; color: var(--muted); font-size: .66rem; }
.score-ring span { position: relative; display: grid; text-align: center; }
.score-label { color: var(--muted); font-size: .76rem; }
.project-content { min-width: 0; }
.project-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.project-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-title h3 { margin: 0; font-size: 1.45rem; }
.symbol, .status-badge, .chain-badge {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: .72rem;
}
.status-badge { border-color: rgba(73, 209, 125, .25); color: #9af0ba; }
.project-summary { margin: 12px 0 18px; color: #c7ccda; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.fact { padding: 13px; border-radius: 14px; background: rgba(12, 24, 48, .56); border: 1px solid rgba(148, 163, 184, .1); }
.fact span { display: block; color: var(--gold-light); font-size: .76rem; font-weight: 800; }
.fact p { margin: 4px 0 0; color: #d2d6e0; font-size: .89rem; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-box { padding: 15px; border-radius: 15px; border: 1px solid var(--line-soft); }
.analysis-box h4 { margin: 0 0 8px; font-size: .9rem; }
.analysis-box ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: .87rem; }
.analysis-box.pros h4 { color: #95edb7; }
.analysis-box.cons h4 { color: #ff9b9b; }
.project-outlook { margin: 14px 0 0; padding: 14px; border-inline-start: 3px solid var(--amber); background: rgba(255, 189, 89, .05); color: #d9d1c2; font-size: .9rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-links a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold-light);
  font-size: .8rem;
}
.project-links a:hover, .project-links a:focus-visible { background: rgba(212, 175, 55, .1); }

.upcoming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.upcoming-card { padding: 22px; border: 1px solid var(--line-soft); border-radius: 18px; background: rgba(8, 15, 30, .78); }
.archive-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: 18px; background: rgba(8, 15, 30, .62); }
.archive-card h3 { margin-bottom: 6px; }
.archive-card p { margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.upcoming-card header { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.upcoming-card h3 { margin-bottom: 3px; font-size: 1.3rem; }
.upcoming-card .date { color: var(--gold-light); font-size: .83rem; white-space: nowrap; }
.upcoming-card p { color: var(--muted); }
.upcoming-card .watch-risk { padding: 10px 12px; border-radius: 12px; background: rgba(255, 116, 116, .06); color: #d9b8b8; font-size: .83rem; }
.editorial-note { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; border-color: var(--line); }
.editorial-note p:last-child { margin-bottom: 0; color: var(--muted); }
.loading, .empty { color: var(--muted); }
.error { padding: 16px; border: 1px solid rgba(255, 116, 116, .3); border-radius: 14px; color: #ffc4c4; background: rgba(255, 116, 116, .06); }

footer { margin-top: 58px; border-top: 1px solid var(--line-soft); background: #020309; }
.footer-inner { min-height: 160px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; color: var(--muted); font-size: .84rem; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; justify-content: center; gap: 16px; }
.footer-inner a:hover { color: var(--gold-light); }
.footer-risk { text-align: end; }
.noscript { margin: 16px; padding: 14px; background: #381b1b; color: #fff; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 64px 44px; }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 34px; text-align: center; }
  .footer-risk { text-align: center; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 1160px); }
  .brand strong { font-size: .8rem; }
  .brand small { display: none; }
  .x-link { padding: 7px 10px; font-size: .78rem; }
  .hero { padding-block-start: 46px; }
  .method-card { padding: 22px; }
  .section-heading { align-items: start; flex-direction: column; }
  .update-box { border-inline-start: 0; border-block-start: 2px solid var(--gold); padding-inline: 0; }
  .criteria, .upcoming-grid, .archive-grid, .analysis-grid, .editorial-note { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; gap: 14px; }
  .score-column { flex-direction: row; justify-content: start; }
  .score-ring { width: 76px; }
  .project-head { flex-direction: column; }
  .projects-section, .methodology, .editorial-note { padding: 18px 15px; border-radius: 18px; }
  .header-actions { gap: 5px; }
  .lang-button, .x-link { padding: 7px 9px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
