/* Страница скачивания клиента — визуальный язык оружейной + фон в духе sirus.one main-screen */

body.armory-page.download-page,
.download-page {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0706;
    background-image:
        linear-gradient(180deg, rgba(32, 14, 5, 0.35) 0%, rgba(10, 7, 6, 0.72) 55%, #0a0706 100%),
        url('../icons/download/vulpera.webp');
    background-position: center top, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-attachment: scroll, fixed;
}

.download-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 16px 64px;
}

.download-hero {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    margin: 0 auto 20px;
    max-width: 960px;
    padding: 28px 20px 8px;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.download-hero__glow {
    display: none;
}

.download-hero__inner {
    position: relative;
    z-index: 1;
    max-width: min(960px, 100%);
    width: 100%;
    animation: download-fade-up 0.7s ease both;
}

.download-hero__brand {
    margin: 0 0 28px;
    font-size: clamp(1.6rem, 4.2vw + 0.6rem, 3.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.download-hero__brand-line,
.download-hero__brand-now {
    display: block;
}

.download-hero__brand-line {
    white-space: nowrap;
}

.download-hero__brand-now {
    margin-top: 0.2em;
    color: #ffd27a;
    font-size: 0.92em;
}

.download-hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 600;
    color: #ffd27a;
    letter-spacing: 0.02em;
}

.download-hero__lead {
    margin: 0 auto 28px;
    max-width: 34em;
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 500;
    color: #b49a84;
}

.download-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    animation: download-fade-up 0.85s ease 0.12s both;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.download-btn .material-icons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 1;
}

.download-btn--primary {
    background: linear-gradient(135deg, #c97820, #ef972f);
    color: #1a0c04;
    box-shadow: 0 8px 28px rgba(239, 151, 47, 0.35);
}

.download-btn--primary:hover {
    background: linear-gradient(135deg, #ef972f, #ffd27a);
    transform: translateY(-1px);
}

.download-btn--disabled {
    opacity: 0.72;
    cursor: default;
    box-shadow: none;
    background: rgba(58, 39, 29, 0.9);
    color: #b49a84;
    border-color: rgba(239, 151, 47, 0.22);
}

.download-btn--ghost {
    background: rgba(0, 0, 0, 0.28);
    color: #f2e8dc;
    border-color: rgba(239, 151, 47, 0.3);
}

.download-btn--ghost:hover {
    background: rgba(239, 151, 47, 0.14);
    color: #fff;
    border-color: rgba(239, 151, 47, 0.5);
}

.download-btn__meta {
    margin-left: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.85;
}

.download-section {
    margin-bottom: 48px;
    animation: download-fade-up 0.6s ease both;
}

.download-hero + .download-section {
    margin-top: 8px;
}

.download-section--last {
    margin-bottom: 0;
}

.download-section__inner {
    max-width: 720px;
    margin: 0 auto;
}

.download-section__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffd27a;
}

.download-section__text {
    margin: 0 0 24px;
    color: #b49a84;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.download-mirrors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-mirror {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(58, 39, 29, 0.85);
    border: 1px solid rgba(239, 151, 47, 0.25);
    border-radius: 6px;
    color: #f2e8dc;
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.download-mirror:hover {
    background: rgba(239, 151, 47, 0.12);
    border-color: rgba(239, 151, 47, 0.45);
    color: #fff;
}

.download-mirror .material-icons {
    color: #ef972f;
    font-size: 1.35rem;
}

.download-mirror__arrow {
    margin-left: auto;
    opacity: 0.7;
    font-size: 1.1rem !important;
}

.download-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    counter-reset: none;
}

.download-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.download-step__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 151, 47, 0.18);
    border: 1px solid rgba(239, 151, 47, 0.4);
    color: #ffd27a;
    font-weight: 700;
    font-size: 0.95rem;
}

.download-step__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.download-step__text {
    margin: 0 0 10px;
    color: #b49a84;
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 500;
}

.download-step__text strong {
    color: #f2e8dc;
    font-weight: 600;
}

.download-step__text code,
.download-step__hint code,
.download-realmlist code {
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.88em;
    color: #ffd27a;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 3px;
}

.download-step__hint {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: #846f4a;
    line-height: 1.45;
}

.download-link {
    color: #ef972f;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.download-link:hover {
    color: #ffd27a;
    text-decoration: underline;
}

.download-realmlist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(239, 151, 47, 0.28);
    border-radius: 6px;
}

.download-realmlist code {
    flex: 1 1 auto;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    word-break: break-all;
}

.download-realmlist__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(239, 151, 47, 0.35);
    border-radius: 4px;
    background: rgba(239, 151, 47, 0.12);
    color: #ffd27a;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.download-realmlist__copy:hover,
.download-realmlist__copy.is-copied {
    background: rgba(239, 151, 47, 0.22);
    border-color: rgba(239, 151, 47, 0.55);
    color: #fff;
}

.download-realmlist__copy .material-icons {
    font-size: 1.05rem;
    width: 1.05rem;
    height: 1.05rem;
}

.download-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@keyframes download-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .download-hero {
        padding: 20px 16px 4px;
        margin-bottom: 16px;
    }

    .download-btn {
        width: 100%;
    }

    .download-step {
        gap: 12px;
    }
}
