.downloads-page .downloads-wrap {
    padding: 48px 0 80px;
    background: #fafbff;
}

.downloads-tabs {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    margin: 0 auto 34px;
    border-radius: 999px;
    background: #f3f5fa;
    border: 1px solid rgba(36, 48, 78, 0.08);
}

.downloads-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #596174;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.downloads-tab.is-active {
    background: #4230d3;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(66, 48, 211, 0.24);
}

.downloads-panel {
    display: none;
    animation: downloadPanelIn 0.35s ease;
}

.downloads-panel.is-active {
    display: block;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.download-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(36, 48, 78, 0.08);
    box-shadow: 0 16px 36px rgba(28, 41, 73, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(66, 48, 211, 0.18);
    box-shadow: 0 20px 42px rgba(28, 41, 73, 0.12);
}

.download-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(66, 48, 211, 0.12), rgba(66, 48, 211, 0.04));
    color: #4230d3;
    font-size: 24px;
}

.download-card__platform {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #4230d3;
}

.download-card__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #24304e;
}

.download-card__body p {
    margin: 0 0 12px;
    color: #596174;
    line-height: 1.65;
    font-size: 15px;
}

.download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #7b8499;
    font-size: 13px;
    font-weight: 600;
}

.download-card__meta i {
    margin-right: 4px;
}

.download-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #4230d3;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.download-card__btn:hover {
    background: #3526b8;
    box-shadow: 0 10px 24px rgba(66, 48, 211, 0.28);
    transform: translateY(-1px);
    color: #ffffff;
}

.downloads-empty {
    text-align: center;
    padding: 70px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
}

.downloads-empty i {
    font-size: 42px;
    margin-bottom: 14px;
    display: block;
}

.download-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
}

.download-fab__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #4230d3 0%, #2f22a8 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(66, 48, 211, 0.34);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-fab__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(66, 48, 211, 0.4);
}

.download-fab.is-open .download-fab__toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

.download-fab__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(36, 48, 78, 0.08);
    box-shadow: 0 24px 60px rgba(28, 41, 73, 0.18);
    animation: downloadFabIn 0.28s ease;
}

.download-fab__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.download-fab__head strong {
    color: #24304e;
    font-size: 16px;
}

.download-fab__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f5fa;
    color: #24304e;
    cursor: pointer;
}

.download-fab__group + .download-fab__group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(36, 48, 78, 0.08);
}

.download-fab__label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7b8499;
}

.download-fab__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #24304e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.download-fab__link:hover {
    background: rgba(66, 48, 211, 0.08);
    color: #4230d3;
}

.download-fab__all {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(36, 48, 78, 0.08);
    color: #4230d3;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

@keyframes downloadPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes downloadFabIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        grid-template-columns: auto 1fr;
    }

    .download-card__btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .downloads-tabs {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .download-fab__toggle span {
        display: none;
    }

    .download-fab {
        right: 16px;
        bottom: 16px;
    }
}
