:root {
  --bg: #ffffff;
  --bg-2: #eef6ff;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #dfe8f5;
  --text: #101828;
  --muted: #5b6b82;
  --blue: #0066ff;
  --blue-2: #1e8fff;
  --gold: #f6bd45;
  --cyan: #5edcf6;
  --green: #1dc987;
  --red: #ef4565;
  --shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #eff6ff 0%, #ffffff 38%, #f8fafc 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

#market-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.14;
}

.rebate-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid #ffd978;
  border-radius: 10px;
  color: #5f3f00;
  background: linear-gradient(135deg, #fff8df, #ffffff 52%, #dbeafe);
  box-shadow: 0 12px 30px rgba(246, 189, 69, 0.15);
}

.rebate-strip div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rebate-strip strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.rebate-strip span {
  color: #6b5a35;
  font-size: 14px;
  font-weight: 700;
}

.rebate-strip .btn {
  min-height: 38px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(14px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.trust-row,
.terminal-top,
.price-strip,
.signal-grid,
.panel-head,
.news-list li,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 185px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0066ff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo span {
  padding: 2px 8px;
  border-radius: 6px;
  color: #0f172a;
  background: #f1f5f9;
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav {
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--blue);
  background: #eef5ff;
}

.main-nav a.active {
  color: var(--blue);
  background: #eef5ff;
}

.header-actions {
  gap: 8px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #eef5ff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.icon-btn,
.btn {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn {
  width: 42px;
  height: 42px;
  color: var(--blue);
  background: #eef5ff;
  border: 1px solid #d9e8ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover,
.icon-btn:hover,
.asset-pill:hover {
  transform: translateY(-1px);
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #1e8fff);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.secondary {
  color: #111827;
  background: linear-gradient(135deg, #ffd15c, #fff1a4);
  box-shadow: 0 14px 28px rgba(246, 189, 69, 0.2);
}

.ghost {
  color: var(--blue);
  border-color: var(--line);
  background: #ffffff;
}

.large {
  min-height: 54px;
  padding: 0 24px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 36px;
  min-height: calc(100vh - 90px);
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.9;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

h3 {
  line-height: 1.25;
}

.lead {
  max-width: 610px;
  color: #334155;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.terminal,
.calculator-shell,
.panel,
.plan,
.knowledge-grid article,
.workflow-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal {
  padding: 16px;
}

.terminal-top {
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.terminal-top strong,
.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.price-strip {
  gap: 12px;
  margin-bottom: 12px;
}

.price-strip div,
.signal-grid article {
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.price-strip small,
.signal-grid span,
.calc-result span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-strip strong {
  font-size: clamp(18px, 3vw, 32px);
}

.chart-card {
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(180deg, #f6fbff, #ffffff);
}

.chart-card canvas {
  display: block;
  width: 100%;
  height: auto;
}

.signal-grid {
  gap: 12px;
  margin-top: 12px;
}

.signal-grid strong {
  font-size: 20px;
}

.price-status {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notice-band {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(248, 200, 75, 0.25);
  border-radius: 8px;
  color: #7a5200;
  background: #fff8df;
}

.notice-band span {
  color: var(--muted);
}

.notice-band a {
  margin-left: auto;
  color: var(--gold);
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.calendar-page .section-heading,
.lot-page .section-heading {
  position: relative;
}

.calendar-page .section-heading h1,
.lot-page .section-heading h1 {
  color: var(--text);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.calculator-page-hero {
  padding-top: 78px;
  padding-bottom: 24px;
}

.calculator-page-hero,
.calendar-hero {
  position: relative;
  margin-top: 34px;
  padding-right: 34px;
  padding-left: 34px;
  border: 1px solid #b9d7ff;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96) 56%, rgba(255, 248, 223, 0.9));
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.calculator-page-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.live-price-band {
  width: 100%;
  margin-top: 28px;
}

.lot-page .section-heading {
  max-width: 820px;
}

.lot-page .lead,
.lot-page .section-heading p:not(.eyebrow) {
  color: #53657d;
  font-size: 18px;
  line-height: 1.7;
}

.lot-page .eyebrow {
  font-size: 12px;
  font-weight: 800;
}

.lot-page .calculator-shell {
  border-color: #d8e5f5;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.08);
}

.lot-page .calc-card {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.lot-page .asset-pill b,
.lot-page .result-grid b,
.lot-page .order-summary h3 {
  letter-spacing: 0;
}

.lot-page .asset-pill b {
  font-size: 17px;
}

.lot-page .input-wrap {
  min-height: 54px;
}

.lot-page .input-wrap input {
  letter-spacing: 0;
}

.calendar-page .section-heading {
  max-width: 860px;
}

.calendar-hero {
  padding-top: 78px;
  padding-bottom: 28px;
}

.calendar-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
}

.next-news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 32px;
  padding: 22px;
  border: 1px solid #b9d7ff;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef6ff, #ffffff 58%, #fff8df);
  box-shadow: var(--shadow);
}

.next-news-card h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 42px);
}

.next-news-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.countdown-grid article {
  display: grid;
  min-height: 118px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.countdown-grid strong {
  display: block;
  color: var(--blue);
  font-size: 42px;
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-warning {
  margin-top: 6px;
}

.calendar-section {
  padding-top: 64px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-tabs,
.calendar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-tab,
.calendar-filters select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.calendar-tab {
  padding: 0 16px;
  cursor: pointer;
}

.calendar-tab.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.calendar-filters select {
  padding: 0 36px 0 14px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

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

.event-card {
  display: grid;
  grid-template-columns: 92px 82px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.event-time {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.event-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.event-main h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.event-main p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.impact-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.impact-high {
  color: #ffffff;
  background: var(--red);
}

.impact-medium {
  color: #6d4700;
  background: #ffe49a;
}

.impact-low {
  color: #475569;
  background: #eef2f7;
}

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

.event-numbers div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.event-numbers small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-numbers b {
  font-size: 14px;
}

.calendar-empty {
  padding: 28px;
  border: 1px dashed #b9d7ff;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 700;
}

.calendar-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.calendar-guide {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-guide li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.calendar-guide b {
  color: var(--blue);
}

.calendar-guide span {
  color: var(--muted);
  line-height: 1.5;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  padding: 16px;
  align-items: start;
  background: rgba(255, 255, 255, 0.94);
}

.tool-section .section-heading h2 {
  max-width: 720px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
}

.calc-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.calc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.calc-card-head > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 900;
}

.calc-card-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.calc-card-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.asset-card {
  grid-row: auto;
}

.asset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-pill {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  text-align: left;
  background: #f8fbff;
  cursor: pointer;
  font-weight: 800;
}

.asset-pill span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-pill em {
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.asset-pill.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.asset-pill.active span,
.asset-pill.active em {
  color: rgba(255, 255, 255, 0.86);
}

.calc-form {
  display: grid;
  gap: 14px;
}

.calc-form.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 20px;
  font-weight: 800;
}

.input-wrap b {
  color: var(--gold);
}

.chip-row,
.mode-toggle,
.trade-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.choice-chip,
.mode-btn,
.trade-btn,
.direction-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}

.choice-chip {
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}

.choice-chip span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.choice-chip.active,
.mode-btn.active {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.choice-chip.active span {
  color: rgba(255, 255, 255, 0.86);
}

.mode-btn {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.trade-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
}

.trade-btn {
  min-height: 42px;
  border-color: transparent;
  cursor: pointer;
}

.trade-btn.active {
  color: #ffffff;
  background: var(--green);
}

.trade-btn.sell.active {
  background: var(--red);
}

.direction-badge {
  margin-left: auto;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--green);
}

.direction-badge.sell {
  background: var(--red);
}

.direction-badge.wait {
  background: var(--muted);
}

.calc-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pips-mode-fields {
  display: none;
}

.calculator-shell.pips-mode .price-mode-fields {
  display: none;
}

.calculator-shell.pips-mode .pips-mode-fields {
  display: grid;
}

.calc-result {
  position: sticky;
  top: 112px;
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 22px;
  border: 1px solid #b9d7ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef6ff, #fff8df);
}

.calc-result.volume-warning {
  border-color: #ff9fb0;
  background: linear-gradient(180deg, #fff1f4, #fff8df);
}

.calc-result strong {
  display: block;
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1;
}

.calc-result p {
  margin-bottom: 0;
  color: #334155;
  line-height: 1.5;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.result-grid div,
.order-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
}

.result-grid small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-grid b {
  font-size: 17px;
}

.order-summary {
  margin-bottom: 14px;
}

.lot-warning {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid #ff9fb0;
  border-radius: 7px;
  color: #7f1d1d;
  background: #fff1f4;
}

.lot-warning[hidden] {
  display: none;
}

.lot-warning strong {
  margin: 0;
  color: #be123c;
  font-size: 14px;
  line-height: 1.35;
}

.lot-warning span {
  margin: 0;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}

.order-summary h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.order-summary p {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.meter {
  height: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4edf8;
}

.meter i {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.95fr;
  gap: 16px;
}

.panel {
  min-height: 260px;
  padding: 20px;
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge,
.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: #ecf8ff;
  font-size: 12px;
  font-weight: 900;
}

.badge.green {
  color: var(--green);
  background: #eafbf4;
}

.badge.amber {
  color: var(--gold);
  background: #fff6da;
}

.signal-panel h3 {
  max-width: 540px;
  font-size: 28px;
}

.metric-list,
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-list strong {
  color: var(--text);
}

.donut {
  display: grid;
  width: 150px;
  height: 150px;
  margin: 8px auto 18px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--blue) calc(var(--value) * 1%), #e7effa 0);
}

.donut span {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: inherit;
  background: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

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

.news-list li {
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
}

.news-list b {
  color: var(--gold);
}

.news-list span {
  flex: 1;
  color: #334155;
}

.news-list em {
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.workflow-grid,
.plan-grid,
.knowledge-grid {
  display: grid;
  gap: 16px;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-grid article,
.knowledge-grid article {
  padding: 20px;
}

.workflow-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
}

.workflow-grid p,
.knowledge-grid p,
.panel p,
.plan p {
  color: var(--muted);
  line-height: 1.6;
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  padding: 22px;
}

.plan.featured {
  border-color: #b9d7ff;
  background: linear-gradient(180deg, #eef6ff, #ffffff);
}

.plan h3 {
  margin-top: 18px;
  font-size: 26px;
}

.plan strong {
  display: block;
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1;
}

.plan .btn {
  width: 100%;
  margin-top: 14px;
}

.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 80px;
  padding: 56px;
  border: 1px solid rgba(248, 200, 75, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #eef6ff, #ffffff 52%, #fff6dc),
    #ffffff;
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 760px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .rebate-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .rebate-strip div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .rebate-strip .btn {
    width: 100%;
  }

  .hero,
  .calculator-shell,
  .dashboard-grid,
  .next-news-card,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-filters select {
    flex: 1;
  }

  .event-card {
    grid-template-columns: 88px 74px minmax(0, 1fr);
  }

  .event-numbers {
    grid-column: 1 / -1;
  }

  .workflow-grid,
  .plan-grid,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-card,
  .calc-result {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }

  .asset-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rebate-strip,
  .site-header,
  .section,
  .notice-band,
  .cta,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .rebate-strip {
    margin-top: 10px;
    padding: 12px;
  }

  .rebate-strip strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .rebate-strip span {
    font-size: 13px;
    line-height: 1.45;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .header-actions {
    width: auto;
  }

  .header-actions .btn {
    display: none;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    order: 4;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 6px;
    width: 100%;
    overflow: visible;
  }

  .site-header.menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.15;
  }

  .hero {
    gap: 22px;
    min-height: auto;
    padding-top: 38px;
  }

  h1,
  .calendar-hero h1,
  .calculator-page-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.96;
  }

  h2,
  .tool-section .section-heading h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.05;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .terminal,
  .calculator-shell {
    padding: 10px;
  }

  .price-strip,
  .signal-grid,
  .notice-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-band a {
    margin-left: 0;
  }

  .calc-form,
  .calc-form.two-col,
  .asset-list,
  .result-grid,
  .countdown-grid,
  .event-card,
  .event-numbers,
  .workflow-grid,
  .plan-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .calendar-hero {
    padding-top: 54px;
  }

  .next-news-card {
    padding: 18px;
  }

  .calendar-tabs,
  .calendar-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calendar-tab,
  .calendar-filters select {
    width: 100%;
    border-radius: 8px;
  }

  .event-card {
    gap: 10px;
  }

  .event-time {
    font-size: 22px;
  }

  .chip-row,
  .mode-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-chip,
  .mode-btn {
    width: 100%;
  }

  .cta {
    padding: 28px 18px;
  }
}
