/* Global Market News 24 — "24h market terminal" dark theme */

:root {
  --bg: #0b1622;
  --bg-deep: #081119;
  --panel: #12212f;
  --panel-2: #16293a;
  --line: #1f3547;
  --line-soft: rgba(47, 212, 231, 0.16);
  --text: #e8eef4;
  --muted: #8fa3b5;
  --cyan: #2fd4e7;
  --cyan-dim: #1a93a8;
  --magenta: #d64d8f;
  --steel: #7fb3ff;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #6fe4f2; text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header (floating / sticky) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 17, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; }

.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.15;
}

.brand-name .b24 { color: var(--cyan); font-family: var(--mono); }

.main-nav { flex: 1; min-width: 0; }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav ul::-webkit-scrollbar { display: none; }

.main-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 4px;
}

.main-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.main-nav a.active { color: var(--cyan); }

/* EN | RU segmented switch, far right */
.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
}

.lang-switch a {
  padding: 6px 12px;
  color: var(--muted);
  background: transparent;
}

.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a.active { background: var(--cyan); color: #06131c; font-weight: 700; }

/* ---------- Kicker / meta typography ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.meta-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid;
}

.tag-deep { color: var(--cyan); border-color: var(--cyan-dim); background: rgba(47, 212, 231, 0.08); }
.tag-pulse { color: var(--magenta); border-color: rgba(214, 77, 143, 0.5); background: rgba(214, 77, 143, 0.08); }
.tag-wire { color: var(--steel); border-color: rgba(127, 179, 255, 0.45); background: rgba(127, 179, 255, 0.07); }

/* ---------- Main / sections ---------- */

main { flex: 1; }

.section { padding: 36px 0 8px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: 21px;
  letter-spacing: 0.01em;
}

.section-head .head-no {
  font-family: var(--mono);
  color: var(--magenta);
  font-size: 13px;
  margin-right: 10px;
}

.section-head a.more {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---------- Home: lead grid ---------- */

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: stretch;
}

.lead-card {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
}

.lead-card:hover { text-decoration: none; border-color: var(--cyan-dim); }

.lead-card .lead-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: var(--bg-deep); }

.lead-body { padding: 22px 24px 24px; }

.lead-body h3 { font-size: 26px; line-height: 1.25; margin: 10px 0 10px; }
.lead-body p { color: var(--muted); font-size: 15px; }

.lead-foot { margin-top: 14px; display: flex; gap: 12px; align-items: center; }

/* pulse rail */
.rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.rail h3 {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--magenta);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.rail ol { list-style: none; counter-reset: rail; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }

.rail li { counter-increment: rail; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rail li:last-child { border-bottom: 0; }

.rail li a { color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; }
.rail li a:hover { color: var(--cyan); text-decoration: none; }

.rail li .rail-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.rail li .rail-meta::before { content: counter(rail, decimal-leading-zero); color: var(--magenta); }

/* ---------- Deep dive row cards ---------- */

.dive-list { display: flex; flex-direction: column; gap: 16px; }

.dive-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
}

.dive-card:hover { text-decoration: none; border-color: var(--cyan-dim); }

.dive-card img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; display: block; }

.dive-body { padding: 16px 20px 16px 0; position: relative; }

.dive-no {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--mono);
  font-size: 30px;
  color: rgba(47, 212, 231, 0.18);
  font-weight: 700;
}

.dive-body h3 { font-size: 18.5px; margin: 8px 0 6px; line-height: 1.3; }
.dive-body p { color: var(--muted); font-size: 14px; }

/* ---------- Corporate wire terminal list ---------- */

.wire-list {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 20px;
  list-style: none;
}

.wire-list li { border-bottom: 1px solid var(--line); }
.wire-list li:last-child { border-bottom: 0; }

.wire-list a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  color: var(--text);
}

.wire-list a:hover { text-decoration: none; }
.wire-list a:hover .wire-title { color: var(--cyan); }

.wire-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--steel);
  flex-shrink: 0;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(127, 179, 255, 0.6);
}

.wire-date { font-family: var(--mono); font-size: 12px; color: var(--muted); flex-shrink: 0; min-width: 92px; }
.wire-title { font-size: 15px; font-weight: 600; }
.wire-co { font-family: var(--mono); font-size: 11px; color: var(--steel); text-transform: uppercase; letter-spacing: 0.08em; margin-left: auto; min-width: 0; max-width: 46%; text-align: right; overflow-wrap: break-word; }

/* ---------- Generic card grid (sections / type indexes) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
}

.card:hover { text-decoration: none; border-color: var(--cyan-dim); }

.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-deep); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-body h3 { font-size: 16.5px; line-height: 1.35; }
.card-body p { color: var(--muted); font-size: 13.5px; flex: 1; }

.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }

/* text-only card variant */
.card.text-card .card-body { padding-top: 18px; }

/* ---------- Page head (inner pages) ---------- */

.page-head { padding: 40px 0 8px; }
.page-head .kicker { display: block; margin-bottom: 8px; }
.page-head h1 { font-size: 32px; line-height: 1.2; margin-bottom: 10px; }
.page-head .lede { color: var(--muted); max-width: 760px; font-size: 15.5px; }

/* ---------- Static/service pages ---------- */

.prose {
  max-width: 780px;
  padding: 28px 0 60px;
}

.prose h2 { font-size: 20px; margin: 26px 0 10px; color: var(--text); }
.prose p { margin-bottom: 14px; color: #c6d2dd; }
.prose ul { margin: 0 0 14px 22px; color: #c6d2dd; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

.prose .contact-box {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 14.5px;
}

/* ---------- article media & intext links ---------- */

.prose figure { margin: 22px 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-deep); }
.prose figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-family: var(--mono); letter-spacing: 0.03em; }

.prose a.intextlink { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a.intextlink:hover { color: #6fe4f2; }

/* ---------- comment block ---------- */

.comment-block { max-width: 780px; padding: 0 0 60px; }

.comment-block h2 {
  font-size: 19px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 16px;
}

.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.comment-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.comment-form label.full { grid-column: 1 / -1; }

.comment-form input, .comment-form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
}

.comment-form input:focus, .comment-form textarea:focus { outline: 1px solid var(--cyan-dim); }

.comment-form textarea { min-height: 110px; resize: vertical; }

.comment-form button {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--cyan);
  color: #06131c;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  cursor: pointer;
}

.comment-form button:hover { background: #6fe4f2; }

@media (max-width: 620px) {
  .comment-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 48px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-brand .copyright { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }

.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links a:hover { color: var(--cyan); }

.footer-links .sep { color: var(--line); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .lead-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; gap: 10px 16px; }
  .main-nav { order: 3; flex-basis: 100%; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
  .dive-card { grid-template-columns: 1fr; }
  .dive-body { padding: 0 18px 18px; }
  .dive-card img { min-height: 0; aspect-ratio: 16 / 9; }
  .lead-body h3 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .wire-list a { flex-wrap: wrap; gap: 6px 12px; }
  .wire-co { margin-left: 22px; max-width: 100%; text-align: left; }
  .page-head h1 { font-size: 26px; }
}
