/* Download page (download.php): short blue hero, program cards, grouped file rows, help band (pp-cta). */
.site-modern.site-download :is(h1, h2, h3, p) { float: none; width: auto; border-left: 0; }
.site-modern .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero (circle layout from css/efactura.css) ---------- */
.site-modern .ef-circle--saft img { object-position: 50% 50%; }
.site-modern .dl-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.site-modern .dl-jump a {
    padding: 9px 18px;
    border: 1px solid #c9daf8;
    border-radius: var(--site-pill);
    background: #fff;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(33, 101, 232, .08);
    transition: background .2s, color .2s, border-color .2s;
}
.site-modern .dl-jump a:hover, .site-modern .dl-jump a:focus-visible { border-color: var(--site-blue); background: var(--site-blue); color: #fff; }
/* Blue "Descarcă" circle: downloads the Platphorma SQL kit */
.site-modern .dl-hero-button {
    position: absolute;
    left: calc(50% - var(--size) / 2 - 20px);
    bottom: 6%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 40% at 50% 8%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -8px 16px rgba(10, 40, 110, .3), 0 0 0 8px rgba(255, 255, 255, .8), 0 20px 40px rgba(33, 101, 232, .35);
    color: #fff;
    font-family: var(--site-font-body);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.site-modern .dl-hero-button:hover, .site-modern .dl-hero-button:focus-visible { transform: translateY(-4px) scale(1.03); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -8px 16px rgba(10, 40, 110, .3), 0 0 0 8px rgba(255, 255, 255, .9), 0 26px 48px rgba(33, 101, 232, .45); }
.site-modern .dl-hero-button:focus-visible { outline: 3px solid #17263d; outline-offset: 10px; }

/* ---------- Sections ---------- */
.site-modern .dl-section { padding: 80px 24px; scroll-margin-top: 90px; }
.site-modern .dl-section--tint { background: linear-gradient(180deg, #f6f9ff 0%, #eef3fd 100%); }
.site-modern .dl-section__inner { max-width: 1160px; margin: 0 auto; }
.site-modern .dl-section ul { margin: 0; padding: 0; list-style: none; }

/* Program cards */
.site-modern .dl-programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.site-modern .dl-program {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 22px 26px;
    border: 1px solid #e4ebf6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 99, .07);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.site-modern .dl-program:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(31, 59, 99, .12); }
.site-modern .dl-program__logo { margin-bottom: 18px; padding: 20px; }
.site-modern .dl-program__logo picture { display: contents; }
.site-modern .dl-program__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-modern .dl-program__tag { color: var(--site-blue); font-family: var(--site-font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-modern .dl-program h3 { margin: 4px 0 18px; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 20px; font-weight: 700; text-align: center; }
.site-modern .dl-program .site-button { margin-top: auto; }

/* Grouped installers */
.site-modern .dl-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.site-modern .dl-group { padding: 26px 22px 22px; border: 1px solid #e4ebf6; border-radius: 22px; background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 100%); scroll-margin-top: 90px; }
.site-modern .dl-group h3 { margin: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: 19px; font-weight: 700; }
.site-modern .dl-group > p { margin: 6px 0 16px; color: #4a5a70; font-family: var(--site-font-body); font-size: 14px; line-height: 1.55; }

/* File rows */
.site-modern .dl-files { display: grid; gap: 10px; }
.site-modern .dl-files--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.site-modern .dl-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.site-modern .dl-file:hover, .site-modern .dl-file:focus-visible { border-color: #b9cff5; box-shadow: 0 10px 22px rgba(33, 101, 232, .12); transform: translateY(-2px); }
.site-modern .dl-file__icon { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e3ecfd; color: var(--site-blue); }
.site-modern .dl-file__name { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; font-family: var(--site-font-body); font-size: 16px; font-weight: 700; line-height: 1.3; }
.site-modern .dl-file__name small { color: var(--site-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.site-modern .dl-file__action { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--site-blue); color: #fff; transition: background .2s; }
.site-modern .dl-file:hover .dl-file__action { background: var(--site-blue-dark); }

/* Help band sits right after the tinted section */
.site-modern .dl-help { padding-top: 80px; }

@media (max-width: 1100px) {
    .site-modern .dl-programs, .site-modern .dl-files--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-modern .dl-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-modern .dl-jump { justify-content: center; }
}
@media (max-width: 760px) {
    .site-modern .dl-hero-button { width: 100px; height: 100px; left: calc(50% - var(--size) / 2 - 12px); font-size: 14px; }
    .site-modern .dl-jump a { padding: 8px 14px; font-size: 14px; }
    .site-modern .dl-section { padding: 56px 16px; }
    .site-modern .dl-groups, .site-modern .dl-files--grid { grid-template-columns: minmax(0, 1fr); }
    .site-modern .dl-programs { gap: 14px; }
    .site-modern .dl-program { padding: 24px 14px 20px; }
    .site-modern .dl-program__logo { width: 76px; height: 76px; padding: 16px; }
    .site-modern .dl-program h3 { font-size: 17px; }
    .site-modern .dl-help { padding: 56px 16px; }
}
