/* ============== © 2025 WinPortal ============== */

/* Сброс */
*, *::before, *::after { margin: 0; padding: 0; }
html { height: 100%; min-height: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { min-height: 100%; font-family: 'Manrope', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; outline: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Настройка основной типографии */
:root {
    --bg: #f8f9fc;
    --bg-white: #ffffff;
    --bg-soft: #f1f3f8;
    --bg-input: #eef0f6;
    --border: #e2e5ef;
    --border-hover: #cdd2e0;
    --text: #1a1d2e;
    --text-secondary: #5c6178;
    --text-muted: #8d92a8;
    --accent: #0066dc;
    --accent-hover: #0052b3;
    --accent-light: #e8f0fe;
    --accent-glow: rgba(0, 102, 220, 0.08);
    --green: #18845a;
    --green-bg: #e6f5ee;
    --green-border: #b8e0cc;
    --orange: #c2710c;
    --orange-bg: #fff4e0;
    --orange-border: #f0d8a8;
    --purple: #7c3aed;
    --purple-bg: #f0ecfe;
    --purple-border: #d4c8f8;
    --red: #dc2626;
    --cyan: #0891b2;
    --win11: #0078d4;
    --win10: #0067b8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 7px;
    --radius-xl: 20px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --transition: 0.2s ease;
}

/* Заголовки H1-6 */
h1, h2, h3, h4, h5 {
    letter-spacing: -0.01em;
    line-height: normal;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 24px; }


/* ============== Шапка сайта ============== */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 100px;
    height: 34px;
    background: linear-gradient(135deg, #0078d4, #005a9e);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,120,212,0.25);
}

.logo em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 10px; }

.search-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.search-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
}


/* ============== Главная - Hero секция ============== */

.hero {
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(0,102,220,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 18px 6px 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    position: relative;
}

.hero h1 .hl { color: var(--accent); }

.hero p {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; position: relative; }


/* ============== Кнопки ============== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,102,220,0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,102,220,0.3);
}

.btn-outline {
    background: var(--bg-white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn-green {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24,132,90,0.25);
    width: 81%;
    margin-bottom: 10px;
}

.btn-green:hover { background: #157049; transform: translateY(-1px); }

.btn-orange {
    background: var(--bg-white);
    color: var(--orange);
    border: 1px solid var(--orange-border);
    width: 81%;
}

.btn-orange:hover { background: var(--orange-bg); }


/* ============== Фильтры ============== */

.filters { padding: 0 0 36px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.filter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fbtn {
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.fbtn:hover { border-color: var(--accent); color: var(--accent); }
.fbtn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

.sec-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ============== Карточки с постером ============== */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 50px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.45s ease both;
}

.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.08s; }
.card:nth-child(4) { animation-delay: 0.12s; }
.card:nth-child(5) { animation-delay: 0.16s; }
.card:nth-child(6) { animation-delay: 0.2s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

.card-inner { display: flex; align-items: stretch; gap: 0; }

/* Мини DVD-постер */
.card-poster {
    display: block;
    flex-shrink: 0;
    width: 180px;
    padding: 16px;
    background: linear-gradient(160deg, #1a2744 0%, #0f1a2e 60%, #162340 100%);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card-poster::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.04);
}

.card:hover .card-poster {
    background: linear-gradient(160deg, #1e2f52 0%, #13203a 60%, #1a2a4a 100%);
}

.mini-dvd { height: 100%; display: flex; align-items: center; justify-content: center; }

.mini-case {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 180px;
    width: 100%;
    padding: 4px 0;
}

.mc-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 4px; }
.mc-brand { font-size: 0.55rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

.mc-arch {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
}

.mc-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.mc-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 56px; height: 56px; }
.mc-logo div { border-radius: 2px; }

.mc-os { font-size: 0.95rem; font-weight: 800; color: rgba(255,255,255,0.85); letter-spacing: -0.02em; text-align: center; line-height: 1; margin: 6px 0 2px; }
.mc-ed { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.3); text-align: center; }
.mc-build { font-family: 'IBM Plex Mono', monospace; font-size: 0.52rem; color: rgba(255,255,255,0.25); text-align: center; margin-top: 6px; }

/* Контент карточки */
.card-content {
    flex: 1;
    padding: 18px 22px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-title a { transition: var(--transition); }
.card-title a:hover { color: var(--accent); }

.card-desc {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }

.meta-size {
    margin-left: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(8,145,178,0.08);
    padding: 3px 10px;
    border-radius: 50px;
}

.card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
    margin-top: auto;
}

.card-more:hover { background: #dae8fc; border-color: rgba(0,102,220,0.15); }


/* ============== Теги ============== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tag-w11, .tag-win11 { background: #e0f0ff; color: #005a9e; }
.tag-w10, .tag-win10 { background: #dcf4ff; color: #0067b8; }
.tag-a, .tag-arch { background: var(--purple-bg); color: var(--purple); font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; }
.tag-ltsc { background: var(--orange-bg); color: var(--orange); }
.tag-new { background: var(--green-bg); color: var(--green); }
.tag-edu { background: #e8f0fe; color: #1a56db; }
.tag-arm { background: #fce8f3; color: #be185d; }


/* ============== Категория - Hero ============== */

.cat-hero {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.cat-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 350px;
    height: 350px;
    background: rgba(0,120,212,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.cat-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.cat-hero p { color: var(--text-secondary); font-size: 1.02rem; max-width: 600px; position: relative; }
.cat-stats { display: flex; gap: 30px; margin-top: 22px; position: relative; }
.cat-stat .num { font-size: 1.5rem; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }
.cat-stat .lbl { font-size: 0.78rem; color: var(--text-muted); }


/* ============== Пагинация ============== */

.pag { display: flex; justify-content: center; gap: 6px; margin: 0 0 50px; }

.pag-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Manrope', sans-serif;
}

.pag-btn:hover { border-color: var(--accent); color: var(--accent); }
.pag-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }


/* ============== Пост - Хлебные крошки ============== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.35; }


/* ============== Пост - Макет ============== */

.post-page { padding: 0 0 80px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding-top: 28px;
    align-items: start;
}

.post-main { min-width: 0; }

.post-title {
    font-size: clamp(1.6rem, 2.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
	margin-top: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-meta .item { display: flex; align-items: center; gap: 6px; }


/* ============== DVD обложка ============== */

.dvd-wrapper { display: flex; justify-content: center; margin: 0 0 36px; }

.dvd-case {
    width: 360px;
    max-width: 100%;
    min-height: 470px;
    background: linear-gradient(160deg, #1b2a4a 0%, #0f1b30 50%, #162340 100%);
    border-radius: 4px 12px 12px 4px;
    padding: 20px 24px 18px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: #fff;
    box-shadow: -5px 0 0 0 #0c1525, -6px 0 0 0 #2a3a5c, 0 12px 40px rgba(15,27,48,0.35);
    transition: transform 0.4s ease;
}

.dvd-case:hover { transform: perspective(600px) rotateY(-4deg); }
.dvd-case::before { content: ''; position: absolute; left: 24px; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,0.06); }
.dvd-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.dvd-brand { font-weight: 300; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.dvd-os { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-top: 2px; background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.6)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.dvd-arch-label {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 5px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
}

.dvd-center { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.win-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 120px; height: 120px; }
.win-logo div { border-radius: 3px; }

.dvd-edition {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    white-space: nowrap;
}

.dvd-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 14px; display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.dvd-info { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: rgba(255,255,255,0.4); line-height: 1.6; }

.dvd-oem {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.1;
}


/* ============== Контент-карточки (пост) ============== */

.card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2:not(:first-child) { margin-top: 28px; }
.card p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.75; font-size: 0.95rem; }
.card ul { margin: 8px 0 18px 22px; }

.card ul li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* Пост-карточка (контентная) */
.post-main .card {
    padding: 30px;
    margin-bottom: 20px;
}


/* ============== Таблица характеристик ============== */

.specs-table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 13px 0; font-size: 0.9rem; vertical-align: top; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; width: 170px; padding-right: 20px; }
.specs-table td:last-child { color: var(--text); font-weight: 500; }

.hash {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    word-break: break-all;
    cursor: pointer;
    padding: 3px 8px;
    background: var(--bg-soft);
    border-radius: 4px;
    display: inline-block;
    border: 1px solid transparent;
    transition: var(--transition);
}

.hash:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }


/* ============== Кнопки скачивания ============== */

.dl-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.dl-section h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.dl-list { display: flex; flex-direction: column; gap: 10px; }

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.dl-direct { background: var(--green-bg); border-color: var(--green-border); }
.dl-direct:hover { background: #d4ede0; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(24,132,90,0.12); }
.dl-torrent { background: var(--orange-bg); border-color: var(--orange-border); }
.dl-torrent:hover { background: #ffecc8; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(194,113,12,0.12); }
.dl-magnet { background: var(--purple-bg); border-color: var(--purple-border); }
.dl-magnet:hover { background: #e4dcfc; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,58,237,0.12); }

.dl-left { display: flex; align-items: center; gap: 14px; }

.dl-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dl-direct .dl-icon { background: rgba(24,132,90,0.12); }
.dl-torrent .dl-icon { background: rgba(194,113,12,0.12); }
.dl-magnet .dl-icon { background: rgba(124,58,237,0.12); }
.dl-text strong { display: block; font-size: 0.95rem; color: var(--text); margin-bottom: 2px; }
.dl-text span { font-size: 0.8rem; color: var(--text-muted); }
.dl-size { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }


/* ============== Системные требования ============== */

.sysreq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

.sysreq-item {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--border);
}

.sysreq-item .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }
.sysreq-item .val { font-size: 0.88rem; font-weight: 600; }
.sysreq-item.wide { grid-column: span 2; }


/* ============== Боковая панель ============== */

.sidebar { position: sticky; top: 310px; }

.sb-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.sb-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.qs-list { display: flex; flex-direction: column; gap: 10px; }
.qs-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.qs-label { color: var(--text-muted); font-weight: 500; }
.qs-val { font-weight: 600; }
.qs-val.mono { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; }
.qs-val.accent { color: var(--accent); }
.qs-divider { height: 1px; background: var(--border); }
.sb-cta { border-color: var(--green-border); background: linear-gradient(180deg, #fff 0%, var(--green-bg) 100%); }
.sb-links { display: flex; flex-direction: column; gap: 4px; }

.sb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sb-link:hover { background: var(--accent-light); color: var(--accent); }

.sb-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.87rem;
}

.sb-related-item:hover { background: var(--bg-soft); }
.sb-related-item .ri-title { font-weight: 600; line-height: 1.3; }
.sb-related-item .ri-sub { font-size: 0.78rem; color: var(--text-muted); }


/* ============== FAQ ============== */

.faq-hero {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-card);
}

.faq-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.faq-hero p { color: var(--text-secondary); font-size: 1.02rem; max-width: 600px; }

.faq-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
    animation: fadeUp 0.4s ease both;
}

.faq-card:nth-child(2) { animation-delay: 0.04s; }
.faq-card:nth-child(3) { animation-delay: 0.08s; }
.faq-card:nth-child(4) { animation-delay: 0.12s; }
.faq-card:nth-child(5) { animation-delay: 0.16s; }

.faq-card h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.faq-card p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.75; font-size: 0.95rem; }
.faq-card ul { margin: 8px 0 16px 22px; }

.faq-card ul li {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 7px;
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

.faq-card ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; opacity: 0.5; }

.code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    background: var(--bg-soft);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--cyan);
    overflow-x: auto;
    display: block;
    border: 1px solid var(--border);
    margin: 8px 0 14px;
}


/* ============== Комментарии ============== */

.comments-section { max-width: 1240px; margin: 0 auto; padding: 0 24px 60px; }

.comments-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title .count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 2px 10px;
    border-radius: 50px;
}

/* Форма комментария */
.comment-form { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-row.full { flex-direction: column; }

.form-input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-soft);
    transition: var(--transition);
    outline: none;
    resize: none;
}

.form-input:focus { border-color: var(--accent); background: var(--bg-white); box-shadow: 0 0 0 3px rgba(0,102,220,0.08); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 100px; line-height: 1.6; }
.form-actions { display: flex; gap: 10px; align-items: center; }

.btn-submit {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,102,220,0.2);
}

.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,102,220,0.25); }

.btn-cancel {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    display: none;
}

.btn-cancel:hover { border-color: var(--border-hover); background: var(--bg-soft); }
.btn-cancel.visible { display: inline-block; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

/* Список комментариев */
.comments-list { display: flex; flex-direction: column; gap: 0; }
.comments-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.95rem; }
.comments-empty span { display: block; font-size: 1.8rem; margin-bottom: 8px; }

.comment { padding: 20px 0; border-bottom: 1px solid var(--border); animation: fadeUp 0.3s ease; }
.comment:last-child { border-bottom: none; padding-bottom: 0; }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.comment-author { display: flex; align-items: center; gap: 10px; }

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.comment-avatar.admin { background: linear-gradient(135deg, var(--accent), #004aad); }
.comment-avatar.user { background: linear-gradient(135deg, #64748b, #475569); }
.comment-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }

.comment-name .admin-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--accent-light);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 50px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-date { font-size: 0.78rem; color: var(--text-muted); }
.comment-actions { display: flex; gap: 4px; }

.comment-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.comment-btn:hover { background: var(--bg-soft); border-color: var(--border); }
.comment-btn.edit:hover { color: var(--accent); }
.comment-btn.delete:hover { color: #dc2626; border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.05); }

.comment-body { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.7; padding-left: 46px; }
.comment-body.edited::after { content: ' (ред.)'; font-size: 0.78rem; color: var(--text-muted); font-style: italic; }

.comment-edit-area { padding-left: 46px; margin-top: 10px; display: none; }
.comment-edit-area.active { display: block; }

.comment-edit-area textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-white);
    outline: none;
    resize: none;
    min-height: 80px;
    line-height: 1.6;
    box-shadow: 0 0 0 3px rgba(0,102,220,0.08);
}

.comment-edit-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-save { padding: 8px 18px; border-radius: var(--radius-sm); border: none; background: var(--green); color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.btn-save:hover { background: #157049; }
.btn-cancel-edit { padding: 8px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-white); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--text-secondary); }
.btn-cancel-edit:hover { background: var(--bg-soft); }

.delete-confirm {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(220,38,38,0.04);
    border: 1px solid rgba(220,38,38,0.15);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    margin-left: 46px;
    font-size: 0.85rem;
    color: #991b1b;
}

.delete-confirm.active { display: flex; }
.btn-confirm-del { padding: 6px 14px; border-radius: var(--radius-sm); border: none; background: #dc2626; color: #fff; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.btn-confirm-del:hover { background: #b91c1c; }
.btn-cancel-del { padding: 6px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-white); font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--text-secondary); }


/* ============== Подвал сайта ============== */

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    padding: 50px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.87rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}


/* ============== Анимации ============== */

.post-main > * { animation: fadeUp 0.45s ease both; }
.post-main > :nth-child(1) { animation-delay: 0s; }
.post-main > :nth-child(2) { animation-delay: 0.04s; }
.post-main > :nth-child(3) { animation-delay: 0.08s; }
.post-main > :nth-child(4) { animation-delay: 0.12s; }
.post-main > :nth-child(5) { animation-delay: 0.16s; }
.post-main > :nth-child(6) { animation-delay: 0.2s; }
.post-main > :nth-child(7) { animation-delay: 0.24s; }
.post-main > :nth-child(8) { animation-delay: 0.28s; }


/* ============== Частые стили ============== */

.hide { display: none; }
.nobr { white-space: nowrap; }


/* ============== Адаптивность ============== */

@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-btn { display: block; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .hero { padding: 45px 0 35px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .sysreq { grid-template-columns: 1fr; }
    .sysreq-item.wide { grid-column: span 1; }
    .dvd-case { min-height: 400px; width: 320px; }
    .dvd-os { font-size: 2.2rem; }
    .card-poster { width: 130px; padding: 12px; }
    .mc-logo { width: 44px; height: 44px; }
    .mc-os { font-size: 0.82rem; }
    .post-main .card { padding: 22px; }
    .faq-card { padding: 22px; }
    .cat-stats { flex-wrap: wrap; gap: 18px; }
    .cat-hero { padding: 28px; }
    .comment-body, .comment-edit-area, .delete-confirm { padding-left: 0; margin-left: 0; }
    .form-row { flex-direction: column; }
    .form-actions { flex-wrap: wrap; }
    .form-hint { margin-left: 0; width: 100%; margin-top: 4px; }
}

@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-inner { flex-direction: column; }
    .card-poster { width: 100%; padding: 20px; min-height: 140px; }
    .mini-case { flex-direction: row; min-height: auto; align-items: center; gap: 16px; }
    .mc-center { flex: 0; }
    .mc-top { width: auto; flex-direction: column; gap: 4px; }
    .mc-os { margin: 0; }
    .mc-ed { text-align: left; }
    .mc-build { text-align: left; margin-top: 2px; }
    .dl-btn { flex-direction: column; align-items: flex-start; gap: 10px; }
    .dl-size { align-self: flex-end; }
}


/* ============== Скроллбар ============== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
