:root {
    --bg-color: #f8fafc;
    --primary-color: #1e293b;
    --accent-color: #0284c7;
    --accent-hover: #0369a1;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --text-color: #334155;
    --card-bg: #ffffff;
    --light-blue: #e0f2fe;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
nav {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 20px;
}

/* Левая часть — логотип */
.nav-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Центральная часть — основные ссылки */
.nav-center {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

/* Правая часть — личный кабинет */
.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Стили для вкладок */
.nav-tab {
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
}

.nav-tab:hover {
    color: var(--accent-color);
    background: rgba(2, 132, 199, 0.06);
    transform: translateY(-2px);
}

.nav-tab.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.nav-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(2, 132, 199, 0.4);
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-tab.active::after {
    width: 60%;
}

.nav-tab:not(.active):hover::after {
    width: 30%;
    background: #94a3b8;
}

/* Кнопка Контакты (особая) */
.nav-contacts {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white !important;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    animation: pulse-contacts 2.5s ease-in-out infinite;
}

.nav-contacts:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 30px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #0369a1, #0284c7);
}

.nav-contacts::after {
    display: none !important;
}

@keyframes pulse-contacts {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(2, 132, 199, 0.6);
    }
}

/* ===== ГАМБУРГЕР-МЕНЮ ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== АДАПТИВНОСТЬ НАВИГАЦИИ ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 0;
    }
    
    .nav-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .nav-center {
        display: none !important;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding: 10px 0 5px 0;
        order: 3;
        flex: 0 0 100%;
    }
    
    .nav-center.open {
        display: flex !important;
    }
    
    .nav-center .nav-tab {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .nav-center .nav-contacts {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .nav-right {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
    }
    
    .nav-center .nav-tab {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* ============================================================
   ОСНОВНОЙ КОНТЕЙНЕР И СТРАНИЦЫ
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

.page {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page.active {
    display: block;
}

/* Личный кабинет — центрируем */
#clientPage {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 24px;
    margin-bottom: 40px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: white;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero .btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.hero .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero .btn-outline:hover {
    background: white;
    color: #0f172a;
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-image {
    flex: 0 0 40%;
    max-width: 40%;
    z-index: 1;
}

.hero-image svg {
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-align: center;
    font-size: 1.5rem;
    animation: bounce-down 2s ease-in-out infinite;
    z-index: 1;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    color: white;
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce-down {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 1;
    }
}

/* Адаптивность Hero */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .hero-image {
        flex: 0 0 auto;
        max-width: 60%;
        margin-top: 20px;
    }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-content p { max-width: 100%; }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 20px;
        min-height: auto;
    }
    .hero-image {
        max-width: 80%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stat-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 16px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero .btn-large {
        width: 100%;
        text-align: center;
    }
    .hero-stats {
        gap: 12px;
    }
    .hero-image {
        max-width: 100%;
    }
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    padding: 40px 0;
    margin-bottom: 40px;
}

.stats-grid-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item-big {
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.stat-item-big:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0284c7;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.btn-large { 
    padding: 14px 28px; 
    font-size: 1.1rem; 
    border-radius: 30px; 
    font-weight: 700; 
}

.btn-outline {
    background: transparent;
    color: #0284c7;
    border: 2px solid #0284c7;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #0284c7;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.section-title { 
    text-align: center; 
    font-size: 2.2rem; 
    color: var(--primary-color); 
    margin-bottom: 40px; 
    position: relative; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px; 
    background: var(--accent-color); 
    margin: 10px auto 0; 
    border-radius: 2px; 
}

.about-box { 
    background: var(--light-blue); 
    padding: 40px; 
    border-radius: 24px; 
    margin-bottom: 60px; 
}

.card { 
    background: var(--card-bg); 
    padding: 30px; 
    border-radius: 16px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    margin-bottom: 18px; 
}

.form-group label { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: #475569; 
}

input, textarea, select { 
    padding: 12px 16px; 
    border-radius: 10px; 
    border: 1px solid #cbd5e1; 
    font-size: 1rem; 
    outline: none; 
    width: 100%;
    box-sizing: border-box;
}

input:focus, textarea:focus, select:focus { 
    border-color: var(--accent-color); 
}

button { 
    padding: 12px 24px; 
    border-radius: 10px; 
    border: none; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.btn-blue { 
    background-color: var(--accent-color); 
    color: white; 
}

.btn-blue:hover { 
    background-color: var(--accent-hover); 
}

.btn-success { 
    background-color: var(--success-color); 
    color: white; 
}

.btn-block {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
}

/* ===== АВТОРИЗАЦИЯ ===== */
.auth-card {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-card a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-card a:hover {
    text-decoration: underline;
}

/* ===== ДАШБОРД РОДИТЕЛЯ ===== */
.parent-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.profile-card {
    padding: 25px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-phone {
    color: #64748b;
    font-size: 0.9rem;
    margin: 4px 0 8px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.profile-stat {
    text-align: center;
}

.stat-number-small {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0284c7;
}

.stat-label-small {
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== СТАТУС-БЕЙДЖИ (ЕДИНЫЕ) ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-badge.pending {
    background: #fef3c7;
    color: #f59e0b;
}
.status-badge.pending .status-dot {
    background: #f59e0b;
}

.status-badge.completed {
    background: #dcfce7;
    color: #16a34a;
}
.status-badge.completed .status-dot {
    background: #16a34a;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}
.status-badge.cancelled .status-dot {
    background: #dc2626;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}
.status-badge.active .status-dot {
    background: #16a34a;
}

.status-badge.blocked {
    background: #f1f5f9;
    color: #64748b;
}
.status-badge.blocked .status-dot {
    background: #64748b;
}

/* ===== АБОНЕМЕНТЫ ===== */
.subscription-card {
    padding: 25px;
}

.subscription-status {
    margin: 15px 0;
}

.subscription-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.subscription-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.subscription-details {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
}

.subscription-detail {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.detail-label {
    color: #64748b;
}

.detail-value {
    font-weight: 600;
    color: #1e293b;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.subscription-plan {
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.subscription-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.subscription-plan.popular {
    border-color: #f59e0b;
    background: #fffbeb;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.plan-icon {
    font-size: 2rem;
}

.plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0284c7;
    margin: 10px 0;
}

.plan-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

.plan-save {
    color: #16a34a;
    font-weight: 600;
}

/* ===== ДОКТОРА ===== */
.doctors-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.doctor-item { 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 20px; 
    cursor: pointer; 
    background: #fff; 
    transition: all 0.3s ease; 
}

.doctor-item:hover, .doctor-item.selected { 
    border-color: var(--accent-color); 
    background: #f0fdf4; 
    transform: translateY(-3px); 
}

.doctor-experience { 
    font-size: 0.85rem; 
    color: var(--success-color); 
    font-weight: bold; 
    margin-bottom: 8px; 
}

/* ===== КАЛЕНДАРЬ ===== */
.calendar-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

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

.calendar-header .month-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
}

.calendar-header .nav-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.calendar-header .nav-btn:hover {
    background: #f1f5f9;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-grid .weekday {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 0;
}

.calendar-grid .day {
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    position: relative;
}

.calendar-grid .day:hover {
    background: #f1f5f9;
}

.calendar-grid .day.today {
    background: #dbeafe;
    color: #0284c7;
    font-weight: 600;
}

.calendar-grid .day.selected {
    background: #0284c7;
    color: white;
}

.calendar-grid .day.has-slots {
    font-weight: 600;
}

.calendar-grid .day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.calendar-grid .day.selected.has-slots::after {
    background: white;
}

.calendar-grid .day.empty {
    cursor: default;
    color: #e2e8f0;
}

.calendar-grid .day.past {
    opacity: 0.4;
    cursor: not-allowed;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #0284c7;
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: #0284c7;
    background: #dbeafe;
    color: #0284c7;
}

/* ===== ДЕТИ ===== */
#childrenList {
    margin-bottom: 15px;
}

.child-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
}

.child-item .child-name {
    font-weight: 600;
    color: #1e293b;
}

.child-item .child-age {
    font-size: 0.85rem;
    color: #64748b;
}

.child-item .child-actions {
    display: flex;
    gap: 8px;
}

.btn-delete-child {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-delete-child:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.btn-delete-child:active {
    transform: scale(0.95);
}

/* ===== ЗАПИСИ РОДИТЕЛЯ ===== */
.parent-appointment-item {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.parent-appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.parent-appointment-item .appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.parent-appointment-item .appointment-header > div {
    flex: 1;
}

.parent-appointment-item .appointment-doctor {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.parent-appointment-item .appointment-child {
    color: #475569;
    font-size: 0.9rem;
}

.parent-appointment-item .appointment-date {
    color: #64748b;
    font-size: 0.85rem;
}

.parent-appointment-item .appointment-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.btn-cancel {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* ===== КОНТАКТЫ ===== */
.contacts-section {
    margin-top: 80px;
    margin-bottom: 20px;
    scroll-margin-top: 80px;
    transition: all 0.5s ease;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.6rem;
    background: var(--light-blue);
    padding: 10px;
    border-radius: 12px;
    line-height: 1;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-item p {
    color: #475569;
    font-size: 0.95rem;
}

.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    min-height: 350px;
}

/* ===== ФУТЕР ===== */
.main-footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 60px 20px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    cursor: pointer;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ===== КАБИНЕТ ПСИХОЛОГА ===== */
#psychologistHiddenArea {
    animation: fadeIn 0.3s ease-out;
}

#psychologistDashboard .stat-card {
    transition: all 0.3s ease;
}

#psychologistDashboard .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.psychologist-tab {
    padding: 10px 24px;
    border: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #64748b;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.psychologist-tab:hover {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
}

.psychologist-tab.active {
    color: #0284c7;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}

.psychologist-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #0284c7;
    border-radius: 3px;
}

.psychologist-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.psychologist-tab-content.active {
    display: block;
}

.appointment-card {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.psychologist-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.psychologist-note textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: #fafbfc;
}

.psychologist-note textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.psychologist-note .note-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.psychologist-note .note-status {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 10px;
}

/* ===== ПАМЯТКА ===== */
.memo-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.memo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.memo-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.memo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.memo-card.focus-card {
    background-color: #f0fdf4;
    border-color: var(--success-color);
}

.memo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.memo-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    background: var(--light-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}

.focus-card .memo-num {
    color: var(--success-color);
    background: #dcfce7;
}

.memo-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.memo-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.memo-footer-note {
    margin-top: 35px;
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 20px;
    border-radius: 0 16px 16px 0;
    font-size: 1rem;
    color: #7c2d12;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-section {
    margin: 60px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.review-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.review-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-author strong {
    color: #1e293b;
    font-size: 0.95rem;
}

.review-author span {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages-section {
    margin: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-card h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.advantage-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
    margin: 60px 0;
}

.faq-list {
    max-width: 800px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.faq-question {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question span:first-child {
    font-size: 1.2rem;
}

.faq-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 56px;
    color: #475569;
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0 40px;
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-section .btn-blue {
    background: white;
    color: #0284c7;
}

.cta-section .btn-blue:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ ВСЕХ ЭКРАНОВ
   ============================================================ */

@media (max-width: 1024px) {
    .container {
        padding: 30px 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 12px;
    }
    
    #clientPage .card {
        padding: 16px;
        margin-bottom: 15px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .parent-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .doctors-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .doctor-item {
        padding: 14px 16px;
    }
    
    .doctor-item h4 {
        font-size: 1rem;
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-number-small {
        font-size: 1.2rem;
    }
    
    .subscription-card {
        padding: 16px;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .auth-card {
        margin: 20px auto;
        padding: 20px 16px;
    }
    
    #cabinetTitle {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 15px !important;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
    
    .parent-appointment-item {
        padding: 12px 14px;
    }
    
    .parent-appointment-item .appointment-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .parent-appointment-item .appointment-doctor {
        font-size: 0.95rem;
    }
    
    .parent-appointment-item .appointment-child {
        font-size: 0.9rem;
    }
    
    .parent-appointment-item .appointment-date {
        font-size: 0.8rem;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 3px 12px;
    }
    
    .child-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stats-grid-center {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .reviews-grid,
    .doctors-grid-main {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .faq-answer {
        padding: 0 15px 15px 15px;
    }
    
    .faq-question {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h3 {
        font-size: 1.4rem;
    }
    
    .psychologist-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .patient-info-grid {
        grid-template-columns: 1fr;
    }
    
    .psychologist-tab-content .card {
        padding: 15px;
    }
    
    .appointment-card {
        padding: 12px 14px;
    }
    
    .appointment-card > div {
        flex-direction: column;
        gap: 8px;
    }
    
    .appointment-card .appointment-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    
    .appointment-card .appointment-actions button {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    
    .psychologist-note textarea {
        font-size: 0.85rem;
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .psychologist-note .note-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .psychologist-note .note-actions button {
        flex: 1;
        min-width: 70px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #psychologistSlotsList > div {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    
    .slot-item {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px 10px;
    }
    
    .auth-card {
        padding: 16px 12px;
    }
    
    .auth-card .form-group input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .auth-card .btn-block {
        padding: 14px;
        font-size: 1rem;
    }
    
    .auth-card h3 {
        font-size: 1.2rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-center {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        padding: 20px 16px;
        max-width: 95%;
        margin: 10px;
        border-radius: 16px;
    }
    
    #patientCardModal .modal-content {
        max-width: 95%;
        padding: 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .patient-info-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
    }
    
    .calendar-container {
        padding: 12px;
    }
    
    .calendar-grid .day {
        padding: 8px 0;
        font-size: 0.85rem;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .calendar-header .month-year {
        font-size: 1rem;
    }
    
    .calendar-header .nav-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .time-slot {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .psychologist-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
    
    #psychologistTabDashboard > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    #psychologistTabDashboard .card {
        padding: 12px !important;
    }
    
    #psychologistTabDashboard .card canvas {
        height: 120px !important;
    }
    
    #childSelect {
        font-size: 16px;
        padding: 12px 14px;
    }
    
    .no-children-message {
        padding: 16px;
        margin: 8px 0;
    }
    
    .no-children-message .btn-add-child {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    #addChildForm {
        padding: 12px !important;
    }
    
    #addChildForm .form-group input,
    #addChildForm .form-group textarea {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    #addChildForm button {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        margin-top: 6px;
    }
    
    #addChildForm > div {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    #addChildForm > div button {
        margin-left: 0 !important;
    }
    
    .btn-filter {
        padding: 6px 12px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 60px;
    }
    
    #parentDashboard .btn-blue,
    #psychologistDashboard .btn-blue {
        padding: 10px 16px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }
    
    #parentDashboard > div:first-child {
        justify-content: center !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.service-card, .memo-card, .doctor-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.bell-ring {
    animation: bell-ring 0.5s ease-in-out;
}

/* ===== ВСПОМОГАТЕЛЬНЫЕ СТИЛИ ===== */
.phone-input {
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
}

.phone-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    outline: none;
}

.phone-input::placeholder {
    letter-spacing: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #94a3b8;
}

.doctor-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 15px;
}

.doctor-card-main {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.doctor-card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.doctor-card-main h4 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.doctor-specialization {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.doctor-rating {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.doctor-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-outline-small {
    background: transparent;
    color: #0284c7;
    border: 2px solid #0284c7;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline-small:hover {
    background: #0284c7;
    color: white;
}

.doctors-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.slots-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 15px; 
}

.slot-btn { 
    padding: 8px 16px; 
    border: 1px solid #cbd5e1; 
    background: #fff; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.slot-btn:hover { 
    border-color: var(--accent-color); 
    color: var(--accent-color); 
}

.slot-btn.selected { 
    background: var(--accent-color); 
    color: white; 
    border-color: var(--accent-color); 
}

.scheduler-box { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    margin-bottom: 25px; 
    background: #f1f5f9; 
    padding: 20px; 
    border-radius: 12px; 
}

#childrenSelectContainer {
    margin-bottom: 10px;
}

#childSelect {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

#childSelect:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.no-children-message {
    display: none;
    padding: 20px;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #fcd34d;
    text-align: center;
    margin: 10px 0;
}

.no-children-message .message-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.no-children-message .message-text {
    font-size: 1rem;
    color: #92400e;
    margin-bottom: 12px;
}

.no-children-message .btn-add-child {
    display: inline-block;
    background: #f59e0b;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-children-message .btn-add-child:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.selected-child-info {
    display: none;
    margin: 10px 0;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 10px;
    border-left: 4px solid #10b981;
}

.selected-child-info .child-name {
    font-weight: 600;
    color: #065f46;
}

.selected-child-info .child-details {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.selected-child-info .child-diagnosis {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.subscription-booking-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #dcfce7;
    color: #16a34a;
    margin-left: 8px;
}

.btn-filter {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.btn-filter.active {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}

/* ===== КАРТОЧКА ПАЦИЕНТА (МОДАЛЬНОЕ ОКНО) ===== */
.patient-card-modal .modal-content {
    max-width: 550px;
    text-align: left;
}

.patient-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.patient-info-grid .info-item {
    padding: 6px 0;
}

.patient-info-grid .info-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.patient-info-grid .info-value {
    font-weight: 600;
    color: #1e293b;
}

.patient-history-item {
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid #3b82f6;
    font-size: 0.9rem;
}

.patient-history-item .date {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ============================================================
   КРАСИВЫЕ КАРТОЧКИ ЗАПИСЕЙ В ЛИЧНОМ КАБИНЕТЕ
   ============================================================ */

/* Контейнер для списка записей */
#parentAppointmentsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка записи */
.parent-appointment-item {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    border-left: 4px solid #3b82f6 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.parent-appointment-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10) !important;
}

/* Верхняя часть карточки */
.parent-appointment-item .appointment-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

/* Левая часть с информацией */
.parent-appointment-item .appointment-header > div {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

/* Имя врача */
.parent-appointment-item .appointment-doctor {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Бейдж "По абонементу" */
.parent-appointment-item .appointment-doctor .subscription-badge {
    font-size: 11px !important;
    background: #dcfce7 !important;
    color: #16a34a !important;
    padding: 2px 10px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

/* Имя ребёнка */
.parent-appointment-item .appointment-child {
    font-size: 0.95rem !important;
    color: #475569 !important;
}

/* Дата и время */
.parent-appointment-item .appointment-date {
    font-size: 0.9rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* СТАТУС-БЕЙДЖ (в карточке) */
.parent-appointment-item .status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.parent-appointment-item .status-badge .status-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* Цвета статусов */
.parent-appointment-item .status-badge.pending {
    background: #fef3c7 !important;
    color: #f59e0b !important;
}
.parent-appointment-item .status-badge.pending .status-dot {
    background: #f59e0b !important;
}

.parent-appointment-item .status-badge.completed {
    background: #dcfce7 !important;
    color: #16a34a !important;
}
.parent-appointment-item .status-badge.completed .status-dot {
    background: #16a34a !important;
}

.parent-appointment-item .status-badge.cancelled {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}
.parent-appointment-item .status-badge.cancelled .status-dot {
    background: #dc2626 !important;
}

/* Кнопка "Отменить запись" */
.parent-appointment-item .appointment-actions {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.parent-appointment-item .btn-cancel {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: none !important;
    padding: 6px 18px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.parent-appointment-item .btn-cancel:hover {
    background: #dc2626 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .parent-appointment-item {
        padding: 16px 18px !important;
    }
    
    .parent-appointment-item .appointment-header {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .parent-appointment-item .appointment-doctor {
        font-size: 0.95rem !important;
    }
    
    .parent-appointment-item .status-badge {
        align-self: flex-start !important;
        font-size: 12px !important;
        padding: 3px 14px !important;
    }
}

@media (max-width: 480px) {
    .parent-appointment-item {
        padding: 14px 14px !important;
        border-radius: 12px !important;
    }
    
    .parent-appointment-item .appointment-doctor {
        font-size: 0.9rem !important;
    }
    
    .parent-appointment-item .appointment-child {
        font-size: 0.85rem !important;
    }
    
    .parent-appointment-item .appointment-date {
        font-size: 0.8rem !important;
    }
    
    .parent-appointment-item .btn-cancel {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
    }
}