:root {
  --primary-color: #b80a0a;
  --primary-dark: #8f0707;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #6f6f6f;
  --border: #e9e9e9;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body.chart-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", Arial, sans-serif;
}

a {
  color: inherit;
}

.chart-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.chart-header {
  padding: 16px 0 8px;
  text-align: center;
}

.chart-header__top {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.chart-header h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.chart-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #fff;
}

.chart-table th,
.chart-table td {
  border: 1px solid #eeeeee;
  text-align: center;
  padding: 11px 8px;
}

.chart-table th {
  background: var(--primary-color);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  font-weight: 900;
}

.chart-table td {
  font-size: 0.82rem;
  font-weight: 700;
  color: #222;
}

.chart-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.date-cell {
  background: #fafafa;
  color: #666;
  font-weight: 700;
  white-space: nowrap;
}

.chart-nums {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}

.chart-nums .panna {
  color: #8c8c8c;
  font-size: 0.62rem;
  font-weight: 400;
}

.chart-nums .digit {
  font-size: 1rem;
  font-weight: 900;
}

.chart-nums .digit.red {
  color: var(--primary-color);
}

.chart-actions {
  padding: 22px 0 8px;
  display: flex;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(184, 10, 10, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.cta-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

.content-section {
  padding: 34px 0 48px;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 14px;
  color: var(--primary-color);
  font-weight: 900;
}

.content-card h2 {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.content-card h3 {
  font-size: 1.2rem;
  margin-top: 20px;
}

.content-card p,
.content-card li {
  color: #555;
  line-height: 1.8;
  font-size: 0.98rem;
}

.content-card ul {
  margin: 0 0 0 18px;
}

.footer-card {
  background: var(--primary-color);
  color: #fff;
  padding: 28px 18px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-logo {
  height: 54px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
}

.footer-card p {
  margin: 0 auto 12px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
}

.footer-links {
  margin: 16px 0 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.22);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 0.92rem;
}

@media (max-width: 767px) {
  .chart-shell {
    width: min(100% - 16px, 1120px);
  }

  .chart-table {
    min-width: 780px;
  }

  .chart-table th,
  .chart-table td {
    padding: 7px 4px;
    font-size: 0.62rem;
  }

  .chart-nums .digit {
    font-size: 0.88rem;
  }

  .content-card {
    padding: 18px;
  }

  .chart-actions {
    padding-top: 16px;
  }
}
