: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: 20px;
  --radius-sm: 12px;
  --header-h: 70px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', 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: 16px; line-height: 1.7; color: var(--text2); background: var(--bg); }
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: 700; margin: 0 0 14px; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); margin-top: 26px; }
p { margin: 0 0 14px; }
strong { color: var(--text); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Progress bar */
.read-progress { position: fixed; top: var(--header-h); left: 0; height: 3px; width: 0; background: var(--gradient-cta); z-index: 1001; transition: width .1s linear; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-h); background: var(--gradient-header); box-shadow: var(--shadow); }
.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: flex-end; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { color: var(--text2); text-decoration: none; font-weight: 500; white-space: nowrap; font-size: 15px; transition: color .2s; }
.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; }
.play-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 10px 20px; border-radius: var(--radius-sm); transition: transform .15s, background .2s, box-shadow .2s, color .2s; cursor: pointer; }
.play-btn:hover { transform: translateY(-1px); }
.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; }
.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; fill: currentColor; flex-shrink: 0; }
.burger-btn { display: none; width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; padding: 0; position: relative; }
.burger-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger-btn span:nth-child(1) { top: 14px; } .burger-btn span:nth-child(2) { top: 21px; } .burger-btn span:nth-child(3) { top: 28px; }
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] 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; background: var(--bg-card); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .25s ease; z-index: 999; border-bottom-left-radius: var(--radius); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 0; }
.mobile-menu a { display: block; padding: 14px 22px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--bg-surf); color: var(--brand-light); }

@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger-btn { display: block; }
  .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; } .container { padding: 0 12px; } }

/* Sections */
.hero { padding: 36px 0 20px; }
.hero h1 { text-align: center; }
.hero .lead { text-align: center; max-width: 820px; margin: 0 auto 22px; font-size: 1.05rem; }
.hero-img { border: 2px solid var(--border-strong); border-radius: var(--radius); width: 100%; max-width: 1024px; margin: 0 auto; }
.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: 16px; padding: 14px 28px; }
@media (max-width: 480px) { .hero-btns { flex-direction: column; } .hero-btns .play-btn { width: 100%; max-width: 320px; white-space: normal; } }
.section { padding: 40px 0; }
.section:nth-of-type(even) { background: rgba(0, 0, 0, 0.16); }
.section-img { border: 2px solid var(--border-strong); border-radius: var(--radius); margin: 18px 0 22px; width: 100%; }

/* Lists as card grid */
.card-list { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-list li { background: var(--bg-card); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); position: relative; padding-left: 40px; min-width: 0; }
.card-list li::before { content: ""; position: absolute; left: 16px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--bg-card); border-radius: var(--radius-sm); padding: 14px 16px 14px 62px; position: relative; box-shadow: var(--shadow); min-width: 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-cta); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (max-width: 768px) { .card-list, .card-list.two { grid-template-columns: 1fr; } }

/* Tables */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius-sm); }
.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; }
.table-wrapper th { background: var(--bg-surf); color: var(--text); font-weight: 600; }
.table-wrapper tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.05); }
.table-wrapper td:first-child { color: var(--text); font-weight: 500; }
.spec-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin: 22px 0; }
.spec-card .plate { background: var(--gradient-brand); color: var(--text); font-weight: 700; padding: 14px 20px; font-size: 1.05rem; }
.spec-card .table-wrapper { margin: 0; border-radius: 0; }

/* FAQ */
.faq-grid { display: grid; gap: 14px; margin-top: 18px; }
.faq-item { background: var(--bg-card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.faq-item h3 { margin-top: 0; font-size: 1.1rem; }
.faq-item p { margin: 0; }

/* Final CTA */
.final-cta { border: 2px solid var(--accent); background: var(--bg-card); border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow-glow); margin: 10px 0; }
.final-cta p { max-width: 720px; margin: 0 auto 6px; }

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

/* Footer */
.site-footer { background: var(--bg-footer); padding: 40px 0 24px; margin-top: 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-grid > div { min-width: 0; }
.site-footer h4 { color: var(--text); margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-light); }
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; }
.badge18 { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); color: var(--text); font-weight: 700; font-size: 14px; margin-right: 10px; flex-shrink: 0; }
.footer-rg { display: flex; align-items: center; font-size: 13px; color: var(--text3); margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 16px; font-size: 13px; color: var(--text3); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 30px 0; } }
