﻿/* ============================================================
   pharm.help — Основные стили
   Основной цвет: rgb(247, 49, 73) / #F73149
   ============================================================ */

:root {
    --ph-primary: #F73149;
    --ph-primary-dark: #d41f37;
    --ph-primary-light: #ff6b82;
    --ph-primary-bg: rgba(247, 49, 73, 0.07);
    --ph-primary-bg-hover: rgba(247, 49, 73, 0.12);
    --ph-dark: #1a1a2e;
    --ph-dark-2: #16213e;
    --ph-dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --ph-gray: #6c757d;
    --ph-light-gray: #f4f5f7;
    --ph-border: #e2e6ea;
    --ph-border-light: #f0f2f5;
    --ph-white: #ffffff;
    --ph-text: #1e2330;
    --ph-text-body: #3d4451;
    --ph-text-secondary: #5c6370;
    --ph-text-muted: #8b95a1;
    --ph-text-hint: #adb5bd;
    --ph-bg-upload: #f8f9fb;
    --ph-amber-bg: #fffbeb;
    --ph-amber-border: #fcd34d;
    --ph-amber-text: #92400e;
    --ph-rejected-bg: #fef2f2;
    --ph-rejected-border: #fca5a5;
    --ph-rejected-text: #b91c1c;
    --ph-success-bg: #f0fdf4;
    --ph-success-border: #86efac;
    --ph-success-text: #166534;
    --ph-footer-bg: #111827;
    --ph-footer-text: #9ca3af;
    --ph-header-height: 72px;
    --ph-nav-height: 48px;
    --ph-border-radius: 10px;
    --ph-border-radius-sm: 6px;
    --ph-border-radius-lg: 16px;
    --ph-box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
    --ph-box-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --ph-box-shadow-hover: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 10px -2px rgba(0,0,0,0.06);
    --ph-box-shadow-primary: 0 4px 14px rgba(247, 49, 73, 0.3);
    --ph-transition: all 0.25s ease;
    --ph-transition-fast: all 0.15s ease;
    --ph-font-sm: 0.875rem;
    --ph-font-xs: 0.8125rem;
    --ph-font-xxs: 0.75rem;
    --bs-carousel-transition-duration: 0.4s;
}

/* ===================== Базовые стили ===================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ph-text);
    background-color: var(--ph-white);
    margin: 0;
    padding: 0;
}

a {
    color: var(--ph-primary);
    text-decoration: none;
    transition: var(--ph-transition-fast);
}

a:hover {
    color: var(--ph-primary-dark);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--ph-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Фокус — доступность (WCAG AA) */
:focus-visible {
    outline: 2px solid var(--ph-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ===================== Bootstrap overrides ===================== */

.btn {
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--ph-border-radius-sm);
    transition: var(--ph-transition);
    padding: 0.5rem 1.25rem;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(247, 49, 73, 0.25);
    outline: none;
}

.btn-primary {
    background-color: var(--ph-primary);
    border-color: var(--ph-primary);
    color: var(--ph-white);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(247, 49, 73, 0.2);
}

.btn-primary:hover {
    background-color: var(--ph-primary-dark);
    border-color: var(--ph-primary-dark);
    color: var(--ph-white);
    box-shadow: var(--ph-box-shadow-primary);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--ph-primary-dark);
    border-color: var(--ph-primary-dark);
    color: var(--ph-white);
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--ph-primary-dark);
    border-color: var(--ph-primary-dark);
    color: var(--ph-white);
    box-shadow: 0 0 0 3px rgba(247, 49, 73, 0.3);
}

.btn-outline-primary {
    color: var(--ph-primary);
    border-color: var(--ph-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--ph-primary);
    border-color: var(--ph-primary);
    color: var(--ph-white);
    box-shadow: var(--ph-box-shadow-primary);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--ph-text-secondary);
    border-color: var(--ph-border);
    background: var(--ph-white);
}

.btn-outline-secondary:hover {
    background-color: var(--ph-light-gray);
    border-color: var(--ph-gray);
    color: var(--ph-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.65rem 1.75rem;
    font-size: 0.9375rem;
    border-radius: var(--ph-border-radius-sm);
}

.btn-sm {
    padding: 0.3rem 0.85rem;
    font-size: var(--ph-font-xs);
    border-radius: 5px;
}

.text-primary {
    color: var(--ph-primary) !important;
}

.bg-primary {
    background-color: var(--ph-primary) !important;
}

.border-primary {
    border-color: var(--ph-primary) !important;
}

.badge.bg-primary {
    background-color: var(--ph-primary) !important;
}

/* ===================== Header ===================== */

.ph-header {
    background: var(--ph-white);
    height: var(--ph-header-height);
    box-shadow: 0 1px 0 var(--ph-border), 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
}

.ph-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.ph-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.ph-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--ph-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ph-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ph-logo-text .ph-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ph-dark);
}

.ph-logo-text .ph-name span {
    color: var(--ph-primary);
}

.ph-logo-text .ph-tagline {
    font-size: 0.7rem;
    color: var(--ph-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ph-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ph-header-actions .btn {
    font-size: 0.9rem;
}

.ph-user-greeting {
    font-size: 0.85rem;
    color: var(--ph-gray);
}

/* ===================== Навигация ===================== */

.ph-nav {
    background: var(--ph-dark);
    height: var(--ph-nav-height);
    position: sticky;
    top: var(--ph-header-height);
    z-index: 1020;
}

.ph-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.ph-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    height: 100%;
}

.ph-nav-menu li {
    height: 100%;
}

.ph-nav-menu li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--ph-transition);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.ph-nav-menu li a:hover,
.ph-nav-menu li a.active {
    color: var(--ph-white);
    background: rgba(255, 255, 255, 0.07);
    border-bottom-color: var(--ph-primary);
    text-decoration: none;
}

/* Mobile navbar toggle */
.ph-nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
}

/* ===================== Карусель ===================== */

.ph-carousel {
    position: relative;
    overflow: hidden;
    height: 480px;
}

/* Контейнер слайдов */
.ph-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Каждый слайд — абсолютно позиционирован */
.ph-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

.ph-slide-active {
    opacity: 1;
    z-index: 2;
}

.ph-slide-hidden {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.ph-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(26,26,46,0.35) 100%);
    z-index: 1;
}

.ph-carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.ph-carousel-caption .container {
    max-width: 700px;
}

.ph-carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ph-carousel-caption p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Кнопки prev/next */
.ph-carousel .carousel-control-prev,
.ph-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-carousel .carousel-control-prev { left: 16px; }
.ph-carousel .carousel-control-next { right: 16px; }

.ph-carousel .carousel-control-prev:hover,
.ph-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(247, 49, 73, 0.8);
}

.ph-carousel .carousel-control-prev-icon,
.ph-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%;
}

/* Индикаторы */
.ph-carousel .carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-banner-1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.ph-banner-2 { background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #e94560 100%); }
.ph-banner-3 { background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #52b788 100%); }

/* ===================== Секция новостей ===================== */

.ph-section {
    padding: 4rem 0;
}

.ph-section-alt {
    background-color: var(--ph-light-gray);
}

.ph-section-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.85rem;
    padding-left: 0;
    letter-spacing: -0.02em;
}

.ph-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ph-primary);
    border-radius: 2px;
}

.ph-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--ph-primary);
    border-radius: 2px;
}

.ph-section-subtitle {
    color: var(--ph-gray);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* Новостная карточка */
.ph-news-card {
    background: var(--ph-white);
    border-radius: var(--ph-border-radius);
    overflow: hidden;
    box-shadow: var(--ph-box-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ph-border-light);
}

.ph-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ph-box-shadow-hover);
    border-color: var(--ph-border);
}

.ph-news-card-img {
    height: 200px;
    overflow: hidden;
    background: var(--ph-light-gray);
    position: relative;
}

.ph-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ph-news-card:hover .ph-news-card-img img {
    transform: scale(1.05);
}

.ph-news-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ph-primary-bg), var(--ph-border));
    color: var(--ph-primary);
    font-size: 3rem;
}

.ph-news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ph-news-card-date {
    font-size: 0.8rem;
    color: var(--ph-gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ph-news-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ph-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
}

.ph-news-card-title a {
    color: inherit;
    text-decoration: none;
}

.ph-news-card-title a:hover {
    color: var(--ph-primary);
    text-decoration: none;
}

.ph-news-card-summary {
    font-size: 0.9rem;
    color: var(--ph-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ph-news-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ph-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    text-decoration: none;
}

.ph-news-card-link:hover {
    color: var(--ph-primary-dark);
    gap: 0.6rem;
    text-decoration: none;
}

/* ===================== Футер ===================== */

.ph-footer {
    background: var(--ph-footer-bg);
    color: var(--ph-footer-text);
    padding: 3.5rem 0 0;
}

.ph-footer h5 {
    color: var(--ph-white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ph-footer p,
.ph-footer li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ph-footer-text);
}

.ph-footer a {
    color: var(--ph-footer-text);
    text-decoration: none;
    transition: var(--ph-transition);
}

.ph-footer a:hover {
    color: var(--ph-primary-light);
    text-decoration: none;
    padding-left: 3px;
}

.ph-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ph-footer ul li {
    margin-bottom: 0.4rem;
}

.ph-footer ul li a::before {
    content: '›';
    margin-right: 0.4rem;
    color: var(--ph-primary);
}

.ph-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.ph-footer-logo .ph-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.ph-footer-logo .ph-name {
    font-size: 1.2rem;
    color: var(--ph-white);
    font-weight: 700;
}

.ph-footer-logo .ph-name span {
    color: var(--ph-primary-light);
}

.ph-footer-inn {
    font-size: 0.82rem;
    color: rgba(168, 178, 216, 0.7);
    margin-top: 0.35rem;
}

.ph-footer strong {
    color: var(--ph-white);
}

.ph-footer-bottom {
    margin-top: 2.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(168, 178, 216, 0.5);
    text-align: center;
}

/* ===================== Страницы ===================== */

.ph-page-header {
    background: linear-gradient(135deg, var(--ph-dark) 0%, #0f1629 60%, #1a1a2e 100%);
    padding: 2.5rem 0;
    color: white;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент на заголовке страницы */
.ph-page-header::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(247,49,73,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ph-page-header h1 {
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.ph-breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    position: relative;
}

.ph-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.ph-breadcrumb a:hover {
    color: rgba(255,255,255,0.9);
}

/* ===================== Авторизация ===================== */

.ph-auth-page {
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height) - 200px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: linear-gradient(160deg, #f4f5f7 0%, #eef0f4 100%);
}

.ph-auth-card {
    background: var(--ph-white);
    border-radius: var(--ph-border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid var(--ph-border-light);
}

.ph-auth-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.ph-auth-subtitle {
    color: var(--ph-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.ph-auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.ph-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ph-border);
}

.ph-auth-divider span {
    position: relative;
    background: var(--ph-white);
    padding: 0 1rem;
    color: var(--ph-text-muted);
    font-size: 0.8125rem;
}

/* Form styles */
.form-control,
.form-select {
    border-color: var(--ph-border);
    border-radius: var(--ph-border-radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.9375rem;
    color: var(--ph-text);
    background: var(--ph-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:hover {
    border-color: #c5cad1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(247, 49, 73, 0.12);
    outline: none;
}

.form-control::placeholder {
    color: var(--ph-text-hint);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ph-text-body);
    margin-bottom: 0.35rem;
}

/* ===================== Личный кабинет / Закрытый раздел ===================== */

.ph-dashboard {
    padding: 2.5rem 0;
    background: var(--ph-light-gray);
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
}

.ph-card {
    background: var(--ph-white);
    border-radius: var(--ph-border-radius);
    padding: 1.5rem;
    box-shadow: var(--ph-box-shadow);
    border: 1px solid var(--ph-border-light);
    margin-bottom: 1.5rem;
}

.ph-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ph-border-light);
    letter-spacing: -0.01em;
}

/* ===================== Admin ===================== */

/* Обёртка всего админ-интерфейса */
.ph-admin-shell {
    display: flex;
    /* Занимаем весь экран за вычетом только хедера */
    min-height: calc(100vh - var(--ph-header-height));
    background: #f0f2f5;
}

.ph-admin-sidebar {
    width: 228px;
    flex-shrink: 0;
    background: var(--ph-dark);
    /* Сайдбар липнет к верху хедера и растягивается на весь экран */
    position: sticky;
    top: var(--ph-header-height);
    height: calc(100vh - var(--ph-header-height));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.04);
    /* Скрываем скроллбар визуально, но оставляем прокрутку */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.ph-admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.ph-admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.ph-admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.ph-admin-sidebar .nav-link {
    color: rgba(255,255,255,0.62);
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-left: 3px solid transparent;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.ph-admin-sidebar .nav-link:hover {
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(247, 49, 73, 0.55);
    text-decoration: none;
}

.ph-admin-sidebar .nav-link.active {
    color: var(--ph-white);
    background: rgba(247, 49, 73, 0.18);
    border-left-color: var(--ph-primary);
    font-weight: 600;
    text-decoration: none;
}

.ph-admin-sidebar .nav-link svg {
    opacity: 0.65;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.ph-admin-sidebar .nav-link:hover svg,
.ph-admin-sidebar .nav-link.active svg {
    opacity: 1;
}

/* Контентная область */
.ph-admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    min-height: calc(100vh - var(--ph-header-height));
    background: #f0f2f5;
}

.ph-admin-sidebar {
    width: 228px;
    flex-shrink: 0;
    background: var(--ph-dark);
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
    position: sticky;
    top: calc(var(--ph-header-height) + var(--ph-nav-height));
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Тонкий разделитель справа */
    border-right: 1px solid rgba(255,255,255,0.04);
}

.ph-admin-sidebar .nav-link {
    color: rgba(255,255,255,0.6);
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0;
    transition: var(--ph-transition-fast);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 3px solid transparent;
    letter-spacing: 0.01em;
}

.ph-admin-sidebar .nav-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.05);
    border-left-color: rgba(247, 49, 73, 0.5);
    text-decoration: none;
}

.ph-admin-sidebar .nav-link.active {
    color: var(--ph-white);
    background: rgba(247, 49, 73, 0.15);
    border-left-color: var(--ph-primary);
    font-weight: 600;
}

.ph-admin-sidebar .nav-link svg {
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.ph-admin-sidebar .nav-link:hover svg,
.ph-admin-sidebar .nav-link.active svg {
    opacity: 1;
}

.ph-admin-content {
    padding: 2rem 2.5rem;
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
    background: var(--ph-light-gray);
}

/* Метка секции навигации */
.ph-admin-nav-label {
    padding: 1rem 1.25rem 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0.25rem;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.28);
    font-weight: 700;
}

/* Секция "Администрирование" */
.ph-admin-nav-section {
    list-style: none;
    padding: 0;
}

.ph-admin-nav-section-label {
    padding: 1rem 1.25rem 0.3rem;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.22);
    font-weight: 700;
}

/* Ссылка с бейджем (Пользователи) */
.ph-admin-nav-badge-link {
    justify-content: space-between !important;
}

/* Бейдж ожидающих документов */
.ph-admin-badge {
    background: var(--ph-primary);
    color: white;
    border-radius: 20px;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.5;
    flex-shrink: 0;
    animation: ph-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes ph-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247,49,73,0.5); }
    50%       { box-shadow: 0 0 0 5px rgba(247,49,73,0); }
}

/* Подвал сайдбара */
.ph-admin-sidebar-footer {
    margin-top: auto;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ph-admin-sidebar-back {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.32);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: color 0.15s;
}

.ph-admin-sidebar-back:hover {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* ===================== Admin: таблицы и карточки ===================== */

/* Страница-заголовок в контенте */
.ph-admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ph-admin-page-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Карточка без внутренних отступов (для таблиц) */
.ph-card-table {
    background: var(--ph-white);
    border-radius: var(--ph-border-radius);
    box-shadow: var(--ph-box-shadow);
    border: 1px solid var(--ph-border-light);
    overflow: hidden;
}

/* Таблица в карточке */
.ph-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ph-table thead th {
    background: #f8f9fb;
    color: var(--ph-text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid var(--ph-border);
    white-space: nowrap;
}

.ph-table tbody tr {
    border-bottom: 1px solid var(--ph-border-light);
    transition: background 0.1s;
}

.ph-table tbody tr:last-child {
    border-bottom: none;
}

.ph-table tbody tr:hover {
    background: #f8f9fb;
}

.ph-table tbody td {
    padding: 0.85rem 1.25rem;
    color: var(--ph-text-body);
    vertical-align: middle;
}

.ph-table-title {
    font-weight: 600;
    color: var(--ph-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
    display: block;
}

.ph-table-subtitle {
    font-size: 0.75rem;
    color: var(--ph-text-hint);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
    display: block;
}

.ph-table-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Кнопки действий в таблицах */
.ph-btn-table-edit {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid var(--ph-border);
    background: var(--ph-white);
    color: var(--ph-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.ph-btn-table-edit:hover {
    background: var(--ph-primary-bg);
    border-color: var(--ph-primary);
    color: var(--ph-primary);
    text-decoration: none;
}

.ph-btn-table-delete {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid var(--ph-rejected-border);
    background: var(--ph-white);
    color: var(--ph-rejected-text);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.ph-btn-table-delete:hover {
    background: var(--ph-rejected-bg);
    border-color: var(--ph-rejected-text);
}

/* Статус-бейджи в таблицах */
.ph-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ph-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ph-status-badge--published {
    background: var(--ph-success-bg);
    color: var(--ph-success-text);
    border: 1px solid var(--ph-success-border);
}

.ph-status-badge--published::before {
    background: #22c55e;
}

.ph-status-badge--draft {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ph-status-badge--draft::before {
    background: #94a3b8;
}

/* Пустое состояние */
.ph-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--ph-text-muted);
}

.ph-empty-state svg {
    display: block;
    margin: 0 auto 1rem;
    opacity: 0.2;
    color: var(--ph-gray);
}

.ph-empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Stat-карточки на Dashboard */
.ph-stat-card {
    background: var(--ph-white);
    border-radius: var(--ph-border-radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ph-box-shadow);
    border: 1px solid var(--ph-border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ph-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ph-box-shadow-hover);
}

.ph-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ph-stat-icon--red    { background: rgba(247,49,73,0.1);  color: var(--ph-primary); }
.ph-stat-icon--blue   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.ph-stat-icon--green  { background: rgba(34,197,94,0.1);  color: #22c55e; }
.ph-stat-icon--purple { background: rgba(168,85,247,0.1); color: #a855f7; }

.ph-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ph-dark);
    line-height: 1;
    letter-spacing: -0.03em;
}

.ph-stat-label {
    font-size: 0.8125rem;
    color: var(--ph-text-muted);
    margin-top: 2px;
    font-weight: 500;
}

/* ===================== Пагинация ===================== */

.pagination .page-link {
    color: var(--ph-primary);
    border-color: var(--ph-border);
}

.pagination .page-link:hover {
    background-color: var(--ph-primary-bg);
    border-color: var(--ph-primary);
    color: var(--ph-primary-dark);
}

.pagination .page-item.active .page-link {
    background-color: var(--ph-primary);
    border-color: var(--ph-primary);
}

/* ===================== Утилиты ===================== */

.ph-tag {
    display: inline-block;
    background: var(--ph-primary-bg);
    color: var(--ph-primary);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

.ph-divider {
    height: 1px;
    background: var(--ph-border);
    margin: 2rem 0;
}

.ph-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--ph-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===================== Кнопки — семантические варианты ===================== */

/* Вход — акцентный, заливка */
.ph-btn-login {
    background-color: var(--ph-primary);
    border-color: var(--ph-primary);
    color: var(--ph-white);
    font-weight: 600;
    transition: var(--ph-transition);
}
.ph-btn-login:hover,
.ph-btn-login:focus {
    background-color: var(--ph-primary-dark);
    border-color: var(--ph-primary-dark);
    color: var(--ph-white);
    box-shadow: 0 4px 12px rgba(247, 49, 73, 0.35);
}

/* Регистрация — нейтральный outline */
.ph-btn-register {
    background-color: transparent;
    border-color: var(--ph-border);
    color: var(--ph-text);
    font-weight: 500;
    transition: var(--ph-transition);
}
.ph-btn-register:hover,
.ph-btn-register:focus {
    background-color: var(--ph-light-gray);
    border-color: var(--ph-gray);
    color: var(--ph-dark);
}

/* Выход — сдержанный деструктивный */
.ph-btn-logout {
    background-color: transparent;
    border-color: rgba(247, 49, 73, 0.4);
    color: var(--ph-primary);
    font-weight: 500;
    transition: var(--ph-transition);
}
.ph-btn-logout:hover,
.ph-btn-logout:focus {
    background-color: rgba(247, 49, 73, 0.08);
    border-color: var(--ph-primary);
    color: var(--ph-primary-dark);
}

/* ===================== Bootstrap overrides — Link button ===================== */

.btn-link {
    color: var(--ph-primary);
    text-decoration: none;
    font-weight: 500;
}
.btn-link:hover,
.btn-link:focus {
    color: var(--ph-primary-dark);
    text-decoration: underline;
}

/* Input group confirmed state */
.input-group-text.ph-confirmed {
    background-color: var(--ph-primary-bg);
    border-color: var(--ph-primary);
    color: var(--ph-primary);
    font-weight: 600;
}

/* ===================== Auth — logo icon размер для auth-страниц ===================== */

.ph-logo-icon--auth {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: 14px;
}

/* ===================== Manage — заголовок страницы ===================== */

.ph-manage-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ph-border);
}

/* ===================== Профиль пользователя ===================== */

/* Аватар — инициал в круге */
.ph-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ph-primary-bg);
    border: 2px solid var(--ph-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: var(--ph-primary);
    flex-shrink: 0;
}

/* Имя пользователя */
.ph-profile-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ph-dark);
}

/* Email / вторичный текст под именем */
.ph-profile-email {
    color: var(--ph-text-muted);
    font-size: 0.85rem;
}

/* Организация */
.ph-profile-org {
    color: var(--ph-text-secondary);
    font-size: var(--ph-font-xs);
    margin-top: 4px;
}

/* Мета-строки в карточке профиля (Статус / Роли / Дата) */
.ph-profile-meta {
    font-size: 0.85rem;
}
.ph-profile-meta-label {
    color: var(--ph-text-muted);
}

/* Алерт — аккаунт ожидает активации (янтарный) */
.ph-alert-warning {
    background: var(--ph-amber-bg);
    border: 1px solid var(--ph-amber-border);
    border-radius: var(--ph-border-radius);
    padding: 0.6rem 0.85rem;
    font-size: var(--ph-font-xs);
    color: var(--ph-amber-text);
    margin-top: 0.75rem;
}

/* Алерт — информационный (с акцентом бренда) */
.ph-alert-info {
    background: var(--ph-primary-bg);
    border: 1px solid rgba(247, 49, 73, 0.2);
    border-radius: var(--ph-border-radius);
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: var(--ph-text-body);
}
.ph-alert-info strong {
    color: var(--ph-primary);
}

/* Зона загрузки файла */
.ph-upload-area {
    border: 2px dashed var(--ph-border);
    border-radius: var(--ph-border-radius);
    background: var(--ph-bg-upload);
    padding: 1rem;
    transition: border-color 0.2s;
}
.ph-upload-area:focus-within {
    border-color: var(--ph-primary);
}
.ph-upload-area-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ph-text-body);
    margin-bottom: 0.5rem;
}

/* Строка документа в списке */
.ph-doc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-border-radius);
    background: var(--ph-white);
    transition: box-shadow 0.15s;
}
.ph-doc-row:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Иконка типа файла */
.ph-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ph-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ph-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Имя файла с ellipsis */
.ph-doc-filename {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ph-dark);
}

/* Мета-строка файла */
.ph-doc-meta {
    font-size: 0.75rem;
    color: var(--ph-text-muted);
}

/* Комментарий об отклонении */
.ph-rejected-comment {
    background: var(--ph-rejected-bg);
    border: 1px solid var(--ph-rejected-border);
    border-top: none;
    border-radius: 0 0 var(--ph-border-radius) var(--ph-border-radius);
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    color: var(--ph-rejected-text);
}

/* Кнопки действий в строке документа */
.ph-doc-action {
    padding: 0.2rem 0.5rem;
    font-size: var(--ph-font-xxs);
}

/* ===================== Публичные страницы ===================== */

/* Спиннер с брендовым цветом */
.ph-spinner {
    color: var(--ph-primary);
}

/* Бейдж даты в календаре событий */
.ph-date-badge {
    min-width: 56px;
    text-align: center;
    flex-shrink: 0;
}
.ph-date-badge__inner {
    background: var(--ph-primary);
    color: var(--ph-white);
    border-radius: var(--ph-border-radius);
    padding: 0.35rem 0.5rem;
    line-height: 1;
}
.ph-date-badge__day {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}
.ph-date-badge__month {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-top: 2px;
    opacity: 0.85;
}

/* Событие: заголовок */
.ph-event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ph-dark);
    margin-bottom: 0.35rem;
}

/* Событие: место проведения */
.ph-event-location {
    font-size: 0.85rem;
    color: var(--ph-gray);
    margin-bottom: 0.3rem;
}

/* Событие: описание */
.ph-event-desc {
    font-size: 0.88rem;
    color: var(--ph-text-secondary);
    margin-bottom: 0.5rem;
}

/* Вебинар: карточка — плейсхолдер изображения */
.ph-card-img-webinar {
    background: var(--ph-dark-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Вебинар: спикер */
.ph-webinar-speaker {
    font-size: var(--ph-font-xs);
    color: var(--ph-text-muted);
    margin-bottom: 0.5rem;
}

/* Главная: фичи */
.ph-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ph-dark);
    margin-bottom: 0.5rem;
}
.ph-feature-text {
    font-size: 0.88rem;
    color: var(--ph-gray);
    margin: 0;
}

/* Главная: CTA-секция */
.ph-cta-section {
    background: var(--ph-dark-gradient);
    padding: 3.5rem 0;
}
.ph-cta-title {
    color: var(--ph-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.ph-cta-subtitle {
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

/* Карусель: индикаторы */
.ph-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 3px;
    cursor: pointer;
    padding: 0;
    transition: var(--ph-transition);
}
.ph-indicator--active {
    width: 24px;
    border-radius: 4px;
    background: var(--ph-white);
}

/* Главная: icon-box увеличенный (секция "О портале") */
.ph-icon-box--lg {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.8rem;
}

/* ===================== Статья / Новость ===================== */

/* Изображение статьи */
.ph-article-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--ph-border-radius);
    display: block;
    margin-bottom: 1.5rem;
}

/* Вводный абзац с левым бордером-акцентом */
.ph-article-lead {
    color: var(--ph-text-body);
    font-size: 1.05rem;
    border-left: 3px solid var(--ph-primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Контент статьи */
.ph-news-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ph-text);
}
.ph-news-content h2,
.ph-news-content h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.ph-news-content p {
    margin-bottom: 1.1rem;
}
.ph-news-content img {
    border-radius: var(--ph-border-radius);
    max-width: 100%;
    height: auto;
}
.ph-news-content blockquote {
    border-left: 3px solid var(--ph-primary);
    padding-left: 1rem;
    color: var(--ph-gray);
    font-style: italic;
    margin: 1.5rem 0;
}

/* ===================== Footer — fix ссылок в подвале ===================== */

.ph-footer-bottom a {
    color: inherit;
    transition: color 0.2s;
}
.ph-footer-bottom a:hover {
    color: var(--ph-primary-light);
    text-decoration: none;
}

/* ===================== Admin — sidebar logout button ===================== */

.ph-sidebar-logout {
    background: none;
    border: none;
    color: rgba(247, 49, 73, 0.55);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.ph-sidebar-logout:hover {
    color: var(--ph-primary);
    background: rgba(247, 49, 73, 0.12);
}

/* ===================== Мини-календарь в сайдбаре ===================== */

.ph-mini-cal {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.25rem;
}

.ph-mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.ph-mini-cal-header span {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ph-mini-cal-nav {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    line-height: 1;
    transition: color 0.2s;
}

.ph-mini-cal-nav:hover {
    color: rgba(255,255,255,0.9);
}

.ph-mini-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.ph-mini-cal-dow {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    padding-bottom: 0.35rem;
    text-transform: uppercase;
}

.ph-mini-cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 0;
    cursor: default;
    border-radius: 5px;
    transition: background 0.15s;
    min-height: 28px;
}

.ph-mini-cal-cell.has-events {
    cursor: pointer;
}

.ph-mini-cal-cell.has-events:hover {
    background: rgba(255,255,255,0.07);
}

.ph-mini-cal-cell.selected {
    background: rgba(247,49,73,0.25) !important;
}

.ph-mini-cal-num {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ph-mini-cal-cell.today .ph-mini-cal-num {
    background: var(--ph-primary);
    color: #fff;
    font-weight: 700;
}

.ph-mini-cal-cell.has-events .ph-mini-cal-num {
    color: rgba(255,255,255,0.9);
}

.ph-mini-cal-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
    height: 5px;
    margin-top: 1px;
}

.ph-mini-cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ph-mini-cal-dot.news    { background: #F73149; }
.ph-mini-cal-dot.event   { background: #60a5fa; }
.ph-mini-cal-dot.webinar { background: #34d399; }

/* Легенда */
.ph-mini-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ph-mini-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
}

.ph-mini-cal-legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Попап событий дня */
.ph-mini-cal-popup {
    margin: 0.5rem 0 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.ph-mini-cal-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.ph-mini-cal-popup-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.ph-mini-cal-popup-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.ph-mini-cal-popup-close:hover {
    color: rgba(255,255,255,0.8);
}

.ph-mini-cal-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    padding: 0.2rem 0;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s;
    line-height: 1.4;
}

.ph-mini-cal-popup-item:hover {
    color: #fff;
}

.ph-mini-cal-popup-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===================== Адаптивность ===================== */

@media (max-width: 991.98px) {
    .ph-nav {
        height: auto;
        position: static;
    }

    .ph-nav .container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .ph-nav-toggle {
        display: block;
        align-self: flex-end;
        margin-bottom: 0.25rem;
    }

    .ph-nav-menu {
        flex-direction: column;
        width: 100%;
        height: auto;
        display: none;
        padding-bottom: 0.5rem;
    }

    .ph-nav-menu.open {
        display: flex;
    }

    .ph-nav-menu li {
        height: auto;
        width: 100%;
    }

    .ph-nav-menu li a {
        height: auto;
        padding: 0.6rem 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .ph-nav-menu li a:hover,
    .ph-nav-menu li a.active {
        border-bottom: none;
        border-left-color: var(--ph-primary);
        background: rgba(255,255,255,0.05);
    }

    .ph-carousel {
        height: 320px;
    }

    .ph-carousel-caption h2 {
        font-size: 1.5rem;
    }

    .ph-carousel-caption p {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .ph-header-actions .btn-outline-secondary {
        display: none;
    }

    .ph-logo-text .ph-tagline {
        display: none;
    }

    .ph-section {
        padding: 2.5rem 0;
    }

    .ph-carousel {
        height: 250px;
    }

    .ph-carousel-caption h2 {
        font-size: 1.2rem;
    }

    .ph-auth-card {
        padding: 1.5rem;
    }

    .ph-footer {
        padding: 2rem 0 0;
    }
}

@media (max-width: 575.98px) {
    .ph-section-title {
        font-size: 1.4rem;
    }

    .ph-carousel-caption h2 {
        font-size: 1.05rem;
    }

    .ph-carousel-caption p {
        display: none;
    }
}

/* ===================== Accessibility: reduced motion ===================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ph-news-card:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover {
        transform: none;
    }

    .ph-admin-badge {
        animation: none;
    }
}

/* ===================== Manage Layout ===================== */

/* Панель "Настройки аккаунта" — стиль страницы */
.ph-manage-page-header {
    margin-bottom: 2rem;
}

/* Навигация manage */
.ph-admin-sidebar .nav-pills .nav-link {
    color: var(--ph-text-secondary);
    border-radius: var(--ph-border-radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--ph-transition-fast);
    border-left: 2px solid transparent;
}

.ph-admin-sidebar .nav-pills .nav-link:hover {
    color: var(--ph-dark);
    background: var(--ph-primary-bg);
}

.ph-admin-sidebar .nav-pills .nav-link.active {
    color: var(--ph-primary);
    background: var(--ph-primary-bg);
    font-weight: 600;
    border-left-color: var(--ph-primary);
}

/* ===================== Spinner — доступный ===================== */

.ph-spinner {
    color: var(--ph-primary);
    width: 2.5rem;
    height: 2.5rem;
}

/* ===================== Утилиты ===================== */

.ph-text-balance {
    text-wrap: balance;
}

.ph-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================
   ГЛАВНАЯ СТРАНИЦА v2
   Принципы: нарушение сетки, типографическая доминанта,
   асимметрия, минимум декора, максимум характера
   ================================================================= */

/* ── ХЕДЕР НА ГЛАВНОЙ: прозрачный, встроен в hero ─────────── */

.ph-header--home {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    position: absolute;
    left: 0; right: 0; top: 0;
    z-index: 100;
    height: var(--ph-header-height);
}

.ph-header--home .ph-logo-text .ph-name,
.ph-header--home .ph-logo-text .ph-tagline {
    color: rgba(255,255,255,0.9);
}

.ph-header--home .ph-logo-text .ph-name span {
    color: var(--ph-primary-light);
}

.ph-header--home .ph-header-actions .btn {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    background: transparent;
}

.ph-header--home .ph-header-actions .btn:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--ph-white);
    background: rgba(255,255,255,0.08);
}

.ph-header--home .ph-header-actions .ph-btn-login {
    background: var(--ph-primary);
    border-color: var(--ph-primary);
    color: white;
}

/* ── HERO ───────────────────────────────────────────────────── */

.ph-hero {
    background: #0d0d1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: var(--ph-header-height);
}

/* Единственный декоративный элемент — диагональная полоса цвета */
.ph-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 45%;
    height: 100%;
    background: #111124;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.ph-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    flex: 1;
    position: relative;
    z-index: 1;
    align-items: center;
    padding: 4rem 0 5rem;
}

.ph-hero__content {
    padding-right: 4rem;
}

/* Надпись-метка без фона */
.ph-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--ph-primary);
    flex-shrink: 0;
}

/* Типографическая доминанта — главный элемент страницы */
.ph-hero__h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 900;
    color: var(--ph-white);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 0 0 1.5rem;
    /* Разные стили для разных строк через span */
}

.ph-hero__h1 .line-normal {
    display: block;
    color: var(--ph-white);
}

.ph-hero__h1 .line-accent {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.35);
    /* Outlined text — характерный приём */
}

.ph-hero__h1 .line-red {
    display: block;
    color: var(--ph-primary);
}

.ph-hero__desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.ph-hero__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ph-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ph-primary);
    color: white;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

/* Стрелка-акцент */
.ph-hero__cta::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.2s;
    display: inline-block;
}

.ph-hero__cta:hover {
    background: var(--ph-primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.ph-hero__cta:hover::after {
    transform: translateX(4px);
}

.ph-hero__link {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: 0.02em;
}

.ph-hero__link:hover {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.4);
    text-decoration: none;
}

/* Метрики — горизонтальная строка внизу */
.ph-hero__stats {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 3.5rem;
}

.ph-hero__stat {}

.ph-hero__stat-n {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ph-white);
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ph-hero__stat-n sup {
    font-size: 0.5em;
    color: var(--ph-primary);
    vertical-align: super;
    font-weight: 700;
}

.ph-hero__stat-l {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-top: 5px;
}

/* Правая панель hero — живые данные из БД */
.ph-hero__panel {
    border-left: 1px solid rgba(255,255,255,0.06);
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
    justify-content: center;
}

.ph-hero__panel-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0;
}

.ph-hero-item {
    padding: 1.25rem 0.75rem 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s, padding-left 0.2s, border-color 0.15s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    border-radius: 0;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ph-hero-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    padding-left: 1rem;
    text-decoration: none;
}

.ph-hero-item:last-child {
    border-bottom: none;
}

.ph-hero-item__type {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.ph-hero-item__type--news    { color: var(--ph-primary); }
.ph-hero-item__type--webinar { color: #60a5fa; }
.ph-hero-item__type--event   { color: #34d399; }

.ph-hero-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.ph-hero-item:hover .ph-hero-item__title {
    color: rgba(255,255,255,1);
}
}

.ph-hero-item__meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── СЕКЦИЯ НОВОСТЕЙ ───────────────────────────────────────── */

.ph-home-news {
    background: var(--ph-white);
    padding: 7rem 0 6rem;
}

.ph-home-news__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 4rem;
}

.ph-home-news__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-primary);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-home-news__kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ph-primary);
}

.ph-home-news__h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
}

.ph-home-news__desc {
    font-size: 1rem;
    color: var(--ph-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 380px;
    align-self: end;
}

.ph-home-news__alllink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ph-dark);
    text-decoration: none;
    letter-spacing: 0.01em;
    border-bottom: 1.5px solid var(--ph-dark);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.ph-home-news__alllink:hover {
    color: var(--ph-primary);
    border-color: var(--ph-primary);
    text-decoration: none;
}

/* Grid новостей: асимметрия 3/2 — большая + стек */
.ph-home-news__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5px;
    background: var(--ph-border);
}

/* Главная новость — занимает две строки */
.ph-home-news__grid > .ph-ncard:first-child {
    grid-row: 1 / 3;
}

/* Карточка новости — без border-radius, минималистичная */
.ph-ncard {
    background: var(--ph-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    transition: background 0.2s;
}

.ph-ncard:hover {
    background: #fafafa;
    text-decoration: none;
}

/* Полоса-акцент появляется при hover снизу */
.ph-ncard::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--ph-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.ph-ncard:hover::after {
    transform: scaleX(1);
}

.ph-ncard__img {
    width: 100%;
    overflow: hidden;
    background: #0d0d1a;
    flex-shrink: 0;
}

/* Большая карточка */
.ph-ncard--main .ph-ncard__img {
    height: 280px;
}

.ph-ncard--small .ph-ncard__img {
    height: 140px;
}

.ph-ncard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.88;
}

.ph-ncard:hover .ph-ncard__img img {
    transform: scale(1.04);
    opacity: 1;
}

.ph-ncard__img-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #0d0d1a;
}

.ph-ncard__body {
    padding: 2rem 2rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ph-ncard--small .ph-ncard__body {
    padding: 1.5rem 1.75rem;
}

.ph-ncard__date {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    margin-bottom: 0.65rem;
}

.ph-ncard__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ph-dark);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.ph-ncard--small .ph-ncard__title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

.ph-ncard:hover .ph-ncard__title {
    color: var(--ph-primary);
}

.ph-ncard__excerpt {
    font-size: 0.9rem;
    color: var(--ph-text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ph-ncard--small .ph-ncard__excerpt {
    display: none;
}

.ph-ncard__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ph-border-light);
}

.ph-ncard__read {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ph-primary);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.15s;
}

.ph-ncard:hover .ph-ncard__read {
    gap: 10px;
}

/* ── СЕКЦИЯ СОБЫТИЙ ────────────────────────────────────────── */

.ph-home-events {
    background: var(--ph-dark);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

/* Диагональная полоса справа — единственный декор */
.ph-home-events::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 30%;
    background: rgba(255,255,255,0.012);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.ph-home-events__inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.ph-home-events__heading {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 900;
    color: var(--ph-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.ph-home-events__sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.ph-home-events__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 2px;
    transition: color 0.15s, border-color 0.15s;
}

.ph-home-events__btn:hover {
    color: var(--ph-white);
    border-color: rgba(255,255,255,0.5);
    text-decoration: none;
}

/* Timeline */
.ph-home-events__list {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.ph-ev-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 1.75rem;
    align-items: baseline;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.15s;
}

.ph-ev-row:hover {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin: 0 -0.75rem;
    background: rgba(255,255,255,0.03);
}

.ph-ev-row__date {
    text-align: right;
}

.ph-ev-row__day {
    display: block;
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--ph-primary);
    line-height: 1;
    letter-spacing: -0.05em;
}

.ph-ev-row__mon {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
    margin-top: 2px;
}

.ph-ev-row__name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
}

.ph-ev-row__place {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    gap: 5px;
}

.ph-ev-row__link {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.ph-ev-row:hover .ph-ev-row__link {
    color: var(--ph-primary-light);
    border-color: var(--ph-primary);
}

/* ── СЕКЦИЯ «ДЛЯ КОГО» ─────────────────────────────────────── */

.ph-home-why {
    background: var(--ph-white);
    padding: 7rem 0;
}

.ph-home-why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.ph-home-why__left {}

.ph-home-why__kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-home-why__kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ph-primary);
}

.ph-home-why__h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.ph-home-why__body {
    font-size: 1.0625rem;
    color: var(--ph-text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.ph-home-why__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ph-dark);
    color: var(--ph-white);
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}

.ph-home-why__cta::after {
    content: '→';
    transition: transform 0.2s;
    display: inline-block;
}

.ph-home-why__cta:hover {
    background: var(--ph-primary);
    color: white;
    text-decoration: none;
}

.ph-home-why__cta:hover::after {
    transform: translateX(4px);
}

/* Список преимуществ — нумерованный, минималистичный */
.ph-home-why__right {
    padding-top: 0.5rem;
}

.ph-benefit {
    padding: 2rem 0;
    border-bottom: 1px solid var(--ph-border);
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 1.5rem;
    align-items: start;
    transition: padding-left 0.2s;
}

.ph-benefit:first-child {
    border-top: 1px solid var(--ph-border);
}

.ph-benefit:hover {
    padding-left: 0.5rem;
}

.ph-benefit__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ph-primary);
    font-variant-numeric: tabular-nums;
    padding-top: 3px;
    letter-spacing: 0.04em;
}

.ph-benefit__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ph-dark);
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.ph-benefit__text {
    font-size: 0.9rem;
    color: var(--ph-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── SPLIT CTA ─────────────────────────────────────────────── */

.ph-home-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ph-home-cta__half {
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

/* Номер-декор — большой текст на фоне */
.ph-home-cta__half::before {
    content: attr(data-n);
    position: absolute;
    right: -0.05em;
    bottom: -0.25em;
    font-size: 16rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
    opacity: 0.04;
    color: currentColor;
    user-select: none;
}

.ph-home-cta__half--dark {
    background: var(--ph-dark);
    color: white;
}

.ph-home-cta__half--red {
    background: var(--ph-primary);
    color: white;
}

.ph-home-cta__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 0.75rem;
}

.ph-home-cta__title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--ph-white);
    max-width: 360px;
}

.ph-home-cta__sub {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    max-width: 340px;
    color: rgba(255,255,255,0.6);
}

.ph-home-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 3px;
    text-decoration: none;
    width: fit-content;
    letter-spacing: 0.01em;
    transition: all 0.2s;
}

.ph-home-cta__btn::after {
    content: '→';
    display: inline-block;
    transition: transform 0.2s;
}

.ph-home-cta__btn:hover::after {
    transform: translateX(5px);
}

.ph-home-cta__btn--white {
    background: var(--ph-white);
    color: var(--ph-primary);
}

.ph-home-cta__btn--white:hover {
    background: var(--ph-white);
    color: var(--ph-primary-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.ph-home-cta__btn--outline-white {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(255,255,255,0.2);
}

.ph-home-cta__btn--outline-white:hover {
    border-color: rgba(255,255,255,0.55);
    color: var(--ph-white);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .ph-hero__inner {
        grid-template-columns: 1fr;
        padding: 3rem 0 4rem;
    }
    .ph-hero__content {
        padding-right: 0;
    }
    .ph-hero__panel {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding-left: 0;
        padding-top: 2rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 1.5rem;
    }
    .ph-hero__panel-label { grid-column: 1/-1; }
    .ph-home-news__grid { grid-template-columns: 1fr; }
    .ph-home-news__grid > .ph-ncard:first-child { grid-row: auto; }
    .ph-ncard--small .ph-ncard__excerpt { display: block; }
    .ph-home-events__inner { grid-template-columns: 1fr; gap: 3rem; }
    .ph-home-why__inner { grid-template-columns: 1fr; gap: 3rem; }
    .ph-home-cta { grid-template-columns: 1fr; }
    .ph-home-cta__half { padding: 4rem 2.5rem; }
    .ph-home-cta__half::before { display: none; }
    .ph-home-news__header { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ph-hero::before { display: none; }
    .ph-hero__h1 { font-size: 2.25rem; }
    .ph-hero__stats { gap: 2rem; }
    .ph-hero__stat-n { font-size: 1.75rem; }
    .ph-home-news,
    .ph-home-events,
    .ph-home-why { padding: 4.5rem 0; }
    .ph-home-news__h2,
    .ph-home-events__heading,
    .ph-home-why__h2 { font-size: 1.875rem; }
    .ph-ev-row { grid-template-columns: 40px 1fr; }
    .ph-ev-row__link { display: none; }
}

/* Хедер на главной — абсолютный поверх hero, не sticky */
.ph-header--home {
    position: absolute !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Мобильная nav на главной — скрыта на desktop, показывается только при toggle */
.ph-home-mbnav {
    display: none;
    background: var(--ph-dark);
}

@media (max-width: 768px) {
    .ph-home-mbnav {
        display: block;
        position: relative;
        z-index: 50;
    }
    .ph-home-mbnav .ph-nav-toggle {
        display: block;
        margin-left: auto;
    }
    .ph-home-mbnav .ph-nav-menu {
        display: none;
        flex-direction: column;
        padding-bottom: 0.5rem;
    }
    .ph-home-mbnav .ph-nav-menu.open {
        display: flex;
    }
}

/* =================================================================
   НАВИГАЦИОННАЯ СТРОКА В HERO — быстрые переходы
   ================================================================= */

.ph-hero-nav {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 1.5rem 0 0;
    margin-top: 3rem;
}

.ph-hero-nav__label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    margin-bottom: 1rem;
}

.ph-hero-nav__links {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.ph-hero-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.25rem 0.65rem 0;
    margin-right: 1.75rem;
    text-decoration: none;
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.ph-hero-nav__link svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ph-hero-nav__link:hover {
    color: rgba(255,255,255,0.9);
    border-bottom-color: var(--ph-primary);
    text-decoration: none;
}

.ph-hero-nav__link:hover svg {
    opacity: 1;
}

/* =================================================================
   INNER-HERO — шапка внутренних страниц в стиле главной
   ================================================================= */

/* Заменяет ph-page-header на внутренних страницах */
.ph-inner-hero {
    background: #0d0d1a;
    padding: calc(var(--ph-header-height) + 3.5rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Диагональный срез — тот же мотив что в hero главной */
.ph-inner-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 38%;
    height: 100%;
    background: #111124;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* Цветная полоса снизу */
.ph-inner-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80px;
    height: 3px;
    background: var(--ph-primary);
}

.ph-inner-hero__inner {
    position: relative;
    z-index: 1;
}

.ph-inner-hero__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-inner-hero__eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ph-primary);
    flex-shrink: 0;
}

.ph-inner-hero__h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    color: var(--ph-white);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.ph-inner-hero__sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.65;
    max-width: 480px;
    margin: 0;
}

.ph-inner-hero__breadcrumb {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ph-inner-hero__breadcrumb a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.15s;
}

.ph-inner-hero__breadcrumb a:hover {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.ph-inner-hero__breadcrumb span {
    opacity: 0.3;
}

/* =================================================================
   ОБЩИЙ КОНТЕНТ ВНУТРЕННИХ СТРАНИЦ
   ================================================================= */

/* Светлый контент-блок после inner-hero */
.ph-inner-content {
    background: var(--ph-white);
    padding: 5rem 0;
}

.ph-inner-content--gray {
    background: var(--ph-light-gray);
}

/* Пагинация в стиле сайта */
.ph-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--ph-border);
}

.ph-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--ph-border);
    background: var(--ph-white);
    color: var(--ph-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.ph-pagination__btn:hover:not(:disabled) {
    border-color: var(--ph-primary);
    color: var(--ph-primary);
    text-decoration: none;
}

.ph-pagination__btn--active {
    background: var(--ph-primary);
    border-color: var(--ph-primary);
    color: var(--ph-white);
}

.ph-pagination__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Пустое состояние в стиле сайта */
.ph-inner-empty {
    padding: 6rem 0;
    text-align: center;
}

.ph-inner-empty__icon {
    display: block;
    margin: 0 auto 1.5rem;
    opacity: 0.12;
    color: var(--ph-dark);
}

.ph-inner-empty__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.ph-inner-empty__sub {
    font-size: 0.9375rem;
    color: var(--ph-text-muted);
    margin: 0;
}

/* =================================================================
   СТРАНИЦА НОВОСТЕЙ — magazine-grid полный
   ================================================================= */

/* Фильтр/статус строки */
.ph-news-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--ph-border);
}

.ph-news-meta-bar__count {
    font-size: 0.8125rem;
    color: var(--ph-text-muted);
    font-weight: 500;
}

.ph-news-meta-bar__count strong {
    color: var(--ph-dark);
    font-weight: 700;
}

/* Полный список новостей: 2 колонки большие, 3 колонки маленькие */
.ph-news-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    background: var(--ph-border);
    margin-top: 1.5px;
}

/* Первые 2 новости крупнее */
.ph-news-full-grid .ph-ncard:nth-child(-n+2) {
    /* Стандартный размер — main */
}

/* Остальные новости — малый формат */
.ph-news-full-grid .ph-ncard:nth-child(n+3) {
    grid-column: auto;
}

/* Когда 3+ новостей — переключаем на 3 колонки начиная с 3-й */
.ph-news-full-grid--has-many {
    grid-template-columns: 1fr 1fr;
}

/* =================================================================
   СТРАНИЦА ВЕБИНАРОВ
   ================================================================= */

.ph-webinar-grid {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--ph-border);
}

.ph-webinar-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--ph-border);
    transition: background 0.15s, padding 0.2s;
    position: relative;
}

.ph-webinar-row:hover {
    background: #fafafa;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0 -1rem;
}

/* Левая колонка — дата */
.ph-webinar-row__date {
    text-align: center;
    flex-shrink: 0;
}

.ph-webinar-row__day {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.06em;
    line-height: 1;
}

.ph-webinar-row__month {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-hint);
    margin-top: 3px;
}

.ph-webinar-row__time {
    display: block;
    font-size: 0.75rem;
    color: var(--ph-primary);
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* Центральная колонка — контент */
.ph-webinar-row__body {}

.ph-webinar-row__badges {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ph-webinar-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ph-webinar-badge--free {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.2);
}

.ph-webinar-badge--paid {
    background: rgba(247,49,73,0.08);
    color: var(--ph-primary);
    border: 1px solid rgba(247,49,73,0.15);
}

.ph-webinar-row__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--ph-dark);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
}

.ph-webinar-row:hover .ph-webinar-row__title {
    color: var(--ph-primary);
}

.ph-webinar-row__meta {
    font-size: 0.8125rem;
    color: var(--ph-text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-webinar-row__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Правая колонка — действие */
.ph-webinar-row__action {
    flex-shrink: 0;
    text-align: right;
}

.ph-webinar-row__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.2s;
    white-space: nowrap;
}

.ph-webinar-row__btn--primary {
    background: var(--ph-primary);
    color: var(--ph-white);
}

.ph-webinar-row__btn--primary:hover {
    background: var(--ph-primary-dark);
    color: var(--ph-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.ph-webinar-row__btn--outline {
    border: 1.5px solid var(--ph-border);
    color: var(--ph-text-secondary);
    background: transparent;
}

.ph-webinar-row__btn--outline:hover {
    border-color: var(--ph-primary);
    color: var(--ph-primary);
    text-decoration: none;
}

/* =================================================================
   СТРАНИЦА КАЛЕНДАРЯ
   ================================================================= */

.ph-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5px;
    background: var(--ph-border);
}

.ph-cal-card {
    background: var(--ph-white);
    padding: 2rem 2.25rem;
    position: relative;
    overflow: hidden;
    transition: background 0.15s;
    cursor: default;
}

.ph-cal-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--ph-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s ease;
}

.ph-cal-card:hover {
    background: #fafafa;
}

.ph-cal-card:hover::before {
    transform: scaleY(1);
}

.ph-cal-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ph-cal-card__date {
    text-align: center;
    flex-shrink: 0;
    min-width: 52px;
}

.ph-cal-card__day {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--ph-primary);
    letter-spacing: -0.05em;
    line-height: 1;
}

.ph-cal-card__month {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text-hint);
    margin-top: 3px;
}

.ph-cal-card__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ph-dark);
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 0;
}

.ph-cal-card__location {
    font-size: 0.8125rem;
    color: var(--ph-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.6rem;
}

.ph-cal-card__desc {
    font-size: 0.9rem;
    color: var(--ph-text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-cal-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ph-primary);
    text-decoration: none;
    transition: gap 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

.ph-cal-card__link:hover {
    gap: 9px;
    color: var(--ph-primary-dark);
    text-decoration: none;
}

@media (max-width: 768px) {
    .ph-webinar-row {
        grid-template-columns: 80px 1fr;
    }
    .ph-webinar-row__action {
        grid-column: 2;
        text-align: left;
    }
    .ph-calendar-grid {
        grid-template-columns: 1fr;
    }
    .ph-news-full-grid {
        grid-template-columns: 1fr;
    }
    .ph-hero-nav__link {
        margin-right: 1rem;
        font-size: 0.8125rem;
    }
}

/* =================================================================
   AUTH PAGES — Split-screen layout
   Левая: тёмная брендовая панель
   Правая: белая форма
   ================================================================= */

/* Убираем старый auth-page */
.ph-auth-page {
    min-height: calc(100vh - var(--ph-header-height));
    display: flex;
    align-items: stretch;
    padding: 0;
    background: var(--ph-white);
}

/* Split контейнер */
.ph-auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--ph-header-height));
    width: 100%;
}

/* Левая тёмная панель */
.ph-auth-panel {
    background: #0d0d1a;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Диагональный срез — мотив сайта */
.ph-auth-panel::after {
    content: '';
    position: absolute;
    top: 0; right: -1px; bottom: 0;
    width: 80px;
    background: var(--ph-white);
    clip-path: polygon(100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 2;
}

.ph-auth-panel__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.ph-auth-panel__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ph-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ph-auth-panel__logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ph-white);
    letter-spacing: -0.02em;
}

.ph-auth-panel__logo-name span {
    color: var(--ph-primary-light);
}

.ph-auth-panel__content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
}

.ph-auth-panel__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-auth-panel__eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ph-primary);
    flex-shrink: 0;
}

.ph-auth-panel__heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--ph-white);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.ph-auth-panel__heading .line-accent {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
}

.ph-auth-panel__desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Список преимуществ на левой панели */
.ph-auth-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ph-auth-panel__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.ph-auth-panel__list li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ph-primary);
    flex-shrink: 0;
}

.ph-auth-panel__footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 3rem;
}

.ph-auth-panel__footer-text {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.18);
    line-height: 1.6;
}

/* Правая форма */
.ph-auth-form-panel {
    background: var(--ph-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5% 4rem 8%;
    overflow-y: auto;
}

.ph-auth-form-header {
    margin-bottom: 2.5rem;
}

.ph-auth-form-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.ph-auth-form-sub {
    font-size: 0.9375rem;
    color: var(--ph-text-muted);
    margin: 0;
}

/* Поля формы в новом стиле */
.ph-field {
    margin-bottom: 1.25rem;
}

.ph-field__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.ph-field__label-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ph-dark);
    letter-spacing: 0.01em;
}

.ph-field__label-hint {
    font-size: 0.75rem;
    color: var(--ph-text-muted);
    font-weight: 400;
}

.ph-field__input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--ph-dark);
    background: var(--ph-white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
}

.ph-field__input:hover {
    border-color: #c5cad1;
}

.ph-field__input:focus {
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(247,49,73,0.1);
}

.ph-field__input::placeholder {
    color: var(--ph-text-hint);
}

.ph-field__hint {
    font-size: 0.75rem;
    color: var(--ph-text-hint);
    margin-top: 0.35rem;
}

.ph-field__error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Чекбокс в стиле сайта */
.ph-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8375rem;
    color: var(--ph-text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.ph-check-label a {
    color: var(--ph-primary);
    text-decoration: none;
    font-weight: 600;
}

.ph-check-label a:hover {
    text-decoration: underline;
}

/* Кнопка submit */
.ph-auth-submit {
    width: 100%;
    height: 52px;
    background: var(--ph-primary);
    color: var(--ph-white);
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.ph-auth-submit:hover {
    background: var(--ph-primary-dark);
    box-shadow: 0 6px 20px rgba(247,49,73,0.3);
    transform: translateY(-1px);
}

.ph-auth-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.ph-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Разделитель */
.ph-auth-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--ph-text-hint);
    font-size: 0.8125rem;
}

.ph-auth-sep::before,
.ph-auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ph-border);
}

/* Ссылка-переключатель (войти / зарегистрироваться) */
.ph-auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ph-text-muted);
    margin-top: 1.5rem;
}

.ph-auth-switch a {
    color: var(--ph-dark);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--ph-dark);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.ph-auth-switch a:hover {
    color: var(--ph-primary);
    border-color: var(--ph-primary);
    text-decoration: none;
}

/* Ошибка входа */
.ph-auth-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #b91c1c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Responsive auth */
@media (max-width: 900px) {
    .ph-auth-split {
        grid-template-columns: 1fr;
    }
    .ph-auth-panel {
        display: none;
    }
    .ph-auth-form-panel {
        padding: 3rem 1.5rem;
        justify-content: flex-start;
        padding-top: 2.5rem;
    }
}

/* =================================================================
   ЛИЧНЫЙ КАБИНЕТ — новый layout
   ================================================================= */

.ph-cabinet {
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
    background: #0d0d1a;
    display: grid;
    grid-template-columns: 300px 1fr;
}

/* Левая панель профиля */
.ph-cabinet__sidebar {
    background: #111124;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Аватар-блок */
.ph-cab-avatar-wrap {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ph-cab-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(247,49,73,0.12);
    border: 2px solid rgba(247,49,73,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--ph-primary-light);
    margin: 0 auto 1rem;
    letter-spacing: -0.04em;
}

.ph-cab-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ph-white);
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.ph-cab-email {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    word-break: break-all;
}

.ph-cab-org {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.22);
    margin-top: 4px;
}

/* Статус-бейдж */
.ph-cab-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ph-cab-status--active {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
}

.ph-cab-status--inactive {
    background: rgba(234,179,8,0.12);
    color: #fbbf24;
    border: 1px solid rgba(234,179,8,0.2);
}

.ph-cab-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* Мета-строки */
.ph-cab-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ph-cab-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.ph-cab-meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.22);
    flex-shrink: 0;
}

.ph-cab-meta-value {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    text-align: right;
    word-break: break-word;
}

/* Роли */
.ph-cab-role {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(247,49,73,0.12);
    color: var(--ph-primary-light);
    border: 1px solid rgba(247,49,73,0.2);
    margin-left: 3px;
}

/* Предупреждение неактивного аккаунта */
.ph-cab-warning {
    background: rgba(234,179,8,0.06);
    border: 1px solid rgba(234,179,8,0.2);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    color: #fbbf24;
    line-height: 1.6;
}

/* Телефон-кнопка */
.ph-cab-phone-btn {
    width: 100%;
    height: 38px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: transparent;
    color: rgba(255,255,255,0.4);
    border-radius: 3px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

.ph-cab-phone-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
}

.ph-cab-phone-input {
    width: 100%;
    height: 40px;
    padding: 0 0.85rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    color: var(--ph-white);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.ph-cab-phone-input:focus {
    border-color: var(--ph-primary);
}

.ph-cab-phone-input::placeholder {
    color: rgba(255,255,255,0.2);
}

/* Правый контент кабинета */
.ph-cabinet__content {
    background: #f4f5f7;
    overflow-y: auto;
}

.ph-cabinet__content-inner {
    padding: 2.5rem 3rem;
    max-width: 900px;
}

/* Заголовок секции в кабинете */
.ph-cab-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-cab-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ph-border);
}

/* Документы */
.ph-cab-alert-info {
    background: var(--ph-primary-bg);
    border-left: 3px solid var(--ph-primary);
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    color: var(--ph-text-body);
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.ph-cab-alert-info strong {
    color: var(--ph-primary);
    font-weight: 700;
}

.ph-cab-upload {
    border: 2px dashed var(--ph-border);
    border-radius: 6px;
    background: var(--ph-white);
    padding: 1.5rem;
    transition: border-color 0.15s;
    margin-bottom: 1.5rem;
}

.ph-cab-upload:focus-within {
    border-color: var(--ph-primary);
}

.ph-cab-upload-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Документ-строка */
.ph-doc-item {
    background: var(--ph-white);
    border: 1.5px solid var(--ph-border-light);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    margin-bottom: 0.5rem;
}

.ph-doc-item:hover {
    border-color: var(--ph-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ph-doc-item__ext {
    width: 38px;
    height: 38px;
    background: var(--ph-primary-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-primary);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.ph-doc-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ph-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-doc-item__meta {
    font-size: 0.72rem;
    color: var(--ph-text-hint);
}

/* Статус документа */
.ph-doc-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ph-doc-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.ph-doc-status--pending  { background: #fffbeb; color: #d97706; }
.ph-doc-status--approved { background: #f0fdf4; color: #16a34a; }
.ph-doc-status--rejected { background: #fef2f2; color: #dc2626; }

.ph-doc-reject-reason {
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef2f2;
    border-left: 2px solid #dc2626;
    font-size: 0.78rem;
    color: #b91c1c;
    border-radius: 0 0 4px 4px;
}

/* =================================================================
   MANAGE — Настройки аккаунта
   ================================================================= */

.ph-manage-layout {
    min-height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
    background: #f4f5f7;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.ph-manage-sidebar {
    background: var(--ph-white);
    border-right: 1px solid var(--ph-border);
    padding: 2rem 0;
    position: sticky;
    top: calc(var(--ph-header-height) + var(--ph-nav-height));
    height: calc(100vh - var(--ph-header-height) - var(--ph-nav-height));
    overflow-y: auto;
}

.ph-manage-sidebar__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.ph-manage-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ph-text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s;
}

.ph-manage-nav-link:hover {
    color: var(--ph-dark);
    background: var(--ph-light-gray);
    text-decoration: none;
}

.ph-manage-nav-link.active {
    color: var(--ph-primary);
    background: var(--ph-primary-bg);
    border-left-color: var(--ph-primary);
    font-weight: 600;
}

.ph-manage-content {
    padding: 3rem 4rem;
    overflow-y: auto;
}

.ph-manage-page-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.ph-manage-page-sub {
    font-size: 0.9rem;
    color: var(--ph-text-muted);
    margin-bottom: 2.5rem;
}

.ph-manage-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.ph-manage-card-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ph-border-light);
}

.ph-manage-save-btn {
    height: 44px;
    padding: 0 1.75rem;
    background: var(--ph-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    letter-spacing: 0.01em;
}

.ph-manage-save-btn:hover {
    background: var(--ph-primary-dark);
    transform: translateY(-1px);
}

/* Responsive manage */
@media (max-width: 900px) {
    .ph-cabinet { grid-template-columns: 1fr; }
    .ph-cabinet__sidebar { display: none; }
    .ph-cabinet__content-inner { padding: 1.5rem; }
    .ph-manage-layout { grid-template-columns: 1fr; }
    .ph-manage-sidebar { display: none; }
    .ph-manage-content { padding: 1.5rem; }
}

/* =================================================================
   ADMIN FORMS & TABLES — единый стиль
   ================================================================= */

/* ── Заголовок страницы ──────────────────────────────────────── */

.ph-ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-ap-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--ph-dark);
    letter-spacing: -0.025em;
    margin: 0;
}

.ph-ap-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ph-text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    background: var(--ph-white);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.ph-ap-back:hover {
    border-color: var(--ph-gray);
    color: var(--ph-dark);
    text-decoration: none;
}

/* ── Toast-сообщение ─────────────────────────────────────────── */

.ph-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
}

.ph-toast--success {
    background: var(--ph-success-bg);
    border-color: #22c55e;
    color: var(--ph-success-text);
}

.ph-toast--error {
    background: var(--ph-rejected-bg);
    border-color: #dc2626;
    color: var(--ph-rejected-text);
}

/* ── Admin form layout ───────────────────────────────────────── */

.ph-af-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

/* Секция формы */
.ph-af-section {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ph-af-section-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    padding: 0.85rem 1.5rem;
    background: #f8f9fb;
    border-bottom: 1px solid var(--ph-border-light);
    margin: 0;
}

.ph-af-section-body {
    padding: 1.5rem;
}

/* Поле формы */
.ph-af-field {
    margin-bottom: 1.25rem;
}

.ph-af-field:last-child {
    margin-bottom: 0;
}

.ph-af-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.ph-af-label-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ph-dark);
    letter-spacing: 0.01em;
}

.ph-af-label-req {
    color: var(--ph-primary);
    font-weight: 700;
}

.ph-af-label-hint {
    font-size: 0.72rem;
    color: var(--ph-text-hint);
    font-weight: 400;
}

.ph-af-input {
    width: 100%;
    height: 42px;
    padding: 0 0.9rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--ph-dark);
    background: var(--ph-white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
}

.ph-af-input:hover { border-color: #c5cad1; }

.ph-af-input:focus {
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(247,49,73,0.1);
}

.ph-af-input::placeholder { color: var(--ph-text-hint); }

.ph-af-input[disabled] {
    background: #f8f9fb;
    color: var(--ph-text-muted);
    cursor: not-allowed;
}

.ph-af-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--ph-dark);
    background: var(--ph-white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.ph-af-textarea:hover { border-color: #c5cad1; }

.ph-af-textarea:focus {
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(247,49,73,0.1);
}

.ph-af-textarea::placeholder { color: var(--ph-text-hint); }

.ph-af-hint {
    font-size: 0.72rem;
    color: var(--ph-text-hint);
    margin-top: 0.3rem;
    line-height: 1.4;
}

.ph-af-error {
    font-size: 0.72rem;
    color: #dc2626;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Двухколоночные поля */
.ph-af-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Toggle-чекбокс ──────────────────────────────────────────── */

.ph-af-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ph-border-light);
}

.ph-af-toggle-wrap:last-child { border-bottom: none; }

.ph-af-toggle-info {}

.ph-af-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ph-dark);
    display: block;
    margin-bottom: 2px;
}

.ph-af-toggle-desc {
    font-size: 0.75rem;
    color: var(--ph-text-muted);
}

/* Визуальный toggle */
.ph-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.ph-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ph-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 100px;
    transition: background 0.2s;
}

.ph-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

.ph-toggle input:checked + .ph-toggle-slider::before {
    transform: translateX(18px);
}

/* ── Sidebar карточки формы ──────────────────────────────────── */

.ph-af-sidebar-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.ph-af-sidebar-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    padding: 0.85rem 1.25rem;
    background: #f8f9fb;
    border-bottom: 1px solid var(--ph-border-light);
    margin: 0;
}

.ph-af-sidebar-body {
    padding: 1.25rem;
}

/* Кнопки действий формы */
.ph-af-actions {
    display: flex;
    gap: 0.65rem;
    flex-direction: column;
}

.ph-af-btn-save {
    width: 100%;
    height: 44px;
    background: var(--ph-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ph-af-btn-save:hover {
    background: var(--ph-primary-dark);
    transform: translateY(-1px);
}

.ph-af-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ph-af-btn-cancel {
    width: 100%;
    height: 40px;
    background: transparent;
    color: var(--ph-text-muted);
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-af-btn-cancel:hover {
    border-color: var(--ph-gray);
    color: var(--ph-dark);
    text-decoration: none;
}

/* Мета-строки в sidebar */
.ph-af-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--ph-border-light);
}

.ph-af-meta-row:last-child { border-bottom: none; }

.ph-af-meta-label { color: var(--ph-text-muted); font-size: 0.75rem; }
.ph-af-meta-value { color: var(--ph-dark); font-weight: 600; font-size: 0.8125rem; }

/* ── UsersList — карточка пользователя ───────────────────────── */

/* Фильтр-бар */
.ph-filter-bar {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.ph-filter-input {
    height: 36px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--ph-dark);
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s;
    min-width: 200px;
    flex: 1;
}

.ph-filter-input:focus { border-color: var(--ph-primary); }
.ph-filter-input::placeholder { color: var(--ph-text-hint); }

.ph-filter-select {
    height: 36px;
    padding: 0 2rem 0 0.85rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--ph-dark);
    outline: none;
    font-family: inherit;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    cursor: pointer;
    transition: border-color 0.15s;
}

.ph-filter-select:focus { border-color: var(--ph-primary); }

/* Просмотр пользователя — двухпанельный layout */
.ph-user-view {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Левая панель пользователя */
.ph-user-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-user-info-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    overflow: hidden;
}

.ph-user-info-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--ph-border-light);
    background: #f8f9fb;
}

.ph-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ph-primary-bg);
    border: 2px solid rgba(247,49,73,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--ph-primary);
    margin: 0 auto 0.75rem;
    letter-spacing: -0.04em;
}

.ph-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-dark);
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
}

.ph-user-email {
    font-size: 0.78rem;
    color: var(--ph-text-muted);
    word-break: break-all;
}

.ph-user-info-body {
    padding: 1rem 1.25rem;
}

.ph-user-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ph-border-light);
    font-size: 0.8125rem;
}

.ph-user-meta-row:last-child { border-bottom: none; }
.ph-user-meta-key { color: var(--ph-text-muted); font-size: 0.75rem; flex-shrink: 0; }
.ph-user-meta-val { color: var(--ph-dark); font-weight: 500; text-align: right; }

/* Роли */
.ph-roles-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    overflow: hidden;
}

.ph-roles-card-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
    padding: 0.75rem 1.25rem;
    background: #f8f9fb;
    border-bottom: 1px solid var(--ph-border-light);
}

.ph-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--ph-border-light);
    transition: background 0.1s;
}

.ph-role-row:last-child { border-bottom: none; }
.ph-role-row:hover { background: #fafafa; }

.ph-role-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ph-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph-role-name::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ph-border);
    flex-shrink: 0;
}

.ph-role-row--has-role .ph-role-name::before {
    background: var(--ph-primary);
}

.ph-role-btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid;
}

.ph-role-btn--assign {
    border-color: var(--ph-border);
    color: var(--ph-text-secondary);
    background: transparent;
}

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

.ph-role-btn--remove {
    border-color: rgba(220,38,38,0.3);
    color: #dc2626;
    background: #fef2f2;
}

.ph-role-btn--remove:hover {
    border-color: #dc2626;
    background: #fee2e2;
}

/* Статус аккаунта */
.ph-status-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    padding: 1.25rem;
}

.ph-status-desc {
    font-size: 0.8125rem;
    color: var(--ph-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ph-status-btn {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ph-status-btn--activate {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.ph-status-btn--activate:hover {
    background: #dcfce7;
    border-color: #22c55e;
}

.ph-status-btn--deactivate {
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
}

.ph-status-btn--deactivate:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* Правая панель — документы */
.ph-docs-panel {}

.ph-docs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ph-docs-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-text-hint);
}

.ph-docs-count {
    background: var(--ph-border);
    color: var(--ph-text-secondary);
    border-radius: 100px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Документ-карточка */
.ph-doc-card {
    background: var(--ph-white);
    border: 1px solid var(--ph-border-light);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.ph-doc-card:hover { border-color: var(--ph-border); }

.ph-doc-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.ph-doc-ext-badge {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: var(--ph-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-primary);
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.ph-doc-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ph-dark);
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.ph-doc-meta-line {
    font-size: 0.72rem;
    color: var(--ph-text-hint);
}

.ph-doc-desc {
    font-size: 0.78rem;
    color: var(--ph-text-secondary);
    margin-top: 2px;
}

/* Панель действий документа */
.ph-doc-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ph-border-light);
    flex-wrap: wrap;
}

.ph-doc-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ph-text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.ph-doc-open-btn:hover {
    border-color: var(--ph-gray);
    color: var(--ph-dark);
    text-decoration: none;
}

.ph-doc-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid rgba(247,49,73,0.25);
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ph-primary);
    background: var(--ph-primary-bg);
    cursor: pointer;
    transition: all 0.15s;
}

.ph-doc-review-btn:hover {
    border-color: var(--ph-primary);
    background: rgba(247,49,73,0.12);
}

/* Панель проверки */
.ph-review-panel {
    margin-top: 0.85rem;
    padding: 1rem 1.1rem;
    background: #f8f9fb;
    border: 1px solid var(--ph-border);
    border-radius: 4px;
}

.ph-review-panel-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ph-review-input {
    width: 100%;
    height: 38px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--ph-border);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--ph-dark);
    background: var(--ph-white);
    outline: none;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.ph-review-input:focus { border-color: var(--ph-primary); }
.ph-review-input::placeholder { color: var(--ph-text-hint); }

.ph-review-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ph-review-accept {
    height: 34px;
    padding: 0 1rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ph-review-accept:hover { background: #dcfce7; border-color: #22c55e; }

.ph-review-reject {
    height: 34px;
    padding: 0 1rem;
    background: #fef2f2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ph-review-reject:hover { background: #fee2e2; border-color: #dc2626; }

.ph-review-cancel {
    height: 34px;
    padding: 0 0.85rem;
    background: transparent;
    color: var(--ph-text-muted);
    border: 1.5px solid var(--ph-border);
    border-radius: 3px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ph-review-cancel:hover { color: var(--ph-dark); border-color: var(--ph-gray); }

/* Причина отклонения */
.ph-reject-reason {
    margin-top: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: #fef2f2;
    border-left: 2px solid #dc2626;
    font-size: 0.78rem;
    color: #b91c1c;
    border-radius: 0 3px 3px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .ph-af-layout { grid-template-columns: 1fr; }
    .ph-user-view { grid-template-columns: 1fr; }
    .ph-af-row { grid-template-columns: 1fr; }
}



/* =================================================================
   HERO ENTRANCE ANIMATION
   Staggered reveal — каждый элемент с задержкой
   Запускается классом .ph-hero--animated на section
   ================================================================= */

/* Базовое состояние до анимации */
.ph-hero__eyebrow,
.ph-hero__h1,
.ph-hero__desc,
.ph-hero__actions,
.ph-hero-nav,
.ph-hero__panel {
    opacity: 0;
    transform: translateY(20px);
}

/* После добавления класса .ph-hero--animated — элементы появляются */
.ph-hero--animated .ph-hero__eyebrow {
    animation: ph-hero-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.ph-hero--animated .ph-hero__h1 {
    animation: ph-hero-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
}

.ph-hero--animated .ph-hero__desc {
    animation: ph-hero-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.32s forwards;
}

.ph-hero--animated .ph-hero__actions {
    animation: ph-hero-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.44s forwards;
}

.ph-hero--animated .ph-hero-nav {
    animation: ph-hero-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.56s forwards;
}

/* Правая панель — слайд справа */
.ph-hero__panel {
    transform: translateX(24px);
    opacity: 0;
}

.ph-hero--animated .ph-hero__panel {
    animation: ph-hero-panel-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes ph-hero-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ph-hero-panel-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Анимация для .line-normal, .line-accent, .line-red — cascade внутри h1 */
.ph-hero--animated .ph-hero__h1 .line-normal {
    animation: ph-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.ph-hero--animated .ph-hero__h1 .line-accent {
    animation: ph-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.ph-hero--animated .ph-hero__h1 .line-red {
    animation: ph-hero-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

/* Базовое состояние строк заголовка (до анимации) */
.ph-hero__h1 .line-normal,
.ph-hero__h1 .line-accent,
.ph-hero__h1 .line-red {
    display: block;
    opacity: 0;
    transform: translateY(16px);
}

/* prefers-reduced-motion: все мгновенно */
@media (prefers-reduced-motion: reduce) {
    .ph-hero__eyebrow,
    .ph-hero__h1,
    .ph-hero__h1 .line-normal,
    .ph-hero__h1 .line-accent,
    .ph-hero__h1 .line-red,
    .ph-hero__desc,
    .ph-hero__actions,
    .ph-hero-nav,
    .ph-hero__panel {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* =================================================================
   IMAGE UPLOAD — в форме NewsEdit
   ================================================================= */

.ph-img-upload-zone {
    border: 2px dashed var(--ph-border);
    border-radius: 6px;
    background: #f8f9fb;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.ph-img-upload-zone:hover,
.ph-img-upload-zone--dragover {
    border-color: var(--ph-primary);
    background: var(--ph-primary-bg);
}

.ph-img-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.ph-img-upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ph-white);
    border: 1.5px solid var(--ph-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-text-muted);
    transition: border-color 0.2s, color 0.2s;
}

.ph-img-upload-zone:hover .ph-img-upload-icon {
    border-color: var(--ph-primary);
    color: var(--ph-primary);
}

.ph-img-upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ph-dark);
    text-align: center;
}

.ph-img-upload-hint {
    font-size: 0.75rem;
    color: var(--ph-text-hint);
    text-align: center;
}

/* Спиннер загрузки */
.ph-img-upload-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--ph-text-secondary);
    padding: 0.65rem 1rem;
    background: var(--ph-primary-bg);
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Превью загруженного изображения */
.ph-img-preview-wrap--hidden {
    display: none;
}

.ph-img-preview {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid var(--ph-border);
    margin-top: 0.75rem;
}

.ph-img-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.ph-img-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.ph-img-preview-remove:hover {
    background: rgba(220,38,38,0.85);
}

.ph-img-preview-uploading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}
