:root {
  color-scheme: dark;
  --ink: #f7f4ed;
  --muted: rgba(247, 244, 237, 0.68);
  --soft: rgba(247, 244, 237, 0.1);
  --line: rgba(247, 244, 237, 0.16);
  --panel: rgba(18, 22, 28, 0.82);
  --panel-strong: rgba(13, 16, 22, 0.94);
  --gold: #e7bd73;
  --teal: #74d6c7;
  --red: #ff6d6a;
  --blue: #8db7ff;
  --green: #9ae27b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, #101318 520px, #11161c 100%),
    url("../../../../img/local/fx-01.jpg") center top / cover fixed;
  color: var(--ink);
  overflow-x: hidden;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

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

img { display: block; max-width: 100%; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11, 14, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-title {
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.market-tape {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  justify-content: flex-end;
}

.market-tape::-webkit-scrollbar { display: none; }

.tape-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  white-space: nowrap;
}

.tape-chip b { color: var(--ink); font-weight: 780; }
.up { color: var(--green); }
.down { color: var(--red); }

.hero {
  min-height: calc(100svh - 58px);
  display: grid;
  align-items: center;
  padding: 34px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.edition {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edition::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--gold);
}

h1 {
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: rgba(247, 244, 237, 0.78);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-stat {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hero-stat strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.calculator {
  position: relative;
  background: linear-gradient(145deg, rgba(24, 29, 35, 0.94), rgba(10, 13, 18, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calculator::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(231, 189, 115, 0.14), transparent 34%),
    url("../../../../img/local/fx-03.jpg") center / cover;
  opacity: 0.24;
  pointer-events: none;
}

.calc-inner {
  position: relative;
  padding: 18px;
}

.calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.calc-title {
  margin: 0;
  font-size: clamp(23px, 4.8vw, 34px);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.lang-control {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.lang-status {
  min-height: 16px;
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.lang-status.error {
  color: #ffb6a8;
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  min-width: 42px;
  padding: 7px 10px;
}

.lang-toggle button.active {
  color: #15110a;
  background: var(--gold);
  font-weight: 850;
}

.lang-toggle select {
  width: min(220px, 42vw);
  min-height: 36px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 34px 7px 10px;
  font-weight: 760;
}

.lang-toggle select:focus-visible {
  box-shadow: 0 0 0 2px rgba(231, 189, 115, 0.72);
}

.lang-toggle select option { color: #101318; }

#google_translate_element {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body > .skiptranslate,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body { top: 0 !important; }

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.calc-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 760;
}

.calc-tabs button.active {
  color: #12100a;
  border-color: rgba(231, 189, 115, 0.86);
  background: linear-gradient(135deg, #e7bd73, #78d9cc);
}

.calc-panel {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.42fr);
  gap: 10px;
}

.field {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.64);
  padding: 10px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.field input, .field select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.field input {
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 850;
  letter-spacing: 0;
}

.field select {
  min-height: 44px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field select option { color: #101318; }

.swap-row {
  display: flex;
  justify-content: center;
  margin: -2px 0;
}

.swap-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}

.result-box {
  border: 1px solid rgba(116, 214, 199, 0.36);
  border-radius: var(--radius);
  background: rgba(116, 214, 199, 0.1);
  padding: 14px;
}

.result-value {
  font-size: clamp(27px, 7vw, 48px);
  line-height: 1.05;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.result-meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.rate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.055);
  min-width: 0;
}

.rate-card b { display: block; font-size: 14px; }
.rate-card span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }

section { padding: 56px 0; }

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

.kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-note {
  max-width: 400px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
}

.lead-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.lead-story, .side-stack article, .feature-card, .policy-card, .crypto-card, .rank-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 18, 23, 0.82);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.lead-story {
  min-height: 540px;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.story-image {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

article:hover .story-image img { transform: scale(1.04); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16120b;
  background: var(--gold);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.story-body { padding: 18px; }

.story-body h3 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: 0;
}

.story-body p {
  margin: 0;
  color: rgba(247, 244, 237, 0.73);
  line-height: 1.68;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-stack article {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 166px;
}

.side-stack .story-image { min-height: 100%; }

.side-stack .story-body { padding: 14px; }

.side-stack h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.18;
}

.side-stack p { font-size: 13px; line-height: 1.55; }

.hot-river {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.hot-river article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 18, 23, 0.78);
  overflow: hidden;
}

.hot-river .story-image { min-height: 170px; }
.hot-river h3 { font-size: 20px; line-height: 1.13; }
.hot-river p { font-size: 14px; line-height: 1.58; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 372px;
  display: grid;
  grid-template-rows: 176px auto;
}

.feature-card:nth-child(1), .feature-card:nth-child(6) { grid-column: span 2; }
.feature-card:nth-child(1) { grid-template-rows: 250px auto; }

.feature-card .story-body h3 {
  font-size: 22px;
  line-height: 1.14;
}

.feature-card .story-body p { font-size: 14px; }

.markets-band {
  background: rgba(9, 12, 16, 0.62);
  border-block: 1px solid var(--line);
}

.markets-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.rank-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(141, 183, 255, 0.08), rgba(116, 214, 199, 0.04)),
    rgba(14, 18, 23, 0.88);
}

.rank-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(247, 244, 237, 0.1);
  padding: 0 0 9px;
}

.rank-no {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.rank-name b { display: block; }
.rank-name span { color: var(--muted); font-size: 12px; }
.rank-share { color: var(--teal); font-weight: 850; white-space: nowrap; }

.visual-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.policy-card {
  min-height: 260px;
  position: relative;
  isolation: isolate;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.policy-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.policy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.9));
  z-index: -1;
}

.policy-card h3 { margin: 10px 0 8px; font-size: 24px; line-height: 1.08; }
.policy-card p { margin: 0; color: rgba(247, 244, 237, 0.76); line-height: 1.55; }

.crypto-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.crypto-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 460px;
  position: relative;
  isolation: isolate;
  padding: 22px;
  display: flex;
  align-items: flex-end;
}

.crypto-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.crypto-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 12, 16, 0.92), rgba(9, 12, 16, 0.22)), linear-gradient(0deg, rgba(9, 12, 16, 0.8), transparent);
  z-index: -1;
}

.crypto-hero h2 { max-width: 620px; }

.crypto-list {
  display: grid;
  gap: 12px;
}

.crypto-card {
  padding: 16px;
}

.crypto-card h3 { margin: 9px 0; font-size: 22px; line-height: 1.15; }
.crypto-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.quote-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quote {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(247, 244, 237, 0.07);
}

.quote strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.06;
}

.quote span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.72);
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
}

.site-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  font-size: 13px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(12px);
}

.legal-modal.open { display: flex; }

.legal-dialog {
  width: min(560px, 100%);
  max-height: min(680px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 18, 24, 0.96);
  box-shadow: var(--shadow);
  padding: 18px;
}

.legal-dialog h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.18;
}

.legal-dialog p {
  margin: 0;
  color: rgba(247, 244, 237, 0.75);
  line-height: 1.72;
}

.legal-close {
  width: 100%;
  margin-top: 16px;
  min-height: 42px;
  border: 1px solid rgba(231, 189, 115, 0.7);
  border-radius: var(--radius);
  color: #15110a;
  background: var(--gold);
  font-weight: 850;
}

.desktop-only { display: inline; }

@media (max-width: 980px) {
  body { background-attachment: scroll; }
  .hero-grid, .lead-story-grid, .markets-layout, .crypto-strip { grid-template-columns: 1fr; }
  .hero { align-items: start; padding-top: 18px; }
  .hero-copy { order: 2; }
  .calculator { order: 1; }
  .lead { font-size: 15px; }
  .hot-river { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(1), .feature-card:nth-child(6) { grid-column: span 1; }
  .quote-wall { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-shell, .topbar-inner, .site-footer-inner { width: min(100% - 22px, 1180px); }
  .topbar-inner { min-height: 54px; }
  .brand-title { font-size: 14px; }
  .market-tape { max-width: 58vw; }
  .hero { min-height: auto; padding: 12px 0 28px; }
  .hero-grid { gap: 18px; }
  .calc-inner { padding: 13px; }
  .calc-header { margin-bottom: 12px; }
  .calc-tabs { gap: 6px; }
  .calc-tabs button { min-height: 39px; font-size: 12px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .field { padding: 9px; }
  .field select { font-size: 16px; min-height: 46px; }
  .field input { min-width: 0; }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr; }
  section { padding: 38px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 10px; }
  .lead-story { min-height: auto; grid-template-rows: 240px auto; }
  .side-stack article { grid-template-columns: 112px minmax(0, 1fr); }
  .side-stack .story-body { padding: 12px; }
  .side-stack h3 { font-size: 17px; }
  .side-stack p { display: none; }
  .hot-river { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(1) { grid-template-rows: 210px auto; min-height: auto; }
  .visual-board { grid-template-columns: 1fr; }
  .policy-card { min-height: 240px; }
  .crypto-hero { min-height: 370px; padding: 16px; }
  .site-footer-inner { display: grid; gap: 12px; }
  .footer-actions { justify-content: flex-start; }
  .footer-actions button { flex: 1 1 auto; }
  .desktop-only { display: none; }
}
