/* Content migration styling; original wording and heading hierarchy are retained. */
.desktop-nav { gap: 19px; }
.desktop-nav a { font-size: 11px; }
.header-right { gap: 12px; }
.language-pill { font-size: 10px; }
.language-switch, .mobile-language-switch { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid #e0e6ef; background: #f4f6fb; border-radius: 10px; }
.language-switch a, .mobile-language-switch a { display: inline-flex; justify-content: center; align-items: center; min-width: 34px; min-height: 30px; padding: 6px 9px; border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #667389; transition: background .18s,color .18s; }
.language-switch a[aria-current="page"], .mobile-language-switch a[aria-current="page"] { background: #26334e; color: #fff; box-shadow: 0 3px 8px #1b34501a; }
.language-switch a:not([aria-current]):hover, .mobile-language-switch a:not([aria-current]):hover { background: #e3e9f1; color: #273a56; }
.mobile-language-switch { margin-top: 12px; align-self: flex-start; }
.mobile-menu .mobile-language-switch a { padding: 7px 16px; border: 0; font-size: 12px; }
.source-hero-title {
  max-width: 660px;
  font-size: clamp(38px, 4.15vw, 60px) !important;
  line-height: 1.105 !important;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.hero-copy { position: relative; z-index: 5; }
.hero .hero-layout { min-height: 750px; }
.hero-subtitle { max-width: 575px; }
.hero-benefits { flex-wrap: wrap; }
.hero-benefits span { white-space: nowrap; }
.hero-footer a { text-decoration: none; }
.source-announce {
  padding: 24px 0;
  background: linear-gradient(90deg, #e8edff, #f2f2ff 55%, #f8f9ff);
  border-bottom: 1px solid #dfe5fa;
}
.source-announce p {
  max-width: 1160px;
  margin: 0;
  color: #35466d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}
.source-announce a { color: #4359d5; text-decoration-color: #b2bcf2; text-underline-offset: 3px; }
.journey-heading {
  margin: 20px 0 24px;
  font-size: clamp(35px, 4.1vw, 57px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.055em;
  color: #f8faff;
}
.journey-intro .cta-main { margin-top: 20px; }
.journey-step p { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.7; }
.journey-step p a { color: #f2f7ff; text-decoration-color: #7697eb; }
.source-section-heading {
  margin: 15px 0 25px;
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -.06em;
  color: #172346;
}
.source-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-features .feature { min-height: 338px; }
.source-features .feature-primary { min-height: 338px; }
.source-feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 30px 0 20px;
  border-radius: 12px;
  background: #e8ecff;
  color: #566add;
  font: 25px/1 'Space Grotesk', sans-serif;
}
.source-features .feature-primary .source-feature-icon { background: rgba(255,255,255,.15); color: #c2ffe9; }
.source-features .feature h4 {
  margin: 0 0 15px;
  color: #172345;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.source-features .feature-primary h4 { color: #fff; }
.source-features .feature p { font-size: 13px; line-height: 1.7; }
.source-auth-section { padding: 70px 0 105px; background: #f6f8fc; }
.source-auth-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: auto;
}
.source-auth-card > div {
  padding: 35px 38px;
  border: 1px solid #e5eafa;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(34, 50, 94, .045);
}
.source-auth-card strong { font-size: 23px; color: #172445; }
.source-auth-card p { color: #687690; font-size: 12px; line-height: 1.8; }
.fake-field {
  margin: 12px 0;
  padding: 17px 20px;
  border: 1px solid #e2e7f3;
  border-radius: 12px;
  background: #f9faff;
  font-size: 12px;
  color: #7c8aa7;
}
.source-auth-action {
  display: inline-flex;
  padding: 14px 23px;
  margin-top: 8px;
  background: #ff6949;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  border-radius: 11px;
}
.source-guide { padding: 110px 0 120px; background: #fff; }
.source-guide-lead {
  max-width: 990px;
  margin: 0 auto 16px;
}
.source-seo-content {
  max-width: 990px;
  margin: auto;
  color: #4c5973;
}
.source-seo-content h2 {
  position: relative;
  margin: 74px 0 28px;
  padding-top: 38px;
  border-top: 1px solid #e2e8f5;
  color: #172445;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: -.052em;
  scroll-margin-top: 110px;
}
.source-seo-content h2::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  height: 3px;
  width: 48px;
  border-radius: 4px;
  background: linear-gradient(90deg, #5867dc, #ec7767);
}
.source-seo-content h3 {
  margin: 31px 0 12px;
  color: #27385b;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -.035em;
}
.source-seo-content p,
.source-seo-content li {
  font-size: 15px;
  line-height: 1.93;
  font-weight: 520;
  color: #566580;
}
.source-seo-content p { margin: 0 0 18px; }
.source-seo-content ul,
.source-seo-content ol {
  padding-left: 26px;
  margin: 14px 0 24px;
}
.source-seo-content li { padding-left: 7px; margin: 4px 0; }
.source-seo-content a { color: #465dd8; text-decoration: underline; text-underline-offset: 3px; }
.source-seo-content .seo-rule { border: 0; border-top: 1px solid #e8edf6; margin: 48px 0; }
.source-risk {
  padding: 74px 0 86px;
  background: #f3f5fa;
  color: #64718b;
}
.source-risk h3 { margin: 0 0 22px; font-size: 23px; color: #1a294e; }
.source-risk p { margin: 0 0 14px; font-size: 12px; line-height: 1.9; }
.source-legal {
  margin-top: 35px;
  border-top: 1px solid #dae1ee;
  padding-top: 25px;
}
.independent-disclosure {
  margin-top: 28px;
  padding: 18px 22px;
  background: #e7ecf8;
  border-left: 3px solid #6377da;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.9;
  color: #475979;
}
.source-footer-links {
  display: flex;
  gap: 12px 25px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e3e8f4;
}
.source-footer-links a { color: #65738d; font-size: 11px; font-weight: 700; text-decoration: none; }
@media(max-width:1200px){
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: 9px; }
}
@media(max-width:1000px){
  .source-features { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-features .feature-primary { grid-column: auto; }
}
@media(max-width:760px){
  .hero .hero-layout { min-height: 0; }
  .source-hero-title { font-size: clamp(37px, 8.6vw, 58px) !important; line-height: 1.14 !important; }
  .hero-subtitle { font-size: 12px; }
  .source-features { grid-template-columns: 1fr; }
  .source-features .feature { min-height: 270px; }
  .source-features .feature-primary { min-height: 270px; }
  .source-auth-card { grid-template-columns: 1fr; gap: 18px; }
  .source-auth-card > div { padding: 26px; }
  .source-guide { padding: 68px 0 80px; }
  .source-seo-content h2 { font-size: 30px; margin-top: 53px; padding-top: 27px; }
  .source-seo-content h3 { font-size: 19px; }
  .source-seo-content p,.source-seo-content li { font-size: 13px; line-height: 1.85; }
  .source-announce p { font-size: 11px; }
  .journey-heading { font-size: 38px; }
  .source-footer-links { gap: 14px; }
  .source-footer-links a { font-size: 10px; }
}
@media(max-width:430px){
  .source-hero-title { font-size: clamp(34px, 8.8vw, 42px) !important; }
  .hero-benefits span { font-size: 8px; }
  .source-feature-icon { margin-top: 16px; }
  .source-features .feature { min-height: 250px; }
  .source-seo-content h2 { font-size: 27px; }
}

/* Mobile-first hero correction: keep the full heading and chart inside the viewport.
   Also keep the RU/EN switch visible beside the menu button. */
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .header-layout { gap: 9px; min-width: 0; }
  .brand { min-width: 0; gap: 7px; }
  .brand-icon { flex: 0 0 37px; width: 37px; height: 37px; }
  .brand-label { font-size: 20px; }
  .brand-label small { font-size: 7px; letter-spacing: .15em; }
  .header-right { display: flex; flex: 0 0 auto; align-items: center; gap: 0; margin-left: auto; }
  .header-right .cta-header { display: none; }
  .header-right .language-switch { display: inline-flex; padding: 3px; border-radius: 9px; }
  .header-right .language-switch a { min-width: 29px; min-height: 31px; padding: 5px 7px; font-size: 10px; }
  .menu-toggle { flex: 0 0 39px; width: 39px; height: 39px; margin-left: 0; padding: 9px; }
  .menu-toggle span { width: 21px; }
  .mobile-menu .mobile-language-switch { display: none; }

  .hero .hero-layout { grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
  .hero-copy, .hero-showcase { width: 100%; min-width: 0; max-width: 100%; }
  .hero-copy { padding-bottom: 0; }
  .source-hero-title { max-width: 100%; overflow-wrap: break-word; hyphens: auto; text-wrap: pretty; }
  .hero-subtitle { max-width: 100%; }
  .hero-showcase { display: block; height: auto; min-height: 0; margin: 12px 0 0; padding: 15px 0 30px; }
  .terminal { display: block; width: 100%; max-width: 100%; margin: 0; transform: none; }
  .terminal-body { min-width: 0; }
  .chart-toolbar { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .chart-toolbar::-webkit-scrollbar { display: none; }
  .chart-wrap { width: 100%; max-width: 100%; height: clamp(208px, 38vw, 245px); margin: 7px 0 0; }
  .chart-top-values { left: 9px; right: 12px; gap: 5px; overflow: hidden; }
  #chart-ohlc { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #chart-ma-label { flex: 0 0 auto; }
  .showcase-halo { left: 0; width: 100%; }
  .showcase-ring, .hero-shape { display: none; }
}
@media (max-width: 430px) {
  .source-hero-title { font-size: clamp(29px, 7.8vw, 34px) !important; line-height: 1.2 !important; letter-spacing: -.045em; }
  .hero h1 { margin: 17px 0 18px; }
  .hero-subtitle { font-size: 12px; line-height: 1.78; }
  .hero-showcase { margin-top: 10px; padding-top: 12px; }
  .terminal { border-radius: 13px; }
  .terminal-topbar { padding-inline: 10px; }
  .terminal-body { padding: 10px; }
  .chart-toolbar { gap: 0; }
  .timeframe-group { gap: 0; }
  .timeframe-group button, .indicator-toggle { padding: 6px 5px; font-size: 7px; }
  .chart-wrap { height: 222px; margin-inline: 0; }
  .terminal-bottom { flex-wrap: wrap; gap: 5px 9px; }
  .terminal-bottom span:last-child { max-width: none; }
}
@media (max-width: 360px) {
  .header-layout { gap: 7px; }
  .brand-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 23px; }
  .brand-label { font-size: 18px; }
  .brand-label small { font-size: 6px; letter-spacing: .11em; }
  .header-right .language-switch a { min-width: 27px; min-height: 29px; padding: 4px 6px; }
  .menu-toggle { flex-basis: 36px; width: 36px; height: 36px; }
  .source-hero-title { font-size: 29px !important; }
  .chart-wrap { height: 205px; }
  .terminal-brand small { display: none; }
  .terminal-bottom { font-size: 7px; }
}
