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

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    padding: 20px;
    line-height: 1.4;
}

/* Главный контейнер */
.container {
    width: 100%;
    max-width: 1100px;
    border: 4px solid #000000;
    padding: 10px;
    background-color: #ffffff;
}

/* Заголовок */
h1 {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Навигация */
.nav {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.nav-item {
    border: 2px solid #000000;
    padding: 5px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: -2px; /* Убираем двойные границы */
    background-color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    color: #000000;
}

.nav-item:first-child {
    margin-left: 0;
}

/* Сетка для двух серверов */
.server-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

/* Панель сервера */
.server-panel {
    border: 3px solid #000000;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.server-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.server-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.server-description strong {
    font-weight: bold;
}

/* Блок мониторинга */
.monitor-box {
    background-color: #333333;
    color: #ffffff;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 15px;
    width: 100%;
}

.monitor-title {
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.monitor-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;              /* чтобы длинный текст корректно переносился */
    word-break: break-word;
}

.monitor-col span {
    margin-bottom: 3px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-shrink: 0;            /* точка не сжимается */
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.status-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Кнопки */
.btn-group {
    display: flex;
    gap: 5px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-green {
    background-color: #4CAF50;
}

.btn-orange {
    background-color: #FF9800;
}

.btn:hover {
    opacity: 0.9;
}

/* Нижние блоки */
.bottom-section {
    border: 3px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
}

.bottom-section:last-child {
    margin-bottom: 0;
}

.bottom-section h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.bottom-section p {
    font-size: 1.1rem;
    text-align: justify;
}

.bottom-section table {
    width: 100%;
    border-collapse: collapse;      /* объединяет рамки соседних ячеек в одну */
    border: 3px solid #000000;      /* рамка вокруг всей таблицы */
    margin: 0;
}

.bottom-section td {
    vertical-align: top;
    padding: 10px;
    border: 3px solid #000000;      /* рамка у каждой ячейки */
    width: 50%;
}

.bottom-section caption {
    font-size: 1.17em;
    font-weight: bold;
    text-align: left;
    padding: 10px 0;
    caption-side: top;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .server-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        flex-wrap: wrap;
    }
    .nav-item {
        margin-bottom: -2px;
    }
}
/* Счётчик посетителей */
.visit-counter-wrap,
.site-age {
    text-align: left;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

#visit-counter {
    font-weight: bold;
    color: #ff0000;
}
/* */
/* Контейнер — вот здесь рамка и отступ */
.image-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 3px solid #000000;   /* ← одна общая рамка */
    padding: 15px;                /* ← один общий отступ */
    margin-bottom: 20px;
    overflow: hidden;
}

/* Картинки — без рамки и паддинга */
.image-container img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 15px 0;           /* отступ между картинками */
}

/* Последняя картинка — без отступа снизу */
.image-container img:last-of-type {
    margin-bottom: 0;
}
