/* Основные настройки */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #121212;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #fff;
}

.logo img {
    width: 40px;
    margin-right: 10px;
}

nav {
    display: flex;
    align-items: center;
    position: relative;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #7f5af0;
}

.login-btn {
    background-color: #7f5af0;
    color: white;
    padding: 7px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-left: 20px;
}

.login-btn:hover {
    background-color: #5b43a5;
}

.hero {
    padding: 100px 20px;
    margin: 30px 140px;
    background: linear-gradient(135deg, #121212 0%);
    color: white;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 18px;
    color: #b3b3b3;
}

.server-info {
    margin-top: 40px;
}

.server-info .btn {
    background-color: #7f5af0;
    color: white;
    padding: 25px 90px;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.server-info .btn:hover {
    background-color: #5b43a5;
    transform: scale(1.05);
}

.server-ip {
    margin-top: 10px;
    background-color: #232323;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    color: #e0e0e0;
}

/* Секция серверов */
.servers {
    padding: 50px 20px;
}

.servers h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 600;
}

.server-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.server-card {
    background-color: #232323;
    padding: 20px;
    border-radius: 12px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.server-status {
    background-color: #7f5af0;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.server-card p {
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 20px;
}

/* Кнопки */
.btn {
    background-color: #7f5af0;
    color: white;
    padding: 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #5b43a5;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #1f1f1f;
    padding: 5px 10px;
    color: #b3b3b3;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-info,
.footer-docs,
.footer-contacts {
    margin: 20px;
    font-size: 14px;
}

.footer-docs a {
    display: block;
    color: #b3b3b3;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-docs a:hover {
    color: #7f5af0;
}

.footer-contacts a:hover {
    color: #7f5af0;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo {
    width: 40px;
    margin-right: 10px;
}

.footer-logo-name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.payment-methods img {
    width: 40px;
    margin-right: 5px;
}

/* 👤 Пользователь и аватарка */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

.user-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 25px;
    background-color: #252326;
    border: 1px solid #545255;
    border-radius: 20px;
    padding: 10px;
    z-index: 100;
    width: 190px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.user-menu.visible {
    display: block;
}

.user-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-menu ul li {
    margin: 5px 0;
}

.user-menu ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
}

.user-menu ul li a:hover {
    background-color: #1da1f2;
    border-radius: 5px;
}
