* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: white;
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #eee;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav a:hover {
    color: #e94560;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(233,69,96,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,69,96,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a6fa5, #6c8fc9);
    box-shadow: 0 4px 10px rgba(74,111,165,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
    box-shadow: none;
}

.btn-outline:hover {
    background: #e94560;
    color: white;
}

/* Карточки */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.membership-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.membership-card h3 {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 22px;
}

.membership-price {
    font-size: 32px;
    font-weight: bold;
    color: #e94560;
    padding: 20px;
    text-align: center;
}

.membership-description {
    padding: 0 20px;
    color: #555;
}

.membership-features {
    padding: 20px;
    list-style: none;
}

.membership-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.membership-card .btn {
    display: block;
    margin: 20px;
    text-align: center;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
}

/* Фильтры */
.filters {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1a1a2e;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #e94560;
}

/* Формы */
.auth-form {
    max-width: 450px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.auth-form h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
}

/* Корзина */
.cart-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: right;
    margin-top: 20px;
}

/* Чат */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 28px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 15px;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-message.user {
    background: #e94560;
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.bot {
    background: #f0f2f5;
    color: #1a1a2e;
}

/* Адаптив */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .memberships-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
}

/* Расписание */
.schedule-note {
    background: #e8f4f8;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 20px 0;
    color: #1a2a4f;
}
.schedule-filters {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}
.schedule-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s;
}
.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.schedule-time {
    font-size: 20px;
    font-weight: bold;
    color: #e94560;
    min-width: 120px;
}
.schedule-info {
    flex: 2;
    padding: 0 20px;
}
.schedule-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a2a4f;
}
.schedule-trainer, .schedule-type, .schedule-seats {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.schedule-day {
    font-weight: bold;
    color: #4a6fa5;
    min-width: 120px;
}
.schedule-book {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}
.schedule-book:hover {
    transform: scale(1.05);
}

/* Абонементы в личном кабинете */
.sessions-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.sessions-progress {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}
.sessions-bar {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border-radius: 5px;
    transition: width 0.3s;
}
.sessions-remaining {
    font-size: 18px;
    margin-top: 10px;
}
.sessions-remaining strong {
    color: #e94560;
    font-size: 22px;
}
.warning {
    color: #ff9800;
    margin-top: 10px;
    padding: 8px;
    background: #fff3e0;
    border-radius: 8px;
}

/* Таблицы */
.data-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}
.data-table th {
    background: #1a2a4f;
    color: white;
    padding: 12px;
    text-align: left;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

/* Статусы заказов */
.status-pending { color: orange; }
.status-paid { color: #4a6fa5; }
.status-completed { color: green; }
.status-cancelled { color: red; }

/* Адаптив */
@media (max-width: 768px) {
    .schedule-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .schedule-info {
        padding: 0;
    }
    .profile-tabs {
        justify-content: center;
    }
}