@font-face { font-family: "DejaVu Sans"; font-weight: bold; src: url("font/Amiko-Regular.ttf") format("truetype"); }
@font-face { font-family: "DejaVu Sans"; src: url("font/Amiko-Regular.ttf") format("truetype"); }

.download_page {
    min-height: calc(100vh - 68px);
    padding: 24px 16px 48px;
    background:
        linear-gradient(90deg, var(--theme-grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--theme-page) 0%, var(--theme-page-gradient-end) 100%);
    background-size: 36px 36px, auto;
}

.download_hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto 18px;
    padding: 24px 28px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background:
        var(--theme-hero-gradient),
        var(--theme-news-lines);
    color: var(--theme-on-dark);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
}

.download_eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--theme-radius);
    background: var(--theme-primary);
    color: var(--theme-on-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.download_hero h1 {
    margin: 12px 0 8px;
    color: var(--theme-on-dark);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.download_hero p {
    max-width: 620px;
    margin: 0;
    color: var(--theme-muted-on-dark);
    font-size: 15px;
    line-height: 1.6;
}

.download_hero img {
    width: 158px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.26));
}

.download_panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 24px;
    align-items: stretch;
    width: min(1180px, 100%);
    margin: 0 auto 24px;
    padding: 28px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

.download_info {
    display: flex;
    gap: 16px;
    min-height: 100%;
    padding: 24px;
    border-radius: var(--theme-radius);
    background: var(--theme-page);
    border: 1px solid var(--theme-border);
}

.download_info span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: var(--theme-radius);
    color: var(--theme-primary);
    background: var(--theme-primary-soft);
    border: 1px solid var(--theme-primary-border);
    font-size: 22px;
}

.download_info h2 {
    margin: 0;
    color: var(--theme-ink);
    font-size: 24px;
    font-weight: 900;
}

.download_info p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--theme-muted);
    font-size: 15px;
    line-height: 1.7;
}

.download_form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-white);
    box-shadow: var(--theme-card-shadow);
}

.download_form .form-group {
    margin: 0;
}

.download_form label {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-label);
    font-size: 14px;
    font-weight: 900;
}

.download_form .form-control {
    min-height: 48px;
    border: 1px solid var(--theme-input-border);
    border-radius: var(--theme-radius);
    color: var(--theme-ink);
    font-size: 15px;
    box-shadow: none;
}

.download_form .form-control::placeholder {
    color: var(--theme-placeholder);
}

.download_form .form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: var(--theme-focus-ring);
}

.download_form .btn-grad {
    align-self: flex-start;
    min-height: 46px;
    min-width: 180px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--theme-radius);
    background: var(--theme-primary);
    color: var(--theme-on-dark);
    box-shadow: var(--theme-primary-shadow);
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.download_form .btn-grad:hover {
    transform: translateY(-2px);
    background: var(--theme-primary-dark);
    color: var(--theme-on-dark);
    box-shadow: var(--theme-primary-shadow-strong);
}

#invalid {
    min-height: 20px;
    color: var(--theme-primary);
    font-size: 13px;
    font-weight: 800;
}

@media only screen and (max-width: 900px) {
    .download_panel {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 640px) {
    .download_page {
        padding: 16px 12px 34px;
    }

    .download_hero {
        padding: 20px;
    }

    .download_hero img {
        display: none;
    }

    .download_panel,
    .download_info,
    .download_form {
        padding: 18px;
    }
}
