/* ============================================================
   Quotex Trading - Pure HTML/CSS
   ============================================================ */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1C1F2D;
  color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.section--narrow { padding: 56px 0; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(19, 26, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(19, 26, 42, 0.97);
  border-bottom-color: #2D3243;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: #FFFFFF;
}
.brand-mark { color: #026FD3; }
.brand-tag { font-size: 10px; letter-spacing: 0.32em; color: #3F8CFF; font-weight: 500; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a.nav-link:hover { color: #026FD3; }
.main-nav a.nav-link.active { color: #026FD3; }
.main-nav a.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: #026FD3; border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.lang-trigger:hover { background: rgba(255,255,255,0.06); }
.lang-trigger .chev { width: 12px; height: 12px; transition: transform 0.2s ease; }
.lang-switch.is-open .lang-trigger .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 12px;
  padding: 6px;
  min-width: 180px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14px;
  transition: background 0.18s ease;
}
.lang-menu a:hover { background: #363B4D; }
.lang-menu .flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 22px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #363B4D;
  border-radius: 8px;
  font-size: 13px;
  padding: 11px 22px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary:hover { background: #2D3243; border-color: #026FD3; color: #FFFFFF; }
.btn-primary.is-cta {
  background: #0FAF59;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(15,175,89,0.28);
}
.btn-primary.is-cta:hover { background: #0E9A4F; border-color: transparent; }
.btn-success {
  background: #0FAF59;
  color: #FFFFFF;
  font-size: 15px;
  padding: 16px 30px;
  box-shadow: 0 6px 22px rgba(25,180,124,0.28);
}
.btn-success:hover { background: #0E9A4F; transform: translateY(-1px); }
.btn-light {
  background: #FFFFFF;
  color: #1C1F2D;
  font-size: 15px;
  padding: 16px 30px;
}
.btn-light:hover { background: #EFF2F7; transform: translateY(-1px); }
.btn-danger {
  background: #F44848; color: #FFFFFF; font-size: 15px; padding: 16px 30px;
}
.btn-danger:hover { background: #E03333; }
.btn-ghost {
  background: #363B4D; color: #FFFFFF; font-size: 15px; padding: 16px 30px;
}
.btn-ghost:hover { background: #3F4456; }
.btn-link {
  color: #026FD3; font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
}
.btn-link:hover { color: #3F8CFF; }
.btn-link .arrow { transition: transform 0.2s ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: #FFFFFF; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 78px; left: 0; right: 0; bottom: 0;
  background: #1C1F2D;
  z-index: 99;
  padding: 28px 24px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: flex; animation: slideDown 0.28s ease; }
@keyframes slideDown { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid #2D3243;
}
.mobile-nav a.cta { background: #026FD3; text-align: center; border-color: transparent; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 132px 0 92px;
  overflow: hidden;
  background: linear-gradient(180deg, #1C1F2D 0%, #252937 100%);
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(60,177,245,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; opacity: 0.45;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text { order: 1; }
.hero-platform { order: 2; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 .sub-mark {
  font-size: 14px;
  font-weight: 500;
  color: #3F8CFF;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  vertical-align: middle;
  display: inline-block;
  margin-left: 4px;
}
.hero p.lead {
  font-size: 18px;
  color: #A8B0BE;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  color: #8B95A8; font-size: 13px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #0FAF59; box-shadow: 0 0 12px #0FAF59; }

.platform-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #2D3243;
  background: #252937;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.platform-frame img { width: 100%; }

.partners {
  margin-top: 56px;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 36px 56px;
  opacity: 0.6;
}
.partners img { height: 28px; width: auto; filter: grayscale(1) brightness(2); }

/* ===== Section header ===== */
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
.section-head h2 .muted { color: #8B95A8; font-weight: 400; }
.section-head p { margin-top: 14px; color: #A8B0BE; font-size: 16px; }

/* ===== Features card ===== */
.feature-card-wrap {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 20px;
  padding: 48px 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.feature {
  text-align: center;
  padding: 12px 8px;
}
.feature .icon-wrap {
  height: 130px; display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: 22px;
}
.feature .icon-wrap img { max-height: 130px; width: auto; transition: transform 0.3s ease; }
.feature:hover .icon-wrap img { transform: translateY(-4px); }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: #A8B0BE; font-size: 14px; line-height: 1.65; }
.feature-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ===== Prognosis ===== */
.prognosis-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  align-items: stretch;
}
.chart-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 22px;
}
.chart-card .pair {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pair-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: #FFFFFF; font-size: 15px;
}
.pair-name .pair-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #026FD3, #0FAF59);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #FFFFFF;
}
.pair-price { display: inline-flex; align-items: center; gap: 12px; }
.price-val { font-weight: 800; font-size: 18px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.price-val.up { color: #0FAF59; }
.price-val.down { color: #F44848; }
.timeframes { display: flex; gap: 6px; }
.timeframes span {
  font-size: 11px; padding: 4px 8px;
  border-radius: 6px; background: #1C1F2D;
  color: #8B95A8; font-weight: 600;
}
.timeframes span.is-active { background: #026FD3; color: #FFFFFF; }

.prognosis-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column;
}
.prognosis-card .label { color: #8B95A8; text-align: center; font-size: 13px; }
.prognosis-card .title { color: #FFFFFF; text-align: center; font-weight: 700; margin: 4px 0 22px; }
.prognosis-card .btn { width: 100%; margin-bottom: 12px; }
.prognosis-result {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  gap: 10px;
}
.prognosis-result.is-correct { background: rgba(25,180,124,0.15); color: #0FAF59; }
.prognosis-result.is-wrong { background: rgba(230,101,101,0.15); color: #F44848; }

/* ===== Mobile App ===== */
.mobile-app-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 36px; align-items: center;
}
.mobile-app-grid img.phone { max-width: 460px; margin: 0 auto; }
.app-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.app-badges .btn { font-size: 14px; }

/* ===== Reviews ===== */
.reviews-wrap { position: relative; }
.review-slide {
  display: none;
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 20px;
  padding: 36px;
  min-height: 280px;
}
.review-slide.is-active { display: block; animation: fadeIn 0.45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.review-stars { display: flex; gap: 4px; margin-bottom: 18px; }
.review-stars svg { width: 22px; height: 22px; }
.review-text { color: #C5CCDA; font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-author img { width: 44px; height: 44px; border-radius: 50%; }
.review-author .name { font-weight: 700; color: #FFFFFF; }
.review-author .id { color: #8B95A8; font-size: 13px; }
.carousel-controls { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.carousel-controls.prev { left: -64px; }
.carousel-controls.next { right: -64px; }
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #363B4D; color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.carousel-btn:hover { background: #3F4456; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #3A4357; transition: all 0.25s ease;
}
.carousel-dots .dot.is-active { background: #026FD3; width: 28px; }

/* ===== Steps ===== */
.steps-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 22px;
}
.step-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 32px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.step-card:hover { background: #2D3243; transform: translateY(-4px); }
.step-card .step-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step-card .step-img img { max-height: 160px; }
.step-number {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: #026FD3; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px;
}
.step-card h3 { font-size: 20px; margin-bottom: 10px; }
.step-card p { color: #A8B0BE; font-size: 14px; margin-bottom: 18px; line-height: 1.65; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.faq-item {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.is-open { border-color: #026FD3; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600; font-size: 15px; color: #FFFFFF;
  transition: background 0.2s ease;
}
.faq-trigger:hover { background: #2D3243; }
.faq-trigger .chev {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: #8B95A8;
  transition: transform 0.25s ease, color 0.2s ease;
}
.faq-item.is-open .faq-trigger .chev { transform: rotate(180deg); color: #026FD3; }
.faq-trigger span.q-text { flex: 1; }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.faq-item.is-open .faq-body {
  max-height: 480px;
  padding: 0 22px 22px 56px;
}
.faq-body p { color: #A8B0BE; font-size: 14px; line-height: 1.7; }

/* ===== Markets table ===== */
.markets-table {
  width: 100%;
  border-collapse: collapse;
  background: #252937;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2D3243;
}
.markets-table thead th {
  background: #1C1F2D;
  color: #8B95A8;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #2D3243;
}
.markets-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #2D3243;
  font-size: 14px;
  color: #C5CCDA;
}
.markets-table tbody tr:last-child td { border-bottom: none; }
.markets-table tbody tr { transition: background 0.18s ease; }
.markets-table tbody tr:hover { background: #2D3243; }
.markets-table .sym { color: #FFFFFF; font-weight: 700; }
.markets-table .up { color: #0FAF59; font-weight: 600; }
.markets-table .down { color: #F44848; font-weight: 600; }
.markets-table .payout { color: #026FD3; font-weight: 700; }

/* ===== Category cards ===== */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.cat-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cat-card:hover { border-color: #026FD3; transform: translateY(-4px); }
.cat-card .cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(60,177,245,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: #026FD3;
  margin-bottom: 18px;
}
.cat-card h3 { font-size: 18px; margin-bottom: 8px; }
.cat-card p { color: #A8B0BE; font-size: 14px; line-height: 1.65; margin-bottom: 14px; }

/* ===== About innovation block ===== */
.about-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.about-card img { width: 100%; }
.about-card .ctas { display: flex; flex-direction: column; gap: 12px; }

/* ===== Stats strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 28px;
}
.stat .num { font-size: 28px; font-weight: 800; color: #026FD3; }
.stat .lbl { color: #A8B0BE; font-size: 13px; margin-top: 4px; }

/* ===== Promotion / bonus cards ===== */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.promo-card {
  background: linear-gradient(160deg, #252937 0%, #2D3243 100%);
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(60,177,245,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.promo-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(25,180,124,0.15);
  color: #0FAF59;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.promo-card h3 { font-size: 22px; margin-bottom: 10px; }
.promo-card p { color: #A8B0BE; font-size: 14px; line-height: 1.65; margin-bottom: 18px; }
.promo-card ul { margin-bottom: 22px; }
.promo-card ul li {
  color: #C5CCDA;
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
}
.promo-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319B47C' stroke-width='3'><path d='M5 12l4 4L19 6'/></svg>") center/contain no-repeat;
}

/* ===== Tournament card ===== */
.tour-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.tour-prize {
  text-align: center;
  padding: 26px;
  border-radius: 14px;
  background: rgba(25,180,124,0.1);
  border: 1px dashed rgba(25,180,124,0.4);
}
.tour-prize .amount { font-size: 32px; font-weight: 800; color: #0FAF59; }
.tour-prize .lbl { color: #8B95A8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.tour-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tour-meta .item {
  background: #1C1F2D;
  padding: 12px;
  border-radius: 10px;
}
.tour-meta .item .k { color: #8B95A8; font-size: 12px; }
.tour-meta .item .v { color: #FFFFFF; font-weight: 700; font-size: 15px; margin-top: 4px; }

/* ===== Lesson card ===== */
.lesson-card {
  background: #252937;
  border: 1px solid #2D3243;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.lesson-card:hover { transform: translateY(-4px); border-color: #026FD3; }
.lesson-card .thumb {
  height: 160px;
  background: linear-gradient(135deg, #252937 0%, #2D3243 100%);
  display: flex; align-items: center; justify-content: center;
  color: #026FD3;
  position: relative;
}
.lesson-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.18) 100%);
}
.lesson-card .body { padding: 22px; }
.lesson-card .level {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(60,177,245,0.12);
  color: #026FD3;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 12px;
}
.lesson-card h3 { font-size: 16px; margin-bottom: 8px; }
.lesson-card p { color: #A8B0BE; font-size: 13px; line-height: 1.6; }

/* ===== Footer ===== */
.site-footer {
  background: #161929;
  border-top: 1px solid #2D3243;
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2D3243;
}
.footer-col h4 {
  color: #FFFFFF; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #A8B0BE; font-size: 14px; transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: #026FD3; }
.footer-col p { color: #A8B0BE; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: space-between;
  color: #5A6478; font-size: 12px;
}
.footer-risk {
  margin-top: 22px;
  padding: 18px;
  background: rgba(60,177,245,0.06);
  border: 1px solid #2D3243;
  border-radius: 12px;
  color: #8B95A8;
  font-size: 12px;
  line-height: 1.7;
}

/* ===== Back to top ===== */
.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #252937;
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  z-index: 80;
}
.back-top:hover { background: #363B4D; }
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Sub page banner ===== */
.page-banner {
  padding: 132px 0 56px;
  background: linear-gradient(180deg, #1C1F2D 0%, #252937 100%);
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(60,177,245,0.18) 0%, transparent 60%);
}
.page-banner .container { position: relative; }
.page-banner .crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  color: #8B95A8; font-size: 13px; margin-bottom: 14px;
}
.page-banner .crumbs a { color: #026FD3; }
.page-banner h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 14px;
}
.page-banner p { color: #A8B0BE; font-size: 16px; max-width: 720px; }

/* ===== Helper utilities ===== */
.text-muted { color: #8B95A8; font-weight: 400; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ===== Responsive ===== */
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero-text { order: 1; }
  .hero-platform { order: 2; }
  .mobile-app-grid { grid-template-columns: 1fr 1fr; }
  .prognosis-grid { grid-template-columns: 2fr 1fr; }
  .about-card { grid-template-columns: 1.4fr 1fr; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .carousel-controls { display: block; }
  .tour-card { grid-template-columns: 1fr 2fr; align-items: center; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .header-actions .btn-primary.hide-mobile { display: none; }
  .header-actions .lang-switch.hide-mobile { display: none; }
}

/* ===== Brand logo image ===== */
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.site-footer .brand-logo { height: 32px; opacity: 0.95; }
@media (max-width: 768px) {
  .brand-logo { height: 30px; }
}

/* ===== Auth buttons (Log in / Sign up) — matches dark+green pair ===== */
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  min-height: 42px;
  border-radius: 10px;
  text-transform: none;
  border: 0;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-login {
  background: #2A2E3F;
  color: #FFFFFF;
}
.btn-login:hover { background: #353A4D; transform: translateY(-1px); }
.btn-signup {
  background: #16C260;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(22,194,96,0.28);
}
.btn-signup:hover { background: #13B057; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(22,194,96,0.36); }
.header-actions .btn-auth + .btn-auth { margin-left: 4px; }

/* ===== Scroll-shrink header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 31, 45, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.site-header .header-inner { transition: padding 0.25s ease; }
.site-header .brand-logo { transition: height 0.25s ease; }
.site-header .btn-auth { transition: padding 0.25s ease, min-height 0.25s ease, font-size 0.25s ease; }

.site-header.is-scrolled {
  background: rgba(20, 23, 34, 0.96);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.site-header.is-scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled .brand-logo { height: 28px; }
.site-header.is-scrolled .btn-auth {
  padding: 7px 16px;
  min-height: 36px;
  font-size: 13px;
}

/* ===== Sticky mobile sign-up CTA (mobile only) ===== */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, #16C260 0%, #13B057 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(22, 194, 96, 0.42), 0 2px 8px rgba(0,0,0,0.18);
  text-decoration: none;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-cta:active { transform: translateY(2px); }
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  /* leave room above mobile-cta so content isn't covered */
  body.has-mobile-cta main { padding-bottom: 88px; }
}
