: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%);
  --header-h: 70px;
  --radius: 12px;
}
*, *::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: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); }
p, li, td, th, h1, h2, h3, a { overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--text); line-height: 1.25; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); margin-top: .8em; }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3.6vw, 1.35rem); color: var(--brand-light); }
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(--gradient-header);
  border-bottom: 1px solid var(--border); 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; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 22px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand-light); }
.header-btns { display: flex; gap: 8px; flex-shrink: 0; }
.play-btn {
  display: inline-block; white-space: nowrap; text-decoration: none; font-weight: 700;
  border-radius: 8px; padding: 10px 18px; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background .2s, transform .2s;
}
.login-btn { color: var(--brand-light); border: 2px solid var(--brand-light); background: transparent; }
.login-btn:hover { background: rgba(79, 179, 193, .15); }
.reg-btn { color: #fff; background: var(--gradient-cta); box-shadow: var(--shadow-glow); border: 2px solid transparent; }
.reg-btn:hover { background: var(--accent-hover); }
.burger-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 8px; 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: transform .25s, opacity .25s; }
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active 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: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .25s; visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.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: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { background: var(--bg-surf); }

/* Content */
main { padding-bottom: 40px; }
.breadcrumbs { font-size: 14px; color: var(--text3); padding-top: 16px; }
.breadcrumbs a { color: var(--text3); }
.hero-img, .sec-img { width: 100%; border-radius: var(--radius); margin: 8px 0 20px; box-shadow: var(--shadow); }
.cta-inline { margin: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.cta-btn {
  display: inline-block; background: var(--gradient-cta); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 28px; border-radius: 10px; box-shadow: var(--shadow-glow); text-align: center;
}
.cta-btn:hover { background: var(--accent-hover); }
.cta-btn.alt { background: transparent; border: 2px solid var(--brand-light); color: var(--brand-light); box-shadow: none; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin: 20px 0; box-shadow: var(--shadow);
}
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.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 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 15px; }
.table-wrapper th { background: var(--bg-surf2); color: #fff; }
.table-wrapper tr:nth-child(even) td { background: var(--bg-surf); }
.faq { margin: 20px 0; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; }
.final-cta {
  background: var(--gradient-brand); border-radius: var(--radius); padding: 28px 20px; margin: 40px 0 10px;
  text-align: center; box-shadow: var(--shadow-lg); border: 1px solid var(--border-strong);
}
.final-cta p { color: var(--text); margin: 0 0 18px; font-size: 1.1em; font-weight: 600; }
.note { font-size: 14px; color: var(--text3); }

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

/* Footer */
.site-footer { background: var(--bg-footer); border-top: 1px solid var(--border); padding: 32px 0 24px; font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--text2); text-decoration: none; }
.footer-links a:hover { color: var(--brand-light); }
.footer-bottom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text3); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0;
  border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 800;
}
.footer-disclaimer { color: var(--text3); font-size: 14px; margin: 0 0 16px; }

/* Responsive */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .burger-btn { display: flex; }
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo-img { height: 36px; }
  .header-btns { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; gap: 6px; }
}
@media (max-width: 768px) {
  .cta-inline { align-items: stretch; }
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .cta-inline { flex-direction: column; }
  .cta-btn { width: 100%; max-width: 100%; white-space: normal; }
  .footer-links { flex-direction: column; gap: 8px; }
  .card { padding: 14px 14px; }
}
@media (max-width: 480px) {
  .play-btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .logo-img { height: 28px; }
  .play-btn { padding: 6px 8px; font-size: 12px; }
  .header-btns { gap: 4px; }
  .header-inner { gap: 4px; padding: 0 8px; }
  .burger-btn { width: 40px; height: 40px; }
}
