/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header стили */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 0;
}

.navbar-header {
    display: none;
}

.headerimg {
    text-align: center;
    margin-bottom: 30px;
}

.siteinfo {
    text-align: center;
    padding: 20px;
}

.siteinfo h2 {
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 600;
    line-height: 1.2;
}

.siteinfo h2 a {
    color: white;
    text-decoration: none;
}

.siteinfo h2 a:hover {
    color: #3498db;
    transition: color 0.3s ease;
}

/* Навигация */
.mainnav {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    clear: both;
}

.nav {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav li {
    margin: 0;
}

.nav li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 500;
}

.nav li a:hover,
.nav li.active a {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Основной контент */
.row {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.content {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

/* Статья */
article {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.the_title {
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.entry p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.entry strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Таблица контактов */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

table td:first-child {
    background: #2c3e50;
    color: white !important;
    font-weight: 600;
    width: 200px;
}

table td:first-child * {
    color: white !important;
}

table td:nth-child(2) {
    background: white;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

footer .col-sm-4 {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
}

footer ul {
    list-style: none;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.credit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .navbar-toggle {
        background: rgba(255,255,255,0.2);
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        color: white;
        cursor: pointer;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        width: 100%;
        text-align: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .siteinfo h2 {
        font-size: 20px;
    }
    
    .the_title {
        font-size: 28px;
    }
    
    table td:first-child {
        width: auto;
    }
    
    footer .row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    article {
        padding: 20px;
    }
    
    .headerimg {
        margin-bottom: 10px;
    }
    
    .siteinfo {
        padding: 15px;
    }
    
    .siteinfo h2 {
        font-size: 18px;
    }
    
    .the_title {
        font-size: 24px;
    }
    
    table {
        font-size: 14px;
    }
    
    table td {
        padding: 10px;
    }
}

/* Дополнительные улучшения */
.entry h2, .entry h3, .entry h4 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
}

.entry ul, .entry ol {
    margin: 15px 0;
    padding-left: 30px;
}

.entry li {
    margin-bottom: 8px;
}

/* Анимация появления */
article {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Стили для специальных элементов */
.postmetadata {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

#accel-snackbar {
    display: none;
}

/* Улучшения для боковой панели */
.sidebar ul {
    list-style: none;
}

.sidebar .widget {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Стили для выделения важной информации */
span[style*="font-size: x-large"] {
    display: block;
    font-size: 24px !important;
    color: #2c3e50 !important;
    margin-bottom: 20px;
    font-weight: bold;
}

span[style*="font-size: medium"] {
    font-size: 16px !important;
} 