@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    font-family: Inter, sans-serif;
    margin: 0;
}

/* Основной контейнер (горизонтальный) */
.server-container {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(230, 0, 230, 0.3);
    padding: 20px;
    border-radius: 8px;
    color: #212D3A;
    transition: border-color 0.2s ease;
    gap: 30px;
    margin-top: 10px;
    min-height: 150px;
    box-sizing: border-box;
}
.server-container:hover {
    border: 1px solid rgb(230, 0, 230);
}

/* Блок с названием и описанием */
.server-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 180px;
    margin-right: 40px;
    margin-left: 10px;
}

.server-name {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем название */
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 13px;
    white-space: nowrap;
    text-align: center; /* Центрируем текст */
}

.server-name::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #808080;
}

.server-description {
    font-size: 14px;
    line-height: 1.4;
    text-align: center; /* Центрируем описание */
}

.server-description p {
    margin: 5px 0;
    white-space: nowrap;
    display: flex;
    justify-content: center; /* Центрируем параграфы */
    gap: 5px;
}

.server-description p span:first-child {
    color: #676767;
}

.server-description p span:last-child {
    color: #000000;
}

/* Блок с характеристиками */
.specs-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.specs-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем характеристики */
}

.spec-item {
    flex: 0 0 auto;
    min-width: 100px;
    text-align: center; /* Центрируем содержимое spec-item */
}

.spec-title {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
    text-align: center; /* Центрируем заголовок */
    width: 100%; /* Занимает всю ширину */
}

.spec-title::after {
    content: '';
     position: absolute;
     left: 0;
     width: 100%;
     bottom: 0;
     height: 2px;
     background-color: #808080;
}

.spec-value {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем значение */
    gap: 8px;
    white-space: nowrap;
}

.os-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем иконки */
}

.os-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Блок с ценой и кнопкой */
.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    min-width: 140px;
}

.price {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    white-space: nowrap;
}

.price-amount {
    font-size: 18px;
}

.price-period {
    font-size: 11px;
    color: #666;
}

.order-button button {
    padding: 10px 15px;
    background: #e600e6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    min-width: 140px;
    min-height: 38px;
    white-space: nowrap;
}

/* Мобильное меню - ИСПРАВЛЕННОЕ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 18px;
}

.mobile-nav a:hover {
    color: #F82DA6;
}

.mobile-nav .nav-text {
    display: block;
    padding: 15px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Медиа-запросы для адаптации KVM страницы */

/* Средние десктопы (950px - 1199px) */
@media (max-width: 1199px) and (min-width: 950px) {
    .server-container {
        gap: 20px;
        padding: 15px;
    }
    
    .server-info {
        margin-right: 20px;
        min-width: 160px;
    }
    
    .specs-grid {
        gap: 40px;
    }
    
    .spec-item {
        min-width: 80px;
    }
}

/* Планшеты (768px - 949px) */
@media (max-width: 949px) and (min-width: 768px) {
    .server-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .server-info {
        margin-right: 0;
        min-width: 100%;
        text-align: center;
    }
    
    .specs-container {
        min-width: 100%;
    }
    
    .specs-grid {
        gap: 30px;
        justify-content: space-around;
    }
    
    .price-section {
        margin-right: 0;
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    
    .price {
        margin-bottom: 0;
        text-align: left;
    }
}

/* Мобильные (720px и меньше) - ПОКАЗЫВАЕМ МОБИЛЬНОЕ МЕНЮ */
@media (max-width: 949px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .hidden.md\:flex {
        display: none !important;
    }
    
    .hidden.md\:block.pl-8 {
        display: none !important;
    }
    
    .hidden.md\:block.text-right {
        display: none !important;
    }
}

/* Большие мобильные (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .server-container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .server-info {
        margin: 0;
        text-align: center;
        min-width: 100%;
    }
    
    .specs-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .spec-item {
        flex: 0 0 calc(50% - 10px);
        text-align: center;
    }
    
    .price-section {
        margin: 1rem 0 0 0;
        flex-direction: column;
        min-width: 100%;
    }
    
    .order-button button {
        min-width: 150px;
        font-size: 14px;
    }
}

/* Малые мобильные (до 575px) */
@media (max-width: 575px) {
    .server-container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .server-info {
        margin: 0;
        text-align: center;
        min-width: 100%;
    }
    
    .server-name {
        font-size: 16px;
    }
    
    .server-description {
        font-size: 12px;
    }
    
    .specs-grid {
        flex-direction: column;
        gap: 10px;
    }
    
    .spec-item {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .spec-title {
        font-size: 16px;
    }
    
    .spec-value {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 16px;
    }
    
    .order-button button {
        min-width: 120px;
        min-height: 32px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .os-icon {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 950px) {
    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }
}