:root {
  --ink: #171b29;
  --muted: #6f7280;
  --cream: #fff6ec;
  --soft: #fffaf4;
  --orange: #e87932;
  --gold: #df9a25;
  --navy: #171b31;
  --green: #58cb68;
  --line: #efd6a7;
  --shadow: 0 18px 45px rgba(20, 24, 41, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.anchor {
  display: block;
  height: 1px;
  scroll-margin-top: 95px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Arial", "Helvetica", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 18px 30px;
  background: rgba(255, 246, 236, .94);
  backdrop-filter: blur(12px);
}

.brand img {
  display: block;
  width: 142px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover,
.link-cloud a:hover {
  color: var(--orange);
}

.download-small,
.dark-btn,
.green-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(232, 121, 50, .22);
}

.download-small {
  min-width: 146px;
  background: linear-gradient(135deg, #ef7b3d, #df9a25);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 420px);
  align-items: center;
  min-height: 560px;
  padding: 30px 11vw 0;
  background: radial-gradient(circle at 75% 18%, #f6e8e7, transparent 34%), linear-gradient(180deg, var(--cream), #fff);
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 72px);
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--gold);
}

.hero-stats {
  display: block;
  width: min(100%, 610px);
  height: auto;
  margin-top: 34px;
}

.hero-art {
  width: min(100%, 330px);
  justify-self: center;
  align-self: end;
}

.download-bar {
  width: min(95%, 1420px);
  margin: -22px auto 68px;
}

.download-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6975d2, #171b31 68%);
  color: #fff;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(20, 24, 41, .24);
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 42px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto 86px;
}

.contact-strip span {
  display: block;
  margin-bottom: 18px;
  font-size: 22px;
}

.contact-strip strong {
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: 2px;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dark-btn {
  background: var(--navy);
}

.green-btn {
  background: var(--green);
  box-shadow: 0 12px 22px rgba(88, 203, 104, .22);
}

.wide-section,
.market-section,
.content-section,
.faq-section,
.chart-links {
  width: min(1220px, calc(100% - 42px));
  margin: 0 auto 70px;
}

.wide-section h2,
.section-title h2,
.faq-section h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1;
  font-weight: 900;
}

.wide-section h2 span,
.section-title h2 span,
.faq-section h2 span {
  color: #ffd43d;
  text-shadow: 0 2px 8px rgba(223, 154, 37, .34);
}

.winner-row {
  overflow: hidden;
  padding: 8px 0 14px;
}

.winner-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: winner-scroll 28s linear infinite;
}

.winner-row:hover .winner-track {
  animation-play-state: paused;
}

.winner-card,
.rate-card {
  min-height: 92px;
  padding: 26px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.winner-card {
  flex: 0 0 210px;
  text-align: center;
}

.winner-card span,
.rate-card span {
  display: block;
  margin-bottom: 8px;
  color: #c99440;
  font-weight: 700;
}

.winner-card strong,
.rate-card strong {
  font-size: 28px;
}

@keyframes winner-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 10px));
  }
}

.patterned {
  padding: 26px 0;
  background-image: radial-gradient(#f3e4ca 1px, transparent 1px);
  background-size: 26px 26px;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
}

.rate-card {
  border-width: 0 1px 1px 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

.chart-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.chart-links > div {
  padding: 24px;
  border: 1px solid #f1dfbd;
  border-radius: 20px;
  background: var(--soft);
}

.chart-links h3 {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.link-cloud a {
  font-weight: 800;
}

.section-title p {
  margin: -12px 0 30px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.market-card {
  position: relative;
  min-height: 142px;
  padding: 24px 148px 20px 20px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.market-card h3 {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.result {
  display: block;
  min-height: 31px;
  font-size: 22px;
  letter-spacing: 2px;
}

.market-actions {
  position: absolute;
  top: 18px;
  right: 14px;
  display: grid;
  gap: 8px;
  width: 92px;
}

.market-actions a {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ef6d37, #df9a25);
  color: #fff;
  font-weight: 900;
}

.market-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #eeeeee;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.market-status {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.market-status.green {
  color: #2a9a43;
}

.market-status.red {
  color: #c83a32;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #e8cf9d;
  border-radius: 14px;
  background: #fffaf4;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.compact .market-card {
  min-height: 116px;
}

.content-section,
.faq-section {
  line-height: 1.78;
  font-size: 18px;
}

.content-section h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
}

details {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid #f0dfbd;
  border-radius: 16px;
  background: #fffaf4;
}

summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.footer {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 54px 20px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.footer img {
  width: 160px;
}

.chart-hero {
  padding: 86px 24px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream), #fff);
}

.chart-hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(36px, 6vw, 62px);
}

.chart-hero p {
  margin: 0 auto 22px;
  max-width: 680px;
  color: var(--muted);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.today-box {
  display: inline-grid;
  gap: 6px;
  min-width: 300px;
  padding: 22px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.today-box span {
  color: var(--muted);
  font-weight: 800;
}

.today-box strong {
  font-size: 34px;
  letter-spacing: 3px;
}

.chart-table-wrap {
  width: min(980px, calc(100% - 34px));
  margin: 46px auto 80px;
  overflow: auto;
  border: 1px solid #f0dfbd;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.chart-table th,
.chart-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #f4ead7;
  text-align: left;
}

.chart-table th {
  background: #fff5e5;
  color: var(--orange);
  font-size: 18px;
}

.chart-table td:last-child {
  font-weight: 900;
  letter-spacing: 2px;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 78px 30px 0;
  }

  .hero-stats {
    width: min(100%, 520px);
  }

  .hero-art {
    max-height: 420px;
  }

  .market-grid,
  .rates-grid,
  .chart-links {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 128px;
  }

  .download-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    padding: 42px 20px 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .download-bar {
    margin-top: -18px;
  }

  .download-bar a {
    min-height: 78px;
    font-size: 30px;
  }

  .contact-strip,
  .contact-actions,
  .market-grid,
  .rates-grid,
  .chart-links {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    gap: 22px;
    text-align: center;
  }

  .market-card {
    padding-right: 122px;
  }

  .market-card h3 {
    font-size: 22px;
  }
}
