: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, sans-serif;
}
@media (max-width: 1023px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; padding-top: var(--header-h); background: var(--bg); color: var(--text2); font-family: var(--font); font-size: 16px; line-height: 1.7; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); }
a:hover { color: var(--text); }
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: 28px 0 18px; }
h2 { font-size: clamp(1.35rem, 4.4vw, 1.9rem); margin: 0 0 16px; }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); margin: 26px 0 12px; color: var(--brand-light); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 360px) { .container { padding: 0 12px; } }

/* Header: solid + brand line, centered menu */
.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 { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 16px; }
.logo-link { flex-shrink: 0; }
.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 { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { color: var(--text2); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.burger-btn { display: none; }

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

@media (max-width: 1023px) {
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo-img { height: 36px; }
  .main-nav { display: none; }
  .header-btns { flex: 1 1 auto; min-width: 0; justify-content: center; gap: 6px; }
  .burger-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; flex-shrink: 0; background: var(--bg-surf); border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; padding: 0; }
  .burger-btn span { width: 22px; height: 2px; background: #fff; border-radius: 2px; 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); }
}
@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; }
}

.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; background: var(--bg-header-start); border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: translateX(100%); transition: transform .3s; z-index: 999; visibility: hidden; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-menu li { margin: 0; }
.mobile-menu a { display: block; padding: 14px 20px; color: var(--text); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { background: var(--bg-surf); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* Hero */
.hero { padding: 8px 0 28px; }
.breadcrumbs { font-size: 14px; color: var(--text3); padding-top: 18px; }
.breadcrumbs a { color: var(--text3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.hero-media { background: var(--bg-card); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img { width: 100%; border-radius: calc(var(--radius) - 4px); }
.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 { font-size: 17px; padding: 15px 34px; }
@media (max-width: 480px) { .hero-btns { flex-direction: column; } .hero-btns .play-btn { width: 100%; max-width: 320px; } }
.lead { font-size: 1.08rem; color: var(--text2); }

/* Sections via dividers */
.section { padding: 34px 0; border-top: 1px solid var(--border); }
.section-img { border-radius: var(--radius); margin: 0 0 18px; box-shadow: var(--shadow); width: 100%; }

/* Cards: left stripe */
.card { background: transparent; border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; background: rgba(0, 74, 79, .45); }
.card-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid li { margin: 0; min-width: 0; border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; background: rgba(0, 74, 79, .55); }
.card-grid li strong { display: block; margin-bottom: 4px; }
@media (max-width: 768px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; }
ol.steps li { counter-increment: s; position: relative; padding: 2px 0 10px 46px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-cta); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* Tables: brand header, no zebra */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius); border: 1px solid var(--border-strong); }
.table-wrapper table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table-wrapper td, .table-wrapper th { white-space: nowrap; padding: 12px 14px; 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; }
.table-wrapper td:first-child { color: var(--text); font-weight: 700; }
.ico { display: inline-flex; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--bg-surf2); align-items: center; justify-content: center; vertical-align: middle; font-size: 15px; }

/* Quick steps widget */
.quick-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 22px 0 6px; }
.quick-steps .qs { background: var(--bg-card); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.quick-steps .num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-cta); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.quick-steps p { margin: 0; color: var(--text); font-weight: 700; }
.quick-steps small { display: block; color: var(--text3); font-weight: 500; }
@media (max-width: 768px) { .quick-steps { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq details { border-left: 4px solid var(--accent); background: rgba(0, 74, 79, .55); border-radius: 0 var(--radius) var(--radius) 0; margin: 12px 0; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 24px 14px 0; font-weight: 800; color: var(--text); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--accent2); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; }

/* Final CTA: card with accent border */
.final-cta { margin: 34px 0 44px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px 16px; text-align: center; background: var(--bg-card); }
.final-cta .cta-title { font-size: clamp(1.25rem, 4vw, 1.7rem); font-weight: 800; color: var(--text); margin: 0 0 8px; }
.final-cta p { max-width: 720px; margin: 0 auto 6px; }

/* Footer: 4 columns, left */
.site-footer { background: var(--bg-footer); border-top: 2px solid var(--brand); padding: 40px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-grid > div { min-width: 0; }
.footer-title { color: var(--text); font-weight: 800; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: var(--text2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.badge18 { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); color: var(--text); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; color: var(--text3); font-size: 14px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* 404 */
.error-page { text-align: center; padding: 60px 0; }
.error-code { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0; }

@media (max-width: 768px) {
  .final-cta .play-btn, .hero-btns .play-btn { white-space: normal; }
}
