/* style.css - единый стиль для всех страниц S-key */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}

.nav a:hover {
    color: #00d2ff;
}

/* Карточки, формы, кнопки */
.card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,210,255,0.5);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: white;
    box-shadow: 0 4px 15px rgba(0,210,255,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,210,255,0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid #00d2ff;
    color: #00d2ff;
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(0,210,255,0.2);
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #00d2ff;
    background: rgba(255,255,255,0.15);
}

/* Тарифы */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.price-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.price-card.popular {
    border: 2px solid #00d2ff;
    background: rgba(0,210,255,0.1);
}

.price {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
}

.price small {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.price-card ul {
    list-style: none;
    margin: 20px 0;
}

.price-card li {
    padding: 8px 0;
    color: rgba(255,255,255,0.8);
}

/* Миграция (важное сообщение) */
.migration {
    background: rgba(255,100,100,0.2);
    border-left: 5px solid #ff5555;
    border-radius: 20px;
    padding: 25px;
    margin: 40px 0;
}

.migration h3 {
    color: #ff8888;
    margin-bottom: 15px;
}

.migration a {
    color: #00d2ff;
}

/* Подписки в личном кабинете */
.subscription-card {
    background: rgba(255,255,255,0.05);
    border-left: 5px solid #4CAF50;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.subscription-card.expired {
    border-left-color: #ff5555;
}

.subscription-card h3 {
    margin-bottom: 10px;
}

/* Футер */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .nav {
        gap: 15px;
        margin-top: 10px;
    }
    .price-cards {
        grid-template-columns: 1fr;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Меню пользователя */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-email {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #00d2ff;
}

select {
    background: rgba(0,0,0,0.6);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
select option {
    background: #1e1e2f;
    color: white;
}
