:root {
    --blue1: #0c1458;
    --blue2: #1848cd;
    --blue3: #1e6bff;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --radius: 22px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #e1ecff 0, #e7eef8 45%, #f1f5f9 100%);
}

/* появление всей сцены */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wrap.appear {
    animation: fadeUp 0.5s ease-out both;
}

.wrap {
    max-width: 1240px;
    margin: 44px auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
}

/* -------- ЛЕВАЯ КАРТОЧКА -------- */

.left-card {
    background: radial-gradient(circle at 0% 0%, #2563eb 0, #0f172a 55%, #020617 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 34px 32px 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.left-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,255,255,0.10), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(56,189,248,0.18), transparent 60%);
    pointer-events: none;
}

.left-card > * { position: relative; }

.lc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.lc-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.lc-dot.red { background: #ff605c; }
.lc-dot.yellow { background: #ffbd44; }
.lc-dot.green { background: #24ca5e; }

.lc-brand {
    margin-left: 6px;
    font-size: 18px;
    font-weight: 600;
}

/* бейджи */
.lc-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    background: rgba(15,23,42,0.55);
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(148,163,184,0.55);
}
.badge.blue {
    background: rgba(59,130,246,0.35);
    border-color: rgba(191,219,254,0.8);
}

/* заголовки */
.left-card h1 {
    font-size: 30px;
    margin: 24px 0 10px;
}

.lc-desc {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
}

/* список */
.lc-list {
    margin: 18px 0 16px;
    padding-left: 20px;
    font-size: 15px;
    opacity: 0.96;
}
.lc-list li { margin-bottom: 6px; }

/* шаги */
.lc-steps .step {
    padding: 10px 14px;
    background: rgba(15,23,42,0.75);
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(148,163,184,0.45);
}

/* -------- ПРАВАЯ КАРТОЧКА -------- */

.right-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px 30px 28px;
    box-shadow: var(--shadow);
    color: var(--text);
}

.right-card h2 {
    font-size: 26px;
    margin: 0;
}

.rc-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.rc-block {
    margin-top: 26px;
}

.rc-block label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

/* --- версии Windows: группы --- */

.version-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;          /* расстояние между Win11 и Win10 */
}

.version-group {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.version-caption {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.version-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* сами кнопки версий */

.ver-btn {
    background: #f1f5f9;
    border-radius: 13px;
    padding: 10px 18px;
    border: 1px solid #d4dbe4;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
                background-color 0.12s ease-out, border-color 0.12s ease-out;
}

.ver-btn:hover {
    background: #e2ebf6;
    border-color: #a7bee4;
    box-shadow: 0 6px 14px rgba(15,23,42,0.08);
    transform: translateY(-1px);
}

.ver-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* активная версия */
.ver-btn.ver-active {
    background: #dbe7ff;
    border-color: #2563eb;
    color: #1d3fae;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
}

/* статус */
.status {
    padding: 9px 12px;
    background: #f8fafc;
    border-radius: 11px;
    font-size: 14px;
    border: 1px solid #dce3ea;
}

/* языки */
.lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lang-list * {
    padding: 6px 12px;
    background: #eef2f6;
    border-radius: 11px;
    cursor: pointer;
    font-size: 14px;
    border: 1px solid #d8dde5;
    transition: transform 0.12s ease-out,
                background-color 0.12s ease-out,
                border-color 0.12s ease-out;
    white-space: nowrap;
}

.lang-list *:hover {
    background: #dfe8f5;
    border-color: #b3c4df;
    transform: translateY(-1px);
}

/* активный язык */
.lang-list .lang-selected {
    background: #dbe7ff;
    border-color: #2563eb;
    color: #1d3fae;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.25);
    transform: translateY(-1px);
}

/* download */
.download-box button,
.download-box a {
    margin-top: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    background: #111827;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
                background-color 0.12s ease-out;
}

.download-box button:hover,
.download-box a:hover {
    background: #020617;
    box-shadow: 0 10px 24px rgba(15,23,42,0.25);
    transform: translateY(-1px);
}

.download-box button:active,
.download-box a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* НОВЫЙ БЛОК: ИНСТРУКЦИИ И ПОМОЩЬ */

.rc-help {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.rc-help-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9ca3af;
    margin-bottom: 8px;
}

.rc-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rc-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d3fae;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #c7d2fe;
    transition: background-color 0.12s ease-out,
                border-color 0.12s ease-out,
                transform 0.12s ease-out,
                box-shadow 0.12s ease-out;
    white-space: nowrap;
}

.rc-link-pill:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(129,140,248,0.25);
}

.rc-link-secondary {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #111827;
}

.rc-link-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* пояснение */
.rc-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* -------- МОДАЛКА -------- */

.ws-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out;
}

.ws-modal-backdrop.ws-modal-show {
    opacity: 1;
    pointer-events: auto;
}

.ws-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 20px;
    min-width: 320px;
    max-width: 460px;
    box-shadow: 0 22px 55px rgba(15,23,42,0.35);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.18s ease-out;
    position: relative;
}

.ws-modal-backdrop.ws-modal-show .ws-modal {
    transform: translateY(0) scale(1);
}

.ws-modal-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.ws-modal-body {
    font-size: 14px;
    color: #111827;
}

.ws-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

/* адаптив */
@media (max-width: 960px) {
    .wrap {
        grid-template-columns: 1fr;
        margin: 24px auto;
        padding-inline: 12px;
    }
}
