:root {
    --bg: #0d151b;
    --bg-soft: #141f27;
    --card: #0f1b23;
    --accent: #f4cc5f;
    --accent-soft: rgba(244, 204, 95, 0.17);
    --text: #ffffff;
    --muted: rgba(255,255,255,0.56);
    --radius-lg: 18px;
    --radius-sm: 12px;
    --shadow: 0 16px 40px rgba(0,0,0,0.35);
    --sidebar-width: 245px;
    --gap: 24px;
    --accent-grad: radial-gradient(circle at 50% 50%, rgba(244, 204, 95, 0.25) 0%, rgba(244, 204, 95, 0) 65%);
    --border: rgba(255, 255, 255, 0.05);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: radial-gradient(circle at top, #101922, #0a1014 45%, #000 100%);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: rgba(12, 21, 27, 0.85);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255,255,255,0.03);
    padding: 28px 22px 18px;
    display: flex; flex-direction: column; gap: 30px;
}

.logo-wrap { display: flex; align-items: center; gap: 14px; }

.logo-circle {
    width: 46px; height: 46px;
    background: linear-gradient(165deg, #f4cc5f 0%, #92681f 100%);
    border-radius: 18px; display: grid; place-items: center;
    font-weight: 700; color: #0a1014; font-size: 18px;
    box-shadow: 0 12px 24px rgba(244, 204, 95, .4);
}

.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-name { font-weight: 700; letter-spacing: 0.04em; font-size: 13.5px; }
.logo-sub { font-size: 11px; color: var(--muted); }

.menu-title {
    text-transform: uppercase; font-size: 10px; letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35); margin-bottom: 10px;
}

.menu { display: flex; flex-direction: column; gap: 6px; }
.menu-link {
    display: block; text-decoration: none; color: rgba(255,255,255,0.6);
    padding: 8px 14px; border-radius: 12px; font-size: 13.5px; transition: 0.15s ease-out;
}
.menu-link:hover { background: rgba(244, 204, 95, 0.12); color: #fff; }
.menu-link.active {
    background: linear-gradient(120deg, rgba(244, 204, 95, 0.25), rgba(244, 204, 95, 0));
    border: 1px solid rgba(244, 204, 95, 0.3); color: #fff;
}

.footer-note { margin-top: auto; font-size: 12px; color: rgba(255,255,255,0.25); }

.content { flex: 1; display: flex; padding: 30px 0 40px; position: relative; }

.page {
    width: min(1180px, 100%); margin: 0 auto; padding: 0 34px 0 34px;
    display: flex; flex-direction: column; gap: 28px; position: relative;
}

.content::before {
    content: ""; position: absolute; right: 0; top: 120px;
    width: 46vw; height: 46vw; background: var(--accent-grad);
    filter: blur(70px); pointer-events: none; opacity: .65;
}

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; }

.badge {
    background: rgba(244, 204, 95, 0.1);
    border: 1px solid rgba(244, 204, 95, 0.5);
    border-radius: 999px; padding: 6px 18px;
    font-size: 12.5px; color: #fff;
}

.top-button {
    background: #0f1b23; border: 1px solid rgba(255,255,255,0.04);
    border-radius: 999px; padding: 7px 18px 8px; color: #fff;
    text-decoration: none; font-weight: 500; font-size: 13px; transition: 0.15s;
}
.top-button:hover { background: rgba(244, 204, 95, 0.1); border-color: rgba(244, 204, 95, 0.4); }

.hero {
    background: radial-gradient(circle at top, rgba(13, 21, 27, 0.95), rgba(10, 16, 20, 0.85));
    border: 1px solid rgba(255,255,255,0.02); border-radius: 28px;
    padding: 30px 30px 32px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(26px, 3.1vw, 34px); margin: 0 0 14px; }
.lead {
    max-width: 640px; color: rgba(255,255,255,0.68);
    font-size: 15px; line-height: 1.5; margin-bottom: 12px;
}
.text {
    max-width: 620px; color: rgba(255,255,255,0.5);
    margin-bottom: 20px; font-size: 14px; line-height: 1.55;
}
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.primary-btn {
    background: linear-gradient(160deg, #f4cc5f 2%, #d9a01b 90%);
    color: #0a1014; text-decoration: none; border-radius: 999px;
    padding: 10px 24px 12px; font-weight: 600;
    box-shadow: 0 14px 30px rgba(244, 204, 95, .32);
    transition: transform 0.08s;
}
.primary-btn:active { transform: translateY(1px); }
.ghost-btn {
    background: rgba(15, 27, 35, 0.25);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 999px; padding: 9px 19px 11px;
    text-decoration: none; color: #fff; font-weight: 500;
}

.info-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px; margin-bottom: 24px;
}
.info-card {
    background: rgba(12, 20, 25, 0.35);
    border: 1px solid rgba(255,255,255,0.01);
    border-radius: 18px; padding: 18px 18px 20px;
    backdrop-filter: blur(12px);
}
.info-card h2 { font-size: 15px; margin-bottom: 10px; }
.info-card p { font-size: 13.5px; color: rgba(255,255,255,0.60); line-height: 1.5; }

/* ---------- Новая секция: карточки ченджлогов ---------- */
.changelog { display: flex; flex-direction: column; gap: 16px; }
.cl-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cl-header h2 { margin: 0; font-size: 20px; }

.cl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cl-card {
    position: relative;
    background: rgba(12, 20, 25, 0.42);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 16px 16px 14px;
    overflow: hidden;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    min-height: 210px;
}
.cl-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244,204,95,0.35);
    background: rgba(12, 20, 25, 0.55);
}
.cl-link { position: absolute; inset: 0; z-index: 2; }

.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cl-version { font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.cl-date { font-size: 12px; color: rgba(255,255,255,0.45); }

.cl-title { position: relative; z-index: 1; font-size: 16px; margin: 4px 0 10px; line-height: 1.35; }

.cl-bullets { position: relative; z-index: 1; margin: 0 0 12px 0; padding-left: 18px; }
.cl-bullets li { font-size: 13.5px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }

.cl-footer {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12.5px; color: rgba(255,255,255,0.7);
}
.cl-tag {
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}
.cl-tag.new { border-color: rgba(64,191,112,.35); background: rgba(64,191,112,.12); }
.cl-tag.improved { border-color: rgba(244,204,95,.35); background: rgba(244,204,95,.12); }
.cl-tag.tech { border-color: rgba(120,160,255,.35); background: rgba(120,160,255,.12); }

.cl-read { opacity: .85; }

/* ---------- Оформление страницы ченджлога (article) ---------- */
.article {
    background: radial-gradient(circle at top, rgba(13, 21, 27, 0.95), rgba(10, 16, 20, 0.85));
    border: 1px solid rgba(255,255,255,0.02);
    border-radius: 24px;
    padding: 22px 22px 26px;
    box-shadow: var(--shadow);
}
.article h1 {
    font-size: clamp(22px, 2.8vw, 30px);
    margin: 0 0 6px 0;
}
.article .meta {
    display: flex; gap: 10px; align-items: center;
    color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 10px;
}
.article .meta .dot { width: 4px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.35); display: inline-block; }

.article .sections { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article .sec {
    background: rgba(12, 20, 25, 0.35);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 14px 16px 16px;
}
.article .sec h2 { margin: 0 0 10px; font-size: 16px; }
.article .sec ul { margin: 0; padding-left: 18px; }
.article .sec li { margin-bottom: 8px; color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.5; }

.article .backline {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,0.07);
}
.article .back { text-decoration: none; color: #fff; font-size: 13.5px; opacity: .9; }
.article .back:hover { opacity: 1; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-small {
    font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.badge-small.green { background: rgba(64,191,112,.12); border-color: rgba(64,191,112,.35); }
.badge-small.yellow { background: rgba(244,204,95,.12); border-color: rgba(244,204,95,.35); }
.badge-small.blue { background: rgba(120,160,255,.12); border-color: rgba(120,160,255,.35); }

.hr-soft {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.08), rgba(255,255,255,0));
    margin: 10px 0 14px 0;
}

/* адаптив */
@media (max-width: 1024px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; align-items: center; gap: 16px; }
    .menu { flex-direction: row; }
    .content { padding-top: 16px; }
    .page { width: 100%; padding: 0 16px; }
    .info-grid { grid-template-columns: 1fr; }
    .cl-grid { grid-template-columns: 1fr; }
    .article .sections { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .sidebar { flex-wrap: wrap; }
    .topbar { flex-direction: column; align-items: flex-start; }
    .hero { padding: 22px 18px 24px; }
    .actions { flex-direction: column; align-items: flex-start; }
    .content::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
