: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;
}
*, *::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); background: var(--bg); color: var(--text2); font-family: 'Manrope', system-ui, -apple-system, sans-serif; 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(--accent2); }
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: 32px 0 14px; }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.9rem); margin: 0 0 14px; }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); margin: 26px 0 10px; color: var(--brand-light); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
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; display: block; background: #fff; border-radius: 8px; padding: 4px 10px; }
.logo-img { height: 40px; width: auto; display: block; }
nav.main-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
nav.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav.main-nav a { color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 15px; }
nav.main-nav a:hover, nav.main-nav a.active { 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; white-space: nowrap; text-decoration: none; font-weight: 800; padding: 10px 20px; border-radius: var(--radius-btn); font-size: 15px; transition: transform .15s, background .15s, box-shadow .15s; }
.play-btn:hover { transform: translateY(-1px); }
.login-btn { color: var(--brand-light); border: 2px solid var(--brand-light); background: transparent; }
.login-btn:hover { background: var(--brand-light); color: var(--text-dark); }
.reg-btn { color: #fff; background: var(--gradient-cta); box-shadow: var(--shadow-glow); border: 2px solid transparent; }
.reg-btn:hover { background: var(--accent-hover); color: #fff; }
.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: 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: var(--text); transition: .2s; }
.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; background: var(--bg-card); border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .25s; z-index: 999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 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); }

/* Hero */
.hero { padding-bottom: 8px; }
.hero-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.hero-card img { border-radius: calc(var(--radius) - 4px); width: 100%; }
.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: 17px; }
.lead { font-size: 1.08rem; color: var(--text2); }

/* Sections */
main section { padding: 34px 0; border-top: 1px solid var(--border); }
main section:first-of-type { border-top: 0; }
.sec-img { border-radius: var(--radius); margin: 4px 0 18px; box-shadow: var(--shadow); width: 100%; }
.card { background: transparent; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.card p:last-child { margin-bottom: 0; }
.grid-list { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-list li { min-width: 0; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; background: rgba(0,0,0,.08); }
.grid-list li strong { color: var(--text); }
ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
ol.steps li::marker { color: var(--accent2); font-weight: 800; }
ul.dots li::marker { color: var(--brand-light); }

/* Tables */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.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; }
.spec-table td:first-child { display: flex; align-items: center; gap: 10px; }
.ico { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-surf); align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }

/* Steps widget */
.quick-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.quick-steps .qs { min-width: 0; text-align: center; background: var(--bg-card); border-radius: var(--radius); padding: 18px 14px; }
.qs-num { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-cta); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; box-shadow: var(--shadow-glow); }
.qs b { color: var(--text); display: block; }

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

/* Final CTA */
.final-cta { border: 2px solid var(--accent); border-radius: var(--radius); padding: 28px 18px; text-align: center; background: var(--bg-card); margin: 10px 0 40px; }
.final-cta h2 { margin-top: 0; }
.final-cta .hero-btns { margin-bottom: 0; }

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

/* Footer */
footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 36px 0 20px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.footer-cols > div { min-width: 0; }
.footer-cols h3 { margin: 0 0 10px; font-size: 1rem; color: var(--text); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: var(--text2); text-decoration: none; }
.footer-cols a:hover { color: var(--accent2); }
.age { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent2); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.copy { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; color: var(--text3); }

/* To top */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gradient-cta); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-glow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 900; }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  nav.main-nav { display: none; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo-img { height: 36px; }
  .logo-link { padding: 3px 8px; }
  .header-btns { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 6px; }
  .burger-btn { display: inline-flex; }
}
@media (max-width: 768px) {
  .grid-list, .grid-list.two, .quick-steps, .footer-cols { grid-template-columns: 1fr; }
  .play-btn { white-space: normal; max-width: 100%; }
  .header-btns .play-btn { white-space: nowrap; }
}
@media (max-width: 480px) {
  .header-btns .play-btn { padding: 8px 12px; font-size: 13px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .play-btn { width: 100%; max-width: 320px; }
  .hero-card { padding: 10px; }
}
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .header-inner { gap: 4px; padding: 0 8px; }
  .logo-img { height: 28px; }
  .logo-link { padding: 3px 5px; }
  .header-btns { gap: 4px; }
  .header-btns .play-btn { padding: 6px 8px; font-size: 12px; }
}
