/* ============================================================
   GLOBAL BASE STYLES - Reset, Typography, Utilities
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    background: #f8f9fa;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: all 0.2s;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul,
ol {
    list-style: none;
}

/* Выделение текста */
::selection {
    background: #667eea;
    color: #ffffff;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Доступность для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.role-badge {
  display: flex;
  
  
  justify-content: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  
  vertical-align: middle;
  position: relative;
  z-index: 100;  /* ← выше */
}

.role-badge svg {
  display: block;
  width: 18px;   /* ← крупнее */
  height: 18px;  /* ← крупнее */
  flex-shrink: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.view-all {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

/* Scroll margin for sections */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.fb-post-user{
	/*display: flex;*/
	flex-direction: column;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-light {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-light:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================================
   GLOBAL SKELETON LOADING
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   GLOBAL ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-10px) scale(1.02); 
    }
}

/* ============================================================
   GLOBAL SVG ICON STYLES
   ============================================================ */
.quick-link-icon svg,
.material-icon svg,
.contact-icon svg {
    width: 100%;
    height: 100%;
    max-width: 24px;
    max-height: 24px;
    display: block;
    margin: 0 auto;
    color: var(--primary);
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-bottom: 6px;
}

.material-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin-bottom: 6px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
}

.play-button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   ЕДИНЫЙ СТИЛЬ ДЛЯ ПУСТЫХ СОСТОЯНИЙ
   ============================================ */

.news-empty,
.albums-empty,
.videos-empty,
.photos-empty,
.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.news-empty svg,
.albums-empty svg,
.videos-empty svg,
.photos-empty svg,
.gallery-empty svg {
    margin-bottom: 20px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.news-empty p,
.albums-empty p,
.videos-empty p,
.photos-empty p,
.gallery-empty p {
    font-size: 18px;
    font-weight: 500;
    color: #65676b;
    margin: 0 0 8px 0;
}

.news-empty .empty-subtitle,
.albums-empty .empty-subtitle,
.videos-empty .empty-subtitle,
.photos-empty .empty-subtitle,
.gallery-empty .empty-subtitle {
    font-size: 14px;
    color: #8a8d91;
    margin: 0;
}

/* Анимация */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-empty,
    .albums-empty,
    .videos-empty,
    .photos-empty,
    .gallery-empty {
        padding: 40px 16px;
        min-height: 250px;
    }
    
    .news-empty p,
    .albums-empty p,
    .videos-empty p,
    .photos-empty p,
    .gallery-empty p {
        font-size: 16px;
    }
}