:root {
    --navy: #10243e;
    --blue: #2d6cdf;
    --blue-dark: #1f53b4;
    --cyan: #57c7df;
    --text: #243147;
    --muted: #667085;
    --line: #dce3ec;
    --light: #f5f8fc;
    --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
    border-bottom: 1px solid rgba(16, 36, 62, 0.08);
    background: rgba(255, 255, 255, 0.96);
}
.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}
.brand-mark, .welcome-mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 800;
    letter-spacing: .05em;
}
.brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
    color: #526078;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 24px rgba(45,108,223,.20); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { min-height: 42px; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.btn-light { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.btn-disabled { color: #8b95a7; background: #e7ebf1; cursor: not-allowed; }

.welcome-page {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 64px 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(87,199,223,.16), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(45,108,223,.15), transparent 28%),
        linear-gradient(135deg, #f9fbff, #eef4ff);
}
.welcome-card {
    width: min(760px, 100%);
    padding: 68px 48px;
    border: 1px solid rgba(45,108,223,.10);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 28px 70px rgba(16,36,62,.11);
    text-align: center;
}
.welcome-mark { width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 22px; font-size: 22px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .16em; }
.welcome-card h1, .page-heading h1 {
    color: var(--navy);
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.welcome-card h1 { margin-top: 10px; }
.welcome-text { max-width: 570px; margin: 20px auto 0; color: var(--muted); font-size: 18px; }
.welcome-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.downloads-page { flex: 1; padding: 72px 0 90px; }
.downloads-wrap { max-width: 940px; }
.page-heading { margin-bottom: 34px; }
.page-heading h1 { margin-top: 8px; font-size: clamp(34px, 5vw, 52px); }
.page-heading > p:last-child { margin-top: 12px; color: var(--muted); font-size: 17px; }
.download-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 15px 45px rgba(16,36,62,.07);
}
.download-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    font-size: 17px;
    font-weight: 850;
    letter-spacing: .08em;
}
.download-label { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.download-content h2 { margin: 4px 0 8px; color: var(--navy); font-size: 25px; }
.download-content p { color: var(--muted); }
.download-meta { margin-top: 12px; color: #7a8495; font-size: 12px; }
.download-action { min-width: 180px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.download-action small { color: var(--muted); font-size: 11px; }

.site-footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 13px; }
.footer-wrap { display: flex; justify-content: center; }

@media (max-width: 760px) {
    .main-nav { gap: 12px; }
    .download-card { grid-template-columns: auto 1fr; }
    .download-action { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 24px, 1080px); }
    .nav-wrap { min-height: 66px; }
    .brand > span:last-child { display: none; }
    .main-nav { gap: 10px; }
    .nav-link { font-size: 13px; }
    .btn-outline { padding: 0 12px; }
    .welcome-card { padding: 48px 22px; }
    .welcome-actions { flex-direction: column; }
    .downloads-page { padding-top: 48px; }
    .download-card { grid-template-columns: 1fr; text-align: center; }
    .download-icon { margin: 0 auto; }
    .download-action { grid-column: auto; }
}
