:root {
    --ink: #172033;
    --muted: #687386;
    --primary: #2557d6;
    --primary-dark: #183c9b;
    --line: #e4e8ef;
    --bg: #f5f7fb;
    --white: #fff;
    --success: #16794c;
    --danger: #b42318;
    --shadow: 0 20px 50px rgba(23,32,51,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(920px, calc(100% - 40px)); }

.site-header {
    height: 76px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.4px; }
.brand > span:last-child > span { color: var(--primary); }
.brand-mark, .login-logo {
    width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center; color: white; background: var(--ink);
    font-weight: 900;
}
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--primary); }

.hero { background: linear-gradient(135deg, #f7f9ff 0%, #eef3ff 100%); padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -3px; margin: 16px 0 22px; }
.hero h1 span { color: var(--primary); }
.hero-text { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.btn {
    border: 0; border-radius: 10px; padding: 13px 20px; cursor: pointer;
    font-weight: 750; display: inline-flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 9px 22px rgba(37,87,214,.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary { background: #eef1f6; color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 12px; font-weight: 650; }
.hero-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card-glow { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: #2557d6; filter: blur(70px); right: -60px; top: -60px; opacity: .65; }
.sport-icon { font-size: 44px; position: relative; }
.hero-card h3 { font-size: 24px; margin: 28px 0 10px; position: relative; }
.hero-card p { color: #b8c2d4; line-height: 1.65; position: relative; }
.mini-stat { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); position: relative; }
.mini-stat b { color: #8facff; font-size: 12px; }

.features { padding: 80px 0; background: #fff; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 36px; letter-spacing: -1px; margin: 10px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.feature-number { color: var(--primary); font-weight: 900; font-size: 12px; }
.feature-card h3 { margin: 20px 0 8px; }
.feature-card p { color: var(--muted); line-height: 1.65; margin: 0; }

.site-footer { padding: 34px 0; background: #101725; color: #dbe2ef; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-inner p { color: #8995aa; margin: 7px 0 0; }

.page-shell, .dashboard-shell { padding: 56px 0 80px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1, .dashboard-top h1 { margin: 8px 0; font-size: 38px; letter-spacing: -1px; }
.page-heading p, .dashboard-top p { color: var(--muted); margin: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 30px rgba(23,32,51,.05); overflow: hidden; }
.form-section { padding: 30px; border-bottom: 1px solid var(--line); }
.form-section-title { font-size: 15px; font-weight: 850; margin-bottom: 22px; }
.form-section-title span { color: var(--primary); margin-right: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label { font-size: 13px; font-weight: 750; }
.field input, .field select {
    width: 100%; border: 1px solid #d9dee8; background: #fff; color: var(--ink);
    border-radius: 9px; padding: 12px 13px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,87,214,.10); }
.field input[readonly] { background: #f6f7fa; color: var(--muted); }
.field-help { font-size: 11px; color: var(--muted); }
.error-text { color: var(--danger); }
.radio-row { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 500 !important; }
.form-note { margin: 22px 30px; padding: 14px 16px; background: #f2f6ff; border: 1px solid #d9e3ff; border-radius: 10px; color: #44516a; font-size: 12px; line-height: 1.55; }
.form-actions { padding: 0 30px 30px; display: flex; justify-content: flex-end; gap: 10px; }

.alert { border-radius: 10px; padding: 13px 15px; margin-bottom: 18px; font-size: 13px; }
.alert-success { background: #eaf8f0; color: var(--success); border: 1px solid #ccebd9; }
.alert-error { background: #fff1f0; color: var(--danger); border: 1px solid #ffd6d2; }
.alert ul { margin: 7px 0 0; padding-left: 20px; }
.flash-wrap { padding-top: 18px; }

.login-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 60px 20px; background: linear-gradient(135deg,#f7f9ff,#eef3ff); }
.login-card { width: min(450px,100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.login-logo { margin-bottom: 24px; }
.login-card h1 { font-size: 34px; margin: 9px 0; letter-spacing: -1px; }
.login-card > p { color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 18px; margin-top: 24px; }
.login-foot { text-align: center; font-size: 12px; }
.login-foot a { color: var(--primary); font-weight: 750; }

.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 20px; }
.profile-card, .download-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.profile-header { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #eaf0ff; color: var(--primary); font-size: 22px; font-weight: 900; }
.profile-header h2 { margin: 0 0 6px; font-size: 21px; }
.status-pill { display: inline-block; padding: 5px 9px; border-radius: 20px; background: #eaf8f0; color: var(--success); font-size: 10px; font-weight: 800; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; }
.info-list > div { padding: 15px 5px; border-bottom: 1px solid var(--line); }
.info-list span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.info-list b { font-size: 13px; word-break: break-word; }
.download-card { background: var(--ink); color: #fff; align-self: start; }
.certificate-icon { width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; display: grid; place-items: center; font-weight: 900; margin-bottom: 30px; }
.download-card h2 { font-size: 25px; margin: 10px 0; }
.download-card p { color: #b8c2d4; line-height: 1.65; font-size: 13px; }
.download-card .btn { margin-top: 18px; }
.download-card small { display: block; margin-top: 15px; color: #8995aa; text-align: center; }

@media (max-width: 850px) {
    .hero-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0; }
    .hero-card { max-width: 600px; }
}
@media (max-width: 650px) {
    .container, .narrow { width: min(100% - 28px, 920px); }
    .site-header { height: auto; padding: 15px 0; }
    .nav-wrap { gap: 15px; align-items: flex-start; }
    .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
    .hero h1 { font-size: 44px; }
    .feature-grid, .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .form-section { padding: 22px; }
    .form-note { margin: 18px 22px; }
    .form-actions { padding: 0 22px 22px; }
    .radio-row { flex-wrap: wrap; }
    .info-list { grid-template-columns: 1fr; }
    .dashboard-top, .footer-inner { align-items: flex-start; flex-direction: column; }
    .login-card { padding: 26px; }
}
