


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


:root {
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-hover: #F8FAFC;
    
    
    --accent-primary: #4338CA;
    --accent-secondary: #F97316;
    --accent-hover: #3730A3;
    
    
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-light: #FFFFFF;
    
    
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-accent: #4338CA;
    
    
    --shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-medium: 0 4px 12px rgba(15, 23, 42, 0.06);
}


body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}


.header {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

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


.nav-container {
    display: flex;
}

.nav {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav li {
    display: flex;
    align-items: center;
}

.nav li:not(:last-child)::after {
    content: '·';
    color: var(--text-muted);
    margin: 0 1rem;
    font-size: 1.25rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s ease;
    letter-spacing: 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-line {
    width: 20px;
    height: 1.5px;
    background-color: var(--text-primary);
    border-radius: 0;
    transition: all 0.3s ease;
    position: absolute;
}

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

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

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

.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: 4rem 0;
}

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


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


.sidebar {
    width: 240px;
    flex-shrink: 0;
    order: 2;
    padding: 0 0 0 2rem;
    height: fit-content;
    position: sticky;
    top: 120px;
    border-left: 1px solid var(--border-light);
    animation: fadeIn 0.4s ease-out 0.1s both;
}

.sidebar h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}


h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

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


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


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

.recent-posts li {
    margin-bottom: 0 !important;
    padding: 0.875rem 0 !important;
    border-bottom: 1px solid var(--border-light) !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.9rem !important;
    line-height: 1.5 !important;
    display: block !important;
    transition: color 0.2s ease !important;
    padding: 0 !important;
}

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


.btn {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0;
    transition: all 0.2s ease;
    border: 1px solid var(--text-primary);
    cursor: pointer;
    border-radius: 0;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--text-light);
    border-color: var(--text-primary);
}


.footer {
    background-color: var(--bg-primary);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

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

.footer-logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
}

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

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

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


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

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

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

.article-content img,
.content img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 0;
}


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

.error-code {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 8rem;
    font-weight: 400;
    color: var(--border-light);
    margin-bottom: 0;
    line-height: 1;
}

.error-page h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: -1rem;
}

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

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

.error-suggestions {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
}

.error-suggestions h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.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 0;
    transition: color 0.2s ease;
    position: relative;
}

.error-suggestions li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.error-suggestions li a:hover::after {
    transform: scaleX(1);
}


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

.post-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: none;
}

.post-item:first-child {
    padding-top: 0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-image {
    flex-shrink: 0;
    width: 240px;
    height: 135px;
    overflow: hidden;
    border-radius: 0;
}

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

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

.post-content {
    flex: 1;
}

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

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    background-image: linear-gradient(var(--accent-primary), var(--accent-primary));
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.post-content h3 a:hover {
    color: var(--accent-primary);
    background-size: 100% 1px;
}

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

.post-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
}

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

table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table tr:hover {
    background-color: var(--bg-hover);
}

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


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

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

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


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


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


@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .main-content .container {
        gap: 3rem;
    }
    
    .sidebar {
        width: 220px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .post-image {
        width: 200px;
        height: 112px;
    }
}

@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-color: var(--bg-primary);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    
    .nav li:not(:last-child)::after {
        display: none;
    }
    
    .nav a {
        font-size: 1.25rem;
        padding: 1rem;
        display: block;
    }
    
    .nav a::after {
        display: none;
    }
    
    .main-content {
        padding: 3rem 0;
    }
    
    .main-content .container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        position: static;
        border-left: none;
        border-top: 1px solid var(--border-light);
        padding: 2rem 0 0 0;
    }
    
    .content {
        order: 1;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .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.875rem;
        min-width: 120px;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-page h1 {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-suggestions ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .sidebar {
        padding-top: 1.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .post-content h3 {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
        width: 100%;
        text-align: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-page h1 {
        font-size: 1.25rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.8125rem;
        min-width: 100px;
    }
}


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

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

.bg-accent {
    background-color: var(--bg-secondary);
}


blockquote {
    background-color: transparent;
    border-left: 2px solid var(--accent-primary);
    margin: 2rem 0;
    padding: 0 0 0 2rem;
    position: relative;
}

blockquote::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

blockquote p {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.75;
    font-weight: 400;
}

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

blockquote cite {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

blockquote cite::before {
    content: '— ';
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    blockquote {
        padding-left: 1.5rem;
        margin: 1.5rem 0;
    }
    
    blockquote p {
        font-size: 1.05rem;
    }
}


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