:root {
    --bg: #05070c;
    --bg-2: #090d15;
    --panel: rgba(12, 16, 26, .66);
    --panel-strong: rgba(14, 19, 31, .82);
    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .20);
    --text: #edf2fb;
    --muted: #93a0b3;
    --accent: #8e58ff;
    --accent-2: #ff3b6f;
    --accent-3: #ffcd6b;
    --ok: #42e28a;
    --warn: #ffcb5c;
    --bad: #ff6262;
    --radius: 4px;
    --radius-sm: 2px;
    --shadow: 0 24px 78px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font: 13px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 14% 4%, rgba(142, 88, 255, .24), transparent 30rem),
        radial-gradient(circle at 82% 0%, rgba(255, 59, 111, .15), transparent 28rem),
        linear-gradient(180deg, #090c13 0%, var(--bg) 62%, #030508 100%);
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(142,88,255,.13), transparent 22rem);
    transition: background .12s linear;
}
body.is-modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.glass-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255,255,255,.072), rgba(255,255,255,.022)), var(--panel);
    backdrop-filter: blur(16px) saturate(125%);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 12, .68);
    backdrop-filter: blur(18px) saturate(135%);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__logo { width: 122px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(142,88,255,.26)); }
.brand__text { display: grid; gap: 0; }
.brand__text strong { display: none; }
.brand__text small { color: var(--muted); font-size: .72rem; max-width: 270px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #cbd5e5;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}
.main-nav a img { width: 16px; height: 16px; opacity: .9; }
.main-nav a:hover { color: #fff; border-color: var(--line); background: rgba(255,255,255,.055); transform: translateY(-1px); }
.main-nav__accent { color: #fff !important; border-color: rgba(142, 88, 255, .55) !important; background: rgba(142, 88, 255, .14) !important; }
.nav-toggle { display: none; color: #fff; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 1rem; }

.site-main { padding: 28px 0 54px; }
.layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 26px; align-items: start; }
.content-panel, .side-panel { min-width: 0; }
.content-panel > * + *, .profile-page > * + * { margin-top: 26px; }

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    min-height: 430px;
    padding: clamp(28px, 5vw, 52px);
    border-radius: var(--radius);
    background:
        linear-gradient(110deg, rgba(6, 8, 14, .96), rgba(8, 11, 18, .62)),
        url('../img/hero-bg.svg') center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto -10% -48% 25%; height: 280px; background: radial-gradient(closest-side, rgba(142,88,255,.35), transparent 75%); filter: blur(16px); }
.hero__content { position: relative; z-index: 2; align-self: center; }
.hero h1 { max-width: 760px; margin: 10px 0 14px; font-size: clamp(2.15rem, 5vw, 5rem); line-height: .92; letter-spacing: -.06em; text-transform: uppercase; }
.hero p { max-width: 620px; color: #c8d2e0; font-size: .96rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.parallax-stage { position: relative; z-index: 1; min-height: 320px; perspective: 900px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .85; }
.orb--back { width: 220px; height: 220px; right: 18px; top: 18px; background: radial-gradient(circle, rgba(142,88,255,.4), transparent 68%); }
.orb--mid { width: 150px; height: 150px; left: 8px; bottom: 24px; background: radial-gradient(circle, rgba(255,59,111,.34), transparent 70%); }
.vg-model { position: absolute; inset: 72px 32px auto auto; width: 190px; height: 190px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: 0 22px 80px rgba(142,88,255,.22); transform: rotateX(8deg) rotateY(-16deg); }
.vg-model::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); }
.vg-model img { width: 86px; height: 86px; filter: drop-shadow(0 0 28px rgba(142,88,255,.45)); }
.vg-model span { position: absolute; left: 16px; bottom: 14px; font-weight: 900; letter-spacing: .22em; color: #fff; opacity: .72; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-3); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-sm);
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .035em;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); border-color: rgba(255,255,255,.25); box-shadow: 0 12px 34px rgba(0,0,0,.22); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--red { border-color: rgba(142,88,255,.72); background: linear-gradient(180deg, #9b66ff, #5929cc); box-shadow: 0 14px 34px rgba(142,88,255,.20); }
.btn--ghost { background: rgba(255,255,255,.042); }
.btn--full { width: 100%; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) scale(0); background: rgba(255,255,255,.42); animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(12); opacity: 0; } }

.stats-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.stat-card, .feature-card, .panel-box, .auth-card, .widget { border-radius: var(--radius); }
.stat-card { padding: 16px; }
.stat-card strong { display: block; font-size: 1.45rem; line-height: 1; }
.stat-card span { color: var(--muted); }
.feature-card, .panel-box { padding: 18px; }
.feature-card img { width: 28px; height: 28px; }
.feature-card h2, .panel-box h2 { margin-top: 10px; }
.feature-card p { color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 16px; }
.section-head--compact { margin-top: 0; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.section-head > a, .read-more, .article-source a, .profile-comment a { color: var(--accent-3); font-weight: 900; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card, .news-row { overflow: hidden; border-radius: var(--radius); transition: transform .18s ease, border-color .18s ease; }
.news-card:hover, .news-row:hover, .download-card:hover { border-color: var(--line-strong); }
.news-card__image, .news-row__image, .article-view__cover { display: block; min-height: 160px; background: #101522; overflow: hidden; }
.news-card__image img, .news-row__image img, .article-view__cover img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; transition: transform .45s ease, filter .45s ease; }
.news-card:hover img, .news-row:hover img { transform: scale(1.035); filter: contrast(1.06); }
.news-card__body, .news-row__body { padding: 16px; }
time { color: var(--muted); font-size: .78rem; }
.news-card h3, .news-row h2 { margin: 8px 0; line-height: 1.16; }
.news-card h3 { font-size: 1.08rem; }
.news-row h2 { font-size: 1.32rem; }
.news-card p, .news-row p { color: var(--muted); margin-top: 0; }
.news-list { display: grid; gap: 16px; }
.news-row { display: grid; grid-template-columns: 235px 1fr; }
.news-row__image { min-height: 100%; }
.tag { display: inline-flex; margin-left: 10px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: #ffe1a6; background: rgba(255,176,0,.08); font-size: .72rem; font-weight: 900; }

.page-title { padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.page-title h1 { margin: 8px 0; font-size: clamp(1.65rem, 3.2vw, 2.75rem); line-height: 1; text-transform: uppercase; letter-spacing: -.04em; }
.page-title p { max-width: 760px; color: var(--muted); }
.article-view { padding: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.article-view__cover { min-height: 300px; }
.article-view__meta, .article-view h1, .article-body, .article-source { margin-left: clamp(18px, 4vw, 38px); margin-right: clamp(18px, 4vw, 38px); }
.article-view__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.article-view h1 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.05; }
.article-body p { color: #c7d1df; font-size: .96rem; }
.article-points { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.article-points li { padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.035); color: #dfe8f6; }
.article-source { color: var(--muted); }

.comments { margin-top: 24px; padding: 20px; border-radius: var(--radius); }
.comment-form { display: grid; gap: 12px; margin-bottom: 20px; }
.comment-list { display: grid; gap: 12px; }
.comment-item { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.comment-item__avatar, .profile-card__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), #3a147e); font-weight: 900; }
.comment-item header { display: flex; justify-content: space-between; gap: 12px; }
.comment-item p { margin-bottom: 0; color: #dbe4f0; }

.side-panel { display: grid; gap: 18px; }
.widget { padding: 16px; }
.widget .btn + .btn { margin-top: 10px; }
.widget__title { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: .075em; }
.widget__title img { width: 18px; height: 18px; }
.widget p, .hint { color: var(--muted); font-size: .86rem; }
.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.profile-card span { display: block; color: var(--muted); }
.profile-card__avatar--big { width: 70px; height: 70px; font-size: 1.7rem; }
.server-row { width: 100%; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 0; border: 0; border-top: 1px solid var(--line); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.server-row small { display: block; color: var(--muted); font-size: .74rem; }
.status { font-style: normal; font-size: .68rem; text-transform: uppercase; font-weight: 1000; letter-spacing: .04em; white-space: nowrap; }
.status--online { color: var(--ok); }
.status--warn { color: var(--warn); }
.status--offline { color: var(--bad); }

form label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); background: rgba(0,0,0,.25); outline: none; }
select option { color: #111; }
input:focus, textarea:focus, select:focus { border-color: rgba(142,88,255,.55); box-shadow: 0 0 0 4px rgba(142,88,255,.08); }
.auth-card, .modal-form { display: grid; gap: 14px; }
.auth-card { max-width: 460px; padding: 20px; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-row input { width: auto; }
.form-block { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.form-block legend { padding: 0 7px; color: #fff; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.profile-form-grid__submit { grid-column: 1 / -1; }

.profile-page { display: grid; gap: 18px; }
.profile-hero { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius); }
.profile-hero h2 { margin: 0; font-size: 1.55rem; }
.profile-hero p { margin: 6px 0 0; color: var(--muted); }
.profile-comment { padding: 14px 0; border-top: 1px solid var(--line); }
.profile-comment p { color: #dbe4f0; }

.download-mini-grid, .downloads-grid { display: grid; gap: 14px; }
.download-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); transition: transform .18s ease, border-color .18s ease; }
.download-card > img, .download-card__icon img { width: 30px; height: 30px; }
.download-card h2, .download-card h3 { margin: 0 0 5px; }
.download-card p { margin: 0 0 8px; color: var(--muted); }
.download-card small { color: var(--muted); }
.download-card--large { grid-template-columns: 44px 1fr 140px; align-items: start; }
.download-card__top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.download-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.download-meta div { padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.16); }
.download-meta dt { color: var(--muted); font-size: .72rem; }
.download-meta dd { margin: 2px 0 0; font-weight: 900; }
.download-status { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; padding: 6px 9px; border: 1px solid rgba(147,160,179,.28); border-radius: var(--radius-sm); color: var(--muted); background: linear-gradient(135deg, rgba(147,160,179,.10), rgba(255,255,255,.025)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); font-size: .68rem; font-weight: 1000; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.download-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; flex: 0 0 auto; }
.download-status--ready { color: var(--ok); border-color: rgba(66,226,138,.36); background: linear-gradient(135deg, rgba(66,226,138,.12), rgba(255,255,255,.025)); }
.download-status--maintenance { color: var(--warn); border-color: rgba(255,203,92,.36); background: linear-gradient(135deg, rgba(255,203,92,.12), rgba(255,255,255,.025)); }
.download-status--soon { color: #8fb8ff; border-color: rgba(143,184,255,.36); background: linear-gradient(135deg, rgba(143,184,255,.12), rgba(255,255,255,.025)); }
.download-status--testing { color: #c59bff; border-color: rgba(197,155,255,.36); background: linear-gradient(135deg, rgba(197,155,255,.12), rgba(255,255,255,.025)); }
.download-status--deprecated { color: #b0b7c4; border-color: rgba(176,183,196,.32); background: linear-gradient(135deg, rgba(176,183,196,.10), rgba(255,255,255,.025)); }
.download-status--disabled { color: #ff9e62; border-color: rgba(255,158,98,.36); background: linear-gradient(135deg, rgba(255,158,98,.12), rgba(255,255,255,.025)); }
.download-status--offline, .download-status--unknown { color: var(--bad); border-color: rgba(255,98,98,.36); background: linear-gradient(135deg, rgba(255,98,98,.12), rgba(255,255,255,.025)); }
.download-disabled { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 12px; border: 1px solid rgba(255,203,92,.28); border-radius: var(--radius-sm); color: #ffe0a0; background: linear-gradient(135deg, rgba(255,203,92,.08), rgba(0,0,0,.20)); font-weight: 850; text-transform: none; font-size: .74rem; line-height: 1.35; text-align: center; }
.download-disabled--ready { color: #b9ffd5; border-color: rgba(66,226,138,.30); background: linear-gradient(135deg, rgba(66,226,138,.08), rgba(0,0,0,.20)); }
.download-disabled--maintenance { color: #ffe0a0; border-color: rgba(255,203,92,.30); background: linear-gradient(135deg, rgba(255,203,92,.08), rgba(0,0,0,.20)); }
.download-disabled--soon { color: #c8dcff; border-color: rgba(143,184,255,.30); background: linear-gradient(135deg, rgba(143,184,255,.08), rgba(0,0,0,.20)); }
.download-disabled--testing { color: #e2d0ff; border-color: rgba(197,155,255,.30); background: linear-gradient(135deg, rgba(197,155,255,.08), rgba(0,0,0,.20)); }
.download-disabled--deprecated { color: #d1d6df; border-color: rgba(176,183,196,.28); background: linear-gradient(135deg, rgba(176,183,196,.07), rgba(0,0,0,.20)); }
.download-disabled--disabled { color: #ffd3b8; border-color: rgba(255,158,98,.30); background: linear-gradient(135deg, rgba(255,158,98,.08), rgba(0,0,0,.20)); }
.download-disabled--offline, .download-disabled--unknown { color: #ffc8c8; border-color: rgba(255,98,98,.30); background: linear-gradient(135deg, rgba(255,98,98,.08), rgba(0,0,0,.20)); }
.checksum { color: var(--muted); font-size: .78rem; word-break: break-all; }
code { color: #d8c7ff; }

.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.05); animation: slideDown .24s ease-out; }
.alert--success { border-color: rgba(64,226,138,.35); color: #adffd0; background: rgba(64,226,138,.08); }
.alert--error { border-color: rgba(255,93,93,.35); color: #ffd0d0; background: rgba(255,93,93,.08); }
.empty-state { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.025); }
.error-page { padding: 36px; border-radius: var(--radius); }

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
}
.modal-layer[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(14px) saturate(118%);
    animation: fadeIn .18s ease-out;
}
.modal-window {
    position: relative;
    z-index: 1;
    display: none;
    width: min(470px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 22px;
    border-radius: var(--radius);
    animation: modalIn .22s cubic-bezier(.2,.8,.2,1);
    scrollbar-width: thin;
}
.modal-window.is-active { display: block; }
.modal-window--wide { width: min(900px, 100%); }
.modal-window h2 { margin: 8px 42px 18px 0; font-size: 1.38rem; }
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    z-index: 2;
}
.modal-close:hover { background: rgba(255,255,255,.14); }
.server-modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.server-card { padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.server-card header { display: flex; justify-content: space-between; gap: 12px; }
.server-card h3 { margin: 0; }
.server-card p { color: var(--muted); margin: 4px 0 0; }
.server-card dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 0; }
.server-card dl div { padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.16); }
.server-card dt { color: var(--muted); font-size: .74rem; }
.server-card dd { margin: 2px 0 0; font-weight: 900; }
.server-note { padding-top: 12px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.tilt-card { transition: transform .16s ease, border-color .18s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1080px) {
    .layout-grid { grid-template-columns: 1fr; }
    .side-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modal-window--wide { width: min(840px, 100%); }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .parallax-stage { min-height: 230px; }
    .news-grid { grid-template-columns: 1fr; }
    .download-card--large { grid-template-columns: 40px 1fr; }
    .download-card__action { grid-column: 1 / -1; }
    .profile-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 12.8px; }
    body.is-modal-open { overflow: hidden; }
    .container { width: min(100% - 22px, 1180px); }
    .topbar__inner { min-height: 58px; gap: 10px; }
    .brand__text small { display: none; }
    .brand__logo { width: 104px; height: 32px; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        inset: 58px 11px auto 11px;
        z-index: 40;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(7,9,13,.96);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        backdrop-filter: blur(18px);
    }
    .main-nav.is-open { display: flex; animation: slideDown .18s ease-out; }
    .main-nav a { border-radius: var(--radius-sm); padding: 10px 11px; }
    .site-main { padding: 18px 0 38px; }
    .layout-grid { gap: 18px; }
    .content-panel > * + *, .profile-page > * + * { margin-top: 18px; }
    .hero { padding: 20px; gap: 12px; }
    .hero h1 { font-size: clamp(2rem, 14vw, 3.2rem); letter-spacing: -.055em; }
    .hero p { font-size: .92rem; }
    .hero__actions, .section-head { gap: 9px; }
    .hero__actions .btn { width: 100%; }
    .parallax-stage { min-height: 180px; }
    .vg-model { right: 50%; top: 24px; width: 150px; height: 150px; transform: translateX(50%) rotateX(8deg) rotateY(-12deg); }
    .orb--back { right: 18%; top: 8px; }
    .orb--mid { left: 18%; bottom: 16px; }
    .stats-grid, .feature-grid, .side-panel, .server-modal-grid { grid-template-columns: 1fr; }
    .section-head { align-items: start; display: grid; margin: 24px 0 12px; }
    .section-head h2 { font-size: 1.35rem; }
    .news-row { grid-template-columns: 1fr; }
    .article-view__cover { min-height: 210px; }
    .article-view__meta { display: grid; }
    .article-view__header, .article-body, .article-source { margin-left: 16px; margin-right: 16px; }
    .comment-item { grid-template-columns: 36px 1fr; padding: 12px; }
    .comment-item header { display: grid; }
    .download-card, .download-card--large { grid-template-columns: 1fr; }
    .download-meta { grid-template-columns: 1fr; }
    .profile-hero { display: grid; padding: 16px; }
    .profile-card__avatar--big { width: 58px; height: 58px; font-size: 1.35rem; }
    .profile-hero h2 { font-size: 1.28rem; }
    .panel-box, .feature-card, .widget, .auth-card { padding: 15px; }
    .modal-layer {
        place-items: start center;
        padding: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal-window {
        width: 100%;
        max-height: calc(100dvh - 16px);
        padding: 18px 14px 16px;
    }
    .modal-window h2 { font-size: 1.22rem; margin-right: 38px; }
    .modal-form { gap: 12px; }
    .form-block { padding: 12px; }
    input, textarea, select { padding: 9px 10px; }
    .server-card header { display: grid; }
    .server-card dl { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .container { width: min(100% - 16px, 1180px); }
    .hero { padding: 16px; }
    .btn { width: 100%; }
    .modal-layer { padding: 6px; }
    .modal-window { padding: 16px 12px 14px; }
    .download-card, .news-card, .server-card, .form-block { border-radius: var(--radius-sm); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
