/* ============================================================
   RS Traders — style.css
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --surface: #ffffff;
  --border: #e3e8f2;
  --ink: #0e1a3a;
  --muted: #5b6478;
  --blue: #155eef;
  --blue-deep: #0b3fae;
  --blue-soft: #eaf1ff;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius-lg: 22px;
  --radius-md: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---- Header / Nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1180px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.logo-text { display: flex; align-items: center; line-height: 1.15; }
.logo-name {
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.logo-acad {
  font-family: 'Space Grotesk'; font-weight: 600; font-size: 0.6rem;
  color: var(--blue); letter-spacing: 0.14em; text-transform: uppercase;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #d6e6ff 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(21,94,239,0.12);
}
.nav-links { display: flex; gap: 34px; font-size: 0.92rem; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none; background: none; border: none; color: var(--ink);
  font-size: 1.4rem; cursor: pointer; padding: 6px; line-height: 1;
}

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px 24px;
  gap: 6px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.05rem; color: var(--ink); padding: 10px 0;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile-cta {
  display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  font-family: 'Inter'; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(21,94,239,0.28);
  background: var(--blue-deep);
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---- Hero ---- */
.hero {
  position: relative; z-index: 1;
  padding: 76px 32px 70px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(234,241,255,0.95) 0%, rgba(255,255,255,1) 46%, rgba(240,253,244,0.72) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,94,239,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,94,239,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 54px;
  align-items: center;
}
.hero-copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-family: 'Space Grotesk'; font-weight: 600;
  font-size: 0.92rem; padding: 7px 16px; border-radius: 100px;
  background: var(--blue-soft); margin-bottom: 24px;
}
.brand-tagline .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { font-size: 3.55rem; line-height: 1.08; margin-bottom: 20px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-visual {
  position: relative;
  min-height: 350px;
}
.market-orbit {
  position: absolute;
  border: 1px solid rgba(21,94,239,0.14);
  border-radius: 50%;
  animation: slow-spin 18s linear infinite;
}
.market-orbit-one {
  width: 310px;
  height: 310px;
  right: 74px;
  top: 10px;
}
.market-orbit-two {
  width: 210px;
  height: 210px;
  right: 20px;
  top: 82px;
  border-color: rgba(22,163,74,0.16);
  animation-duration: 24s;
  animation-direction: reverse;
}
.market-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  top: 20%;
  right: 8%;
  box-shadow: 0 0 0 8px rgba(21,94,239,0.1);
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.visual-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(227,232,242,0.95);
  box-shadow: 0 24px 60px -32px rgba(14,26,58,0.45);
  backdrop-filter: blur(16px);
}
.visual-card-main {
  inset: 24px 14px 24px 46px;
  border-radius: 22px;
  padding: 18px;
  animation: float-panel 5.5s ease-in-out infinite;
}
@keyframes float-panel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.terminal-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.terminal-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}
.terminal-top span:nth-child(1) { background: #f87171; }
.terminal-top span:nth-child(2) { background: #fbbf24; }
.terminal-top span:nth-child(3) { background: #22c55e; }
.visual-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.visual-metrics div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.visual-metrics span,
.visual-card-small span {
  display: block;
  color: var(--muted);
  font-family: 'IBM Plex Mono';
  font-size: 0.72rem;
  margin-bottom: 5px;
}
.visual-metrics strong,
.visual-card-small strong {
  display: block;
  color: var(--ink);
  font-family: 'Space Grotesk';
  font-size: 1.05rem;
}
.visual-metrics em {
  display: block;
  margin-top: 5px;
  font-family: 'IBM Plex Mono';
  font-size: 0.76rem;
  font-style: normal;
}
.visual-metrics .up { color: var(--green); }
.visual-metrics .down { color: var(--red); }
.hero-chart {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(14,26,58,0.06);
}
.grid-line-a { top: 27%; }
.grid-line-b { top: 52%; }
.grid-line-c { top: 76%; }
.hero-chart svg {
  position: absolute;
  inset: 18px 16px 18px;
  width: calc(100% - 32px);
  height: calc(100% - 36px);
}
.hero-chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: hero-line-draw 2.8s ease-out forwards;
}
.hero-chart-fill {
  fill: rgba(21,94,239,0.11);
  opacity: 0;
  animation: chart-fill-in 0.9s ease-out 1.4s forwards;
}
@keyframes hero-line-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-fill-in { to { opacity: 1; } }
.hero-candles {
  position: absolute;
  right: 22px;
  bottom: 20px;
  height: 96px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.hero-candles i {
  position: relative;
  display: block;
  width: 11px;
  height: var(--h);
  min-height: 28px;
  border-radius: 3px;
  background: var(--green);
  color: var(--green);
  transform-origin: bottom;
  animation: candle-rise 0.75s ease-out var(--d) both;
}
.hero-candles i::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -12px;
  bottom: -12px;
  width: 1px;
  background: currentColor;
  opacity: 0.55;
}
.hero-candles i.red {
  background: var(--red);
  color: var(--red);
}
@keyframes candle-rise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.visual-card-small {
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 150px;
  animation: float-panel 6s ease-in-out infinite;
}
.visual-card-small-left {
  left: 0;
  bottom: 10px;
}
.visual-card-small-right {
  right: 0;
  top: 0;
  animation-delay: -2s;
}

/* ---- Market Snapshot ---- */
.snapshot-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  position: relative; z-index: 1;
}
.snapshot-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 20px;
  box-shadow: 0 20px 45px -30px rgba(14,26,58,0.25);
}
.snapshot-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.snapshot-title { font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.1rem; }
.snapshot-subtitle { color: var(--muted); font-size: 0.82rem; margin-top: 3px; font-family: 'IBM Plex Mono'; }
.market-edu-badge {
  font-size: 0.72rem; font-weight: 600; padding: 4px 12px;
  border-radius: 100px; background: var(--blue-soft); color: var(--blue);
  white-space: nowrap;
}

/* Market instruments grid (3 cards) */
.market-instruments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.market-instrument-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px 20px;
}
.market-symbol { font-family: 'Space Grotesk'; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.market-price { font-family: 'IBM Plex Mono'; font-size: 1.45rem; color: var(--ink); font-weight: 500; }
.market-change { font-family: 'IBM Plex Mono'; font-size: 0.82rem; margin-top: 5px; }
.market-change.up   { color: var(--green); }
.market-change.down { color: var(--red); }
.market-change.flat { color: var(--muted); }

/* Market status messages */
.market-status {
  font-family: 'IBM Plex Mono'; font-size: 0.85rem;
  color: var(--muted); padding: 20px 0; margin-bottom: 16px;
}
.market-status--error { color: #92400e; }
.market-data-note {
  font-size: 0.75rem; color: var(--muted); margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* Chart section label */
.chart-section-label {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.chart-section-label span:first-child { font-family: 'Space Grotesk'; font-weight: 600; font-size: 0.9rem; }
.chart-section-sub { font-size: 0.78rem; color: var(--muted); }

/* Candlestick SVG animations */
svg#candles { display: block; width: 100%; height: auto; }
.candle {
  transform-origin: bottom;
  animation: grow-candle 0.6s ease-out forwards;
  opacity: 0;
}
@keyframes grow-candle {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.trend-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 2.2s ease-out 0.8s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.glow-dot { opacity: 0; animation: fade-in-dot 0.4s ease-out 2.9s forwards; }
@keyframes fade-in-dot { to { opacity: 1; } }

/* ---- Ticker Strip ---- */
.ticker-strip {
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden; padding: 14px 0;
  min-height: 48px; display: flex; align-items: center;
}
.ticker-track {
  display: flex; width: max-content;
  animation: scroll-left 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track--static {
  animation: none;
  width: 100%; justify-content: center;
}
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 28px; border-right: 1px solid var(--border);
  font-family: 'IBM Plex Mono'; font-size: 0.88rem;
  white-space: nowrap; color: var(--ink);
}
.ticker-item .name { color: var(--muted); }
.ticker-item .up   { color: var(--green); }
.ticker-item .down { color: var(--red); }

/* ---- Section shell ---- */
section { position: relative; z-index: 1; padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head .kicker { color: var(--blue); font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; display: block; }
.section-head h2 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---- About: value strip ---- */
.value-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 0;
}
.value-item {
  padding: 26px 22px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface);
}
.value-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value-item strong { display: block; font-family: 'Space Grotesk'; font-size: 1rem; margin-bottom: 6px; }
.value-item span { color: var(--muted); font-size: 0.88rem; }

/* ---- Courses ---- */
.course-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.course-side { position: sticky; top: 100px; }
.course-side .kicker { color: var(--blue); font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 12px; }
.course-side h2 { font-size: 2rem; margin-bottom: 14px; }
.course-side p { color: var(--muted); margin-bottom: 24px; }
.course-list { display: flex; flex-direction: column; }
.course-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 8px; border-bottom: 1px solid var(--border);
  transition: padding-left .2s ease, background .2s ease;
}
.course-row:first-child { border-top: 1px solid var(--border); }
.course-row:hover { padding-left: 16px; background: var(--bg-soft); }
.course-row .left { flex: 1; }
.course-level {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px; color: var(--blue);
  background: var(--blue-soft); margin-bottom: 8px;
}
.course-row h3 { font-size: 1.08rem; margin-bottom: 5px; }
.course-row p { color: var(--muted); font-size: 0.88rem; max-width: 400px; }
.course-meta { text-align: right; flex-shrink: 0; }
.course-meta .price { display: block; font-family: 'IBM Plex Mono'; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.course-meta .dur  { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.course-loading { padding: 40px 0; color: var(--muted); font-size: 0.92rem; font-family: 'IBM Plex Mono'; }
.course-empty { padding: 40px 0; color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--border); }

/* ---- Testimonials ---- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.test-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.test-grid .test-card:nth-child(2) { transform: translateY(-18px); }
.quote-mark { font-family: 'Space Grotesk'; font-size: 2.2rem; color: var(--blue); line-height: 1; }
.test-card p.quote { font-size: 0.98rem; color: var(--ink); }
.test-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.test-who strong { display: block; font-size: 0.92rem; }
.test-who span { color: var(--muted); font-size: 0.8rem; }

/* ---- Contact Section ---- */
.contact-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-soft); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-body strong { display: block; font-size: 0.9rem; font-family: 'Space Grotesk'; margin-bottom: 3px; }
.contact-item-body span { color: var(--muted); font-size: 0.88rem; }
.contact-item-body a { color: var(--muted); font-size: 0.88rem; }
.contact-item-body a:hover { color: var(--blue); }
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Inter'; font-size: 0.92rem; color: var(--ink);
  background: var(--bg); transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,94,239,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid { border-color: var(--red); }
.form-error-inline { font-size: 0.78rem; color: var(--red); min-height: 1.1em; }
.form-success-msg {
  background: var(--green-soft); border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 18px 22px; margin-top: 16px;
  color: #15803d; font-size: 0.92rem; line-height: 1.5;
}
.form-success-msg strong { font-family: 'Space Grotesk'; display: block; margin-bottom: 4px; }
.form-error-msg {
  background: var(--red-soft); border: 1px solid #fecaca;
  border-radius: 10px; padding: 14px 18px; margin-top: 14px;
  color: var(--red); font-size: 0.88rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  position: relative; z-index: 1;
  background: var(--bg-soft);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-col h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; color: var(--ink); opacity: 0.85; font-size: 0.92rem; margin-bottom: 10px; transition: opacity .2s, color .2s; }
.foot-col a:hover { opacity: 1; color: var(--blue); }
.foot-col .foot-tagline { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.foot-col .foot-desc { color: var(--muted); font-size: 0.88rem; max-width: 280px; line-height: 1.6; }
.risk-note {
  max-width: 740px; color: var(--muted); font-size: 0.78rem;
  line-height: 1.7; margin-bottom: 20px;
  padding: 16px 20px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.82rem; flex-wrap: wrap; gap: 12px;
}
.admin-link {
  opacity: 0.35; font-size: 0.75rem; color: var(--muted);
  transition: opacity .2s;
}
.admin-link:hover { opacity: 0.9; color: var(--blue); }

/* ---- Scroll Reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in  { opacity: 1; transform: none; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }

  .hero { padding: 64px 24px 58px; }
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { text-align: center; align-items: center; }
  .hero h1 { font-size: 2.55rem; }
  .hero-visual { min-height: 320px; width: min(100%, 560px); margin: 0 auto; }

  .market-instruments-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .market-instrument-card { padding: 14px 14px; }
  .market-price { font-size: 1.15rem; }

  .value-strip { grid-template-columns: repeat(2, 1fr); }

  .course-layout { grid-template-columns: 1fr; gap: 32px; }
  .course-side { position: static; }

  .test-grid { grid-template-columns: 1fr 1fr; }
  .test-grid .test-card:nth-child(2) { transform: none; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-mobile { padding: 16px 20px 20px; }
  .wrap { padding: 0 20px; }

  .hero { padding: 56px 20px 44px; }
  .hero h1 { font-size: 1.95rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-visual { min-height: 270px; }
  .visual-card-main { inset: 10px 0 24px; padding: 14px; border-radius: 18px; }
  .market-orbit-one { width: 230px; height: 230px; right: 44px; top: 24px; }
  .market-orbit-two { width: 160px; height: 160px; right: 0; top: 78px; }
  .visual-card-small { display: none; }
  .visual-metrics { gap: 8px; }
  .visual-metrics div { padding: 11px; }
  .visual-metrics strong { font-size: 0.92rem; }
  .hero-chart { height: 150px; }
  .hero-candles { right: 16px; height: 76px; gap: 7px; }
  .hero-candles i { width: 9px; }

  .snapshot-section { padding: 40px 0; }
  .snapshot-card { padding: 20px 16px 16px; }
  .market-instruments-grid { grid-template-columns: 1fr; }

  section { padding: 64px 0; }
  .section-head h2 { font-size: 1.75rem; }

  .value-strip { grid-template-columns: 1fr; }

  .course-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .course-meta { text-align: left; }

  .test-grid { grid-template-columns: 1fr; }
  .test-grid .test-card:nth-child(2) { transform: none; }

  .form-row { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
