



@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');


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


:root {
    
    --bg-light: #F8F6F3;           
    --bg-white: #FFFFFF;            
    --bg-dark: #1A3A34;             
    --bg-dark-accent: #0F2622;      
    
    
    --accent-copper: #B87333;       
    --accent-copper-light: #D4956A; 
    --accent-copper-dark: #8B5A2B;  
    
    
    --text-dark: #2D3436;           
    --text-muted: #636E72;          
    --text-light: #F8F6F3;          
    --text-light-muted: #B2BEC3;    
    
    
    --border-light: #E8E4DF;        
    --border-dark: #2D4A44;         
    --shadow-soft: 0 4px 20px rgba(45, 52, 54, 0.08);
    --shadow-medium: 0 8px 30px rgba(45, 52, 54, 0.12);
    --shadow-hover: 0 12px 40px rgba(184, 115, 51, 0.15);
    
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


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


.header {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, var(--bg-dark-accent) 12%, transparent 12.5%, transparent 87%, var(--bg-dark-accent) 87.5%, var(--bg-dark-accent)),
        linear-gradient(150deg, var(--bg-dark-accent) 12%, transparent 12.5%, transparent 87%, var(--bg-dark-accent) 87.5%, var(--bg-dark-accent)),
        linear-gradient(30deg, var(--bg-dark-accent) 12%, transparent 12.5%, transparent 87%, var(--bg-dark-accent) 87.5%, var(--bg-dark-accent)),
        linear-gradient(150deg, var(--bg-dark-accent) 12%, transparent 12.5%, transparent 87%, var(--bg-dark-accent) 87.5%, var(--bg-dark-accent)),
        linear-gradient(60deg, rgba(184, 115, 51, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(184, 115, 51, 0.08) 75%, rgba(184, 115, 51, 0.08)),
        linear-gradient(60deg, rgba(184, 115, 51, 0.08) 25%, transparent 25.5%, transparent 75%, rgba(184, 115, 51, 0.08) 75%, rgba(184, 115, 51, 0.08));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.4;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0 0.75rem;
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.75rem;
}


.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '◆';
    color: var(--accent-copper);
    font-size: 1.2rem;
}

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


.nav-container {
    display: flex;
    justify-content: center;
    width: 100%;
    border-top: 1px solid var(--border-dark);
    padding-top: 1rem;
}

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

.nav li {
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-copper);
    transition: var(--transition-medium);
}

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

.nav a:hover::after {
    width: 60%;
}


.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: var(--transition-medium);
}

.burger-menu:hover {
    background: rgba(184, 115, 51, 0.2);
    border-color: var(--accent-copper);
}

.burger-line {
    width: 20px;
    height: 2px;
    background-color: var(--accent-copper);
    border-radius: 2px;
    transition: var(--transition-medium);
    position: absolute;
}

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

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

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

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

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

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


.main-content {
    flex: 1;
    padding: 3rem 0;
}

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


.content {
    flex: 1;
    order: 2;
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    animation: slideUp 0.6s ease-out;
}


.sidebar {
    flex: 0 0 280px;
    order: 1;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    height: fit-content;
    position: sticky;
    top: 100px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.sidebar h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-copper);
    position: relative;
}

.sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-copper-light);
}


h1 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-copper), var(--accent-copper-light));
    margin-top: 1rem;
    border-radius: 2px;
}

h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}


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

.recent-posts li {
    margin-bottom: 0 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--border-light) !important;
    counter-increment: post-counter;
    position: relative;
    padding-left: 2.5rem !important;
}

.recent-posts li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-light));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.recent-posts a {
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: var(--transition-medium) !important;
    display: block !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.recent-posts a:hover {
    color: var(--accent-copper) !important;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-dark));
    color: white;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.4);
    background: linear-gradient(135deg, var(--accent-copper-light), var(--accent-copper));
}

.btn-secondary {
    background: transparent;
    color: var(--accent-copper);
    border: 2px solid var(--accent-copper);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--accent-copper);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}


.footer-wave {
    height: 80px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
}

.footer {
    background-color: var(--bg-dark);
    padding: 3rem 0 2rem;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(184, 115, 51, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 115, 51, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo::before {
    content: '◆';
    color: var(--accent-copper);
    font-size: 1rem;
}

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

.footer-nav a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-medium);
    font-size: 0.95rem;
}

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

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


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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.article-content p {
    margin-bottom: 1.5rem;
}

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


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

.post-item {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
    transition: var(--transition-medium);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.post-item:hover {
    border-color: var(--accent-copper-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-medium);
}

.post-item:hover .post-image::after {
    opacity: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

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

.post-content {
    flex: 1;
}

.post-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-medium);
}

.post-item h3 a:hover {
    color: var(--accent-copper);
}

.post-item p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-item .btn {
    margin-top: 0.5rem;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    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-dark);
}

table th {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-accent));
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table tr:hover {
    background-color: rgba(184, 115, 51, 0.05);
}

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


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

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-dark);
}

ul li::marker {
    color: var(--accent-copper);
}

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


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

.error-code {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.error-page h1::after {
    margin: 1rem auto 0;
}

.error-page p {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    max-width: 550px;
    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-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.error-suggestions h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.error-suggestions li {
    padding: 0;
    margin: 0;
}

.error-suggestions li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition-medium);
    border: 1px solid var(--border-light);
    display: block;
}

.error-suggestions li a:hover {
    background-color: var(--accent-copper);
    color: white;
    border-color: var(--accent-copper);
}


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


@media (max-width: 992px) {
    .main-content .container {
        flex-direction: column;
    }
    
    .sidebar {
        order: 2;
        flex: none;
        width: 100%;
        position: static;
    }
    
    .content {
        order: 1;
    }
}


@media (max-width: 768px) {
    .header-content {
        padding: 1rem 0;
    }
    
    .header-top {
        margin-bottom: 0;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        transition: left var(--transition-medium);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: none;
        padding-top: 0;
    }
    
    .nav-container.active {
        left: 0;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav a {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    
    .nav a::after {
        display: none;
    }
    
    .main-content {
        padding: 2rem 0;
    }
    
    .main-content .container {
        gap: 1.5rem;
    }
    
    .content,
    .sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h1::after {
        width: 50px;
        height: 2px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-page h1 {
        font-size: 1.8rem;
    }
    
    .error-page p {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-suggestions ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table th,
    table td {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-width: 120px;
        white-space: nowrap;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .content,
    .sidebar {
        padding: 1.25rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .recent-posts li {
        padding-left: 2.2rem !important;
    }
    
    .recent-posts li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    table th,
    table td {
        padding: 0.6rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
}


blockquote {
    background: var(--bg-white);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent-copper), var(--accent-copper-light)) 1;
    margin: 2rem 0;
    padding: 1.75rem 2rem 1.75rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    counter-increment: blockquote;
}

blockquote::before {
    content: counter(blockquote, decimal-leading-zero);
    position: absolute;
    left: -15px;
    top: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-copper), var(--accent-copper-light));
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
}

blockquote p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-weight: 400;
}

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

blockquote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 600;
}

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


.content,
.article-content {
    counter-reset: blockquote;
}

