body.downloads-page {
    margin: 0;
    font-family: "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at top left, #1f2a40, #0d121c 55%, #07090f);
    color: #f5f7fb;
    min-height: 100vh;
}

.downloads-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.downloads-hero {
    padding: clamp(2.5rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
    background: linear-gradient(145deg, rgba(33, 48, 78, 0.85), rgba(15, 21, 34, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
}

.downloads-hero__content {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 3vw, 3.5rem);
}

@media (min-width: 960px) {
    .downloads-hero__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.downloads-hero__intro h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.downloads-hero__intro p {
    margin: 0;
    max-width: 40ch;
    color: rgba(245, 247, 251, 0.8);
    line-height: 1.6;
}

.downloads-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1rem;
}

.downloads-hero__meta {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .downloads-hero__meta {
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: clamp(1.5rem, 2vw, 2.5rem);
    }
}

.downloads-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.2rem clamp(1rem, 2vw, 1.8rem);
    margin: 0;
}

.downloads-metrics div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1.1rem;
    background: rgba(12, 17, 28, 0.55);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 36px rgba(7, 9, 15, 0.3);
}

.downloads-metrics dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(245, 247, 251, 0.58);
    margin: 0;
}

.downloads-metrics dd {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.downloads-hero__cta {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #4bc0c8, #2989d8 50%, #1d63c8);
    color: #071019;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 32px rgba(40, 149, 200, 0.38);
}

.downloads-hero__cta:hover,
.downloads-hero__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(40, 149, 200, 0.45);
}

.downloads-controls {
    margin: 0 clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1rem, 2vw, 1.6rem);
    border-radius: 16px;
    background: rgba(10, 15, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: clamp(1rem, 2vw, 1.6rem);
}

@media (min-width: 960px) {
    .downloads-controls {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.downloads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.downloads-filter {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(19, 27, 43, 0.9);
    color: rgba(245, 247, 251, 0.78);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.downloads-filter:hover,
.downloads-filter:focus-visible {
    background: rgba(63, 109, 201, 0.3);
    border-color: rgba(80, 140, 255, 0.65);
}

.downloads-filter.is-active {
    background: linear-gradient(135deg, rgba(80, 140, 255, 0.85), rgba(86, 211, 255, 0.85));
    color: #030711;
    border-color: rgba(80, 140, 255, 0.95);
    box-shadow: 0 8px 22px rgba(80, 140, 255, 0.35);
}

.downloads-controls__inputs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 2vw, 1.2rem);
    justify-content: flex-start;
}

.downloads-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(16, 23, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.downloads-search svg {
    width: 18px;
    height: 18px;
    fill: rgba(245, 247, 251, 0.6);
}

.downloads-search input {
    width: clamp(180px, 25vw, 260px);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.95rem;
    outline: none;
}

.downloads-search input::placeholder {
    color: rgba(245, 247, 251, 0.45);
}

.downloads-search__clear {
    display: none;
    border: none;
    background: rgba(63, 109, 201, 0.2);
    color: rgba(245, 247, 251, 0.9);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.downloads-search.has-value .downloads-search__clear {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.downloads-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    background: rgba(16, 23, 36, 0.9);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.downloads-sort select {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    padding-right: 0.2rem;
}

.downloads-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2.6vw, 2.8rem);
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
}

.downloads-section {
    background: rgba(12, 18, 31, 0.76);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 48px rgba(5, 7, 14, 0.45);
    padding: clamp(1.5rem, 2.4vw, 2.4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.2rem, 2vw, 1.8rem);
}

.downloads-section.is-hidden {
    display: none;
}

.downloads-section__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

@media (min-width: 720px) {
    .downloads-section__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.downloads-section__header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.downloads-section__header p {
    margin: 0;
    color: rgba(245, 247, 251, 0.72);
    max-width: 48ch;
    line-height: 1.55;
}

.downloads-section__aside {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.downloads-section__count {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(63, 109, 201, 0.25);
    border: 1px solid rgba(80, 140, 255, 0.4);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
}

.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.1rem, 1.8vw, 1.6rem);
    background: rgba(8, 12, 21, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 35px rgba(3, 6, 12, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.download-card:hover,
.download-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 26px 45px rgba(6, 13, 24, 0.6);
    border-color: rgba(80, 140, 255, 0.35);
}

.download-card.is-hidden {
    display: none;
}

.download-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.download-card__type {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(80, 140, 255, 0.2);
    border: 1px solid rgba(80, 140, 255, 0.35);
    color: rgba(197, 214, 255, 0.9);
}

.download-card__tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(245, 247, 251, 0.55);
}

.download-card__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.35;
    color: #fff;
}

.download-card__filename {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(245, 247, 251, 0.55);
    word-break: break-word;
}

.download-card__meta {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    color: rgba(245, 247, 251, 0.66);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.download-card__meta span,
.download-card__meta time {
    display: block;
    font-size: 0.74rem;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(245, 247, 251, 0.85);
}

.download-card__meta li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.download-card__button {
    flex: 1 1 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(80, 140, 255, 0.95), rgba(86, 211, 255, 0.9));
    color: #051020;
    box-shadow: 0 12px 28px rgba(80, 140, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card__button:hover,
.download-card__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(80, 140, 255, 0.45);
}

.download-card__ghost {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(245, 247, 251, 0.82);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.download-card__ghost:hover,
.download-card__ghost:focus-visible {
    border-color: rgba(80, 140, 255, 0.55);
    color: rgba(86, 211, 255, 0.95);
    transform: translateY(-1px);
}

.download-card__ghost.is-copied {
    border-color: rgba(86, 211, 255, 0.9);
    color: rgba(86, 211, 255, 0.95);
}

.downloads-empty {
    margin: 0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(24, 32, 50, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: rgba(245, 247, 251, 0.6);
    display: none;
    text-align: center;
}

.downloads-empty.is-visible {
    display: block;
}

.downloads-footer {
    padding: 1.2rem clamp(1.5rem, 4vw, 4rem) 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 10, 18, 0.9);
}

.downloads-footer__content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: rgba(245, 247, 251, 0.65);
    font-size: 0.9rem;
}

@media (min-width: 720px) {
    .downloads-footer__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.downloads-footer__link {
    color: rgba(86, 211, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.downloads-footer__link:hover,
.downloads-footer__link:focus-visible {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
