/* Основные стили для мобильного приложения с Bootstrap */
:root {
    --primary-color: #41bb4c;
    --primary-dark: #37a041;
    --primary-light: rgba(65, 187, 76, 0.1);
    --primary-gradient: linear-gradient(135deg, #41bb4c, #37a041);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 70px;
    --menu-width: 300px;
}

/* Улучшенная интеграция с Bootstrap */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2f5 100%);
    min-height: 100vh;
}

.btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #37a041, #2d8a36);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(65, 187, 76, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.card {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: hidden;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border: none;
    padding: 20px;
}

.badge {
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 50px;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    padding: 14px 18px;
    transition: var(--transition);
    font-size: 16px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(65, 187, 76, 0.2);
    transform: translateY(-2px);
}

/* Улучшенный заголовок приложения */
.app-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.app-logo {
    font-weight: 700;
    font-size: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Улучшенный баннер */
.promo-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(65, 187, 76, 0.2);
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.banner-content h2 {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-btn {
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.banner-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Улучшенные карточки действий */
.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.action-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(65, 187, 76, 0.3);
}

/* Улучшенные карточки записей и истории */
.appointment-card, .history-item, .test-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.appointment-card:hover, .history-item:hover, .test-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.appointment-date, .history-date {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-sm);
    padding: 12px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(65, 187, 76, 0.2);
}

/* Улучшенное боковое меню */
.side-menu {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
}

.menu-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 30px 25px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.menu-item {
    padding: 18px 25px;
    border-left: 4px solid transparent;
    margin: 5px 15px;
    border-radius: 0 12px 12px 0;
}

.menu-item.active {
    background: rgba(65, 187, 76, 0.15);
    border-left-color: var(--primary-color);
    color: white;
}

.menu-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    animation: fadeInUp 0.5s ease-out;
}

/* Улучшенные уведомления */
.notification {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary-color);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Адаптивность */
@media (max-width: 768px) {
    :root {
        --border-radius: 14px;
        --border-radius-sm: 8px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .action-card {
        padding: 20px 15px;
    }
    
    .appointment-card, .history-item, .test-item {
        padding: 16px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7ff;
    overflow-x: hidden;
    height: 100vh;
}

#app {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Верхняя панель навигации */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-light);
    z-index: 1000;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn, .notification-btn, .profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light-color);
    color: var(--dark-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-btn:hover, .notification-btn:hover, .profile-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.app-logo i {
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: var(--menu-width);
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.user-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 12px;
    opacity: 0.8;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.menu-items {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.menu-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.menu-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--danger-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Основное содержимое */
.app-content {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 16px;
    transition: var(--transition);
}

.side-menu.active ~ .app-content {
    margin-left: var(--menu-width);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Главная страница */
.promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    display: none;
}

.banner-slide.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.banner-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-icon {
    font-size: 60px;
    opacity: 0.2;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.dot.active {
    background: white;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark-color);
}

.quick-actions {
    margin-bottom: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.action-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.action-card p {
    font-size: 12px;
    color: var(--secondary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.view-all {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.upcoming-appointments, .clinic-news {
    margin-bottom: 24px;
}

.appointments-list, .news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-card, .news-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.appointment-date {
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    text-align: center;
    min-width: 50px;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
}

.appointment-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.appointment-info p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.appointment-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary-color);
}

.appointment-action {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.news-card p {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Страницы */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--secondary-color);
}

/* Страница записи на анализы */
.tests-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.category-card:hover {
    transform: translateY(-2px);
}

.category-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 14px;
}

.tests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.test-info p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.test-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.test-book-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.test-book-btn:hover {
    background: var(--primary-dark);
}

/* Страница истории посещений */
.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--secondary-color);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.history-date {
    background: var(--light-color);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    text-align: center;
    min-width: 50px;
}

.history-info {
    flex: 1;
}

.history-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.history-info p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.history-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.history-status.completed {
    color: var(--success-color);
}

.history-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Страница новостей */
.news-full-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-full-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.news-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.news-date {
    color: var(--secondary-color);
}

.news-category {
    color: var(--primary-color);
    font-weight: 500;
}

.news-full-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.news-full-card p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Страница контактов */
.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Загрузка */
.loading-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-widget .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Страница контактов - дополнительные стили */
.contact-map {
    margin-top: 24px;
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.map-placeholder {
    color: var(--secondary-color);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* Страница личного кабинета */
.profile-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.profile-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.profile-avatar {
    font-size: 60px;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-info p {
    opacity: 0.9;
    font-size: 14px;
}

.edit-profile-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-sections {
    padding: 20px;
}

.profile-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section h3 i {
    color: var(--primary-color);
}

.profile-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.field-label {
    color: var(--secondary-color);
}

.field-value {
    font-weight: 500;
    color: var(--dark-color);
}

.profile-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Переключатель */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Страница акций */
.promotions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.promotion-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.promotion-badge {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    min-width: 60px;
    text-align: center;
}

.promotion-content {
    flex: 1;
}

.promotion-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.promotion-content p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.promotion-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-color);
}

/* Адаптивность */
@media (max-width: 480px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .tests-categories {
        grid-template-columns: 1fr;
    }
    
    .appointment-card, .history-item, .test-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .appointment-date, .history-date {
        align-self: flex-start;
    }
    
    .appointment-action, .history-price {
        align-self: flex-end;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }
    
    .edit-profile-btn {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .promotion-card {
        flex-direction: column;
        text-align: center;
    }
    
    .promotion-badge {
        align-self: center;
    }
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.menu-overlay.active {
    display: block;
}