:root {
  --bg: #003a3e;
  --bg-header-start: #002a2d;
  --bg-header-end: #004A4F;
  --bg-footer: #002a2d;
  --bg-card: #004A4F;
  --bg-surf: #0b5a60;
  --bg-surf2: #2F8F9C;
  --accent: #E64A48;
  --accent-hover: #cf3a38;
  --accent2: #f06a68;
  --brand: #2F8F9C;
  --brand-dark: #004A4F;
  --brand-light: #4fb3c1;
  --danger: #E64A48;
  --text: #ffffff;
  --text2: #cde4e6;
  --text3: #8fb5b9;
  --text-dark: #002a2d;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(230, 74, 72, 0.35);
  --gradient-cta: linear-gradient(135deg, #E64A48 0%, #cf3a38 100%);
  --gradient-header: linear-gradient(180deg, #002a2d 0%, #004A4F 100%);
  --gradient-brand: linear-gradient(135deg, #004A4F 0%, #2F8F9C 100%);
  --radius: 12px;
  --radius-btn: 999px;
  --header-h: 70px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (max-width: 1023px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0; padding-top: var(--header-h);
  font-family: var(--font); font-size: 16.5px; line-height: 1.7;
  background: var(--bg); color: var(--text2);
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); }
a:hover { color: #fff; }
p, li, td, th, h1, h2, h3, a { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); margin: 0 0 18px; text-align: center; }
h2 { font-size: clamp(1.35rem, 4.2vw, 2rem); margin: 0 0 16px; }
h3 { font-size: clamp(1.12rem, 3.2vw, 1.4rem); margin: 28px 0 12px; }
p { margin: 0 0 14px; }
strong { color: var(--text); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--bg-header-start);
  border-bottom: 2px solid var(--brand);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1280px; margin: 0 auto; padding: 0 16px;
}
.logo-link { flex-shrink: 0; display: block; }
.logo-img { height: 40px; width: auto; display: block; }
.main-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-light); border-bottom-color: var(--brand-light); }
.header-btns { display: flex; gap: 8px; flex-shrink: 0; }

.play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-btn);
  font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s; line-height: 1.2;
}
.reg-btn { background: var(--gradient-cta); color: #fff; box-shadow: var(--shadow-glow); border: 2px solid transparent; }
.reg-btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.login-btn { background: transparent; color: var(--brand-light); border: 2px solid var(--brand-light); }
.login-btn:hover { background: var(--brand-light); color: var(--text-dark); }
.play-btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.burger-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border-strong);
  background: transparent; border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger-btn span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--header-h); right: 0; width: 100%; max-width: 320px;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto; z-index: 999;
  background: var(--bg-header-end); border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: translateX(105%); transition: transform .28s ease; box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-menu a { display: block; padding: 14px 22px; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { background: var(--bg-surf); }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger-btn { display: inline-flex; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo-img { height: 36px; }
  .header-btns { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 6px; }
}
@media (max-width: 480px) { .header-btns .play-btn { padding: 8px 12px; font-size: 13px; } }
@media (max-width: 360px) {
  .logo-img { height: 28px; }
  .header-btns { gap: 4px; }
  .header-btns .play-btn { padding: 6px 8px; font-size: 12px; }
  .header-inner { gap: 4px; }
}

/* ===== Hero ===== */
.hero { padding: 32px 0 8px; }
.hero-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-card img { border-radius: calc(var(--radius) - 4px); width: 100%; }
.hero-lead { text-align: center; max-width: 820px; margin: 0 auto; font-size: 1.06rem; }
.hero-btns { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px auto; width: 100%; text-align: center; }
.hero-btns .play-btn { padding: 14px 30px; font-size: 16px; }
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .play-btn { width: 100%; max-width: 320px; white-space: normal; }
  .hero-card { padding: 14px; }
}

/* ===== Steps widget ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: st; }
.steps li { background: var(--bg-surf); border-radius: var(--radius); padding: 18px 16px 16px; display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.steps li::before {
  counter-increment: st; content: counter(st); flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-cta); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: var(--shadow-glow);
}
.steps strong { display: block; }
.steps-title { color: var(--text); font-weight: 800; text-align: center; margin: 18px 0 10px; font-size: 1.1rem; }

/* ===== Sections ===== */
.section { padding: 44px 0; }
.section:nth-of-type(even) { background: rgba(0, 0, 0, 0.14); }
.section .sec-img { border-radius: var(--radius); margin: 0 0 20px; box-shadow: var(--shadow); width: 100%; }
.card {
  background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 18px 18px; margin: 18px 0; min-width: 0;
}
.card-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid li { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card-grid li strong { display: block; margin-bottom: 4px; }
ol.num, ul.dot { padding-left: 22px; margin: 14px 0 18px; }
ol.num li, ul.dot li { margin: 0 0 8px; }
ol.num li::marker { color: var(--accent2); font-weight: 800; }
ul.dot li::marker { color: var(--brand-light); }

/* ===== Tables ===== */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius); }
.table-wrapper table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--bg-card); }
.table-wrapper td, .table-wrapper th { white-space: nowrap; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table-wrapper th { background: var(--brand); color: #fff; font-weight: 800; }
.table-wrapper tr:last-child td { border-bottom: 0; }
.feat-table td:first-child { color: var(--text); font-weight: 700; }
.feat-table .ico { display: inline-flex; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--bg-surf2); align-items: center; justify-content: center; font-size: 15px; vertical-align: middle; }

/* ===== FAQ ===== */
.faq details { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius); margin: 0 0 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; color: var(--text); font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent2); }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 18px 14px; }

/* ===== Final CTA ===== */
.final-cta { padding: 44px 0 56px; }
.cta-box { background: var(--gradient-brand); border-radius: var(--radius); padding: 34px 22px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { max-width: 720px; margin: 0 auto; color: #eaf6f7; }
.cta-box .hero-btns { margin-bottom: 0; }

/* ===== 404 ===== */
.e404 { text-align: center; padding: 70px 0 80px; }
.e404 .big { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; color: var(--accent); margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-footer); padding: 44px 0 26px; border-top: 2px solid var(--brand); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h3 { margin: 0 0 12px; font-size: 1.05rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--text2); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.badge18 { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 18px; color: var(--text3); font-size: 14px; }

/* ===== Back to top ===== */
.to-top {
  position: fixed; right: 16px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-cta); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 900; font-size: 20px; font-weight: 800;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ===== Responsive ===== */
@media (min-width: 769px) { .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } .two-col > * { min-width: 0; } }
@media (max-width: 768px) {
  .card-grid, .card-grid.two, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 34px 0; }
  .play-btn { white-space: normal; }
  .header-btns .play-btn { white-space: nowrap; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .container { padding: 0 12px; } }
.cta-title { color: var(--text); font-weight: 800; font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.25; margin: 0 0 12px !important; }
