/* ===== CSS Variables для тем ===== */
:root {
    /* Светлая тема */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #ffd700;
    --accent-hover: #ffed4e;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Темная тема */
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-glass: rgba(28, 28, 30, 0.7);
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #ffd700;
    --accent-hover: #ffed4e;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ===== Заставка с крестом ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.cross-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cross {
    position: relative;
    width: 120px;
    height: 180px;
    animation: pulse 2s ease-in-out infinite;
}

.cross-vertical,
.cross-horizontal-main,
.cross-horizontal-top,
.cross-diagonal {
    position: absolute;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 3px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 
                0 0 60px rgba(255, 215, 0, 0.4),
                inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: shimmer 2s ease-in-out infinite;
    z-index: 1;
}

/* Вертикальная основная палка (длинная, от верха до низа)
   От центра перекрестия: вверх и вниз, но вниз длиннее */
.cross-vertical {
    width: 10px;
    height: 180px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Горизонтальная основная перекладина (основное перекрестие)
   От центра: влево, вправо и вверх одинаковой длины, вниз длиннее */
.cross-horizontal-main {
    width: 120px;  /* Общая ширина: 40px влево + 40px вправо от центра */
    height: 10px;
    top: 60px;  /* Центр перекрестия примерно на 1/3 от верха */
    left: 50%;
    transform: translateX(-50%);
}

/* Маленькая верхняя перекладина (выше основного перекрестия) */
.cross-horizontal-top {
    width: 60px;
    height: 8px;
    top: 30px;  /* Выше основной перекладины */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Наклонная нижняя перекладина (ниже основного перекрестия, наклонена вправо на 45 градусов) */
.cross-diagonal {
    width: 50px;
    height: 8px;
    top: 130px;  /* Ниже основной перекладины */
    left: 50%;
    transform: translateX(-50%) rotate(25deg);  /* Наклон вправо на 45 градусов */
    transform-origin: center;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 
                    0 0 60px rgba(255, 215, 0, 0.4),
                    inset 0 0 10px rgba(255, 255, 255, 0.3);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 1), 
                    0 0 100px rgba(255, 215, 0, 0.6),
                    inset 0 0 15px rgba(255, 255, 255, 0.5);
        filter: brightness(1.3);
    }
}

/* ===== Эффект стекла (Glass morphism) ===== */
.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.burger-menu span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Навигация для десктопа */
.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.nav-link:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
    color: var(--text-primary);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    width: 280px;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border);
    padding: 6rem 1rem 2rem;
    box-shadow: 4px 0 24px var(--shadow-lg);
    overflow-y: auto;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.mobile-menu-link:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-secondary);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* ===== Основной контейнер ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* ===== Карточки ===== */
.card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Кнопки ===== */
/* Анимация для темной темы (светлое золото) */
@keyframes golden-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3),
                    0 0 20px rgba(255, 215, 0, 0.2),
                    0 0 30px rgba(255, 215, 0, 0.15),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    25% {
        box-shadow: 0 4px 12px rgba(255, 223, 0, 0.35),
                    0 0 20px rgba(255, 223, 0, 0.25),
                    0 0 30px rgba(255, 215, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 237, 78, 0.4),
                    0 0 20px rgba(255, 237, 78, 0.3),
                    0 0 30px rgba(255, 223, 0, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    75% {
        box-shadow: 0 4px 12px rgba(255, 223, 0, 0.35),
                    0 0 20px rgba(255, 223, 0, 0.25),
                    0 0 30px rgba(255, 215, 0, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

/* Анимация для светлой темы (темное золото) */
@keyframes golden-glow-light {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4),
                    0 0 20px rgba(212, 175, 55, 0.3),
                    0 0 30px rgba(184, 134, 11, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    25% {
        box-shadow: 0 4px 12px rgba(218, 165, 32, 0.45),
                    0 0 20px rgba(218, 165, 32, 0.35),
                    0 0 30px rgba(212, 175, 55, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 4px 12px rgba(184, 134, 11, 0.5),
                    0 0 20px rgba(184, 134, 11, 0.4),
                    0 0 30px rgba(218, 165, 32, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    75% {
        box-shadow: 0 4px 12px rgba(218, 165, 32, 0.45),
                    0 0 20px rgba(218, 165, 32, 0.35),
                    0 0 30px rgba(212, 175, 55, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    /* Glass effect для акцентных кнопок - светлая тема (темное золото) */
    background: rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #1d1d1f;
    /* Переливающееся золотое свечение для светлой темы */
    animation: golden-glow-light 3s ease-in-out infinite;
    /* Обводка текста для лучшей читаемости в светлой теме */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5),
                 0 0 4px rgba(255, 255, 255, 0.3);
}

/* Стили для темной темы */
[data-theme="dark"] .btn {
    /* Glass effect для акцентных кнопок - темная тема (светлое золото) */
    background: rgba(255, 215, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: white;
    /* Переливающееся золотое свечение для темной темы */
    animation: golden-glow 3s ease-in-out infinite;
    /* Обводка текста для лучшей читаемости в темной теме */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3),
                 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Анимация hover для темной темы */
@keyframes golden-glow-hover {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4),
                    0 0 30px rgba(255, 215, 0, 0.3),
                    0 0 40px rgba(255, 215, 0, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    25% {
        box-shadow: 0 6px 20px rgba(255, 223, 0, 0.45),
                    0 0 30px rgba(255, 223, 0, 0.35),
                    0 0 40px rgba(255, 215, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 237, 78, 0.5),
                    0 0 30px rgba(255, 237, 78, 0.4),
                    0 0 40px rgba(255, 223, 0, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    75% {
        box-shadow: 0 6px 20px rgba(255, 223, 0, 0.45),
                    0 0 30px rgba(255, 223, 0, 0.35),
                    0 0 40px rgba(255, 215, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

/* Анимация hover для светлой темы */
@keyframes golden-glow-hover-light {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5),
                    0 0 30px rgba(212, 175, 55, 0.4),
                    0 0 40px rgba(184, 134, 11, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    25% {
        box-shadow: 0 6px 20px rgba(218, 165, 32, 0.55),
                    0 0 30px rgba(218, 165, 32, 0.45),
                    0 0 40px rgba(212, 175, 55, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }
    50% {
        box-shadow: 0 6px 20px rgba(184, 134, 11, 0.6),
                    0 0 30px rgba(184, 134, 11, 0.5),
                    0 0 40px rgba(218, 165, 32, 0.45),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    75% {
        box-shadow: 0 6px 20px rgba(218, 165, 32, 0.55),
                    0 0 30px rgba(218, 165, 32, 0.45),
                    0 0 40px rgba(212, 175, 55, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }
}

.btn:hover {
    background: rgba(218, 165, 32, 0.4);
    border-color: rgba(218, 165, 32, 0.6);
    transform: translateY(-2px);
    /* Усиленное переливающееся свечение при наведении для светлой темы */
    animation: golden-glow-hover-light 2.5s ease-in-out infinite;
}

/* Стили hover для темной темы */
[data-theme="dark"] .btn:hover {
    background: rgba(255, 237, 78, 0.35);
    border-color: rgba(255, 237, 78, 0.5);
    /* Усиленное переливающееся свечение при наведении для темной темы */
    animation: golden-glow-hover 2.5s ease-in-out infinite;
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

/* ===== Списки ===== */
.list {
    list-style: none;
}

.list-item {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.list-item-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.list-item-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Календарь ===== */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.calendar-nav-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: var(--bg-secondary);
    transform: scale(1.1);
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.calendar-day-name {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.calendar-day:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15));
    color: var(--text-primary);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    margin: 0;
    line-height: 1;
}

.calendar-day-services {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
}

.service-count-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4),
                0 0 12px rgba(255, 215, 0, 0.2);
}

.calendar-day.today .service-count-badge {
    background: white;
    border-color: rgba(255, 255, 255, 0.8);
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4),
                0 0 12px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .service-count-badge {
    color: #000000;
}

/* ===== Статистика ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Формы ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header-nav {
        display: none;
    }

    .main-container {
        padding: 0 0.75rem 1.5rem;
    }

    .card {
        padding: 1rem;
        border-radius: 16px;
    }

    .calendar-grid {
        gap: 0.15rem;
    }

    .calendar-day {
        padding: 0.15rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .calendar-day-number {
        font-size: 0.8rem;
    }
    
    .service-count-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1rem;
    }

    .calendar-day-name {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
}

/* ===== Выбор служащих (стеклянные плашки) ===== */
.clergy-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.clergy-chip {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.clergy-chip:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.clergy-chip.selected {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4),
                0 4px 12px var(--shadow),
                inset 0 0 10px rgba(255, 215, 0, 0.1);
    color: var(--text-primary);
    font-weight: 500;
}

.clergy-chip.selected::before {
    content: '✓';
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    color: #ffd700;
    font-weight: bold;
    font-size: 0.8rem;
}

.clergy-chip.empty {
    opacity: 0.5;
    cursor: not-allowed;
    font-style: italic;
}

/* ===== Утилиты ===== */
.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===== Сообщения об ошибках ===== */
.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff3b30;
}

.error-message.error-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.error-message.error-list {
    margin: 0;
    padding-left: 1.5rem;
}

.error-message.error-list li {
    margin-bottom: 0.25rem;
}

.success-message {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #34c759;
}

/* ===== Адаптивная структура списка служб ===== */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.services-info {
    flex: 1;
}

.services-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
    }
    
    .services-info {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .services-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .services-actions .btn {
        width: 100%;
    }
}

