: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, sans-serif; font-size: 16px; 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: 0 0 14px; font-weight: 800; }
h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); text-align: center; }
h2 { font-size: clamp(1.3rem, 4.2vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.35rem); margin-top: 24px; }
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-end); 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; }
.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 a { color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 15px; }
.main-nav a:hover, .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; padding: 10px 20px; border-radius: var(--radius-btn); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: .2s; border: 2px solid transparent; line-height: 1.2; }
.reg-btn { background: var(--gradient-cta); color: #fff; box-shadow: var(--shadow-glow); }
.reg-btn:hover { background: var(--accent-hover); }
.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; }
.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-header-start); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); z-index: 999; transform: translateX(100%); transition: transform .25s; visibility: hidden; }
.mobile-menu.open { transform: none; 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); }

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .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; 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-inner { gap: 4px; }
  .header-btns { gap: 4px; }
  .header-btns .play-btn { padding: 6px 8px; font-size: 12px; }
  .container { padding: 0 12px; }
}

/* Hero */
.hero { padding: 32px 0 8px; }
.hero-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.hero-img { width: 100%; border-radius: var(--radius); margin: 8px 0 0; }
.hero-text { text-align: center; max-width: 820px; 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 { padding: 14px 28px; font-size: 16px; }
@media (max-width: 480px) {
  .hero-card { padding: 14px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .play-btn { width: 100%; max-width: 320px; white-space: normal; }
}

/* Sections */
.section { padding: 36px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.sec-img { width: 100%; border-radius: var(--radius); margin: 4px 0 18px; box-shadow: var(--shadow); }
.card { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px; }
ul.grid, ol.grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
ul.grid.two, ol.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.grid li, ol.grid li { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
ol.grid { counter-reset: n; }
ol.grid li { counter-increment: n; position: relative; padding-left: 52px; }
ol.grid li::before { content: counter(n); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
ul:not(.grid), ol:not(.grid) { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
@media (max-width: 768px) { ul.grid, ol.grid, ul.grid.two, ol.grid.two { grid-template-columns: 1fr; } }

/* Tables */
.table-wrapper { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; 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: 700; }
.table-wrapper tr:last-child td { border-bottom: 0; }
.table-wrapper td:first-child { color: var(--text); font-weight: 600; }
.feat-table .ico { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-surf2); align-items: center; justify-content: center; margin-right: 10px; font-size: 15px; vertical-align: middle; }

/* Steps widget */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.steps li { background: var(--bg-card); border-radius: var(--radius); padding: 18px; text-align: center; border: 1px solid var(--border); }
.steps .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); }
.steps b { display: block; color: var(--text); margin-bottom: 4px; }
.steps-title { color: var(--text); font-weight: 800; font-size: 1.2rem; text-align: center; margin: 0 0 12px; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 16px; color: var(--text); font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent2); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 16px 16px; margin: 0; }

/* CTA */
.cta { background: var(--gradient-brand); border-radius: var(--radius); padding: 32px 20px; text-align: center; margin: 24px 0 40px; box-shadow: var(--shadow-lg); }
.cta-title { color: var(--text); font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 800; margin-bottom: 8px; }
.cta .hero-btns { margin-bottom: 0; }

/* 404 */
.err { text-align: center; padding: 60px 0; }
.err-code { 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: 40px 0 24px; border-top: 2px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid > div { min-width: 0; }
.footer-title { color: var(--text); font-weight: 800; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; font-size: 14px; color: var(--text3); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.age { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent2); font-weight: 800; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-note { font-size: 14px; color: var(--text3); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-cta); color: #fff; border: 0; font-size: 22px; cursor: pointer; box-shadow: var(--shadow-glow); opacity: 0; visibility: hidden; transition: .2s; z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; }
.main-nav ul.nav-list, .mobile-menu ul.nav-list, .site-footer ul.nav-list { margin: 0; }
.main-nav li, .mobile-menu li { margin: 0; }
.mobile-menu ul.nav-list { padding: 8px 0; }
.site-footer ul.nav-list { padding: 0; }
.site-footer li { margin-bottom: 6px; }
