/* ==========================================
   1. БАЗОВЫЕ ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СТИЛИ
   ========================================== */
:root {
    --hz-abyss-black: #050508;
    --hz-onyx-grey: #121216;
    --hz-acid-green: #00FF00;
    --hz-neon-magenta: #FF00FF;
    --hz-white: #FFFFFF;
    --hz-text-muted: #A0A0A5;
    --hz-border: rgba(255, 255, 255, 0.1);
    
    --bs-body-bg: var(--hz-abyss-black);
    --bs-body-color: var(--hz-white);
    --bs-font-sans-serif: 'Inter', sans-serif;
}

body {
    font-family: var(--bs-font-sans-serif);
    background-color: var(--hz-abyss-black);
    color: var(--hz-white);
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(0, 255, 0, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .site-content {
    flex: 1 0 auto;
}

/* ==========================================
   2. ТИПОГРАФИКА И ССЫЛКИ
   ========================================== */
h1, .h1 {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.text-acid-green { color: var(--hz-acid-green) !important; }
.text-magenta { color: var(--hz-neon-magenta) !important; }
.text-onyx { color: var(--hz-onyx-grey) !important; }
.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.85rem; }

a {
    color: var(--hz-neon-magenta);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #ff33ff;
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

a:visited {
    color: #cc00cc;
}

a:focus-visible {
    outline: 2px solid var(--hz-neon-magenta);
    outline-offset: 2px;
    border-radius: 2px;
}

a:active {
    color: #990099;
}

p a,
li a,
article a,
.entry-content a,
.card-text a {
    color: var(--hz-neon-magenta);
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 255, 0.3);
    text-underline-offset: 3px;
}

p a:hover,
li a:hover,
article a:hover,
.entry-content a:hover,
.card-text a:hover {
    color: #ff33ff;
    text-decoration-color: var(--hz-neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a {
    color: var(--hz-white);
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.h1 a:hover, .h2 a:hover, .h3 a:hover, .h4 a:hover, .h5 a:hover, .h6 a:hover {
    color: var(--hz-neon-magenta);
    text-decoration: none;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

@media (max-width: 768px) {
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }
}

/* ==========================================
   3. КНОПКИ
   ========================================== */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    text-decoration: none !important;
}

.btn-magenta {
    background-color: var(--hz-neon-magenta);
    border: 1px solid var(--hz-neon-magenta);
    color: var(--hz-abyss-black);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.btn-magenta:hover {
    background-color: #e600e6;
    border-color: #e600e6;
    color: var(--hz-abyss-black);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
    transform: translateY(-1px);
}

.btn-magenta:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
}

.btn-acid-green {
    background-color: var(--hz-acid-green);
    border: 1px solid var(--hz-acid-green);
    color: var(--hz-abyss-black) !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    text-decoration: none !important;
}

.btn-acid-green:hover {
    background-color: #00cc00;
    border-color: #00cc00;
    color: var(--hz-abyss-black) !important;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-acid-green:active {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.btn-outline-green {
    background-color: transparent;
    border: 1px solid var(--hz-acid-green);
    color: var(--hz-white);
}

.btn-outline-green:hover {
    background-color: rgba(0, 255, 0, 0.1);
    color: var(--hz-acid-green);
}

.btn-outline-light:hover {
    color: var(--hz-acid-green);
    border-color: var(--hz-acid-green);
}

@media (max-width: 575px) {
    .btn-outline-green {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ==========================================
   4. КАРТОЧКИ И ПОВЕРХНОСТИ
   ========================================== */
.bg-abyss { background-color: var(--hz-abyss-black) !important; }
.bg-onyx { background-color: var(--hz-onyx-grey) !important; }

.card {
    position: relative;
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 0, 0.4) 0%,
        rgba(255, 0, 255, 0.3) 50%,
        rgba(0, 255, 0, 0.4) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card:hover {
    background: rgba(18, 18, 22, 0.8);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(0, 255, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.card-simple-gradient {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 12px;
    background-clip: padding-box;
    position: relative;
}

.card-simple-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #00FF00, #FF00FF, #00FF00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card.bg-onyx {
    background: rgba(18, 18, 22, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-surface {
    background-color: var(--hz-onyx-grey);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.card-surface:hover {
    border-color: rgba(0, 255, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 0, 0.1);
}

/* ==========================================
   5. НАВИГАЦИЯ
   ========================================== */
.navbar {
    background-color: var(--hz-abyss-black);
    border-bottom: 1px solid var(--hz-border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--hz-white);
    font-size: 1.25rem;
    line-height: 1;
}

.navbar-brand span {
    color: var(--hz-acid-green);
    display: block;
}

.navbar-nav .nav-link {
    color: var(--hz-white) !important;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
    color: var(--hz-acid-green) !important;
    text-decoration: none !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link,
.navbar-nav .current_page_item > .nav-link {
    color: var(--hz-acid-green) !important;
    text-decoration: none !important;
}

/* ==========================================
   6. АДАПТИВНАЯ ШАПКА И ГАМБУРГЕР
   ========================================== */
@media (min-width: 992px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-brand {
        flex-shrink: 0;
    }
    
    .navbar-collapse {
        flex-grow: 1;
        display: flex !important;
        justify-content: center;
    }
    
    .navbar-nav.mx-auto {
        margin: 0 auto !important;
    }
    
    .desktop-cta {
        flex-shrink: 0;
    }
    
    .hamburger-btn {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        order: 1;
        flex-shrink: 0;
        font-size: 1rem;
    }
    
    .navbar-brand svg {
        width: 20px;
        height: 20px;
    }
    
    .hamburger-btn {
        order: 3;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .navbar-collapse {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        background-color: var(--hz-onyx-grey);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 1px solid var(--hz-border);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 0.5rem 1rem;
    }
    
    .desktop-cta {
        display: none !important;
    }
}

.hamburger-btn,
button.hamburger-btn,
.hamburger-btn.navbar-toggler,
button.navbar-toggler.hamburger-btn,
.navbar-toggler.hamburger-btn,
[data-bs-toggle="collapse"].hamburger-btn {
    background: transparent !important;
    border: 2px solid #FFFFFF !important;
    border-color: #FFFFFF !important;
    border-radius: 4px !important;
    padding: 8px 10px !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.hamburger-btn:hover,
.hamburger-btn:focus,
.hamburger-btn:active,
.hamburger-btn:visited,
.hamburger-btn.collapsed,
.hamburger-btn:not(.collapsed),
.hamburger-btn:focus-visible,
.hamburger-btn:focus-within,
button.hamburger-btn:hover,
button.hamburger-btn:focus,
button.hamburger-btn:active {
    background: transparent !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.hamburger-btn .navbar-toggler-icon,
.hamburger-btn > .navbar-toggler-icon,
button.hamburger-btn .navbar-toggler-icon,
.navbar-toggler.hamburger-btn .navbar-toggler-icon {
    display: inline-block !important;
    width: 1.5em !important;
    height: 1.5em !important;
    vertical-align: middle !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    border: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.hamburger-btn:focus-visible {
    outline: 2px solid #FFFFFF !important;
    outline-offset: 2px !important;
}

.hamburger-btn span:not(.navbar-toggler-icon) {
    display: none !important;
}

.hamburger-btn * {
    filter: none !important;
    opacity: 1 !important;
}

/* ==========================================
   7. СПИСКИ И ЭЛЕМЕНТЫ СПИСКОВ
   ========================================== */
.list-group-custom .list-group-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--hz-border);
    color: var(--hz-white);
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.list-group-custom .list-group-item:last-child {
    border-bottom: none;
}

.list-icon {
    color: var(--hz-acid-green);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.list-unstyled a:hover {
    color: var(--hz-acid-green) !important;
}

/* ==========================================
   8. СЕТКА ИКОНОК
   ========================================== */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
    color: var(--hz-acid-green);
    transition: all 0.3s ease;
}

.icon-box svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* ==========================================
   9. ПАГИНАЦИЯ
   ========================================== */
.pagination .page-link {
    background-color: var(--hz-onyx-grey);
    border-color: var(--hz-border);
    color: var(--hz-white);
    margin: 0 2px;
    text-decoration: none !important;
}

.pagination .page-link:hover {
    background-color: var(--hz-abyss-black);
    border-color: var(--hz-acid-green);
    color: var(--hz-acid-green);
    text-decoration: none !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--hz-acid-green);
    border-color: var(--hz-acid-green);
    color: var(--hz-abyss-black);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--hz-onyx-grey);
    border-color: var(--hz-border);
    color: var(--hz-text-muted);
}

/* ==========================================
   10. ФОРМЫ И ЭЛЕМЕНТЫ УПРАВЛЕНИЯ
   ========================================== */
.form-control.bg-abyss {
    background-color: var(--hz-abyss-black) !important;
    border-color: var(--hz-border) !important;
    color: var(--hz-white) !important;
}

.form-control.bg-abyss:focus {
    background-color: var(--hz-abyss-black) !important;
    border-color: var(--hz-acid-green) !important;
    color: var(--hz-white) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 0, 0.25);
}

.form-control.bg-abyss::placeholder {
    color: var(--hz-text-muted);
}

.badge.bg-acid-green {
    background-color: var(--hz-acid-green) !important;
    color: var(--hz-abyss-black) !important;
}

/* ==========================================
   11. ПОДВАЛ (FOOTER)
   ========================================== */
.footer .list-inline {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer .list-inline-item {
    margin: 0;
}

.footer .nav-link {
    color: var(--hz-text-muted) !important;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: none !important;
}

.footer .nav-link:hover {
    color: var(--hz-acid-green) !important;
    text-decoration: none !important;
}

/* ==========================================
   12. ВИДЖЕТЫ
   ========================================== */
.widget-horizontal {
    flex: 1 1 0;
    min-width: 250px;
}

.widget-horizontal .card {
    height: 100%;
}

.widget-vertical {
    width: 100%;
}

.widget-vertical .card {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .sidebar-before .row,
    .sidebar-after .row {
        flex-direction: column;
    }
    
    .widget-horizontal {
        min-width: 100%;
    }
}

/* Заголовки виджетов */
.widget .widget-title,
.widget-title {
    color: var(--hz-white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    position: relative;
    display: block;
    border-bottom: none !important;
}

/* Градиентная линия под заголовком виджета на всю ширину */
.widget .widget-title::after,
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--hz-acid-green) 15%,
        var(--hz-neon-magenta) 50%,
        var(--hz-acid-green) 85%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3),
                0 0 20px rgba(255, 0, 255, 0.2);
    border-radius: 1px;
}

/* Стили списков внутри виджетов */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hz-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--hz-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget ul li a:hover {
    color: var(--hz-acid-green);
}

/* ==========================================
   13. СЕКЦИЯ "ПАРТНЁРЫ И СПОНСОРЫ"
   ========================================== */
.partners-section {
    padding: 60px 0;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

.partner-card {
    background: rgba(18, 18, 22, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-card:hover {
    transform: translateY(-4px);
    background: rgba(18, 18, 22, 0.8);
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(0, 255, 0, 0.1);
}

.partner-logo img {
    max-width: 160px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    drop-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.partner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--hz-white);
    transition: color 0.3s ease;
}

.partner-card:hover .partner-title {
    color: var(--hz-acid-green);
}

.partner-excerpt {
    font-size: 0.9rem;
    color: var(--hz-text-muted);
    line-height: 1.6;
}

/* ==========================================
   14. СТРАНИЦА ЭКСПЕРТА
   ========================================== */

/* Внешний контейнер — центрирует фото */
.expert-header-block {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
}

/* Контейнер фото */
.expert-photo-fade {
    position: relative;
    display: inline-block;
}

/* 
   Фото эксперта на десктопе:
   - Высота в диапазоне 60-70vh
   - Ширина пропорциональна
*/
.expert-photo-fade .expert-photo {
    display: block;
    min-height: 60vh;
    max-height: 70vh;
    width: auto;
    max-width: none !important;
    /* Маска: сверху 25%, снизу 35%, по бокам 45% */
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 0%, black 25%),
        linear-gradient(to top, transparent 0%, black 35%),
        linear-gradient(to right, transparent 0%, black 45%),
        linear-gradient(to left, transparent 0%, black 45%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to bottom, transparent 0%, black 25%),
        linear-gradient(to top, transparent 0%, black 35%),
        linear-gradient(to right, transparent 0%, black 45%),
        linear-gradient(to left, transparent 0%, black 45%);
    mask-composite: intersect;
}

/* Заголовок поверх фото, прижат к низу */
.expert-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    margin: 0;
    padding: 20px 15px 25px;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--hz-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(255, 0, 255, 0.3);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .expert-photo-fade .expert-photo {
        min-height: 50vh;
        max-height: 65vh;
        -webkit-mask-image: 
            linear-gradient(to bottom, transparent 0%, black 25%),
            linear-gradient(to top, transparent 0%, black 40%),
            linear-gradient(to right, transparent 0%, black 40%),
            linear-gradient(to left, transparent 0%, black 40%);
        -webkit-mask-composite: source-in;
        mask-image: 
            linear-gradient(to bottom, transparent 0%, black 25%),
            linear-gradient(to top, transparent 0%, black 40%),
            linear-gradient(to right, transparent 0%, black 40%),
            linear-gradient(to left, transparent 0%, black 40%);
        mask-composite: intersect;
    }
    
    .expert-title-overlay {
        font-size: 2rem;
        padding: 15px 10px 20px;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
    }
    
    .expert-header-block {
        overflow: hidden;
    }
    
    .expert-photo-fade .expert-photo {
        min-height: 50vh;
        max-height: 65vh;
        height: auto;
        width: auto;
        -webkit-mask-image: 
            linear-gradient(to bottom, transparent 0%, black 20%),
            linear-gradient(to top, transparent 0%, black 35%),
            linear-gradient(to right, transparent 0%, black 35%),
            linear-gradient(to left, transparent 0%, black 35%);
        -webkit-mask-composite: source-in;
        mask-image: 
            linear-gradient(to bottom, transparent 0%, black 20%),
            linear-gradient(to top, transparent 0%, black 35%),
            linear-gradient(to right, transparent 0%, black 35%),
            linear-gradient(to left, transparent 0%, black 35%);
        mask-composite: intersect;
    }
    
    .expert-title-overlay {
        font-size: 1.5rem;
        padding: 12px 8px 15px;
    }
}

/* ==========================================
   15. ВСПОМОГАТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ========================================== */
.position-sticky {
    position: -webkit-sticky;
    position: sticky;
}

.card-footer .avatar {
    border: 2px solid var(--hz-acid-green);
}

hr.border-secondary {
    border-color: var(--hz-border) !important;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .position-sticky {
        position: static !important;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
}

/* ==========================================
   16. ПОПАП-ОКНО "СТАТЬ УЧАСТНИКОМ" (Bootstrap Modal)
   ========================================== */

/* Затемнение фона при открытом модальном окне */
.modal-backdrop {
    background-color: rgba(5, 5, 8, 0.85) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-backdrop.show {
    opacity: 1 !important;
}

/* Центрирование и анимация модального диалога */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Контейнер модального окна с градиентной рамкой и свечением */
.hz-modal-content {
    background: rgba(18, 18, 22, 0.95) !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.4),
        0 0 80px rgba(255, 0, 255, 0.2),
        0 0 120px rgba(255, 0, 255, 0.1) !important;
}

/* Градиентная рамка через псевдоэлемент */
.hz-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(0, 255, 0, 0.6) 0%,
        rgba(255, 0, 255, 0.5) 50%,
        rgba(0, 255, 0, 0.6) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Тело модального окна поверх рамки */
.hz-modal-content .modal-body {
    position: relative;
    z-index: 3;
    padding: 50px 40px !important;
}

/* Кнопка закрытия - только белый крестик без фона и рамки */
.hz-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 10 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    opacity: 0.8 !important;
    transition: all 0.25s ease !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.hz-modal-close:hover {
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

.hz-modal-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Иконка крестика внутри кнопки */
.hz-modal-close::before {
    content: '✕';
    font-size: 20px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1;
}

/* Заголовок попапа */
.hz-popup-title {
    color: var(--hz-neon-magenta) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}

/* Текст попапа */
.hz-popup-text {
    color: var(--hz-white) !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .hz-modal-content {
        background: rgba(18, 18, 22, 0.95) !important;
        box-shadow: 
            0 0 30px rgba(255, 0, 255, 0.4),
            0 0 60px rgba(255, 0, 255, 0.2) !important;
    }

    .hz-modal-content .modal-body {
        padding: 40px 25px !important;
    }

    .hz-popup-title {
        font-size: 1.5rem !important;
    }

    .hz-popup-text {
        font-size: 1rem !important;
    }

    .hz-modal-close {
        width: 24px !important;
        height: 24px !important;
        top: 10px !important;
        right: 10px !important;
    }

    .hz-modal-close::before {
        font-size: 18px;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .hz-modal-content {
        background: rgba(18, 18, 22, 0.95) !important;
        border-radius: 12px !important;
        box-shadow: 
            0 0 25px rgba(255, 0, 255, 0.5),
            0 0 50px rgba(255, 0, 255, 0.3) !important;
    }

    .hz-modal-content::before {
        border-radius: 12px !important;
    }

    .hz-modal-content .modal-body {
        padding: 35px 20px !important;
    }

    .hz-popup-title {
        font-size: 1.25rem !important;
        margin-bottom: 15px !important;
    }

    .hz-popup-text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .hz-modal-close {
        width: 22px !important;
        height: 22px !important;
        top: 8px !important;
        right: 8px !important;
    }

    .hz-modal-close::before {
        font-size: 16px;
    }
}

/* ==========================================
   17. СПИСОК ЭКСПЕРТОВ (ARCHIVE)
   ========================================== */

/* Обёртка фото в списке экспертов */
.expert-list-photo-wrapper {
    width: 150px;
    flex-shrink: 0;
    align-self: stretch;
}

/* Контейнер фото с маской */
.expert-list-photo-fade {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* Фото эксперта в списке с маской размытия краёв */
.expert-list-photo-fade .expert-list-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Маска: сверху 20%, снизу 20%, по бокам 25% */
    -webkit-mask-image: 
        linear-gradient(to bottom, transparent 0%, black 20%),
        linear-gradient(to top, transparent 0%, black 20%),
        linear-gradient(to right, transparent 0%, black 25%),
        linear-gradient(to left, transparent 0%, black 25%);
    -webkit-mask-composite: source-in;
    mask-image: 
        linear-gradient(to bottom, transparent 0%, black 20%),
        linear-gradient(to top, transparent 0%, black 20%),
        linear-gradient(to right, transparent 0%, black 25%),
        linear-gradient(to left, transparent 0%, black 25%);
    mask-composite: intersect;
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .expert-list-photo-wrapper {
        width: 120px;
    }
    
    .expert-list-photo-fade .expert-list-photo {
        -webkit-mask-image: 
            linear-gradient(to bottom, transparent 0%, black 15%),
            linear-gradient(to top, transparent 0%, black 40%),
            linear-gradient(to right, transparent 0%, black 5%),
            linear-gradient(to left, transparent 0%, black 5%);
        -webkit-mask-composite: source-in;
        mask-image: 
            linear-gradient(to bottom, transparent 0%, black 15%),
            linear-gradient(to top, transparent 0%, black 40%),
            linear-gradient(to right, transparent 0%, black 5%),
            linear-gradient(to left, transparent 0%, black 5%);
        mask-composite: intersect;
    }
}

/* ==========================================
   18. КОЛОНКИ МАСТЕР-КЛАССОВ В АДМИНКЕ
   ========================================== */

.hz-meta-empty {
    color: #999;
    font-style: italic;
}

.hz-meta-hint {
    color: #d63638;
    font-style: italic;
}

.hz-meta-online {
    display: inline-block;
    padding: 2px 8px;
    background: #00FF00;
    color: #050508;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

/* ==========================================
   19. СПИСОК МАСТЕР-КЛАССОВ НА СТРАНИЦЕ ЭКСПЕРТА
   ========================================== */

/* Секция мастер-классов с отступом сверху */
.expert-masterclasses-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hz-border);
}

/* Заголовок h2 "Мастер-классы эксперта" */
.expert-masterclasses-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--hz-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.mc-list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--hz-border);
}

.mc-list-item:last-child {
    border-bottom: none;
}

/* Верхняя строка с мета-информацией */
.mc-list-meta-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

/* Формат проведения — белым цветом */
.mc-meta-format {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 3px;
    color: var(--hz-white);
}

.mc-format-online {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.mc-format-offline {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

/* Время — белым цветом */
.mc-meta-time-inline {
    color: var(--hz-white);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Дата */
.mc-meta-date-inline {
    color: var(--hz-acid-green);
    font-size: 0.85rem;
    font-weight: 700;
}

/* "Дата уточняется" — белым цветом */
.mc-meta-approx-inline {
    color: var(--hz-white);
    font-size: 0.75rem;
    font-style: italic;
}

/* Название как h3 — крупнее */
.mc-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.mc-list-title-link {
    color: var(--hz-acid-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mc-list-title-link:hover {
    color: var(--hz-neon-magenta);
    text-decoration: none;
}

/* Краткое описание */
.mc-list-excerpt {
    color: var(--hz-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Ссылка "Подробнее..." — пурпурная, inline */
.mc-list-more-link {
    color: var(--hz-neon-magenta);
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 255, 0.4);
    text-underline-offset: 3px;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.mc-list-more-link:hover {
    color: #ff33ff;
    text-decoration-color: var(--hz-neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .expert-masterclasses-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .expert-masterclasses-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mc-list-meta-inline {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .mc-meta-format {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .mc-meta-time-inline,
    .mc-meta-date-inline {
        font-size: 0.75rem;
    }
    
    .mc-meta-approx-inline {
        font-size: 0.7rem;
    }
    
    .mc-list-title {
        font-size: 1.25rem;
    }
    
    .mc-list-excerpt {
        font-size: 0.8rem;
    }
}

/* ==========================================
   20. СТРАНИЦА МАСТЕР-КЛАССА (SINGLE)
   ========================================== */

/* Заголовок мастер-класса */
.masterclass-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hz-white);
    margin-bottom: 1rem;
}

/* Краткое описание под заголовком */
.masterclass-single-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--hz-text-muted);
    margin: 0;
}

/* Сетка с тремя колонками */
.masterclass-info-grid {
    margin-bottom: 2rem;
}

/* ===== Колонка 1: Мета-информация ===== */
.masterclass-meta-card {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
}

.masterclass-meta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 0, 0.3) 0%,
        rgba(255, 0, 255, 0.2) 50%,
        rgba(0, 255, 0, 0.3) 100%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.masterclass-meta-block {
    margin-bottom: 1rem;
}

.masterclass-meta-block:last-of-type {
    margin-bottom: 0;
}

.masterclass-meta-label {
    color: var(--hz-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.masterclass-meta-value {
    color: var(--hz-white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.mc-single-approx {
    color: var(--hz-white);
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-bottom: 2px;
}

.mc-single-date {
    color: var(--hz-acid-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.mc-single-time {
    color: var(--hz-white);
    font-size: 0.95rem;
    margin-top: 2px;
}

.mc-single-link {
    color: var(--hz-neon-magenta);
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 255, 0.3);
    text-underline-offset: 3px;
    word-break: break-all;
    transition: all 0.2s ease;
}

.mc-single-link:hover {
    color: #ff33ff;
    text-decoration-color: var(--hz-neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.masterclass-meta-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hz-border);
}

/* ===== Колонка 2: Таксономии ===== */
.masterclass-taxonomies-card {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.masterclass-taxonomy-block {
    margin-bottom: 1.25rem;
}

.masterclass-taxonomy-block:last-child {
    margin-bottom: 0;
}

.masterclass-taxonomy-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.masterclass-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.masterclass-taxonomy-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 50px;
    color: var(--hz-acid-green);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.masterclass-taxonomy-tag:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--hz-acid-green);
    color: var(--hz-acid-green);
    text-decoration: none;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.2);
}

/* ===== Колонка 3: Ведущие эксперты ===== */
.masterclass-experts-card {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.masterclass-experts-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

.masterclass-experts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.masterclass-expert-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.masterclass-expert-mini-card:hover {
    background: rgba(0, 255, 0, 0.05);
    text-decoration: none;
}

.masterclass-expert-mini-photo {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.masterclass-expert-mini-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masterclass-expert-mini-card:hover .masterclass-expert-mini-photo img {
    transform: scale(1.1);
}

.masterclass-expert-mini-info {
    flex: 1;
    min-width: 0;
}

.masterclass-expert-mini-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hz-acid-green);
    margin: 0 0 0.4rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.masterclass-expert-mini-card:hover .masterclass-expert-mini-name {
    color: var(--hz-neon-magenta);
}

.masterclass-expert-mini-excerpt {
    color: var(--hz-text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Миниатюра мастер-класса */
.masterclass-single-thumbnail {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.masterclass-single-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

/* Основное содержание */
.masterclass-single-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hz-white);
}

.masterclass-single-content h2,
.masterclass-single-content h3,
.masterclass-single-content h4 {
    color: var(--hz-white);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.masterclass-single-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.masterclass-single-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.masterclass-single-content p {
    margin-bottom: 1.25rem;
}

.masterclass-single-content ul,
.masterclass-single-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.masterclass-single-content li {
    margin-bottom: 0.5rem;
}

.masterclass-single-content blockquote {
    border-left: 3px solid var(--hz-acid-green);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--hz-text-muted);
}

/* Финальная кнопка */
.masterclass-final-cta {
    text-align: center;
    padding: 2rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--hz-border);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .masterclass-single-title {
        font-size: 2rem;
    }
    
    .masterclass-single-excerpt {
        font-size: 1rem;
    }
    
    .masterclass-meta-card,
    .masterclass-taxonomies-card,
    .masterclass-experts-card {
        padding: 1.25rem;
    }
    
    .masterclass-expert-mini-photo {
        width: 80px;
        height: 80px;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .masterclass-single-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .masterclass-single-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .masterclass-meta-card,
    .masterclass-taxonomies-card,
    .masterclass-experts-card {
        padding: 1rem;
    }
    
    .masterclass-meta-label {
        font-size: 0.7rem;
    }
    
    .masterclass-meta-value {
        font-size: 0.9rem;
    }
    
    .mc-single-date {
        font-size: 1rem;
    }
    
    .masterclass-single-content {
        font-size: 1rem;
    }
    
    .masterclass-single-content h2 {
        font-size: 1.4rem;
    }
    
    .masterclass-single-content h3 {
        font-size: 1.2rem;
    }
    
    .masterclass-taxonomy-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }
    
    .masterclass-expert-mini-photo {
        width: 72px;
        height: 72px;
    }
    
    .masterclass-expert-mini-name {
        font-size: 0.95rem;
    }
    
    .masterclass-expert-mini-excerpt {
        font-size: 0.75rem;
    }
}

/* ==========================================
   21. КАТАЛОГ МАСТЕР-КЛАССОВ (ARCHIVE)
   ========================================== */

/* Заголовок каталога */
.masterclass-archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hz-white);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Колонка с экспертом */
.mc-list-expert-col {
    flex-shrink: 0;
}

.mc-list-expert-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mc-list-expert-link:hover {
    text-decoration: none;
    opacity: 0.85;
}

.mc-list-expert-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 0, 0.3);
    margin-bottom: 0.5rem;
    background: rgba(18, 18, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.3s ease;
}

.mc-list-expert-link:hover .mc-list-expert-photo {
    border-color: var(--hz-acid-green);
    transform: scale(1.05);
}

.mc-list-expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-list-expert-photo-placeholder {
    color: var(--hz-text-muted);
}

.mc-list-expert-photo-placeholder svg {
    width: 32px;
    height: 32px;
}

.mc-list-expert-name {
    color: var(--hz-acid-green);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mc-list-expert-link:hover .mc-list-expert-name {
    color: var(--hz-neon-magenta);
}

.mc-list-expert-name-empty {
    color: var(--hz-text-muted);
    font-style: italic;
    font-weight: 400;
    font-size: 0.75rem;
}

.mc-list-expert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .masterclass-archive-title {
        font-size: 2rem;
    }
    
    .mc-list-expert-photo {
        width: 70px;
        height: 70px;
    }
    
    .mc-list-expert-name {
        font-size: 0.8rem;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .masterclass-archive-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .mc-list-expert-photo {
        width: 60px;
        height: 60px;
    }
    
    .mc-list-expert-photo-placeholder svg {
        width: 24px;
        height: 24px;
    }
    
    .mc-list-expert-name {
        font-size: 0.75rem;
    }
}

/* ==========================================
   22. ФИЛЬТРЫ КАТАЛОГА МАСТЕР-КЛАССОВ
   ========================================== */

/* Центрирование заголовка каталога */
.masterclass-archive-title {
    text-align: center;
}

/* Панель фильтрации */
.mc-filter-panel {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.mc-filter-form {
    width: 100%;
}

.mc-filter-label {
    display: block;
    color: var(--hz-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.mc-filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: var(--hz-abyss-black);
    border: 1px solid var(--hz-border);
    border-radius: 8px;
    color: var(--hz-white);
    font-size: 0.9rem;
    font-family: var(--bs-font-sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0A0A5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.mc-filter-select:focus {
    outline: none;
    border-color: var(--hz-acid-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.15);
}

.mc-filter-select option {
    background-color: var(--hz-onyx-grey);
    color: var(--hz-white);
}

.mc-filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hz-border);
}

/* Сообщение об отсутствии результатов */
.mc-archive-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hz-text-muted);
    font-size: 1.1rem;
}

.mc-archive-empty .btn {
    margin-top: 1rem;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .mc-filter-panel {
        padding: 1rem;
    }
    
    .mc-filter-actions {
        justify-content: flex-start;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .mc-filter-panel {
        padding: 0.85rem;
    }
    
    .mc-filter-label {
        font-size: 0.7rem;
    }
    
    .mc-filter-select {
        font-size: 0.85rem;
        padding: 0.45rem 0.65rem;
        padding-right: 1.75rem;
    }
    
    .mc-filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mc-filter-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   22. ФИЛЬТРЫ КАТАЛОГА МАСТЕР-КЛАССОВ
   ========================================== */

/* Центрирование заголовка каталога */
.masterclass-archive-title {
    text-align: center;
}

/* Панель фильтрации */
.mc-filter-panel {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hz-border);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
}

.mc-filter-form {
    width: 100%;
}

.mc-filter-label {
    display: block;
    color: var(--hz-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.mc-filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: var(--hz-abyss-black);
    border: 1px solid var(--hz-border);
    border-radius: 8px;
    color: var(--hz-white);
    font-size: 0.9rem;
    font-family: var(--bs-font-sans-serif);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0A0A5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.mc-filter-select:focus {
    outline: none;
    border-color: var(--hz-acid-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.15);
}

.mc-filter-select option {
    background-color: var(--hz-onyx-grey);
    color: var(--hz-white);
}

/* Индикатор активных фильтров */
.mc-filter-active-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hz-border);
    font-size: 0.85rem;
}

.mc-filter-active-text {
    color: var(--hz-text-muted);
}

.mc-filter-reset-link {
    color: var(--hz-neon-magenta);
    text-decoration: underline;
    text-decoration-color: rgba(255, 0, 255, 0.4);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mc-filter-reset-link:hover {
    color: #ff33ff;
    text-decoration-color: var(--hz-neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

/* Индикатор загрузки */
.mc-filter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    color: var(--hz-text-muted);
    font-size: 0.9rem;
}

.mc-filter-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-top-color: var(--hz-acid-green);
    border-radius: 50%;
    animation: mcFilterSpin 0.8s linear infinite;
}

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

/* Плавный переход при обновлении контента */
#mcFilterResults {
    transition: opacity 0.3s ease;
}

/* Сообщение об отсутствии результатов */
.mc-archive-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hz-text-muted);
    font-size: 1.1rem;
}

.mc-archive-empty .btn {
    margin-top: 1rem;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .mc-filter-panel {
        padding: 1rem;
    }
}

/* Адаптивность для смартфонов */
@media (max-width: 480px) {
    .mc-filter-panel {
        padding: 0.85rem;
    }
    
    .mc-filter-label {
        font-size: 0.7rem;
    }
    
    .mc-filter-select {
        font-size: 0.85rem;
        padding: 0.45rem 0.65rem;
        padding-right: 1.75rem;
    }
    
    .mc-filter-active-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .mc-filter-loading {
        flex-direction: column;
        text-align: center;
    }
}