


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    
    --bg-primary: #0D1117;           
    --bg-secondary: #161B22;          
    --bg-tertiary: #21262D;           
    --bg-glass: rgba(22, 27, 34, 0.7); 
    
    
    --accent-primary: #58A6FF;        
    --accent-secondary: #7EE787;      
    --accent-tertiary: #D2A8FF;       
    --accent-warm: #FFA657;           
    
    
    --gradient-aurora: linear-gradient(135deg, #58A6FF 0%, #7EE787 50%, #D2A8FF 100%);
    --gradient-glow: linear-gradient(135deg, rgba(88, 166, 255, 0.3) 0%, rgba(126, 231, 135, 0.3) 100%);
    --gradient-button: linear-gradient(135deg, #58A6FF 0%, #7EE787 100%);
    
    
    --text-primary: #F0F6FC;          
    --text-secondary: #8B949E;        
    --text-muted: #6E7681;            
    --text-link: #58A6FF;             
    
    
    --border-primary: #30363D;        
    --border-secondary: #21262D;      
    --border-glow: rgba(88, 166, 255, 0.4); 
    
    
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(88, 166, 255, 0.15);
    --shadow-glow-green: 0 0 30px rgba(126, 231, 135, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    
    --glass-blur: blur(16px);
    --glass-border: 1px solid rgba(240, 246, 252, 0.1);
}


body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(88, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(126, 231, 135, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(210, 168, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    position: relative;
    z-index: 1;
}


.header {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1rem 0;
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(13, 17, 23, 0.95);
    box-shadow: var(--shadow-glow);
}

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

.logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 30px rgba(88, 166, 255, 0.5);
}


.nav-container {
    display: flex;
}

.nav {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-aurora);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::before {
    width: calc(100% - 2.5rem);
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.burger-menu:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-glow);
}

.burger-line {
    width: 18px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.burger-line:nth-child(1) {
    top: 12px;
}

.burger-line:nth-child(2) {
    top: 19px;
}

.burger-line:nth-child(3) {
    top: 26px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}


.main-content {
    flex: 1;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.main-content .container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    width: 100%;
}


.content {
    flex: 1;
    order: 1;
    min-width: 0;
    animation: fadeInUp 0.6s ease-out;
}


.sidebar {
    width: 300px;
    flex-shrink: 0;
    order: 2;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 1.75rem;
    border-radius: 16px;
    border: var(--glass-border);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-aurora);
    border-radius: 16px 16px 0 0;
}

.sidebar h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}


h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}


p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}


.recent-posts {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.recent-posts li {
    margin-bottom: 0 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

.recent-posts li:first-child {
    padding-top: 0 !important;
}

.recent-posts li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.recent-posts a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    display: block !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    position: relative;
}

.recent-posts a:hover {
    color: var(--accent-primary) !important;
    padding-left: 12px !important;
}

.recent-posts a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.recent-posts a:hover::before {
    width: 6px;
}


.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-button);
    color: var(--bg-primary);
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.35);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 0.7rem 1.65rem;
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}


.footer {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-primary);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-nav a:hover {
    color: var(--accent-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}


.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    margin-bottom: 2.5rem;
}

.article-content p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.article-content img,
.content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-primary);
}


.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-code {
    font-family: 'Sora', sans-serif;
    font-size: 12rem;
    font-weight: 800;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0.3;
    letter-spacing: -0.05em;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: -5rem;
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.error-page p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin: 2.5rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-suggestions {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: var(--glass-border);
}

.error-suggestions h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--accent-primary);
}

.error-suggestions ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.error-suggestions li a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.error-suggestions li a:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}


.posts-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.post-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.post-item:hover::before {
    opacity: 1;
}

.post-image {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.08);
}

.post-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--accent-primary);
}

.post-content p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.post-content .btn {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    overflow: hidden;
    border: var(--glass-border);
}

table th,
table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

table th {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background: rgba(88, 166, 255, 0.05);
}

table tr:last-child td {
    border-bottom: none;
}


ul, ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

ul li, ol li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

ul li strong, ol li strong {
    color: var(--text-primary);
}


.content ul:not(.posts-list):not(.recent-posts) li::marker {
    color: var(--accent-primary);
}

.content ol li::marker {
    color: var(--accent-primary);
    font-weight: 600;
}


.content a:not(.btn) {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content a:not(.btn):hover {
    border-bottom-color: var(--accent-primary);
}


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

@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--shadow-glow);
    }
    50% {
        box-shadow: 0 0 40px rgba(88, 166, 255, 0.25);
    }
}


a:focus,
.btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


::selection {
    background: rgba(88, 166, 255, 0.3);
    color: var(--text-primary);
}


@media (max-width: 1024px) {
    .main-content .container {
        gap: 2rem;
    }
    
    .sidebar {
        width: 260px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .post-image {
        width: 200px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(ellipse 60% 40% at 30% 30%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse 50% 30% at 70% 70%, rgba(126, 231, 135, 0.08) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        position: relative;
        z-index: 1;
    }
    
    .nav a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .nav a::before {
        display: none;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .main-content .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        position: static;
    }
    
    .content {
        order: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .error-code {
        font-size: 8rem;
    }
    
    .error-page h1 {
        font-size: 1.75rem;
        margin-top: -3rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-suggestions ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 0.875rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .sidebar {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-page h1 {
        font-size: 1.4rem;
        margin-top: -2rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}


.text-accent {
    color: var(--accent-primary);
}

.text-accent-green {
    color: var(--accent-secondary);
}

.text-gradient {
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

.glow-green {
    box-shadow: var(--shadow-glow-green);
}


blockquote {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-left: 3px solid var(--accent-primary);
    margin: 2rem 0;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

blockquote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-aurora);
    box-shadow: 0 0 15px var(--border-glow);
}

blockquote::after {
    content: '"';
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    font-family: 'Sora', sans-serif;
    font-size: 8rem;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    line-height: 1;
}

blockquote p {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-top: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

blockquote cite::before {
    content: '⟶ ';
}

@media (max-width: 768px) {
    blockquote {
        padding: 1.5rem 1.75rem;
        margin: 1.5rem 0;
    }
    
    blockquote p {
        font-size: 1rem;
    }
    
    blockquote::after {
        font-size: 5rem;
    }
}

