/* ===== ТЕПЛАЯ, ДОМАШНЯЯ ПАЛИТРА ===== */
:root {
    /* Основные цвета - теплые, уютные */
    --color-primary: #FF7B5C; /* Теплый коралловый - энергия жизни */
    --color-primary-light: #FF9E7D;
    --color-secondary: #6DD2B2; /* Свежий аквамарин - здоровье, рост */
    --color-accent: #FFC145; /* Солнечный желтый - радость, свет */
    --color-support: #8B6DFF; /* Фиолетовый - поддержка, сообщество */

    /* Дополнительные */
    --color-teal: #14B8A6; /* Бирюзовый - спокойствие, доверие */
    --color-pink: #FF6B8B; /* Нежный розовый - любовь, забота */
    --color-blue: #4A6CF7; /* Доверительный синий */

    /* Нейтральные - мягкие, теплые */
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-bg: #FFF9F5; /* Теплый кремовый фон */
    --color-white: #FFFFFF;
    --color-border: #FFE8DE; /* Теплая граница */
    --color-card-bg: #FFFFFF;
    --color-sidebar: #FFF0E8;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    --gradient-secondary: linear-gradient(135deg, #6DD2B2 0%, #8CECD2 100%);
    --gradient-teal: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 100%);
    --gradient-accent: linear-gradient(135deg, #FFC145 0%, #FFD580 100%);
    --gradient-support: linear-gradient(135deg, #8B6DFF 0%, #A88BFF 100%);
    --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #FFF9F5 100%);

    /* Эффекты */
    --shadow-sm: 0 4px 12px rgba(255, 123, 92, 0.08);
    --shadow-md: 0 8px 24px rgba(255, 123, 92, 0.12);
    --shadow-lg: 0 15px 40px rgba(255, 123, 92, 0.15);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER - УПРОЩЕННЫЙ ===== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 20px;
    font-family: 'Nunito', sans-serif;
    background-image: url('/logo_header.png');
    background-size: cover; /* исходник 200x200, заполняем блок */
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Упрощенная навигация */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav .nav-link {
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
    font-size: 15px;
    transition: var(--transition);
}

.main-nav .nav-link:hover {
    color: var(--color-primary);
}

.main-nav .nav-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-icon {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ===== БУРГЕР-КНОПКА ===== */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.burger-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.burger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.burger-btn.active {
    border-color: var(--color-primary);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.mobile-menu.active {
    max-height: 600px;
}

.mobile-menu-inner {
    padding: 12px 20px 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: var(--color-bg);
    color: var(--color-primary);
}

.mobile-nav-link i {
    width: 22px;
    text-align: center;
    font-size: 16px;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover i {
    color: var(--color-primary);
}

.mobile-nav-link--primary {
    background: linear-gradient(135deg, #FFF0E8, #FFE8DE);
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-nav-link--primary i {
    color: var(--color-primary);
}

.mobile-nav-link--danger {
    color: #E53E3E;
}

.mobile-nav-link--danger i {
    color: #E53E3E;
}

.mobile-nav-link--danger:hover {
    background: #FEF2F2;
    color: #C53030;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 16px;
}

/* Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 210, 178, 0.25);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 69, 0.25);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: var(--color-primary);
    padding: 8px 0;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--color-primary-light);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== УТИЛИТЫ И ДОП. СТИЛИ (ГЛОБАЛЬНО) ===== */
.text-pink { color: var(--color-pink); }
.text-accent { color: var(--color-accent); }
.mr-10 { margin-right: 10px; }
.ml-10 { margin-left: 10px; }
.d-flex { display: flex; }
.flex-1 { flex: 1; }
.justify-end { justify-content: flex-end; }
.fw-600 { font-weight: 600; }
.text-sm { font-size: 0.9rem; }
.mt-20 { margin-top: 20px; }

/* Заглушка фото дня (если нет изображения) */
.person-photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

/* Состояние пустого блока поддержки */
.empty-support { text-align: center; padding: 60px 20px; }
.empty-support i { font-size: 60px; color: #FFB6C1; margin-bottom: 20px; }
.empty-support p { color: #718096; font-size: 1.1rem; }

/* Анимация обновления счетчиков поддержки */
.support-count.updated { animation: pulse 0.3s ease; }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FF7B5C; }
}

/* ===== HERO - АКЦЕНТ НА ИСТОРИИ ===== */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E8 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 123, 92, 0.1) 0%, rgba(255, 123, 92, 0) 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 550px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Hero Actions - две кнопки */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Hero Stats - реальная статистика */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

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

.stat-value {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 5px;
}

/* Hero Right - карточки */
.hero-right {
    position: relative;
}

/* Вариант A: Карточка-цитата из истории */
.hero-quote-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F5 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(255, 123, 92, 0.12);
    transform: rotate(0.5deg);
    transition: var(--transition);
    border: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.hero-quote-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 123, 92, 0.18);
    border-color: var(--color-primary);
}

.hero-card-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

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

.hero-quote-text {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 123, 92, 0.04);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
    position: relative;
}

.hero-quote-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.hero-quote-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-bg);
    border-radius: 12px;
}

.hero-author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(109, 210, 178, 0.3);
}

.hero-author-info {
    flex: 1;
}

.hero-author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.hero-author-meta {
    font-size: 0.95rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-author-meta::before {
    content: '👶';
    font-size: 1rem;
}

.hero-diagnosis-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(139, 109, 255, 0.1) 0%, rgba(139, 109, 255, 0.05) 100%);
    color: var(--color-support);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 109, 255, 0.2);
}

.hero-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3);
}

.hero-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 123, 92, 0.4);
    gap: 14px;
}

.hero-read-more i {
    transition: var(--transition);
}

/* Вариант B: Мотивационная карточка */
.hero-motivation-card {
    background: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.hero-motivation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

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

.hero-motivation-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
    line-height: 1;
}

.hero-motivation-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 4px;
}

.hero-motivation-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

.hero-card-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #bbf7d0;
}

/* Адаптив Hero */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-right {
        order: -1;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 20px;
    }

    .hero-quote-card {
        transform: rotate(0deg);
    }

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

/* ===== ФОТО ДНЯ И ПОДДЕРЖКА ===== */
.daily-support {
    padding: 40px 0;
    background: linear-gradient(135deg, #FFF0E8 0%, #FFE8DE 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.daily-support-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.daily-support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 0;
}

.daily-support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-border);
}

.daily-support-title {
    font-size: 1.8rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.daily-support-badge {
    background: linear-gradient(135deg, #FFC145 0%, #FFD580 100%);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.daily-support-content {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: flex-start;
}

.daily-support-content > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .daily-support-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.person-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.person-photo-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.person-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.person-photo:hover {
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 20px;
    color: white;
}

.person-name-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.greeting-btn {
    background: var(--gradient-support);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.greeting-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.person-details {
    text-align: center;
    color: var(--color-text);
    line-height: 1.6;
    margin-top: 15px;
}

.person-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.person-tag {
    background: rgba(255, 123, 92, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.support-counter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

@media (max-width: 576px) {
    .support-counter {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.counter-item {
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.counter-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

#hugCounter {
    background: var(--gradient-primary);
}

#smileCounter {
    background: var(--gradient-accent);
}

#starCounter {
    background: var(--gradient-support);
}

.counter-text {
    flex: 1;
}

.counter-number {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-text);
}

.counter-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 5px;
}

.support-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .support-buttons {
        grid-template-columns: 1fr;
    }
}

.support-btn {
    padding: 18px 10px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: white;
}

.support-btn i {
    font-size: 24px;
}

.hug-btn {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
}

.smile-btn {
    background: linear-gradient(135deg, #FFC145 0%, #FFD580 100%);
}

.star-btn {
    background: linear-gradient(135deg, #8B6DFF 0%, #A88BFF 100%);
}

.support-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.support-btn:active {
    transform: translateY(-2px);
}

.support-message {
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
    padding: 15px;
    background: rgba(255, 123, 92, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--color-primary);
}

/* ===== MAIN LAYOUT - КАК СОЦСЕТЬ ===== */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 30px;
    padding: 40px 0 80px;
}

/* ЛЕВАЯ КОЛОНКА - ФИЛЬТРЫ И ПОИСК */
.sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.search-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.search-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
    background-color: var(--color-bg);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.filter-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.filter-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 8px 14px;
    background: var(--color-bg);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--gradient-primary);
    color: white;
}

/* ЦЕНТРАЛЬНАЯ КОЛОНКА - ЛЕНТА ИСТОРИЙ */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0 30px;
    padding: 30px 0;
}

/* На десктопе create-post-wrapper и feed в правой колонке */
.create-post-wrapper {
    grid-column: 2;
    margin-bottom: 25px;
}

.sidebar-left {
    grid-column: 1;
    grid-row: 1 / 20;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.feed {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.create-post {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

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

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.create-post-text {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    min-height: 100px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.create-post-text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.create-post-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary) !important;
    color: var(--color-primary);
    font-weight: 600;
}

.create-post-actions .btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-button {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.action-button:hover {
    color: var(--color-primary);
}

/* ПОСТЫ В ЛЕНТЕ */
.story-post {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid #EDD5C5;
    box-shadow: 0 2px 8px rgba(180, 100, 60, 0.07), 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.story-post:hover {
    box-shadow: 0 4px 16px rgba(180, 100, 60, 0.12), 0 2px 6px rgba(0,0,0,0.06);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

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

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.author-person {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 2px;
}
.author-person a { text-decoration: none; color: inherit; }
.author-person a:hover { color: var(--color-primary); }

.post-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}

h1.post-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.post-content {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
    max-height: 400px;
    object-fit: cover;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.post-tag {
    padding: 6px 12px;
    background: rgba(255, 123, 92, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-tag.diagnosis {
    background: rgba(139, 109, 255, 0.1);
    color: var(--color-support);
}

.post-tag.city {
    background: rgba(109, 210, 178, 0.1);
    color: var(--color-secondary);
}

.post-read-more {
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-top: 16px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.story-post:hover .read-more-link {
    gap: 10px;
}

.post-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat [data-counter] {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    min-width: 14px;
}

.post-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: 1.5px solid var(--color-border) !important;
    background: var(--color-bg) !important;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    box-shadow: none;
}

.reaction-btn:hover {
    background: rgba(255, 123, 92, 0.12) !important;
    border-color: var(--color-primary) !important;
    transform: scale(1.15);
}

.reaction-btn.active {
    background: rgba(255, 123, 92, 0.18) !important;
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.25) !important;
    transform: scale(1.1);
}

.stat:has(.reaction-btn.active) [data-counter] {
    color: var(--color-primary);
}

.reaction-btn.active:hover {
    background: rgba(255, 123, 92, 0.28) !important;
    transform: scale(1.18);
}

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

/* ПРАВАЯ КОЛОНКА - КАТАЛОГИ И РЕКОМЕНДАЦИИ */
.sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.catalog-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.catalog-item:hover {
    background: var(--color-bg);
}

.catalog-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.catalog-icon.centers {
    background: var(--gradient-primary);
}

.catalog-icon.specialists {
    background: var(--gradient-secondary);
}

.catalog-icon.doctors {
    background: var(--gradient-support);
}

.catalog-icon.events {
    background: var(--gradient-accent);
}

.catalog-info {
    flex: 1;
}

.catalog-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.catalog-count {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* СОВЕТЫ И РЕКОМЕНДАЦИИ */
.tips-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.tip-item {
    padding: 15px;
    background: var(--color-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-primary);
}

.tip-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.tip-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ===== СТРАНИЦА СПИСКА ИСТОРИЙ (pages: stories) ===== */
.stories-page { min-height: calc(100vh - 200px); background: var(--color-bg); }
.page-content { padding: 40px 0; }

/* Компактный однострочный hero */
/* ── Компактный однострочный hero для разделов ── */
.section-hero { background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E8 100%); border-bottom: 2px solid #FFD9C8; padding: 22px 0; }
.section-hero__inner { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-hero__title { display: flex; align-items: center; gap: 14px; }
.section-hero__title i { color: var(--color-primary); font-size: 1.8rem; flex-shrink: 0; }
.section-hero__title h1 { font-size: 1.5rem; font-weight: 600; color: var(--color-text); margin: 0; line-height: 1.2; }
.section-hero__title h1 span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 800; }

/* Section-hero мобильная адаптация */
@media (max-width: 768px) {
    .section-hero { padding: 16px 0; }
    .section-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .section-hero__title i { font-size: 1.4rem; }
    .section-hero__title h1 { font-size: 1.15rem; }
    .section-hero__inner .btn {
        width: 100%;
        justify-content: center;
    }
}



/* Раскладка */
.stories-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }

/* Фильтры */
.filters-sidebar { display: flex; flex-direction: column; gap: 20px; }
.filters-card, .info-card { background: var(--color-white); border-radius: 16px; padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.filters-card h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.filters-form { display: flex; flex-direction: column; gap: 20px; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.filter-select { width: 100%; padding: 12px; border: 2px solid var(--color-border); border-radius: 10px; font-size: 15px; color: var(--color-text); background: var(--color-bg); cursor: pointer; transition: var(--transition); }
.filter-select:focus { outline: none; border-color: var(--color-primary); }
.btn-full { width: 100%; }

/* Инфо-блок */
.info-card { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); border: 1px solid #BFDBFE; }
.info-card i { font-size: 24px; color: #1E40AF; margin-bottom: 10px; }
.info-card h4 { color: #1E40AF; margin-bottom: 10px; font-size: 1.1rem; }
.info-card p { color: #1E3A8A; font-size: 0.9rem; line-height: 1.6; }

/* Лента историй */
.stories-feed { min-height: 500px; }
.empty-state { text-align: center; padding: 80px 20px; background: var(--color-white); border-radius: 16px; box-shadow: var(--shadow-sm); }
.empty-icon { font-size: 80px; color: #CBD5E0; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--color-text); }
.empty-state p { color: var(--color-text-light); font-size: 1.05rem; margin-bottom: 25px; }

.stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 25px; }
.story-card { background: var(--color-white); border-radius: 16px; padding: 25px; border: 1.5px solid #EDD5C5; border-top: 3px solid var(--color-primary); box-shadow: 0 2px 8px rgba(180, 100, 60, 0.07), 0 1px 3px rgba(0,0,0,0.05); transition: var(--transition); cursor: pointer; }
.story-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255, 123, 92, 0.18), 0 2px 8px rgba(0,0,0,0.07); }
.story-card-header { margin-bottom: 20px; }
.author-info { display: flex; gap: 12px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; flex-shrink: 0; }
.author-details { flex: 1; }
.author-name { font-weight: 700; color: var(--color-text); font-size: 1rem; margin-bottom: 4px; }
.story-meta { display: flex; gap: 15px; font-size: 0.85rem; color: var(--color-text-light); }
.person-name, .story-date { display: flex; align-items: center; gap: 4px; }
a.author-name { text-decoration: none; color: inherit; }
a.author-name:hover { color: var(--color-primary); }
a.person-name { text-decoration: none; color: inherit; }
a.person-name:hover { color: var(--color-primary); }
a.article-author__name { text-decoration: none; color: inherit; }
a.article-author__name:hover { color: var(--color-primary); }
a.article-tag--person { text-decoration: none; }
a.article-tag--person:hover { opacity: 0.85; }
.story-title { font-size: 1.4rem; margin-bottom: 15px; color: var(--color-text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.story-excerpt { color: var(--color-text-light); line-height: 1.6; margin-bottom: 15px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tag-diagnosis { background: rgba(139, 109, 255, 0.1); color: var(--color-support); }
.story-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--color-border); }
.story-stats { display: flex; gap: 15px; }
.stat-item { color: var(--color-text-light); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.read-more { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }

/* Пагинация */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.page-btn { width: 40px; height: 40px; border: 2px solid var(--color-border); border-radius: 8px; background: var(--color-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-weight: 600; text-decoration: none; color: var(--color-text); }
.page-btn.active { border-color: var(--color-primary); background: var(--gradient-primary); color: white; }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.page-dots { color: var(--color-text-light); padding: 0 5px; }

/* Адаптив: stories */
@media (max-width: 1200px) {
  .stories-layout { grid-template-columns: 1fr; }
  .filters-sidebar { flex-direction: row; }
  .filters-card { flex: 1; }
  .info-card { display: none; }
}
@media (max-width: 768px) {
  .page-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .filters-sidebar { flex-direction: column; }
  .stories-grid { grid-template-columns: 1fr; }
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ── Hero trust line ── */
.hero-trust-line {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

/* ── Filter hint ── */
.filter-hint {
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: -4px 0 14px;
    padding: 0;
}

/* ── Newcomer banner ── */
.newcomer-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1px solid #FDE68A;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.newcomer-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}
.newcomer-banner__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}
.newcomer-banner__body p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0 0 10px;
    line-height: 1.5;
}
.newcomer-banner__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s;
}
.newcomer-banner__link:hover {
    gap: 10px;
    text-decoration: none;
}

/* ── Footer help button ── */
.footer-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255,123,92,0.35);
    margin-top: 8px;
}
.footer-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,123,92,0.5);
    color: white;
    text-decoration: none;
}
.footer-help-btn i {
    font-size: 1.1rem;
}
.footer-help-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .newcomer-banner { flex-direction: column; gap: 10px; padding: 16px; }
    .newcomer-banner__icon { font-size: 1.6rem; }
    .hero-trust-line { font-size: 0.8rem; padding: 6px 12px; }
    .footer-help-btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 0.88rem; }
}

/* ===== PAGES: CENTERS (CATАЛОГ) ===== */
.catalog-hero { padding: 80px 0 60px; background: linear-gradient(135deg, #FFF9F5 0%, #FFF0E8 100%); position: relative; overflow: hidden; }
.catalog-hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,123,92,0.1) 0%, rgba(255,123,92,0) 70%); border-radius: 50%; }
.catalog-hero .hero-container { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.catalog-hero .hero-title { font-size: 3.2rem; margin-bottom: 1.5rem; line-height: 1.1; }
.catalog-hero .hero-title span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.catalog-hero .hero-subtitle { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 2.5rem; line-height: 1.7; }

/* Hero features (USP) */
.hero-features { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.hero-feature-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.8); padding: 12px 20px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; color: var(--color-text); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.hero-feature-item i { color: var(--color-primary); font-size: 1.1rem; }
@media (max-width: 768px) { .hero-features { flex-direction: column; align-items: center; gap: 12px; } }

/* Пои��к в каталоге */
.catalog-search { background: var(--color-white); border-radius: var(--border-radius-lg); padding: 40px; box-shadow: var(--shadow-lg); margin-top: 40px; border: 1px solid var(--color-border); }
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.search-title { font-size: 1.5rem; color: var(--color-text); font-weight: 800; }
.search-advanced { color: var(--color-primary); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.search-advanced:hover { text-decoration: underline; }
.search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 15px; }
@media (max-width: 768px) { .search-form { grid-template-columns: 1fr; } }
.form-group { position: relative; }
.form-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); z-index: 2; }
.form-input { width: 100%; padding: 16px 20px 16px 45px; border: 2px solid var(--color-border); border-radius: 12px; font-size: 15px; transition: var(--transition); background-color: var(--color-bg); }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,123,92,0.1); }
.search-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.search-tag { padding: 8px 16px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 20px; font-size: 13px; color: var(--color-text); cursor: pointer; transition: var(--transition); }
.search-tag:hover, .search-tag.active { background: var(--gradient-primary); color: white; border-color: var(--color-primary); }

/* Раскладка каталога */
.catalog-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding: 40px 0 80px; }
@media (max-width: 1100px) { .catalog-layout { grid-template-columns: 1fr; } }

/* Левая колонка - фильтры */
.filters-sidebar { position: sticky; top: 100px; height: fit-content; }
@media (max-width: 1100px) { .filters-sidebar { position: static; margin-bottom: 30px; } }
.filter-widget { background: var(--color-white); border-radius: var(--border-radius); padding: 25px; margin-bottom: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }

/* Toggle-кнопка фильтров — скрыта на десктопе */
.filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.filter-toggle:hover { border-color: var(--color-primary); }
.filter-toggle__icon { font-size: 0.75rem; color: var(--color-text-light); transition: transform 0.3s; }
.filter-widget.open .filter-toggle__icon { transform: rotate(180deg); }
.filter-widget.open .filter-toggle { border-color: var(--color-primary); color: var(--color-primary); }
.filter-title { font-size: 1.2rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.filter-clear { font-size: 0.9rem; color: var(--color-primary); background: none; border: none; cursor: pointer; font-weight: 600; }
.filter-clear:hover { text-decoration: underline; }
.filter-group { margin-bottom: 25px; }
.filter-group:last-person { margin-bottom: 0; }
.filter-group-title { font-weight: 600; margin-bottom: 12px; font-size: 0.95rem; color: var(--color-text); display: flex; align-items: center; justify-content: space-between; }
.filter-count { font-size: 0.8rem; color: var(--color-text-light); background: var(--color-bg); padding: 2px 8px; border-radius: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox { width: 18px; height: 18px; min-width: 18px; border: 2px solid var(--color-border); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; background: var(--color-white); cursor: pointer; box-sizing: border-box; }
.filter-option:hover .checkbox { border-color: var(--color-primary); }
.checkbox.checked { background: var(--color-primary) !important; border-color: var(--color-primary) !important; }
.checkbox.checked::after { content: '✓'; color: white; font-size: 12px; font-weight: 700; line-height: 1; }
.filter-label { font-size: 0.95rem; color: var(--color-text); }
.filter-label span { color: var(--color-text-light); font-size: 0.85rem; }
.rating-stars { display: flex; gap: 3px; color: var(--color-accent); font-size: 14px; }
.slider-container { padding: 10px 0; }
.slider { width: 100%; height: 4px; background: var(--color-border); border-radius: 2px; position: relative; margin: 15px 0; }
.slider-range { position: absolute; height: 100%; background: var(--gradient-primary); border-radius: 2px; }
.slider-handle { position: absolute; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background: var(--color-white); border: 2px solid var(--color-primary); border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm); }
.slider-values { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--color-text-light); }

/* City select filter with search */
.city-select-wrapper { position: relative; }
.city-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: inherit;
}
.city-select-trigger:hover { border-color: var(--color-primary-light); }
.city-select-wrapper.open .city-select-trigger { border-color: var(--color-primary); border-radius: 8px 8px 0 0; }
.city-select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.city-select-arrow { font-size: 0.75rem; color: var(--color-text-light); transition: transform 0.2s; flex-shrink: 0; }
.city-select-wrapper.open .city-select-arrow { transform: rotate(180deg); }
.city-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 320px;
    flex-direction: column;
}
.city-select-wrapper.open .city-select-dropdown { display: flex; }
.city-select-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-white);
}
.city-select-search i { color: var(--color-text-light); font-size: 0.85rem; }
.city-select-search input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--color-text);
    width: 100%;
    background: transparent;
    font-family: inherit;
}
.city-select-search input::placeholder { color: var(--color-text-light); }
.city-select-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    max-height: 260px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.city-select-list::-webkit-scrollbar { width: 6px; }
.city-select-list::-webkit-scrollbar-track { background: transparent; }
.city-select-list::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
.city-select-item {
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 0.9rem;
}
.city-select-item:hover { background: var(--color-bg); }
.city-select-item.selected { background: rgba(255, 123, 92, 0.08); color: var(--color-primary); font-weight: 600; }
.city-select-item .city-name { white-space: nowrap; }
.city-select-item .city-region { font-size: 0.78rem; color: var(--color-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-select-item.selected .city-region { color: var(--color-primary-light); }
.city-select-item.hidden { display: none; }
.city-select-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}
.city-select-loading {
    padding: 14px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Правая колонка - каталог центров */

/* AJAX Catalog Loader */
.catalog-main { position: relative; }
.catalog-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    border-radius: var(--radius-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.catalog-loader.visible {
    opacity: 1;
    pointer-events: auto;
}
.catalog-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 40px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 500;
}
.catalog-loader-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: catalogSpin 0.7s linear infinite;
}
@keyframes catalogSpin {
    to { transform: rotate(360deg); }
}
.catalog-main { min-height: 600px; }
.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
@media (max-width: 768px) { .catalog-header { flex-direction: column; gap: 20px; align-items: flex-start; } }
.catalog-title { font-size: 1.8rem; color: var(--color-text); }
.catalog-sort { display: flex; align-items: center; gap: 15px; }
.sort-label { font-size: 0.95rem; color: var(--color-text-light); }
.sort-select { padding: 10px 15px; border: 2px solid var(--color-border); border-radius: 8px; background: var(--color-white); font-size: 0.95rem; color: var(--color-text); cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--color-primary); }
.view-toggle { display: flex; gap: 5px; }
.view-btn { width: 40px; height: 40px; border: 2px solid var(--color-border); border-radius: 8px; background: var(--color-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--color-text-light); }
.view-btn.active { border-color: var(--color-primary); color: var(--color-primary); background-color: rgba(255, 123, 92, 0.1); }
.view-btn:hover:not(.active) { border-color: var(--color-primary-light); }

/* Карточки центров */
.centers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; margin-bottom: 40px; }
@media (max-width: 768px) { .centers-grid { grid-template-columns: 1fr; } }
a.center-card-link { text-decoration: none; color: var(--color-text); display: block; }
a.center-card-link:hover, a.center-card-link:visited, a.center-card-link:active { text-decoration: none; color: var(--color-text); }
a.center-card-link h3, a.center-card-link p, a.center-card-link .center-location, a.center-card-link .stat-item { text-decoration: none; }
.center-card { background: var(--color-white); border-radius: var(--border-radius); box-shadow: 0 2px 8px rgba(180, 100, 60, 0.07), 0 1px 3px rgba(0,0,0,0.05); transition: var(--transition); border: 1.5px solid #EDD5C5; border-top: 3px solid var(--color-primary); cursor: pointer; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.center-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255, 123, 92, 0.18), 0 2px 8px rgba(0,0,0,0.07); border-color: var(--color-primary); }
.center-badges { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.center-header { padding: 20px 20px 14px; flex: 1; }
.center-header__top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.center-card__logo {
    width: 48px; min-width: 48px; max-width: 48px;
    height: 48px; min-height: 48px; max-height: 48px;
    border-radius: 12px; flex-shrink: 0;
    background: var(--gradient-primary); display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: white; overflow: hidden;
}
.center-card__logo--has-image { background: none; }
.center-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.center-header__info { flex: 1; min-width: 0; }
.center-header__info .center-title { font-size: 1.05rem; margin: 0 0 3px; line-height: 1.3; }
.center-header__sub { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--color-text-light); flex-wrap: wrap; }
.center-header__sub .center-rating { color: var(--color-accent); font-weight: 600; }
.center-header__sub .center-rating i { font-size: 0.7rem; }
.center-header__dot { color: #CBD5E0; }
.center-header__city i { font-size: 0.68rem; margin-right: 2px; }
.center-header__sub .verified-badge { font-size: 0.75rem; }
.center-title { font-size: 1.05rem; margin: 0 0 3px; line-height: 1.3; }
.center-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--color-accent); font-size: 0.82rem; white-space: nowrap; }
.center-location { display: flex; align-items: center; gap: 6px; color: var(--color-text-light); font-size: 0.82rem; margin-bottom: 6px; }
.center-location i { font-size: 0.75rem; }
.center-description { color: var(--color-text-light); margin-top: 6px; font-size: 0.88rem; line-height: 1.5; }
.center-specialties { padding: 12px 20px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.specialty-tag { padding: 3px 8px; background: rgba(67,97,238,0.08); color: var(--color-blue); border-radius: 6px; font-size: 0.72rem; font-weight: 500; }
.center-footer { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.center-stats { display: flex; gap: 14px; }
.center-stats .stat-item { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--color-text-light); }
.card-actions { display: flex; align-items: center; gap: 10px; }
.card-action-view { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); flex-shrink: 0; }
.center-card:hover .card-action-view { box-shadow: 0 4px 12px rgba(255, 123, 92, 0.4); transform: scale(1.1); }
.btn-like { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-border); background: var(--color-white); color: var(--color-text-light); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.btn-like:hover { border-color: #EF4444; color: #EF4444; background: rgba(239, 68, 68, 0.08); }
.btn-like.liked { border-color: #EF4444; color: #EF4444; background: rgba(239, 68, 68, 0.08); }

/* Быстрый поиск */
.quick-search-intro { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 15px; }
.quick-search-list { display: flex; flex-direction: column; gap: 10px; }
.quick-search-link { display: flex; justify-content: space-between; padding: 10px; border-radius: 8px; background: var(--color-bg); text-decoration: none; color: var(--color-text); transition: var(--transition); }
.quick-search-link span:last-person { color: var(--color-primary); font-weight: 600; }
.quick-search-link:hover { background: var(--color-white); box-shadow: var(--shadow-sm); }

/* ===== PAGES: EVENTS ===== */
.events-page { min-height: calc(100vh - 200px); background: var(--color-bg); }
.events-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
@media (max-width: 1200px) { .events-layout { grid-template-columns: 1fr; } .filters-sidebar { flex-direction: row; } .filters-card { flex: 1; } .info-card { display: none; } }
@media (max-width: 768px) { .page-header { flex-direction: column; align-items: flex-start; gap: 20px; } .filters-sidebar { flex-direction: column; } .events-grid { grid-template-columns: 1fr; } }

/* Фильтры (уникальные элементы для событий) */
.events-page .filter-input, .events-page .filter-select { width: 100%; padding: 12px; border: 2px solid var(--color-border); border-radius: 10px; font-size: 15px; color: var(--color-text); background: var(--color-bg); cursor: pointer; transition: var(--transition); }
.events-page .filter-input:focus, .events-page .filter-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,123,92,0.1); }
.events-page .filter-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.events-page .filter-actions { display: flex; flex-direction: column; gap: 10px; }
.events-page .btn-full { width: 100%; }

/* Список событий */
.events-feed { min-height: 500px; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { background: var(--color-white); border-radius: 14px; box-shadow: 0 2px 8px rgba(180, 100, 60, 0.07), 0 1px 3px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid var(--color-border); border-top: 3px solid var(--color-primary); }
.event-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255, 123, 92, 0.18), 0 2px 8px rgba(0,0,0,0.07); }
.event-badge { padding: 3px 9px; border-radius: 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: white; display: inline-flex; align-items: center; gap: 3px; }
.event-badge.free { background: var(--color-secondary); }
.event-badge.full { background: #EF4444; }
.event-content { padding: 20px; }
.event-meta { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.event-type, .event-format { padding: 4px 10px; border-radius: 14px; font-size: 0.78rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.event-type { background: rgba(255,123,92,0.1); color: var(--color-primary); }
.event-format { background: rgba(74,108,247,0.1); color: var(--color-blue); }
.event-title { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-text); line-height: 1.35; font-weight: 700; }
.event-description { color: var(--color-text-light); line-height: 1.55; margin-bottom: 14px; font-size: 0.88rem; }
.event-details { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding: 12px; background: rgba(255,123,92,0.04); border-radius: 10px; }
.detail-item { display: flex; align-items: center; gap: 7px; color: var(--color-text); font-size: 0.84rem; }
.detail-item i { color: var(--color-primary); width: 14px; font-size: 0.78rem; }
.event-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--color-border); }
.event-price { font-size: 1rem; font-weight: 700; color: var(--color-primary); display: flex; align-items: center; gap: 5px; }
.event-price.free-price { color: var(--color-secondary); }


/* Алерты */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.alert-danger { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ===== PAGES: EVENT DETAIL ===== */

/* Хлебные крошки */
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 14px; }
.breadcrumbs a { color: var(--color-secondary); text-decoration: none; transition: var(--transition); }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs .separator { color: #CBD5E0; }
.breadcrumbs .current { color: #4A5568; }

/* Layout */
.event-layout { display: grid; grid-template-columns: 1fr 400px; gap: 30px; }
@media (max-width: 1024px) { .event-layout { grid-template-columns: 1fr; } .event-sidebar { order: -1; } }

/* Основной контент */
.event-main { background: var(--color-white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); }
.event-hero { position: relative; height: 400px; background: var(--gradient-primary); }
.event-hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 120px; color: white; }
.event-badge { position: absolute; top: 20px; right: 20px; padding: 10px 20px; border-radius: 25px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; color: white; }
.event-badge.free { background: var(--color-secondary); }
.event-badge.full { background: #EF4444; }

.event-header { padding: 40px; border-bottom: 1px solid var(--color-border); }
.event-meta-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.meta-tag { padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.meta-tag.type { background: rgba(109, 210, 178, 0.15); color: var(--color-secondary); }
.meta-tag.format { background: rgba(74, 108, 247, 0.12); color: var(--color-blue); }
.meta-tag.status { background: rgba(255, 193, 69, 0.15); color: var(--color-accent); }

.event-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--color-text); line-height: 1.2; }
@media (max-width: 768px) { .event-title { font-size: 1.8rem; } .event-hero { height: 250px; } .event-hero-placeholder { font-size: 80px; } .event-header, .event-section { padding: 25px; } .event-actions { flex-direction: column; } }

.event-organizer { display: flex; align-items: center; gap: 10px; color: var(--color-text-light); font-size: 1.05rem; }
.event-organizer i { font-size: 1.5rem; color: var(--color-secondary); }

.event-section { padding: 40px; border-bottom: 1px solid var(--color-border); }
.event-section:last-person { border-bottom: none; }
.event-section h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--color-text); display: flex; align-items: center; gap: 12px; }
.event-section h2 i { color: var(--color-secondary); }
.event-description { color: var(--color-text); line-height: 1.8; font-size: 1.05rem; }
.event-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.event-tags .tag { padding: 8px 16px; background: rgba(109, 210, 178, 0.12); border: 1px solid rgba(109, 210, 178, 0.35); border-radius: 20px; color: #166534; font-size: 0.9rem; font-weight: 500; }

.event-actions { padding: 40px; display: flex; gap: 15px; }

/* Боковая панель */
.event-sidebar { display: flex; flex-direction: column; gap: 20px; }
.info-card, .action-card { background: var(--color-white); border-radius: 16px; padding: 25px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.info-card h3 i { color: var(--color-secondary); }
.info-item { margin-bottom: 20px; }
.info-item:last-person { margin-bottom: 0; }
.info-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-text); margin-bottom: 8px; font-size: 0.9rem; }
.info-label i { color: var(--color-secondary); width: 16px; }
.info-value { color: var(--color-text); font-size: 1.05rem; }
.progress-bar { width: 100%; height: 8px; background: #E5E7EB; border-radius: 10px; overflow: hidden; margin: 10px 0 5px 0; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-secondary) 0%, #8CECD2 100%); transition: width 0.3s ease; }
.info-value small { color: var(--color-text-light); font-size: 0.85rem; }
.price-item { padding-top: 20px; border-top: 2px solid var(--color-border); }
.price-value { font-size: 1.8rem; font-weight: 700; color: var(--color-secondary); }
.free-label { color: #059669; }

/* Организатор */
.organizer-info { display: flex; align-items: center; gap: 15px; }
.organizer-avatar { font-size: 50px; color: var(--color-secondary); }
.organizer-name { font-weight: 700; color: var(--color-text); margin-bottom: 5px; font-size: 1.05rem; }
.organizer-email { color: var(--color-text-light); font-size: 0.9rem; }

/* Поделиться */
.share-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-btn { aspect-ratio: 1; border: 2px solid var(--color-border); background: var(--color-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--color-secondary); cursor: pointer; transition: var(--transition); }
.share-btn:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); transform: translateY(-2px); }

/* Локальные модификаторы кнопок на странице события */
.event-detail-page .btn-danger { background: #EF4444; color: white; }
.event-detail-page .btn-danger:hover { background: #DC2626; }

/* ===== PAGES: CENTER SHOW ===== */

/* Заголовок центра */
.center-header { background: var(--color-white); border-radius: 24px; padding: 10px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.center-main-info { display: flex; gap: 30px; margin-bottom: 30px; }
.center-logo { width: 150px; height: 150px; border-radius: 20px; background: var(--gradient-support); display: flex; align-items: center; justify-content: center; font-size: 60px; color: white; flex-shrink: 0; }
.center-details { flex: 1; }
.center-name-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.center-name-row h1 { font-size: 2.2rem; color: var(--color-text); margin: 0; }
.badge-verified { background: var(--color-secondary); color: white; padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.center-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.meta-item { color: var(--color-text-light); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.meta-item.price { color: var(--color-support); font-weight: 700; font-size: 1.3rem; }
.center-rating { display: flex; align-items: center; gap: 10px; }
.stars { display: flex; gap: 4px; font-size: 1.3rem; color: #FFA500; }
.rating-value { font-size: 1.5rem; font-weight: 700; color: var(--color-text); }
.reviews-count { color: var(--color-text-light); font-size: 1rem; }
.center-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Карточки */
.services-card, .description-card, .contact-card, .specialists-card, .reviews-card, .review-form-card { background: var(--color-white); border-radius: 16px; padding: 30px; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.services-card h3, .description-card h2, .contact-card h2, .specialists-card h2, .reviews-card h2, .review-form-card h3 { color: var(--color-text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

/* Специализации и услуги */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-section h3 { font-size: 1.2rem; margin-bottom: 15px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tag-specialization { background: rgba(139, 109, 255, 0.1); color: var(--color-support); }
.tag-service { background: rgba(16, 185, 129, 0.1); color: var(--color-secondary); }

/* Описание */
.description-content { color: var(--color-text-light); line-height: 1.8; font-size: 1.05rem; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item i { color: var(--color-support); font-size: 24px; width: 30px; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--color-text); margin-bottom: 5px; font-size: 0.95rem; }
.contact-item p { color: var(--color-text); margin: 0; font-size: 1.05rem; }
.contact-item a { color: var(--color-text); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--color-support); }

/* Специалисты */
.specialists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.specialist-item { display: flex; gap: 15px; padding: 20px; border: 2px solid #E9D5FF; border-radius: 12px; cursor: pointer; transition: var(--transition); }
.specialist-item:hover { border-color: var(--color-support); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.specialist-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; flex-shrink: 0; }
.specialist-info h4 { color: var(--color-text); margin-bottom: 8px; font-size: 1.05rem; }
.specialist-info .experience { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 8px; }
.specialist-rating { display: flex; align-items: center; gap: 6px; }
.stars-small { display: flex; gap: 2px; font-size: 0.9rem; color: #FFA500; }
.specialist-rating span { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }

/* Отзывы */
.reviews-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.reviews-list { display: flex; flex-direction: column; gap: 25px; }
.review-item { padding: 25px; border: 2px solid #E9D5FF; border-radius: 12px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 15px; }
.review-author { display: flex; gap: 12px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-support); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; }
.author-name { font-weight: 700; color: var(--color-text); font-size: 1.05rem; }
.review-date { color: var(--color-text-light); font-size: 0.9rem; }
.review-rating { display: flex; gap: 4px; font-size: 1.2rem; color: #FFA500; }
.review-content { color: var(--color-text-light); line-height: 1.7; font-size: 1rem; }
.official-response { margin-top: 20px; padding: 20px; background: #F7FAFC; border-left: 4px solid var(--color-support); border-radius: 8px; }
.response-header { font-weight: 700; color: var(--color-support); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.response-content { color: var(--color-text-light); line-height: 1.6; }

/* Форма отзыва */
.rating-input { display: flex; gap: 10px; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; font-size: 2rem; color: #CBD5E0; transition: var(--transition); }
.rating-input label .fa-star:last-person { display: none; }
.rating-input input:checked ~ label .fa-star:first-person { display: none; }
.rating-input input:checked ~ label .fa-star:last-person { display: inline; color: #FFA500; }
.rating-input label:hover .fa-star:first-person, .rating-input label:hover ~ label .fa-star:first-person { display: none; }
.rating-input label:hover .fa-star:last-person, .rating-input label:hover ~ label .fa-star:last-person { display: inline; color: #FFA500; }
.review-form-card .form-group { margin-bottom: 25px; }
.review-form-card .form-group label { display: block; font-weight: 600; color: var(--color-text); margin-bottom: 10px; }
.review-form-card textarea { width: 100%; padding: 15px; border: 2px solid #E9D5FF; border-radius: 10px; font-size: 1rem; font-family: inherit; resize: vertical; transition: var(--transition); }
.review-form-card textarea:focus { outline: none; border-color: var(--color-support); }

/* Пустое состояние и промпт авторизации */
.auth-prompt { text-align: center; padding: 40px; background: var(--color-white); border-radius: 16px; box-shadow: var(--shadow-sm); }
.auth-prompt i { font-size: 48px; color: #CBD5E0; margin-bottom: 15px; }
.auth-prompt p { color: var(--color-text-light); font-size: 1.1rem; }
.auth-prompt a { color: var(--color-support); font-weight: 600; text-decoration: none; }
.auth-prompt a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .center-main-info { flex-direction: column; align-items: center; text-align: center; }
  .center-name-row { flex-direction: column; gap: 10px; }
  .center-name-row h1 { font-size: 1.8rem; }
  .center-meta { align-items: center; }
  .center-actions { flex-direction: column; width: 100%; }
  .center-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .specialists-grid { grid-template-columns: 1fr; }
}

/* ===== PAGES: SPECIALISTS ===== */
.specialists-page { min-height: 100vh; background: var(--color-bg); }
.specialists-hero { padding: 80px 0 60px; background: linear-gradient(135deg, #FFF9F5 0%, #F0F9FF 100%); }
.specialists-hero .hero-container { max-width: 900px; margin: 0 auto; text-align: center; }
.specialists-hero .hero-title { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
.specialists-hero .hero-title span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.specialists-hero .hero-subtitle { font-size: 1.2rem; color: var(--color-text-light); margin-bottom: 2.5rem; }

.specialists-search { background: var(--color-white); border-radius: var(--border-radius); padding: 30px; box-shadow: var(--shadow-md); }
.specialists-search .search-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 15px; }
.specialists-search .form-group { position: relative; }
.specialists-search .form-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); }
.specialists-search .form-input { width: 100%; padding: 14px 20px 14px 45px; border: 2px solid var(--color-border); border-radius: 10px; font-size: 15px; transition: var(--transition); background: var(--color-bg); }
.specialists-search .form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1); }

/* Раскладка каталога специалистов */
.specialists-page .catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 40px 0; }
@media (max-width: 1100px) { .specialists-page .catalog-layout { grid-template-columns: 1fr; } .specialists-page .filters-sidebar { position: static; } }
@media (max-width: 768px) { .specialists-search .search-form { grid-template-columns: 1fr; } .specialists-grid { grid-template-columns: 1fr; } .catalog-header { flex-direction: column; gap: 15px; align-items: flex-start; } }

/* Карточки специалистов */
.specialists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; margin-bottom: 40px; }
/* .specialist-card стили — в specialists.css */
.specialist-header { display: flex; gap: 15px; margin-bottom: 15px; }
.specialist-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 600; flex-shrink: 0; }
.specialist-badges { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.specialist-badge { padding: 4px 10px; background: rgba(255,123,92,0.1); color: var(--color-primary); border-radius: 12px; font-size: 12px; font-weight: 600; }
/* Переопределение бейджа проверки в карточках специалистов */
.specialist-card .verified-badge { padding: 4px 10px; background: rgba(34, 197, 94, 0.1); color: #22C55E; border-radius: 12px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.specialist-name { font-size: 1.2rem; margin-bottom: 5px; }
.specialist-rating { color: #FFC145; font-size: 14px; }
.specialist-body { margin-bottom: 15px; }
.specialist-bio { color: var(--color-text-light); font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.specialist-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.specialist-tags .tag { padding: 4px 10px; background: #F3F4F6; border-radius: 8px; font-size: 12px; }
.specialist-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--color-border); }
.specialist-stats { display: flex; flex-direction: column; gap: 5px; }
.specialist-stats .stat-item { font-size: 13px; color: var(--color-text-light); }

/* Иконка проверенных в фильтрах */
.icon-verified { color: #22C55E; }

/* ===== PAGES: CHILD BLOG ===== */
.person-blog-page { min-height: calc(100vh - 200px); padding: 40px 20px; background: var(--color-bg); }
.person-blog-container { max-width: 900px; margin: 0 auto; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--color-primary); text-decoration: none; font-weight: 600; margin-bottom: 20px; transition: var(--transition); }
.back-link:hover { color: var(--color-primary-light); transform: translateX(-5px); }

.blog-header { background: var(--color-white); border-radius: 24px; padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow-lg); }
.person-profile { display: flex; align-items: center; gap: 30px; }
.person-avatar-large { width: 120px; height: 120px; border-radius: 50%; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; font-size: 60px; color: white; flex-shrink: 0; box-shadow: 0 8px 24px rgba(109, 210, 178, 0.3); }
.person-details { flex: 1; }
.person-details h1 { font-size: 2.5rem; margin-bottom: 15px; color: var(--color-text); }
.person-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.meta-item { color: var(--color-text-light); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.person-author { color: var(--color-text-light); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.person-author strong { color: var(--color-text); }

.blog-content { background: var(--color-white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); }
.blog-content .section-title { font-size: 1.8rem; margin-bottom: 30px; color: var(--color-text); display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 2px solid var(--color-border); }

/* Timeline */
.stories-timeline { position: relative; padding-left: 40px; }
.stories-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%); }
.timeline-story { position: relative; margin-bottom: 40px; }
.timeline-story.highlighted .story-content-card { border: 3px solid var(--color-primary); animation: highlight 2s ease; }
@keyframes highlight { 0%, 100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 8px 32px rgba(255, 123, 92, 0.4); } }
.timeline-marker { position: absolute; left: -40px; top: 0; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-primary); border: 4px solid white; box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3); }
.story-content-card { background: var(--color-bg); border-radius: 16px; padding: 25px; border: 2px solid transparent; transition: var(--transition); }
.story-content-card:hover { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.story-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.story-date { color: var(--color-text-light); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.story-actions { display: flex; gap: 8px; }
.blog-content .btn-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--color-border); color: var(--color-text-light); cursor: pointer; transition: var(--transition); text-decoration: none; }
.blog-content .btn-icon:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.blog-content .story-title { font-size: 1.5rem; margin-bottom: 15px; color: var(--color-text); line-height: 1.3; }
.blog-content .story-text { color: var(--color-text); line-height: 1.7; margin-bottom: 20px; font-size: 1.05rem; }
.blog-content .story-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--color-border); }
.blog-content .story-stats { display: flex; gap: 15px; }

/* Read more link in person blog */
.blog-content .read-more-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--color-primary); font-weight: 600; font-size: 0.85rem;
    text-decoration: none; transition: gap 0.2s;
    white-space: nowrap; flex-shrink: 0;
}
.blog-content .read-more-link:hover { gap: 9px; }
.blog-content .read-more-link i { font-size: 0.75rem; }

@media (max-width: 768px) {
    .person-blog-page { padding: 20px 12px; }
    .blog-header { padding: 24px 18px; margin-bottom: 24px; border-radius: 16px; }
    .person-profile { flex-direction: column; text-align: center; gap: 16px; }
    .person-avatar-large { width: 80px; height: 80px; font-size: 40px; }
    .person-details h1 { font-size: 1.5rem; margin-bottom: 10px; }
    .person-meta { justify-content: center; gap: 12px; font-size: 0.88rem; }
    .person-author { justify-content: center; font-size: 0.88rem; }
    .blog-content { padding: 20px 16px; border-radius: 16px; }
    .blog-content .section-title { font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 14px; }
    .stories-timeline { padding-left: 0; }
    .stories-timeline::before { display: none; }
    .timeline-marker { display: none; }
    .timeline-story { margin-bottom: 20px; }
    .story-content-card { padding: 18px; }
    .blog-content .story-title { font-size: 1.15rem; margin-bottom: 10px; }
    .blog-content .story-text { font-size: 0.93rem; margin-bottom: 14px; line-height: 1.6; }
    .blog-content .story-footer { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
    .blog-content .story-stats { gap: 10px; }
    .blog-content .stat-item { font-size: 0.82rem; }
}

/* ===== PAGES: PROFILE ===== */
.profile-page { min-height: calc(100vh - 200px); padding: 40px 20px; background: var(--color-bg); }
.profile-container { max-width: 900px; margin: 0 auto; }
.profile-header { background: var(--color-white); border-radius: 24px; padding: 40px; margin-bottom: 30px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 30px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 50px; color: white; flex-shrink: 0; }
.profile-info h1 { font-size: 2rem; margin-bottom: 8px; color: var(--color-text); }
.profile-email { color: var(--color-text-light); font-size: 1.05rem; margin-bottom: 4px; }
.profile-city { color: var(--color-text-light); font-size: 0.95rem; }
.profile-sections { display: flex; flex-direction: column; gap: 20px; }
.section-card { background: var(--color-white); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--color-border); }
.section-header h2 { font-size: 1.3rem; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.section-content { display: flex; flex-direction: column; gap: 15px; }
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #F7FAFC; }
.info-label { font-weight: 600; color: var(--color-text-light); }
.info-value { color: var(--color-text); }
.action-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: var(--color-bg); border-radius: 12px; }
.action-item h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--color-text); }
.action-item p { color: var(--color-text-light); font-size: 0.9rem; margin: 0; }
.action-link { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--color-bg); border-radius: 12px; text-decoration: none; color: var(--color-text); transition: var(--transition); }
.action-link:hover { background: var(--color-border); transform: translateX(5px); }
.action-link i:first-person { font-size: 20px; color: var(--color-primary); }
.action-link span { flex: 1; font-weight: 600; }
.person-info { display: flex; align-items: center; gap: 20px; padding: 15px; background: var(--color-bg); border-radius: 12px; }
.person-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; font-size: 30px; color: white; flex-shrink: 0; }
.person-details { flex: 1; }
.person-details h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--color-text); }
.person-details p { color: var(--color-text-light); font-size: 0.9rem; margin: 3px 0; }
.divider { height: 1px; background: var(--color-border); margin: 10px 0; }
.text-success { color: #38A169; }

/* Профиль: промокоды */
.promo-section .promo-active-list { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.promo-section .promo-active-title { font-weight: 600; color: #166534; margin-bottom: 8px; }
.promo-section .promo-active-item { color: #166534; font-size: 14px; }
.promo-form { display: flex; gap: 12px; align-items: flex-start; }
.promo-input { width: 100%; padding: 12px 16px; border: 2px solid #E5E7EB; border-radius: 12px; font-size: 14px; text-transform: uppercase; }
.promo-message { margin-top: 8px; font-size: 14px; }

/* Профиль: переключатели (toggle) */
.toggle { position: relative; display: inline-block; width: 50px; height: 28px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E0; transition: 0.4s; border-radius: 28px; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: 0.4s; border-radius: 50%; }
.toggle input:checked + .toggle-slider { background: var(--gradient-primary); }
.toggle input:checked + .toggle-slider:before { transform: translateX(22px); }

/* Профиль: опасная зона */
.section-card.danger-zone { border: 2px solid #FEE2E2; }
.danger-warning { display: flex; gap: 12px; padding: 16px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; margin-bottom: 15px; }
.danger-warning i { color: #991B1B; font-size: 20px; margin-top: 2px; }
.danger-warning strong { color: #991B1B; display: block; margin-bottom: 5px; }
.danger-warning p { color: #7F1D1D; font-size: 14px; margin: 0; }

/* Profile mobile */
@media (max-width: 768px) {
    .profile-page { padding: 20px 12px; }
    .profile-header { flex-direction: column; text-align: center; padding: 24px 18px; gap: 16px; border-radius: 16px; }
    .profile-avatar { width: 72px; height: 72px; font-size: 36px; }
    .profile-info h1 { font-size: 1.5rem; }
    .section-card { padding: 20px 16px; }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    .section-header h2 { font-size: 1.1rem; gap: 8px; }
    .section-header .btn { width: 100%; justify-content: center; }
    .info-row { flex-direction: column; gap: 4px; }
    .info-label { font-size: 0.85rem; }
    .info-value { font-size: 0.9rem; }
    .action-item { flex-direction: column; gap: 12px; align-items: flex-start; }
    .action-item .btn { width: 100%; justify-content: center; }
}

/* Модальные окна */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal[style*="display: flex"] { display: flex; }
.modal-content { background: white; border-radius: 24px; max-width: 500px; width: 90%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modal-header { padding: 24px; border-bottom: 1px solid var(--color-border); }
.modal-header h2 { color: #991B1B; font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 24px; }
.modal-body p { margin-bottom: 15px; line-height: 1.6; }
.warning-text { color: #991B1B; font-weight: 600; }
.modal-body ul { margin: 15px 0; padding-left: 25px; }
.modal-body li { margin-bottom: 8px; color: #7F1D1D; }
.modal-footer { padding: 24px; border-top: 1px solid var(--color-border); }
.modal-footer form { display: flex; gap: 12px; }
@media (max-width: 768px) { .modal-content { width: 95%; } .modal-footer form { flex-direction: column; } }

/* Пароли: контейнер и переключатель */
.password-container { position: relative; }
.password-container input { padding-right: 50px; }
.password-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #718096; cursor: pointer; font-size: 18px; padding: 5px; }
.password-toggle:hover { color: var(--color-primary); }

/* Кнопки: доп. стили */
.btn-danger { background: #E53E3E; color: white; }
.btn-danger:hover { background: #C53030; transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

@media (max-width: 768px) {
  .profile-header { flex-direction: column; text-align: center; padding: 30px 20px; }
  .section-card { padding: 20px; }
  .action-item { flex-direction: column; align-items: flex-start; gap: 15px; }
  .person-info { flex-direction: column; text-align: center; }
  .promo-form { flex-direction: column; }
}

/* ===== PROFILE (НОВЫЙ ДИЗАЙН prof-*) ===== */
.prof-page { min-height: calc(100vh - 160px); padding: 36px 20px; background: var(--color-bg); }
.prof-container { max-width: 700px; margin: 0 auto; }
.prof-header { display: flex; align-items: center; gap: 18px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.prof-header__avatar { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; }
.prof-header__info h1 { font-size: 1.3rem; font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.prof-header__email, .prof-header__city { font-size: 0.82rem; color: var(--color-text-light); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.prof-header__email i, .prof-header__city i { font-size: 0.72rem; color: var(--color-primary); }
.prof-sections { display: flex; flex-direction: column; gap: 16px; }
.prof-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; }
.prof-card__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.04); }
.prof-card__head h2 { font-size: 0.95rem; font-weight: 700; color: var(--color-text); display: flex; align-items: center; gap: 8px; margin: 0; }
.prof-card__head h2 i { color: var(--color-primary); font-size: 0.85rem; }
.prof-card__action { font-size: 0.8rem; font-weight: 600; color: var(--color-primary); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: opacity 0.2s; }
.prof-card__action:hover { opacity: 0.7; }
.prof-card__body { padding: 16px 20px; }
.prof-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.prof-row:last-child { border-bottom: none; }
.prof-row__label { font-size: 0.85rem; color: var(--color-text-light); }
.prof-row__value { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.prof-action-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 12px; }
.prof-action-row__title { font-size: 0.9rem; font-weight: 600; color: var(--color-text); display: flex; align-items: center; gap: 7px; }
.prof-action-row__title i { color: var(--color-primary); font-size: 0.8rem; }
.prof-action-row__desc { font-size: 0.78rem; color: var(--color-text-light); margin-top: 2px; }
.prof-action-row__desc--ok { color: #10B981; }
.prof-action-row__desc--ok i { font-size: 0.72rem; }
.prof-divider { height: 1px; background: rgba(0,0,0,0.04); margin: 4px 0; }
.prof-child-row { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.prof-child-row__avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; }
.prof-child-row__info { flex: 1; min-width: 0; }
.prof-child-row__name { font-weight: 600; font-size: 0.92rem; color: var(--color-text); }
.prof-child-row__meta { display: flex; gap: 12px; font-size: 0.78rem; color: var(--color-text-light); margin-top: 2px; }
.prof-child-row__meta span { display: flex; align-items: center; gap: 4px; }
.prof-child-row__meta i { font-size: 0.7rem; color: var(--color-primary); }
.prof-empty-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.88rem; color: var(--color-text-light); padding: 6px 0; }
.prof-empty-inline .btn { white-space: nowrap; flex-shrink: 0; }
.prof-link-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--color-bg); text-decoration: none; color: var(--color-text); transition: background 0.15s; }
.prof-link-row:hover { background: rgba(255,123,92,0.06); }
.prof-link-row i:first-child { color: var(--color-primary); font-size: 0.9rem; }
.prof-link-row span { flex: 1; font-weight: 600; font-size: 0.88rem; }
.prof-slug-row { padding: 10px 0; }
.prof-slug-row__info { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slug-copy-btn { background: none; border: 1px solid var(--color-border); border-radius: 6px; padding: 3px 7px; cursor: pointer; color: var(--color-text-light); font-size: 0.78rem; transition: all 0.15s; flex-shrink: 0; }
.slug-copy-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.prof-slug-row__label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.prof-slug-row__label i { color: var(--color-primary); font-size: 0.8rem; }
.prof-slug-row__link { font-size: 0.78rem; color: var(--color-primary); word-break: break-all; text-decoration: none; }
.prof-slug-row__link:hover { text-decoration: underline; }
.prof-slug-row__edit { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.slug-input { flex: 1; padding: 6px 10px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 0.82rem; font-family: monospace; background: var(--color-bg); max-width: 250px; }
.slug-input:focus { outline: none; border-color: var(--color-primary); }
.slug-save-btn { padding: 4px 8px !important; font-size: 0.75rem !important; min-width: 0 !important; }
.prof-slug-row__msg { font-size: 0.78rem; margin-top: 4px; min-height: 18px; }
.prof-slug-row__premium { color: #D4A017; font-size: 0.85rem; }
.prof-slug-hint { margin-top: 12px; padding: 10px 14px; background: rgba(212, 160, 23, 0.08); border-radius: 8px; font-size: 0.82rem; color: var(--color-text-light); display: flex; align-items: center; gap: 8px; }
.prof-slug-hint i { color: #D4A017; }
.prof-promo-active { padding: 12px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; margin-bottom: 12px; }
.prof-promo-active__title { font-weight: 600; font-size: 0.82rem; color: #166534; margin-bottom: 4px; }
.prof-promo-active__title i { font-size: 0.75rem; }
.prof-promo-active__item { font-size: 0.8rem; color: #166534; }
.prof-promo-form { display: flex; gap: 10px; margin-top: 12px; }
.prof-promo-form .form-input { flex: 1; padding: 9px 14px; border: 1.5px solid var(--color-border); border-radius: 10px; font-size: 0.88rem; text-transform: uppercase; background: var(--color-bg); }
.prof-promo-form .form-input:focus { outline: none; border-color: var(--color-primary); }
.prof-promo-msg { font-size: 0.82rem; margin-top: 6px; }
.prof-info-note { font-size: 0.82rem; color: var(--color-text-light); line-height: 1.5; padding: 10px 14px; background: var(--color-bg); border-radius: 10px; }
.prof-form-header { margin-bottom: 20px; }
.prof-back { display: inline-flex; align-items: center; gap: 6px; color: var(--color-primary); text-decoration: none; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.prof-back:hover { opacity: 0.7; }
.prof-form-header h1 { font-size: 1.3rem; font-weight: 700; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.prof-form-header h1 i { color: var(--color-primary); font-size: 1rem; }
.prof-form .form-group { margin-bottom: 18px; }
.prof-form .form-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--color-text); margin-bottom: 6px; }
.prof-form .form-label.required::after { content: ' *'; color: var(--color-primary); }
.prof-form .form-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 10px; font-size: 0.9rem; background: var(--color-bg); transition: border-color 0.2s; }
.prof-form .form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,123,92,0.1); background: white; }
.prof-form-actions { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-border); }
@media (max-width: 600px) {
    .prof-page { padding: 20px 12px; }
    .prof-header { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
    .prof-header__avatar { width: 52px; height: 52px; font-size: 22px; }
    .prof-header__info h1 { font-size: 1.15rem; }
    .prof-header__email, .prof-header__city { justify-content: center; }
    .prof-card__head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
    .prof-card__body { padding: 14px 16px; }
    .prof-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .prof-action-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .prof-action-row .btn { width: 100%; justify-content: center; }
    .prof-child-row { flex-wrap: wrap; }
    .prof-empty-inline { flex-direction: column; align-items: flex-start; gap: 10px; }
    .prof-empty-inline .btn { width: 100%; justify-content: center; }
    .prof-promo-form { flex-direction: column; }
    .prof-form-actions { flex-direction: column; }
    .prof-form-actions .btn { width: 100%; justify-content: center; }
}

/* ===== CHILD ADD/EDIT PAGE (person forms) ===== */
.child-add-page { min-height: calc(100vh - 160px); padding: 40px 20px; background: var(--color-bg); }
.child-add-container { max-width: 580px; margin: 0 auto; }
.child-add-card { background: var(--color-white); border-radius: 20px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid var(--color-border); }
.child-add-header { text-align: center; margin-bottom: 28px; }
.child-add-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 28px; color: white; }
.child-add-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.child-add-header p { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.form-section-title { font-size: 0.82rem; font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,123,92,0.15); }
.form-section-title:first-of-type { margin-top: 0; }
.form-section-title i { font-size: 0.78rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.child-form .form-group { margin-bottom: 16px; }
.child-form .form-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--color-text); margin-bottom: 6px; }
.child-form .form-label.required::after { content: ' *'; color: var(--color-primary); }
.child-form .form-input, .child-form .form-textarea, .child-form .form-select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--color-border); border-radius: 10px; font-size: 0.9rem; font-family: inherit; background: var(--color-bg); transition: border-color 0.2s, box-shadow 0.2s; }
.child-form .form-input:focus, .child-form .form-textarea:focus, .child-form .form-select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,123,92,0.1); background: white; }
.form-hint { font-size: 0.78rem; color: var(--color-text-light); margin-top: 4px; }
.ajax-search-wrapper { position: relative; }
.ajax-search-wrapper .form-input { padding-right: 36px; }
.ajax-search-wrapper::after { content: '\f002'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--color-text-light); font-size: 0.82rem; pointer-events: none; }
.ajax-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1.5px solid var(--color-border); border-radius: 10px; margin-top: 4px; max-height: 220px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 100; }
.ajax-dropdown.open { display: block; }
.ajax-option { padding: 10px 14px; cursor: pointer; font-size: 0.88rem; color: var(--color-text); transition: background 0.1s; }
.ajax-option:hover, .ajax-option.highlighted { background: rgba(255,123,92,0.06); }
.ajax-option .ajax-hint { font-size: 0.78rem; color: var(--color-text-light); margin-left: 4px; }
.ajax-empty { padding: 12px 14px; color: var(--color-text-light); font-size: 0.85rem; text-align: center; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; margin: 20px 0; font-size: 0.82rem; color: #166534; }
.privacy-note i { margin-top: 2px; flex-shrink: 0; }
/* Gender selector */
.gender-selector { display: flex; gap: 12px; }
.gender-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border: 2px solid var(--color-border);
    border-radius: 12px; cursor: pointer; transition: all 0.2s;
    flex: 1; position: relative; background: var(--color-bg);
}
.gender-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.gender-option__icon { font-size: 1.3rem; display: flex; align-items: center; }
.gender-option__label { font-size: 0.92rem; font-weight: 600; color: var(--color-text); }
.gender-option:hover { border-color: #ccc; background: white; }
.gender-option--boy:has(input:checked) {
    border-color: #60A5FA; background: #EFF6FF;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}
.gender-option--boy:has(input:checked) .gender-option__icon { color: #3B82F6; }
.gender-option--boy:has(input:checked) .gender-option__label { color: #1D4ED8; }
.gender-option--girl:has(input:checked) {
    border-color: #F472B6; background: #FDF2F8;
    box-shadow: 0 0 0 3px rgba(244,114,182,0.15);
}
.gender-option--girl:has(input:checked) .gender-option__icon { color: #EC4899; }
.gender-option--girl:has(input:checked) .gender-option__label { color: #BE185D; }
.gender-option--boy .gender-option__icon { color: #93C5FD; }
.gender-option--girl .gender-option__icon { color: #F9A8D4; }
.gender-option--none .gender-option__icon { color: #A3A3A3; }
.gender-option--none:has(input:checked) {
    border-color: #A3A3A3; background: #F5F5F5;
    box-shadow: 0 0 0 3px rgba(163,163,163,0.15);
}
.gender-option--none:has(input:checked) .gender-option__icon { color: #737373; }
.gender-option--none:has(input:checked) .gender-option__label { color: #525252; }
.form-actions-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.btn-link-muted { background: none; border: none; color: var(--color-text-light); font-size: 0.88rem; cursor: pointer; text-decoration: none; padding: 8px 0; transition: color 0.2s; }
.btn-link-muted:hover { color: var(--color-primary); }
@media (max-width: 600px) {
    .child-add-page { padding: 20px 12px; }
    .child-add-card { padding: 24px 18px; border-radius: 16px; }
    .child-add-header h1 { font-size: 1.3rem; }
    .child-add-icon { width: 52px; height: 52px; font-size: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-actions-row { flex-direction: column-reverse; gap: 10px; }
    .form-actions-row .btn { width: 100%; justify-content: center; }
}

/* ===== PAGES: AUTH ===== */
.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--color-bg); }
.auth-container { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-card { background: var(--color-white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-title { font-size: 2rem; margin-bottom: 10px; color: var(--color-text); }
.auth-subtitle { color: var(--color-text-light); font-size: 1.1rem; }
.auth-form .btn { width: 100%; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.checkbox-group { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.checkbox-item { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-input { width: 18px; height: 18px; border: 2px solid var(--color-border); border-radius: 6px; cursor: pointer; }
.auth-form input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; min-height: 18px; flex-shrink: 0; margin: 4px 0 0 0; }
.checkbox-label { font-size: 14px; color: var(--color-text); cursor: pointer; }
/* Validation errors */
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 12px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; color: #DC2626; font-size: 0.82rem; font-weight: 500; line-height: 1.4; animation: fieldErrorAppear 0.3s ease; }
.field-error i { color: #EF4444; font-size: 0.78rem; flex-shrink: 0; }
@keyframes fieldErrorAppear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.has-error input, .has-error textarea, .has-error select { border-color: #F87171 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important; }
.has-error .checkbox-label { color: #DC2626; }
/* Hide default Symfony form_errors <ul> inside auth-form */
.auth-form ul { list-style: none; padding: 0; margin: 4px 0 0; }
.auth-form ul li { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px; color: #DC2626; font-size: 0.82rem; font-weight: 500; margin-bottom: 4px; }
.auth-form ul li::before { content: '\f06a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.78rem; color: #EF4444; }
.forgot-link { color: var(--color-primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; margin: 30px 0; color: var(--color-text-light); font-size: 14px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.divider-text { padding: 0 15px; }
.social-buttons { display: flex; flex-direction: column; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; border: 2px solid var(--color-border); border-radius: 12px; background: white; color: var(--color-text); font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); }
.social-btn:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.social-btn.vk { color: #4680C2; }
.social-btn.google { color: #DB4437; }
.social-btn.yandex { color: #FC3F1D; }
.auth-links { text-align: center; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--color-border); }
.auth-link { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-info { margin-top: 24px; padding: 20px; background: linear-gradient(135deg, #FFF0E8 0%, #FFE8DE 100%); border-radius: 12px; border-left: 4px solid var(--color-primary); }
.auth-info p { color: var(--color-text); font-size: 14px; line-height: 1.6; margin: 0; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }


/* ===== PAGES: CHILD FORM (ONBOARDING) ===== */
.onboarding-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-border) 100%); }
.onboarding-container { width: 100%; max-width: 600px; margin: 0 auto; }

/* Прогресс-бар */
.progress-bar { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; padding: 0 20px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-circle { width: 50px; height: 50px; border-radius: 50%; background: white; border: 3px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--color-text-light); transition: var(--transition); }
.step-label { font-size: 13px; color: var(--color-text-light); font-weight: 600; text-align: center; }
.progress-step.completed .step-circle { background: var(--gradient-secondary); border-color: #6DD2B2; color: white; }
.progress-step.active .step-circle { background: var(--gradient-primary); border-color: var(--color-primary); color: white; box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3); }
.progress-step.active .step-label { color: var(--color-primary); }
.progress-line { width: 60px; height: 3px; background: var(--color-border); margin: 0 10px; }
.progress-line.completed { background: #6DD2B2; }

/* Карточка */
.onboarding-card { background: var(--color-white); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.onboarding-header { text-align: center; margin-bottom: 30px; }
.welcome-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 36px; color: white; box-shadow: 0 8px 24px rgba(255, 123, 92, 0.3); }
.onboarding-title { font-size: 2rem; margin-bottom: 10px; color: var(--color-text); }
.onboarding-subtitle { color: var(--color-text-light); font-size: 1.05rem; line-height: 1.6; }

/* Инфо-блок */
.info-box { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; padding: 16px; margin-bottom: 30px; display: flex; gap: 12px; align-items: flex-start; }
.info-box > div { flex: 1; min-width: 0; }
.info-box i { color: #1E40AF; font-size: 20px; margin-top: 2px; }
.info-box strong { color: #1E40AF; display: inline; }
.info-box p { color: #1E3A8A; font-size: 14px; line-height: 1.5; margin: 0; }

/* Действия формы (локально для онбординга) */
.onboarding-card .form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }

/* Футер */
.onboarding-footer { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--color-border); text-align: center; }
.text-muted { color: var(--color-text-light); font-size: 14px; line-height: 1.6; }

/* Алерты (дополнение) */
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

@media (max-width: 768px) {
  .onboarding-card { padding: 30px 20px; }
  .onboarding-title { font-size: 1.6rem; }
  .progress-bar { padding: 0; }
  .progress-line { width: 40px; }
  .step-label { font-size: 11px; }
  .step-circle { width: 40px; height: 40px; font-size: 16px; }
}

/* ===== PAGES: EVENT FORM ===== */
.event-form-page { min-height: calc(100vh - 200px); padding: 40px 20px; background: var(--color-bg); }
.event-form-container { max-width: 900px; margin: 0 auto; }
.event-form-card { background: var(--color-white); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); }
.event-form-title { font-size: 1.8rem; margin-bottom: 20px; color: var(--color-text); display: flex; align-items: center; gap: 10px; }
.event-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .event-form-grid { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-weight: 600; color: var(--color-text); font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px; border: 2px solid var(--color-border); border-radius: 10px; font-size: 15px; color: var(--color-text); background: var(--color-bg); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(255,123,92,0.1); }
.textarea-control { min-height: 140px; resize: vertical; }
.help-text { font-size: 0.85rem; color: var(--color-text-light); }
.error-text { font-size: 0.85rem; color: #E11D48; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.upload-zone { padding: 16px; border: 2px dashed var(--color-border); border-radius: 12px; background: var(--color-bg); color: var(--color-text-light); text-align: center; transition: var(--transition); }
.upload-zone:hover { border-color: var(--color-primary); background: var(--color-white); box-shadow: var(--shadow-sm); }
.toggle-row { display: flex; align-items: center; gap: 10px; }

/* Универсальные контролы формы внутри .event-form */
.event-form input, .event-form select, .event-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: var(--transition);
}
.event-form input:focus, .event-form select:focus, .event-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,123,92,0.1);
  background: var(--color-white);
}

/* Bootstrap Selectpicker стили */
.diagnosis-select-wrapper select.selectpicker {
  display: none !important;
  width: 100% !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
}

/* Selectpicker button (заменяет оригинальный select) */
.diagnosis-select-wrapper .bootstrap-select {
  display: block !important;
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Убрать стили оригинального select только внутри diagnosis-select-wrapper */
.diagnosis-select-wrapper .dropdown.bootstrap-select.form-select {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.event-form .selectpicker {
  display: none !important;
  width: 100% !important;
  visibility: visible !important;
}

.event-form .bootstrap-select {
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
}

.event-form .bootstrap-select > .btn {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text);
  text-align: left;
  font-size: 15px;
}

.event-form .bootstrap-select > .btn:focus,
.event-form .bootstrap-select > .btn:active {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,123,92,0.1);
  background: var(--color-white);
}

.event-form textarea { min-height: 140px; resize: vertical; }

/* Секции формы */
.event-form .form-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--color-border); }
.event-form .form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-text);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 1100px) {
    .main-container {
        grid-template-columns: 240px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sidebar-left {
        position: static;
        margin-bottom: 0;
        order: 2;
        grid-column: 1;
        grid-row: auto;
    }

    .create-post-wrapper {
        grid-column: 1;
        order: 1;
        margin-bottom: 16px;
    }

    .feed {
        grid-column: 1;
        order: 3;
    }

    .sidebar-left .filter-widget {
        padding: 0;
        margin-bottom: 0;
        box-shadow: none;
        background: transparent;
        border: none;
    }

    .sidebar-left .filter-toggle {
        display: flex;
    }

    .sidebar-left .filter-title {
        display: none;
    }

    .sidebar-left .filter-body {
        display: none;
        padding: 16px;
        margin-top: 10px;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: 12px;
    }

    .sidebar-left .filter-widget.open .filter-body {
        display: block;
    }

    .sidebar-left .filter-group {
        margin-bottom: 12px;
    }

    .sidebar-left .filter-group:last-child {
        margin-bottom: 0;
    }

    .sidebar-left .filter-tags {
        gap: 6px;
    }

    .sidebar-left .filter-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }
}

/* Планшетный брейкпоинт — навигация уже не влезает */
@media (max-width: 1024px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu {
        display: block !important;
    }

    .burger-btn {
        display: flex !important;
    }

    .header-cta-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    .mobile-menu {
        display: block !important;
    }

    .burger-btn {
        display: flex !important;
    }

    .header-cta-btn {
        display: none !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-right {
        display: none;
    }

    .cta-title {
        font-size: 2rem;
    }

    .sidebar-left .filter-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 60px 0 30px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-motivation-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .main-container {
        padding: 16px 0;
    }

    .sidebar-left .filter-widget {
        padding: 14px;
    }

    .sidebar-left .filter-group-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .create-post {
        padding: 16px;
    }

    .create-post-header {
        gap: 10px;
    }

    .create-post-actions {
        margin-top: 10px;
    }

    .story-post {
        padding: 18px;
    }

    .post-header {
        flex-direction: column;
        gap: 10px;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .post-content {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .post-actions {
        flex-wrap: wrap;
    }

    .post-read-more {
        margin-top: 12px;
        padding-top: 12px;
    }

    .cta {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-text {
        font-size: 0.95rem;
    }

    .feed {
        gap: 16px;
    }
}

/* ===== МЕНЮ ПОЛЬЗОВАТЕЛЯ ===== */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
    color: var(--color-text);
}

.user-menu-toggle:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.user-menu-toggle .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg);
    border-radius: 16px 16px 0 0;
}

.user-menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.user-menu-name {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
}

.user-menu-email {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.user-menu-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.user-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-menu-item.text-danger {
    color: #E53E3E;
}

.user-menu-item.text-danger:hover {
    background: #FEF2F2;
    color: #C53030;
}

@media (max-width: 1024px) {
    .user-menu {
        display: none !important;
    }

    .user-menu-dropdown {
        right: -10px;
        width: 260px;
    }
}

/* ===== PAGES: SPECIALIST SHOW ===== */

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #718096;
}

.breadcrumbs a {
    color: #718096;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #FF7B5C;
}

.breadcrumbs .separator {
    color: #CBD5E0;
}

.breadcrumbs .current {
    color: #2D3748;
    font-weight: 600;
}

/* Заголовок специалиста */
.specialist-header {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.specialist-main-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.specialist-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    flex-shrink: 0;
}

.specialist-details {
    flex: 1;
}

.specialist-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.specialist-name-row h1 {
    font-size: 2.5rem;
    color: #2D3748;
    margin: 0;
}

.badge-verified {
    background: #10B981;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.specialist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    color: #718096;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item.price {
    color: #FF7B5C;
    font-weight: 700;
    font-size: 1.3rem;
}

.specialist-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 4px;
    font-size: 1.3rem;
    color: #FFA500;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
}

.reviews-count {
    color: #718096;
    font-size: 1rem;
}

.specialist-actions {
    display: flex;
    gap: 15px;
}

/* Карточки */
.contact-card,
.bio-card,
.centers-card,
.reviews-card,
.review-form-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.contact-card h3,
.bio-card h2,
.centers-card h2,
.reviews-card h2,
.review-form-card h3 {
    color: #2D3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-item i {
    color: #FF7B5C;
    width: 20px;
}

.contact-item a {
    color: #2D3748;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #FF7B5C;
}

.bio-content {
    color: #4A5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Центры */
.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.center-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 2px solid #FFE8DE;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.center-item:hover {
    border-color: #FF7B5C;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.15);
}

.center-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B6DFF 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.center-info h4 {
    color: #2D3748;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.center-info p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Отзывы */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding: 25px;
    border: 2px solid #FFE8DE;
    border-radius: 12px;
}

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

.review-author {
    display: flex;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6DFF 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.author-name {
    font-weight: 700;
    color: #2D3748;
    font-size: 1.05rem;
}

.review-date {
    color: #718096;
    font-size: 0.9rem;
}

.review-rating {
    display: flex;
    gap: 4px;
    font-size: 1.2rem;
    color: #FFA500;
}

.review-content {
    color: #4A5568;
    line-height: 1.7;
    font-size: 1rem;
}

.official-response {
    margin-top: 20px;
    padding: 20px;
    background: #F7FAFC;
    border-left: 4px solid #FF7B5C;
    border-radius: 8px;
}

.response-header {
    font-weight: 700;
    color: #FF7B5C;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-content {
    color: #4A5568;
    line-height: 1.6;
}

/* Форма отзыва */
.rating-input {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #CBD5E0;
    transition: color 0.3s;
}

.rating-input label .fa-star:last-person {
    display: none;
}

.rating-input input:checked ~ label .fa-star:first-person {
    display: none;
}

.rating-input input:checked ~ label .fa-star:last-person {
    display: inline;
    color: #FFA500;
}

.rating-input label:hover .fa-star:first-person,
.rating-input label:hover ~ label .fa-star:first-person {
    display: none;
}

.rating-input label:hover .fa-star:last-person,
.rating-input label:hover ~ label .fa-star:last-person {
    display: inline;
    color: #FFA500;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 10px;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #FFE8DE;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-group textarea:focus {
    outline: none;
    border-color: #FF7B5C;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    color: #CBD5E0;
    margin-bottom: 15px;
}

.empty-state p {
    color: #718096;
    font-size: 1.1rem;
}

/* Промпт авторизации */
.auth-prompt {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.auth-prompt i {
    font-size: 48px;
    color: #CBD5E0;
    margin-bottom: 15px;
}

.auth-prompt p {
    color: #718096;
    font-size: 1.1rem;
}

.auth-prompt a {
    color: #FF7B5C;
    font-weight: 600;
    text-decoration: none;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .specialist-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .specialist-name-row {
        flex-direction: column;
        gap: 10px;
    }

    .specialist-name-row h1 {
        font-size: 1.8rem;
    }

    .specialist-meta {
        flex-direction: column;
        gap: 10px;
    }

    .specialist-actions {
        flex-direction: column;
    }

    .reviews-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .centers-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== PAGES: DASHBOARD ===== */
.dashboard-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2D3748;
}

.welcome-section p {
    color: #718096;
    font-size: 1.05rem;
}

.welcome-section a {
    color: #FF7B5C;
    font-weight: 600;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 123, 92, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #2D3748;
    line-height: 1;
}

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

.person-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.person-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.person-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6DD2B2 0%, #8CECD2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    flex-shrink: 0;
}

.person-info {
    flex: 1;
}

.person-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #2D3748;
}

.person-info p {
    color: #718096;
    margin: 4px 0;
}

.person-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.person-meta-tags .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    color: #718096;
    background: #FFF4EF;
    padding: 4px 12px;
    border-radius: 20px;
}

.person-meta-tags .meta-item i {
    color: #FF7B5C;
    font-size: 0.8rem;
}

.stories-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.08);
}

.stories-section .story-content-card { background: var(--color-bg); border-radius: 16px; padding: 25px; border: 2px solid transparent; transition: var(--transition); }
.stories-section .story-content-card:hover { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.stories-section .story-title { font-size: 1.4rem; margin-bottom: 12px; color: #2D3748; line-height: 1.3; }
.stories-section .story-title a { color: #2D3748; text-decoration: none; transition: color 0.3s ease; }
.stories-section .story-title a:hover { color: #FF7B5C; }
.stories-section .story-text { color: #4A5568; line-height: 1.7; margin-bottom: 20px; font-size: 1rem; }
.stories-section .story-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--color-border); }
.stories-section .story-stats { display: flex; gap: 15px; }
.stories-section .stat-item { color: #718096; font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFE8DE;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stories-count {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    color: #CBD5E0;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2D3748;
}

.empty-state p {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.story-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #EDD5C5;
    box-shadow: 0 2px 8px rgba(180, 100, 60, 0.07), 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.story-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 123, 92, 0.18), 0 2px 8px rgba(0,0,0,0.07);
}

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

.story-date {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #FFE8DE;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    background: #FF7B5C;
    color: white;
    border-color: #FF7B5C;
}

.btn-icon.btn-danger:hover,
.btn-icon-danger:hover {
    background: #E53E3E;
    border-color: #E53E3E;
    color: white;
}

.btn-icon-danger {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #FFE8DE;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Избранное — кнопка и состояние */
.btn-favorite.favorited { background: var(--color-primary) !important; color: white !important; border-color: var(--color-primary) !important; }
.btn-favorite.favorited i { color: white !important; }

/* Сетка избранного в дашборде */
.favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 10px; }
.favorite-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; text-decoration: none; color: var(--color-text); transition: var(--transition); }
.favorite-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.favorite-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0; }
.favorite-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.favorite-meta { display: flex; gap: 12px; font-size: 0.82rem; color: var(--color-text-light); }
.favorite-meta span { display: flex; align-items: center; gap: 4px; }

/* Действия автора отзыва */
.review-actions { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.edit-review-form { background: var(--color-bg); padding: 20px; border-radius: 12px; }

/* ===== STAR PICKER (форма отзыва) ===== */
.star-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-pick {
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-primary);
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.15s;
    user-select: none;
    line-height: 1;
}

.star-pick:hover { transform: scale(1.15); }

.star-pick.hover { opacity: 0.65; }
.star-pick.active { opacity: 1; }

.star-pick.active i { font-weight: 900; }
.star-pick.hover i { font-weight: 900; }

.star-picker-label {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.story-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-title a {
    color: #2D3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: #FF7B5C;
}

.story-excerpt {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #FFE8DE;
}

.story-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #FF7B5C;
    color: #FF7B5C;
}

.btn-outline:hover {
    background: #FF7B5C;
    color: white;
}

.btn-danger {
    background: #E53E3E;
    color: white;
}

.btn-danger:hover {
    background: #C53030;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

/* Модальное окно (дублирующие стили удалены — основные в строке ~2474) */


@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .person-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-footer form {
        flex-direction: column;
    }
}

.create-story-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}

.create-story-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF7B5C;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF9E7D;
    transform: translateX(-5px);
}

.page-header h1 {
    font-size: 2rem;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.page-header p {
    color: #718096;
    font-size: 1.05rem;
}

.create-story-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.info-box {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-box > div {
    flex: 1;
    min-width: 0;
}

.info-box i {
    color: #1E40AF;
    font-size: 20px;
    margin-top: 2px;
}

.info-box strong {
    color: #1E40AF;
    display: inline;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #1E3A8A;
    font-size: 14px;
}

.info-box li {
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3748;
    font-size: 15px;
}

.form-label.required::after {
    content: ' *';
    color: #E53E3E;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FFE8DE;
    border-radius: 12px;
    font-size: 16px;
    color: #2D3748;
    transition: all 0.3s ease;
    background-color: #FFF9F5;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 300px;
    line-height: 1.6;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #FF7B5C;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.form-help {
    margin-top: 6px;
    font-size: 13px;
    color: #718096;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 123, 92, 0.4);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@media (max-width: 768px) {
    .create-story-card {
        padding: 30px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.edit-story-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}

.edit-story-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF7B5C;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF9E7D;
    transform: translateX(-5px);
}

.page-header h1 {
    font-size: 2rem;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-story-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3748;
    font-size: 15px;
}

.form-label.required::after {
    content: ' *';
    color: #E53E3E;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FFE8DE;
    border-radius: 12px;
    font-size: 16px;
    color: #2D3748;
    transition: all 0.3s ease;
    background-color: #FFF9F5;
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 300px;
    line-height: 1.6;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #FF7B5C;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 123, 92, 0.4);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@media (max-width: 768px) {
    .edit-story-card {
        padding: 30px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.view-story-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}

.view-story-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF7B5C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF9E7D;
    transform: translateX(-5px);
}

.story-article {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.story-date {
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-actions {
    display: flex;
    gap: 10px;
}

.story-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #2D3748;
    line-height: 1.2;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #FFF9F5;
    border-radius: 12px;
    margin-bottom: 30px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D3748;
}

.author-person {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 4px;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2D3748;
    margin-bottom: 30px;
}

.story-stats {
    display: flex;
    gap: 25px;
    padding-top: 20px;
}

.stat-item {
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.comments-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFE8DE;
}

.comments-header h2 {
    font-size: 1.5rem;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-comments {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-comments i {
    font-size: 60px;
    color: #CBD5E0;
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6DD2B2 0%, #8CECD2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: #FFF9F5;
    border-radius: 12px;
    padding: 20px;
}

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

.comment-author {
    font-weight: 700;
    color: #2D3748;
}

.comment-date {
    color: #718096;
    font-size: 0.85rem;
}

.comment-text {
    color: #2D3748;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-reply {
    background: none;
    border: none;
    color: #FF7B5C;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.btn-reply:hover {
    color: #FF9E7D;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #FFE8DE;
}

.reply-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #FFE8DE;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.reply-textarea:focus {
    outline: none;
    border-color: #FF7B5C;
}

.reply-actions {
    display: flex;
    gap: 10px;
}

.replies-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #FFE8DE;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-item {
    display: flex;
    gap: 12px;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6DFF 0%, #A88BFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 15px;
}

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

.reply-author {
    font-weight: 600;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-badge {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.reply-date {
    color: #718096;
    font-size: 0.8rem;
}

.reply-text {
    color: #2D3748;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.3);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #FF7B5C;
    color: #FF7B5C;
}

.btn-outline:hover {
    background: #FF7B5C;
    color: white;
}

.btn-danger {
    background: #E53E3E;
    color: white;
}

.btn-danger:hover {
    background: #C53030;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}


@media (max-width: 768px) {
    .story-article {
        padding: 30px 20px;
    }

    .story-title {
        font-size: 2rem;
    }

    .story-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .comments-section {
        padding: 30px 20px;
    }

    .comment-item {
        flex-direction: column;
    }

    .modal-footer form {
        flex-direction: column;
    }
}

/* ===== PAGES: PROFILE CREATION (CENTER & SPECIALIST) ===== */
/* Center Profile Create */
.create-center-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}


.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF7B5C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF9E7D;
    transform: translateX(-5px);
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2D3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header p {
    color: #718096;
    font-size: 1.05rem;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #FFE8DE;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2D3748;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3748;
}

.required {
    color: #E53E3E;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FFE8DE;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF7B5C;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.form-textarea {
    resize: vertical;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-box > div {
    flex: 1;
    min-width: 0;
}

.info-box i {
    font-size: 24px;
    color: #1E40AF;
    flex-shrink: 0;
}

.info-box strong {
    display: inline;
    color: #1E40AF;

}

.info-box p {
    color: #1E3A8A;
    margin: 0;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 123, 92, 0.3);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@media (max-width: 768px) {
    .form-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ── Tag-Select Component ── */
.tag-select {
    position: relative;
    border: 2px solid #FFE8DE;
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    cursor: text;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tag-select:focus-within {
    border-color: #FF7B5C;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.tag-select__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-select__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFF0EB, #FFE0D6);
    color: #C4320A;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
}

.tag-select__tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(194, 50, 10, 0.15);
    color: #C4320A;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.tag-select__tag-remove:hover {
    background: rgba(194, 50, 10, 0.3);
}

.tag-select__input {
    flex: 1 1 120px;
    min-width: 120px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    padding: 4px 0;
    background: transparent;
}

.tag-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #FFE8DE;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
}

.tag-select__option {
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}
.tag-select__option:hover,
.tag-select__option--active {
    background: #FFF0EB;
    color: #C4320A;
}
.tag-select__option--empty {
    color: #9CA3AF;
    cursor: default;
    font-style: italic;
}
.tag-select__option--empty:hover {
    background: transparent;
    color: #9CA3AF;
}

/* Specialist Profile Create */
.create-specialist-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: #FFF9F5;
}


.page-header {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FF7B5C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FF9E7D;
    transform: translateX(-5px);
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 123, 92, 0.15);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2D3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header p {
    color: #718096;
    font-size: 1.05rem;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 2px solid #FFE8DE;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2D3748;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2D3748;
}

.required {
    color: #E53E3E;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FFE8DE;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FF7B5C;
    box-shadow: 0 0 0 3px rgba(255, 123, 92, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 0.9rem;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    margin-bottom: 30px;
}

.info-box > div {
    flex: 1;
    min-width: 0;
}

.info-box i {
    font-size: 24px;
    color: #1E40AF;
    flex-shrink: 0;
}

.info-box strong {
    display: inline;
    color: #1E40AF;

}

.info-box p {
    color: #1E3A8A;
    margin: 0;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF7B5C 0%, #FF9E7D 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 123, 92, 0.3);
}

.btn-secondary {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-secondary:hover {
    background: #CBD5E0;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@media (max-width: 768px) {
    .form-card {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== ПОДПИСКИ НА АВТОРОВ ===== */
.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-subscribe:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-subscribe.subscribed {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-subscribe.subscribed:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-subscribe:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.subscriber-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--color-secondary);
}

.notification-success i {
    color: var(--color-secondary);
    font-size: 20px;
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification-error i {
    color: #EF4444;
    font-size: 20px;
}

.notification span {
    color: var(--color-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Маленькая кнопка подписки для карточек */
.btn-subscribe.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
}

.btn-subscribe.btn-sm .subscribe-text {
    display: none;
}

.btn-subscribe.btn-sm i {
    margin: 0;
}

/* Inline subscribe icon (story cards) */
.author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-subscribe-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-light);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-subscribe-icon:hover {
    background: rgba(255, 123, 92, 0.12);
    color: var(--color-primary);
}

.btn-subscribe-icon.subscribed {
    color: var(--color-primary);
}

.btn-subscribe-icon.subscribed i {
    font-weight: 900;
}

.btn-subscribe-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== УДАЛЕНИЕ ПРОФИЛЯ ===== */
.delete-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #FEE2E2;
}

.delete-section.delete-section--subtle {
    border-top: 1px solid #E5E7EB;
    margin-top: 48px;
    padding-top: 20px;
    text-align: center;
}

.delete-section__inner {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 16px;
    padding: 24px 28px;
}

.delete-section__inner h3 {
    color: #991B1B;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-section__inner p {
    color: #7F1D1D;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Текстовая кнопка (ссылка-действие) */
button.btn-text,
a.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 4px 8px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

button.btn-text.btn-text--danger,
a.btn-text.btn-text--danger {
    color: #DC2626;
}

button.btn-text.btn-text--danger:hover,
a.btn-text.btn-text--danger:hover {
    color: #991B1B;
    text-decoration: underline;
}

button.btn-text.btn-text--sm,
a.btn-text.btn-text--sm {
    font-size: 0.82rem;
    padding: 6px 12px;
    opacity: 0.45;
    transition: opacity 0.25s;
}

button.btn-text.btn-text--sm:hover,
a.btn-text.btn-text--sm:hover {
    opacity: 1;
}

/* ===== FORM TIPS (collapsible advice block) ===== */
details.form-tips {
    margin-bottom: 24px;
    border: 1px solid #E0E7FF;
    border-radius: 12px;
    background: #F5F7FF;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

details.form-tips[open] {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

details.form-tips > summary.form-tips__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin: 0;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: #6366F1;
    list-style: none;
    user-select: none;
    background: transparent;
    border: none;
    transition: background 0.15s;
}

details.form-tips > summary.form-tips__toggle::-webkit-details-marker {
    display: none;
}

details.form-tips > summary.form-tips__toggle::marker {
    display: none;
    content: '';
}

details.form-tips > summary.form-tips__toggle::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6366F1;
    border-bottom: 2px solid #6366F1;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}

details.form-tips[open] > summary.form-tips__toggle::after {
    transform: rotate(-135deg);
}

details.form-tips > summary.form-tips__toggle:hover {
    background: #EEF0FF;
}

details.form-tips > summary.form-tips__toggle i {
    color: #F59E0B;
    font-size: 1.05rem;
}

details.form-tips .form-tips__body {
    padding: 0 20px 18px;
}

details.form-tips .form-tips__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

details.form-tips .form-tips__body li {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #4B5563;
    padding-left: 22px;
    position: relative;
}

details.form-tips .form-tips__body li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #F59E0B;
    font-size: 0.7rem;
    top: 3px;
}

details.form-tips .form-tips__body li strong {
    color: #374151;
    font-weight: 600;
}

@media (max-width: 600px) {
    details.form-tips > summary.form-tips__toggle {
        padding: 12px 16px;
        font-size: 0.86rem;
    }
    details.form-tips .form-tips__body {
        padding: 0 16px 14px;
    }
    details.form-tips .form-tips__body li {
        font-size: 0.84rem;
    }
}

/* ===== NOTIFICATION BELL & PANEL ===== */
.notif-bell { position: relative; }
.notif-bell__btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.15rem; color: var(--color-text); padding: 8px;
    position: relative; transition: color 0.2s;
    display: flex; align-items: center;
}
.notif-bell__btn:hover { color: var(--color-primary); }
.notif-bell__badge {
    position: absolute; top: 2px; right: -2px;
    background: #EF4444; color: white; font-size: 0.6rem;
    font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px;
    border: 2px solid white; line-height: 1;
    animation: notifPulse 2s ease-in-out 3;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Выпадающая панель */
.notif-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: -40px;
    width: 380px; max-height: 520px; background: white;
    border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--color-border); z-index: 1001;
    overflow: hidden; flex-direction: column;
}
.notif-panel.open { display: flex; }

.notif-panel__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px 12px; border-bottom: 1px solid var(--color-border);
}
.notif-panel__header h3 {
    font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 0;
}
.notif-panel__mark-all {
    background: none; border: none; cursor: pointer;
    font-size: 0.8rem; color: var(--color-primary); font-weight: 600;
    padding: 4px 8px; border-radius: 6px; transition: background 0.15s;
}
.notif-panel__mark-all:hover { background: rgba(255,123,92,0.08); }

.notif-panel__list {
    flex: 1; overflow-y: auto; max-height: 380px;
    scrollbar-width: thin;
}

.notif-panel__loading, .notif-panel__empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; color: var(--color-text-light); gap: 8px; font-size: 0.88rem;
}
.notif-panel__loading i { font-size: 1.2rem; color: var(--color-primary); }
.notif-panel__empty i { font-size: 1.5rem; margin-bottom: 4px; }

/* Элемент в панели */
.notif-panel-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 18px; cursor: pointer;
    transition: background 0.12s; border-bottom: 1px solid #f5f5f5;
    text-decoration: none; color: inherit;
}
.notif-panel-item:hover { background: #fafafa; }
.notif-panel-item--unread { background: #FFF7ED; }
.notif-panel-item--unread:hover { background: #FFF3E6; }

.notif-panel-item__icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.notif-panel-item__emoji { font-size: 1.2rem; }
.notif-panel-item__body { flex: 1; min-width: 0; }
.notif-panel-item__text { font-size: 0.84rem; color: var(--color-text); line-height: 1.4; }
.notif-panel-item__time { font-size: 0.72rem; color: var(--color-text-light); margin-top: 3px; }
.notif-panel-item__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-primary); flex-shrink: 0; margin-top: 6px;
}

.notif-panel__footer {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border-top: 1px solid var(--color-border);
    font-size: 0.84rem; font-weight: 600; color: var(--color-primary);
    text-decoration: none; transition: background 0.15s;
}
.notif-panel__footer:hover { background: rgba(255,123,92,0.04); }

/* Бейдж в мобильном меню */
.mobile-notif-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #EF4444; color: white; font-size: 0.65rem;
    font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 9px; padding: 0 5px; margin-left: auto;
}

@media (max-width: 768px) {
    .notif-bell__btn { font-size: 1.1rem; padding: 6px; }
    .notif-panel {
        position: fixed; top: 60px; left: 8px; right: 8px;
        width: auto; max-height: calc(100vh - 80px);
        border-radius: 14px;
    }
}

/* ===== PHOTO / MEDIA UPLOAD ===== */
.photo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.photo-upload-area:hover {
    border-color: var(--color-primary);
    background: #FFF7ED;
}

.photo-upload-area.drag-over {
    border-color: var(--color-primary);
    background: #FFF1E6;
}

.photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF7B5C, #FF9A76);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.2);
}

.photo-preview--square {
    border-radius: 16px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-info .form-hint {
    color: #9CA3AF;
    font-size: 0.8rem;
}

/* Кнопка загрузки фото — компактная, тёплая */
.photo-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #FFF7ED;
    border: 1.5px solid var(--color-primary);
    border-radius: 10px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: auto;
}

.photo-upload-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 123, 92, 0.25);
}

.photo-upload-btn i {
    font-size: 0.85rem;
    color: inherit;
}

/* Кнопка удаления фото */
.photo-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    border-radius: 10px;
    color: #DC2626;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.photo-delete-btn:hover {
    background: #DC2626;
    color: white;
    border-color: #DC2626;
}

.photo-delete-btn i {
    font-size: 0.8rem;
    color: inherit;
}

/* Gallery upload */
.gallery-upload-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    transition: border-color 0.2s, background 0.2s;
}

.gallery-upload-area:hover {
    border-color: var(--color-primary);
    background: #FFF7ED;
}

.gallery-upload-area .photo-upload-btn {
    margin-top: 8px;
}

.gallery-upload-area .form-hint {
    margin-top: 4px;
    color: #9CA3AF;
    font-size: 0.8rem;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.gallery-preview:empty {
    margin-bottom: 0;
}

.gallery-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-thumb:hover .gallery-thumb-remove {
    opacity: 1;
}

/* New file preview (before upload) */
.gallery-thumb--new {
    border: 2px solid var(--color-primary);
}

@media (max-width: 600px) {
    .photo-upload-area {
        flex-direction: column;
        text-align: center;
    }

    .photo-preview {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
    background: var(--color-text); color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-consent__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.cookie-consent__inner p {
    margin: 0; font-size: 0.88rem; line-height: 1.45; color: rgba(255,255,255,0.85);
}
.cookie-consent__inner p a {
    color: var(--color-primary-light); text-decoration: underline;
}
.cookie-consent__inner p a:hover { color: #fff; }
.cookie-consent__btn {
    padding: 8px 24px; border: none; border-radius: 8px;
    background: var(--color-primary); color: #fff;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: background 0.2s;
    flex-shrink: 0;
}
.cookie-consent__btn:hover { background: var(--color-primary-light); }
@media (max-width: 600px) {
    .cookie-consent__inner { flex-direction: column; text-align: center; padding: 16px 20px; }
    .cookie-consent__btn { width: 100%; }
}

