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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
}

a:hover {
    background-color: #f0f0f0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

header h1 a {
    border-bottom: none;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-right: 20px;
}

nav a.active {
    font-weight: bold;
}

main {
    padding: 40px 0;
}

.articles article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.articles h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.excerpt {
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
}

.article-content {
    margin-bottom: 60px;
}

.article-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.comments {
    margin-top: 60px;
}

.comments h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 10px;
}

.comment-date {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.comment-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

audio {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
     }

.links h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-description {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.auto-img {
    max-width: 100%;
    height: auto;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.captcha-pic {
    height: 43px;
    width: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .avatar {
        width: 60px;
        height: 60px;
    }
}

.search-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
}

.search-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.search-form .form-group {
    display: flex;
    margin-bottom: 0;
}

.search-form input {
    flex: 1;
    margin-right: 10px;
}

.contact h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
}

.contact-form-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-form,
.form {
    max-width: 500px;
    margin: 0 auto;
}

.form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.article-list {
    list-style: none;
}

.article-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.actions a {
    margin-left: 10px;
    font-size: 14px;
}

footer {
    padding: 15px 0;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #666;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

footer p {
    margin: 0;
    white-space: nowrap;
}

footer .uptime {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

footer a {
    color: #333;
    border-bottom: 1px solid #333;
}

footer a:hover {
    background-color: #f0f0f0;
}

contacts-list {
list-style: none;
}
        
contact-item {
margin-bottom: 20px;
padding: 20px;
border: 1px solid #eee;
background-color: #f9f9f9;
}
        
contact-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
        
contact-info {
flex: 1;
}
        
contact-name {
font-weight: bold;
font-size: 16px;
margin-bottom: 5px;
}
        
contact-meta {
font-size: 14px;
color: #666;
}
        
contact-subject {
font-weight: bold;
margin: 15px 0 10px 0;
color: #333;
}
        
contact-message {
line-height: 1.6;
margin-bottom: 15px;
}
        
contact-actions {
display: flex;
gap: 10px;
}
        
empty-message {
text-align: center;
padding: 40px;
color: #666;
font-style: italic;
}

@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    footer p {
        white-space: normal;
    }
}

@media (min-width: 769px) {
    footer .footer-content {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    header {
        padding: 20px 0;
    }
    
    main {
        padding: 20px 0;
    }
    
    .articles article {
        margin-bottom: 30px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
}

.pagination {
    margin: 30px 0;
    text-align: center;
}
.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}
.pagination a.active {
    background-color: #555;
    color: #fff;
}
.pagination a:hover:not(.active) {
    background-color: #555;
}

pre { 
    background-color: #1e1e1e; 
    color: #ffffff; 
    padding: 16px; 
    border-radius: 4px; 
    overflow-x: auto; 
    margin: 1rem 0; 
    font-family: Consolas, Monaco, monospace; 
} 
code { 
    background-color: #f5f5f5; 
    color: #e63946; 
    padding: 2px 6px; 
    border-radius: 3px; 
    font-family: inherit; 
} 
pre code { 
    background-color: transparent; 
    color: #fff; 
    padding: 0; 
    border-radius: 0; 
} 
blockquote { 
    background-color: #f9f9f9; 
    border-left: 4px solid #666666; 
    padding: 16px; 
    margin: 1rem 0; 
    font-style: italic; 
    line-height: 1.8; 
} 
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 1.5rem 0; 
} 
th, td { 
    border: 1px solid #dddddd; 
    padding: 12px 16px; 
    text-align: left; 
} 
th { 
    background-color: #f2f2f2; 
    font-weight: 600; 
} 
tr:nth-child(even) { 
    background-color: #f9f9f9; 
} 
mark { 
    background-color: #fff34d; 
    padding: 2px 4px; 
    border-radius: 2px; 
    color: #333; 
} 
ul, ol { 
    margin: 0.5rem 0 0.5rem 2rem; 
} 
ul ul, ol ol, ul ol, ol ul { 
    margin: 0 0 0 2rem; 
} 
li { 
    margin: 0.3rem 0; 
} 

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4, 
.article-content h5, 
.article-content h6 { 
    margin-top: 2rem; 
    margin-bottom: 1rem; 
    font-weight: 600; 
} 
.article-content h1 { font-size: 2rem; } 
.article-content h2 { font-size: 1.8rem; } 
.article-content h3 { font-size: 1.6rem; } 
.article-content h4 { font-size: 1.4rem; } 
.article-content h5 { font-size: 1.2rem; } 
.article-content h6 { font-size: 1rem; } 
.article-content p { 
    margin-bottom: 1rem; 
    line-height: 1.8; 
}