html, body {
    max-width: 100%;
    overflow-x: hidden; /* Скрывает всё, что вылезает за правый край */
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #D4AF37; /* Золото */
    transition: 0.3s;
}

/* Контейнер-слой, чтобы голда не мешала кликать по кнопкам */
.gold-overlay {
    position:static;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.gold-coin {
    position: absolute;
    width: 120px; /* Размер голды на ПК */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    opacity: 0;
}

/* Анимация вылета слева */
@keyframes flyFromLeft {
    0% { transform: translateX(-200px); opacity: 0; }
    100% { transform: translateX(0) rotate(20deg); opacity: 0.6; }
}

/* Анимация вылета справа */
@keyframes flyFromRight {
    0% { transform: translateX(200px) rotate(30deg); opacity: 0; }
    100% { transform: translateX(0); opacity: 0.6; }
}

/* Применяем анимации */
.fly-left {
    animation: flyFromLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fly-right {
    animation: flyFromRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}



.blog-content {
    display: flex;
    width: 100%;
    min-height: 200px;
    margin: 140px 0 0 0;
    position: relative;

    padding: 10px 0; /* Паддинг только сверху/снизу, чтобы не сбивать X-ось */
    background: linear-gradient(
        135deg, 
        rgba(212, 175, 55, 0.15) 0%,   /* Золотой (D4AF37) с прозрачностью 15% */
        rgba(0, 0, 0, 0.3) 50%,        /* Затемнение в центре для объема */
        rgba(212, 175, 55, 0.05) 100%  /* Легкий золотой отблеск в конце */
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1); 
    overflow-x: auto;
    overflow: hidden; /* Оставляем только это */
}

.blog-content::-webkit-scrollbar {
    display: none;
}

/* Прячем ползунок для IE, Edge и Firefox */
.blog-content {
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

.blog-track {
    display: flex;
    width: max-content; 
    /* 10s — это очень быстро для 300px карточек, поставь 30s для плавности */
    animation: scroll-left 50s linear infinite; 
}

/* Сама карточка (мем или новость) */
.blog-card {
    flex-shrink: 0;
    width: 285px;
    /* min-height: 180px;  */
    min-height: auto;
    margin: 0 10px; 
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    
    /* ИСПРАВЛЕНИЕ: переходим на колонку БЫЛО БЕЗ ПОЗИТИОН РЕЛАТИВ И ТРАНСФОРМ 0.3S */
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 9px;
    
    color: white;
    overflow: hidden; 
    transition: all 0.5s ease;
    position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    rgba(0,255,255,0.3)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.blog-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 px rgba(12, 223, 118, 0.5);
}

.blog-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

.img-blog-spoiler {
    width: 100%;
    height: 140px; /* Фиксируем высоту контейнера под картинку */
    flex-shrink: 0;
}

.img-blog-spoiler img {
    width: 100%;
    height: 100%; /* Занимает всё место в спойлере */
    object-fit: cover; 
    border-radius: 10px;
    /* УБЕРИ маржины отсюда, за них теперь отвечает padding у карточки */
}


.text-content {
    /* 1. Блок ограничений и обрезки */
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 2. Типографика и размеры */
    width: 100%;
    margin-top: 8px;
    line-height: 1.2em;
    
    /* 3. Оформление текста */
    text-align: left;
    white-space: normal;
    font-weight: bold;
    font-size: large;

    flex-shrink: 1;
    margin-bottom: 2px;
}

.blog-content:hover .blog-track {
    animation-play-state: paused; /* Это СТАНДАРТ для остановки */
}


.blog-card a {
    font-weight: bold;
    background: linear-gradient(90deg, #B8860B 0%, #F4C542 50%, #DAA520 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Важно для корректного отображения */
    text-decoration: none;
}


.blog-card:hover {
    background: rgba(21, 129, 44, 0.281);
    transform: scale(1.05);
}


.full-card-link {
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягивается на всю карточку */
    text-decoration: none;
}

.mobile-next-btn {
    display: none; 
}

.main-title {
    color: #D4AF37;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center; /* Центрирует текст внутри строки */
    font-size: 32px;    /* Можно чуть увеличить для солидности */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Чтобы лучше читалось на фоне */
}

body { 
    /* background-image: url('bg-mobile-standoff.webp');  */
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 40%, #534f3e 100%) !important;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Убирает серую полосу снизу */
    
    /* Настройки фона */
    background-size: cover;      /* Растягивает картинку под размер экрана */
    background-position: center; /* Центрирует картинку */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Фон не будет скроллиться (эффектно на ПК) */
}

/* Основной фон всей страницы */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Сверху чистый черный, снизу — матовый золотисто-коричневый */
    /* fixed прибит фон, чтобы он не уезжал при скролле */
    background: linear-gradient(180deg, #000000 60%, #2a220a 100%) no-repeat fixed;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    /* 180deg — значит сверху вниз */
    background: linear-gradient(180deg, rgba(95, 79, 28, 0.329) 0%, rgba(44, 44, 44, 0) 100%);
    pointer-events: none;
    z-index: -1;
}


/* Добавим мягкий золотой "туман" в самом низу экрана */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1vh;
    /* Золотое свечение снизу вверх */
    background: linear-gradient(0deg, rgba(138, 114, 36, 0.15) 0%, rgba(0, 0, 0, 0) 0%);
    pointer-events: none;
    z-index: 0;
}



/* Базовые стили для КОНТЕЙНЕРА (для ТЕЛЕФОНОВ — вертикально) */
.articles-container {
    display: flex;
    flex-direction: column; /* Это и так вертикаль */
    gap: 15px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.container {
    position: sticky;
    top: 0;         
    z-index: 1000;
    display: flex;
    align-items: center;
    height: 80px;
    
    /* 1. Цвет: Глубокий антрацит с прозрачностью */
    /* 0, 0, 0 — это черный. 0.7 — оптимальная прозрачность для блюра */
    background-color: rgba(10, 10, 10, 0.7); 
    
    /* 2. Блюр: 6px — хорошо, но можно 10px для "тягучести" */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); /* Для Safari */

    /* 3. Граница: Тонкая золотая линия снизу для стиля Standoff */
    border-bottom: 0.5px solid rgba(212, 175, 55, 0.2);
    
    /* 4. Легкий блик (опционально): делает стекло "объемным" */
    box-shadow: 3px 4px 30px rgba(0, 0, 0, 0.5);
    
    padding: 10px 20px; 
    transition: all 0.3s ease;
    justify-content: flex-start;
    /* overflow: hidden; */
}

/* Контейнер для кнопок */
.nav-buttons {
    display: flex;
    z-index: 2;
    margin-left: 160px; /* Фиксированный отступ от логотипа */
}

.nav-buttons ul {
    display: flex;
    gap: 50px;
    padding: 0;
    margin: 0;
    list-style: none; /* Убираем точки у списка */
}

/* Стили для ссылок внутри списка */
.nav-buttons ul li a {
    position: relative;
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #D4AF37; /* Золотой под стиль Standoff */
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: .5s;
    z-index: 1;
}


.nav-wrapper {
    position: relative; 
    display: flex;
    align-items: center;
    min-height: 80px; /* Высота твоей шапки */
}

.fotka-agenta {
    position: absolute; /* Теперь он привязан к nav-content, а не к окну */
    bottom: -5px;      /* Ноги уходят под срез панели */
    right: 20px;        /* Отступ от правого края контента */
    width: 250px;       /* Ширина блока */
    z-index: -1;        /* За кнопками */
    pointer-events: none;
}

.fotka-agenta img {
    width: 40%;
    height: auto;
    display: block;
    /* Если нужно обрезать снизу (например, если у агента есть ноги, а нам нужен торс) */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
/* Заливка при наведении */
.nav-buttons ul li a:after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #D4AF37;
    border-radius: 3px;
    transform: scale(0);
    opacity: 0;
    transition: .3s;
    z-index: -1;
}

/* Состояние при наведении */
.nav-buttons ul li a:hover {
    color: #1a1a1a;
}

.nav-buttons ul li a:hover:before {
    transform: scaleY(1);
    opacity: 1;
}

.nav-buttons ul li a:hover:after {
    transform: scale(1);
    opacity: 1;
}


.container a {
    display: inline-flex;  /* Чтобы ссылка не растягивалась на всю ширину экрана */
    align-items: center;   /* Центрирует аву и текст по вертикали */
    text-decoration: none;
    color: inherit;
    gap: 10px;
    padding: 10px;
}

.user-info-text {
    display: flex;
    flex-direction: column; /* Заставляет текст внутри этого блока идти сверху вниз */
}

.container .avatar {
    width: 40px;  /* Задай размер, если еще не задал */
    height: 40px;
    border-radius: 50%;
} 
/* Стили для КАРТОЧКИ */

.user-card {
    display: flex;
    align-items: center;
    background: rgba(105, 73, 180, 0.05);
    padding: 12px;
    border-radius: 12px;
    width: 100%; /* На телефоне на всю ширину */
    box-sizing: border-box;
    
    /* ★ Если карточка кажется слишком широкой, можно добавить: */
    /* max-width: 400px; */ 
    /* margin-left: auto; */
    /* margin-right: auto; */
}

/* Фиксируем АВАТАРКУ */
.avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #D4AF37;
    object-fit: cover;
}

.user-name-academy {
    font-weight: bold;
    background: linear-gradient(135deg, 
        #e6b422 0%,    /* Светлое золото */
        #ffd700 30%,   /* Яркое золото */
        #b8860b 70%,   /* Темное золото */
        #e6b422 100%   /* Снова светлое */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Важно для корректного отображения */
}

/* --- СТИЛИ ДЛЯ ПК --- */
@media (min-width: 768px) {
    .articles-container {
        display: grid;
        /* На ПК включаем сетку */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* ★ Если на ПК аватарка кажется маленькой, можно увеличить */
    .avatar {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px;
    }
}


.button-article {
    /* Матовое приглушенное золото */
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #b8860b 100%) !important;
    color: #1a1a1a !important; /* Глубокий темный вместо чисто черного */
    text-decoration: none !important;
    padding: 16px 20px;
    border-radius: 12px; /* Более мягкие углы */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.btn-back-modern {
    /* Твой крутой градиент */
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #b8860b 100%) !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    padding: 12px 24px; /* Чуть уменьшил высоту для компактности */
    border-radius: 12px;
    
    /* ИСПРАВЛЕНИЕ ТУТ: */
    display: inline-flex; /* Чтобы кнопка не растягивалась на всю ширину экрана */
    justify-content: center; /* Текст будет ровно по центру */
    align-items: center;
    gap: 6px; /* Расстояние между стрелочкой и текстом */
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.2s ease-in-out;
    
    /* Чтобы кнопка стояла отдельно */
    margin: 20px 0 0 0; 
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-back-modern:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


.article-title {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-weight: 700; /* Очень жирный, но без капса */
    font-size: 24px;
    text-transform: none; /* Убираем CAPS LOCK */
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ для смайлика */
}

.article-date {
    font-weight: 600;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.07); /* Еле заметная подложка */
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0.8;
}

.button-article:hover {
    transform: translateY(-2px);
    filter: brightness(1.25); /* Чуть-чуть светлее при наведении */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


.footer-logo {
    display: flex;
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center;
    margin-top: 35px; /* Отступ от последней кнопки */
    padding-bottom: 15px; /* Чтобы не прилипало к низу экрана */
}

.footer-logo img {
    width: 180px; /* Оптимальный размер для мобилок */
    height: auto;
    opacity: 0.8; /* Делаем чуть приглушенным, чтобы не отвлекал */
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); /* Мягкое золотое свечение */
    transition: all 0.5s ease;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05); /* Легкое увеличение при наведении */
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

.bot-created {
    display: flex;
    flex-direction: column; /* Текст будет в две строки, если нужно */
    align-items: center;
    text-align: center;
    margin-top: 5px; /* Увеличил отступ от кнопок/логотипа */
    padding: 3px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 215, 0, 0.6); /* Приглушенное золото */
    font-weight: 500;
}

/* Ссылка на твой профиль/поддержку */
.bot-created a {
    color: #796706; /* Яркое золото для ссылки */
    text-decoration: none;
    font-weight: 800;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
    transition: 0.3s;
}

.bot-created a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.bot-created p {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Четкая тень для читаемости */
}


/* Общий контейнер */
.article-detail-container {
    padding: 20px;
    display: flex;
    justify-content: center;
}


.article-card {
    background: rgba(20, 20, 20, 0.95); 
    border: 1px solid rgba(212, 175, 55, 0.3); 
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
    overflow: hidden;
}


/* Шапка с градиентом как на LOLZ, но в золоте */
.card-header {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-title {
    font-size: 28px;
    font-weight: 800;
    color: #D4AF37;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.meta-star {
    color: #FFD700;
    font-weight: bold;
}

/* Текст статьи */
.card-body {
    padding: 0 10px 10px 10px; 
    color: #e0e0e0;
    font-size: 17px;
    line-height: 1.8;
    font-family: 'Segoe UI', sans-serif;
}

.card-body p { margin-bottom: 20px; }

/* Кнопка назад */
.btn-back {
    display: inline-block;
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 25px;
    transition: 0.3s;
}

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


.card-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Описываем саму анимацию */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98); /* Начинаем чуть ниже и чуть меньше */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1); /* Конечная точка */
    }
}

/* Анимация движения */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Сдвигаем на половину длины дублированного контента */
}

/* Применяем анимацию к карточке */
.article-card {
    /* ... твои старые стили (background, border и т.д.) ... */
    
    animation: slideUpFade 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity; /* Оптимизация для плавности */
}

/* Добавим задержку для текста, чтобы он появлялся чуть позже самой карточки */
.card-body {
    animation: slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}


/* Фон для пк */
@media (min-width: 1024px) {
    body {
        /* background-image: url('bgDesktop-standoff.webp');  */
        background-color: linear_gradient(135deg, #000000 0%, #1a1a1a 40%, #d4af37 100%);

    }
}




/* СОЦ СЕТИ ССЫЛКИ */

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Расстояние между иконками */
    margin-top: 5px;
    margin-bottom: 5px;
}

.social-item {
    font-size: 20px; /* Размер иконок */
    color: rgba(212, 175, 55, 0.6); /* Приглушенное золото по умолчанию */
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}

/* Явно прописываем шрифт для иконок брендов
.fa-brands, .fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Убедись, что иконка внутри кружка не имеет нулевого размера 
.social-item i {
    font-size: 24px !important;
    color: #D4AF37 !important; /* Золотой цвет для проверки 
    visibility: visible !important;
} */


/* Эффекты при наведении */
.social-item:hover {
    color: #D4AF37; /* Яркое золото */
    transform: translateY(-5px); /* Подпрыгивание */
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); /* Золотое свечение */
}

/* Индивидуальные цвета при наведении (опционально) */
.social-item.tg:hover { color: #26A5E4; border-color: #26A5E4; box-shadow: 0 0 15px rgba(38, 165, 228, 0.4); }
.social-item.vk:hover { color: #0077FF; border-color: #0077FF; box-shadow: 0 0 15px rgba(0, 119, 255, 0.4); }

/* INDEX HTML Представление главной страницы */


/* Вставь это в свой style.css */

.promo-img { 
    background-image: url('img/promo.webp'); 
}

.articles-img { 
    background-image: url('img/cat.webp'); 
}

.test-img { 
    background-image: url('img/what_new.webp'); 
}

.blog-img { 
    background-image: url('img/noob.webp'); 
}



/* Контейнер для скролла на мобилках */
.photo-viewport {
    width: 100%;
    overflow-x: auto; /* Позволяет листать вправо на телефонах */
    padding: 15px 6px;
    scrollbar-width: none; /* Прячем полосу прокрутки */
}
.photo-viewport::-webkit-scrollbar { display: none; }

.photo-board {
    display: inline-flex; /* Выстраиваем в одну линию */
    justify-content: center;
    min-width: 100%;
    gap: 85px; /* Большое расстояние между фото */
    padding: 10px;
    padding-top: 66px;
}

.photo-card {
    background: rgb(219, 211, 211); /* Чуть «бумажный» белый */
    padding: 12px 12px 40px 13px; /* Увеличили рамки */
    width: 300px; /* Сделали шире */
    height: 270px; /* Сделали выше */
    flex-shrink: 0; /* Чтобы карточки не сжимались в ряду */
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    position: relative;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.photo-card.p-3{
   background: rgb(219, 211, 211); /* Чуть «бумажный» белый */
   height: 310px;
}


/* Углы наклона (сделали чуть заметнее) */
.p-1 { transform: rotate(-6deg); }
.p-2 { transform: rotate(4deg); margin-top: -15px; }
.p-3 { transform: rotate(-2deg); margin-top: 15px; }
.p-4 { transform: rotate(7deg); }

.photo-img {
    width: 100%;
    height: 259px; /* Больше область под фото */
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    border: 1px solid #eee;
}

.photo-img.test-img {
    height: 300px;
}

.photo-caption {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #222;
    text-align: center;
    font-size: 22px; /* Крупный текст */
    font-weight: 800;
    margin-top: 8px;
    letter-spacing: -0.5px;
}

/* Эффект при наведении: фото "вылетает" вперед и выпрямляется */
.photo-card:hover:not(.disabled) {
    transform: scale(1.1) rotate(0deg) translateY(-30px) !important;
    z-index: 100;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    border-color: #D4AF37; /* Золотая кайма при наведении */
}

/* Бейджи */
.badge-hot {
    background: #D4AF37;
    color: #000;
    font-weight: 900;
    padding: 5px 10px;
    position: absolute;
    border-radius: 4px;
    top: -20px; left: -15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.badge-soon {
    background: #444;
    color: #fff;
    padding: 5px 15px;
    position: absolute;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    border: 1px dashed #777;
}

.photo-card.disabled { 
    opacity: 0.7; 
    filter: grayscale(0.5);
}

/* тестовая */

/* 1. Растягиваем страницу на всю высоту экрана */
html, body {
    height: 100%;
    margin: 0;
}

/* 2. Делаем обертку гибким контейнером на всю высоту */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* 3. Контент забирает ВСЁ свободное место, выталкивая футер вниз */
.content {
    flex: 1 0 auto;
}

/* 4. Футер просто стоит внизу и не сжимается */
.footer {
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.2); /* Опционально: легкий фон для отделения */
    padding: 60px 0 100px 0;
    text-align: center;
}

/* Исправляем твою кнопку, чтобы она не ломала лого */
.btn-back-modern {
    display: inline-flex; /* Важно! Чтобы не на весь экран */
    align-items: center;
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #b8860b 100%);
    color: #1a1a1a !important;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px;
}

.promo-container {
    /* Вместо border-left используем border-image */
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #e6b422, #ffd700, #b8860b) 1;
    border-radius: 10px; /* Внимание: border-image иногда ломает скругление! */
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);  
    opacity: 0; /* Изначально скрыт */
    animation: fadeInUp 0.3s ease-in-out forwards; /* forwards оставит элемент видимым после конца анимации */
    animation-delay: 0.05s; /* Небольшая задержка перед стартом */
}

.promo-container span { color: #888; }

.update-info {
    text-align: center;
    margin-bottom: 10px;
}

#current-date {
    color: #2ca3ac;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 700;
}

.update-status {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 204, 113, 0.1); /* Прозрачный зеленый */
    color: #2ecc71; /* Яркий зеленый */
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif !important;
    border: 1px solid rgba(46, 204, 113, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Мигающая точка */
.dot {
    height: 8px;
    width: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.promo-desc {
    color: #c0bebe;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.4;
}

.actual-promocodes {
    margin-bottom: 0;
    color: rgb(163, 207, 42);
    font-style: bold; 
    font-size: larger;

    background: #76c8e8;
    background: linear-gradient(90deg, rgb(123, 183, 238) 25%, rgba(101, 201, 128, 1) 52%, rgba(58, 166, 103, 1) 75%, rgba(167, 211, 106, 1) 88%, rgba(237, 221, 83, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
}


.promo-container h1 {
    display: block; /* Гарантируем, что заголовок занимает всю ширину */
    width: 100%;
    margin: 20px 0; /* Отступы сверху и снизу */
    font-size: 36px;
    text-align: center;
    font-weight: bold;
    
    /* Твой градиент */
    background: linear-gradient(135deg, #e2b83b 0%, #b8b498 30%, #eece7f 70%, #e6dbba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Добавь это, чтобы на мобилках текст не был слишком огромным */
    line-height: 1.2; 
}

/* Контейнер для всего списка */
.promo-list-container {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Легкая золотая рамка */
    border-radius: 12px;
    margin-top: 2px;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Шапка таблицы */
.promo-list-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr; /* Пропорции колонок */
    background: rgba(38, 165, 228, 0.1);
    padding: 15px;
    font-weight: bold;
    color: #26A5E4;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Строка промокода */
.promo-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.promo-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Стили самого кода */
.code-cell code {
    background: #000;
    color: #ffd700;
    margin: 3px;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid rgba(212, 175, 55, 0.5);
    cursor: pointer;
    display: inline-block;
}

.reward-cell {
    color: #fff;
    font-weight: 500;
}

/* Статусы (цвета) */
.status-cell {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-cell.active { color: #2ecc71; }   /* Зеленый */
.status-cell.maybe { color: #f1c40f; }    /* Желтый */
.status-cell.deleted { color: #e74c3c; }  /* Красный */

/* Эффект для горячих кодов */
.promo-row.hot-promo {
    background: rgba(230, 180, 34, 0.05);
}

/* Эффект для удаленных (тусклые) */
.promo-row.expired {
    opacity: 0.5;
    filter: grayscale(0.6);
}



.copy-btn-mini {
    background: transparent;
    border: 1px solid rgba(38, 165, 228, 0.5);
    color: #26A5E4;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-btn-mini:hover {
    background: #26A5E4;
    color: #fff;
}

/* Когда скопировано */
.copy-btn-mini.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}




.how-to-use {
    display: block;      /* Лучше использовать block для центровки */
    text-align: center;
    max-width: 800px;    /* Ограничиваем ширину ВСЕГО блока (например, 500px) */
    margin: 10px auto 0; /* Центрируем блок по горизонтали */
    margin-top: 50px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.438); 
    border-radius: 20px;
    color: #c9e79aee;
    overflow: hidden;
    border: 1px solid #13411f; /* "Матричный" зеленый */
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}
.how-to-use a {
    color:#866407 !important;
}

/* ОБЯЗАТЕЛЬНО добавь это для самой картинки */
.how-to-use img {
    width: 100%;         /* Картинка растянется на всю ширину блока (500px) */
    height: auto;        /* Сохранит пропорции, не будет сплющенной */
    max-height: 500px;   /* Ограничь высоту здесь, если нужно */
    object-fit: contain; /* Чтобы фото вписалось красиво */
    border-radius: 7px; /* Скруглим углы самой фотке */
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.for_users_who {
    font-weight: 800;
    font-size:larger;
}

.how-to-use ol, .how-to-use ul {
    display: inline-block; /* Сжимает контейнер под ширину текста */
    text-align: left;      /* Выравнивает текст и цифры внутри */
    margin: 0 auto;
    padding-left: 25px;    /* Место для цифр */
}


.how-to-use li {
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace; /* Стиль под код */
}

.expired-divider {
    font-weight: bold;
    color: #c91717;
    padding-left: 15px;
    padding-top: 10px;
}


.related-content {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.related-content h3 {
    color: #c9e79a;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-card {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    text-align: center; 
    height: 220px;
    background: url('mtr_new.webp');
    border: 1px solid #00ff4133;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.banner_tg_bot {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
    height: 400px;
    overflow: hidden;
    transition: 0.3s;
}

.banner_tg_bot img {
    border: 2px solid #FFD700; /* Основа рамки */
    border-radius: 8px; /* Небольшое скругление для стиля */
    border-radius: 10px;    
    width: 400px;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),  /* Мягкое облако вокруг */
        0 0 20px rgba(255, 215, 0, 0.3),  /* Широкий ореол */
        inset 0 0 10px rgba(255, 215, 0, 0.4); /* Внутреннее свечение */
}

.button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.so2-button {
    /* Цвета из твоего скриншота */
    background: linear-gradient(to bottom, #7a94b4, #6b82a2);
    border: none;
    outline: none;
    
    /* Шрифт: узкий и высокий (в игре это обычно Roboto Condensed) */
    color: #ffffff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Размеры и отступы */
    padding: 10px 60px;
    cursor: pointer;
    
    /* Эффект наведения как в игре */
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); /* Легкий блик сверху */
    animation: buttonBreath 2s infinite ease-in-out 3s;
    z-index: 4;
}

.so2-button:hover {
    background: linear-gradient(to bottom, #8ba8cc, #7a94b4); /* Становится светлее */
    filter: brightness(1.1);
    animation: none; /* Останавливаем пульсацию при клике */
}

.so2-button:active {
    transform: scale(0.98); /* Микро-нажатие */
    filter: brightness(0.9);
    animation: none; /* Останавливаем пульсацию при клике */
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.2);
}

.related-card img {
    width: 210px;           /* Жесткий размер рамки */
    height: 210px;    /* Жесткий размер рамки */
    border-radius: 5px;
    object-position: center;    
    /* МАГИЯ МАСШТАБА */
    object-fit: cover;      /* Чтобы не было пустых полей */
    transform: scale(1.0);  /* 1.0 — обычный размер, 1.2 — увеличит, 0.8 — уменьшит */
    transition: 0.3s;
    margin: 0 auto; 
    display: block;      /* Чтобы масштаб менялся плавно */
}



.related-card  {
    display: block;
    padding: 10px;
    color: #960000;
    font-size: 14px;
    font-weight: bold;
    text-align: center; /* Текст по центру */
    
}


.hmm-person img {
    width: 400px;
    height: 400px;
    translate: -149px 0;
    rotate: 35deg;
    animation: LeftSider 1s ease-in forwards 4s;
    opacity: 0;
}

.container-test h1 {
    background: linear-gradient(#ffffff88, #accf7d, #8d7844);
    font-weight: bold;
    text-align: center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    object-position: center; /* Важно для корректного отображения */
    animation: UpdownText 0.4s ease-in-out forwards 0.4s;
    opacity: 0;
}


/* Анимация бургера в крестик */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-toggle .bar {
    transition: all 0.3s ease;
}



/* Планшет */

@media (max-width: 1368px) {
    .nav-buttons {
        margin-left: 20px; /* Уменьшаем отступ на планшетах */
        gap: 15px;         /* Сужаем расстояние между кнопками */
    }
    .fotka-agenta {
        display: none;
    }
}

/* Если зашли с телефона */


/* В САМЫЙ НИЗ ФАЙЛА */
@media screen and (max-width: 768px) {
    .promo-desc {
            display: block;
            text-align: left;
            margin: 10px 0;
    }
     .container {
        position: sticky;
        top: 0;         
        z-index: 500;
    display: flex;
    align-items: center;
    height: 70px;
    margin-bottom: 0;
    }
    
    .new-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        margin-left: auto;
        margin-right: 15px;    /* ← Отступ от правого края */
        padding: 8px;          /* ← Увеличивает зону касания */
    }
    
    .bar {
        width: 35px;
        height: 3px;
        background-color: #D4AF37;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* Анимация бургера в крестик */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Навигационное меню */
    .nav-buttons {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 20px 0;
        margin: 0;
    }
    
    .nav-buttons {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    .nav-buttons.active {
        display: block !important;
        animation: Slowshow 0.25s ease forwards;
    }

/* Анимация закрытия */
    .nav-buttons.closing {
        animation: Slowhide 0.2s ease forwards;
    }
    
    .nav-buttons ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
        margin: 0;
    }
    
    .nav-buttons ul li {
        width: 100%;
        text-align: center;
    }
    
    .nav-buttons ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 18px;
        color: #D4AF37;
        text-decoration: none;
    }
    
    /* Скрываем агента на мобилках */
    .fotka-agenta {
        display: none;
    }
    
    /* Стили для логотипа */
    .logo-section {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .user-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }

    /* Скролл новостей пальцем */
    .blog-content {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes flyFromLeft {
    0% { transform: translateX(-200px); opacity: 0; }
    100% { transform: translateX(-80px) translateY(100px) rotate(20deg); opacity: 0.65; }
}


@keyframes Slowshow {
    0% {
        opacity: 0;
        transform: translateY(-20px); /* Сдвиг сверху для плавности */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes Slowhide {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Анимация вылета справа */
@keyframes flyFromRight {
    0% { transform: translateX(200px) rotate(30deg); opacity: 0; }
    100% { transform: translateX(-30px) translateY(460px); opacity: 0.65;}
}
    .gold-coin {
        width: 90px;
    }
    .photo-card {
        margin-top: 10px;
    }
    .photo-board {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; 
    grid-template-columns: none !important; /* Отключаем grid */
    gap: 80px !important;
    margin-top: 30px;
    padding: 0;
    }
    .hmm-person img {
    width: 200px;
    height: 200px;
    transform: translateY(-100px);
    animation: LeftSider_phone 1s ease-in forwards 4s;
    opacity: 0;
}
    .banner_tg_bot {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; 
    height: 180px;
    overflow: hidden;
    transition: 0.3s;
}

.banner_tg_bot img {
    border: 2px solid #FFD700; /* Основа рамки */
    border-radius: 8px; /* Небольшое скругление для стиля */
    border-radius: 10px;    
    width: 200px;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),  /* Мягкое облако вокруг */
        0 0 20px rgba(255, 215, 0, 0.3),  /* Широкий ореол */
        inset 0 0 10px rgba(255, 215, 0, 0.4); /* Внутреннее свечение */
}
.nav-buttons {
        margin-left: 0; /* Убираем отступ совсем */
        margin-top: 15px;
    }
}

.message-pop {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    opacity: 0;
    animation: sideleft 1s 5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.related-grid a {
    color: whitesmoke;        /* Берет цвет у родителя (белый) */
    text-decoration: none;   /* Убирает подчеркивание */
    display: inline-block;  /* Чтобы ссылка занимала всю область кнопки */
}

.related-grid span {
    color: #ffffff; /* Чистый белый */
    font-weight: 900; /* Максимально жирный */
    
    /* Делаем строгую черную обводку со всех сторон */
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         3px  3px 0 #000; /* Небольшое смещение для объема */
}



.button-wrapper a {
    color: inherit;         /* Берет цвет у родителя (белый) */
    text-decoration: none;   /* Убирает подчеркивание */
    display: inline-block;  /* Чтобы ссылка занимала всю область кнопки */
    width: 100%;
    height: 100%;
}



.system-tag {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.8rem;
}


/* Адаптив для телефонов */
@media screen and (max-width: 600px) {
    .promo-list-header {
        display: none; /* Скрываем заголовки на мобилках */
    }
    
    .promo-row {
        grid-template-columns: 1fr 1fr; /* В две колонки */
        gap: 10px;
        padding: 20px 15px;
    }

    .status-cell {
        grid-column: span 2; /* Статус на всю ширину под кодом */
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 10px;
        margin-top: 5px;
    }
    .message-pop {
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
    opacity: 0;
    animation: sideleft_phone 1s 5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
}

@keyframes UpdownText {
    from {
        opacity: 0;
        transform: translateY(-100px);

    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes LeftSider {
    from {
        opacity: 0;
        translate: -300px;
    }
    to {
        opacity: 1;
        translate: -150px;
    }
}

@keyframes LeftSider_phone {
    from {
        opacity: 0;
        /* Сначала двигаем по глобальным осям, ПОТОМ крутим */
        /* Допустим, -70px по X и -100px (выше) по Y */
        transform: translate(-70px, -100px);
    }
    to {
        opacity: 1;
        /* Конечная точка: -70px по X и, например, 50px ниже по Y */
        transform: translate(70px, -40px);
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateZ(100px) translateY(20px); /* Начинаем чуть ниже */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Встаем на место */
    }
}

@keyframes buttonBreath {
    0% {
        transform: scale(1); /* Обычный размер */
    }
    50% {
        transform: scale(1.05); /* Чуть-чуть увеличилась (на 5%) */
    }
    100% {
        transform: scale(1); /* Вернулась назад */
    }
}

@keyframes sideleft {
    from {
        opacity: 0;
        transform: translateY(-340px) translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(140px) translateY(-340px);
    }
}

@keyframes sideleft_phone {
    from {
        opacity: 0;
        transform: translateY(-140px) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(80px) translateY(-180px);
    }
}


.layout {
    display: flex;
    gap: 30px;
    margin: 0 auto;
    max-width: 1100px;
    align-items: flex-start;
}

.news-detail {
    flex: 0 0 70%;
}

.sidebar {
    flex: 0 0 30%;
    position: sticky;
    top: 110px;
}
.sidebar h3 {
    text-align: center; 
}

.news-detail-image {
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* .current-news-content img {
    display: block;
    height: auto;
    border-radius: 7px;
    max-width: 800px;
    margin: 10px auto;
    overflow: hidden;
} */


.current-news-content figure.image {
    margin: 10px auto;
    text-align: center;
    max-width: 800px;
    float: none;
}

.current-news-content figure.image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 7px;
    margin: 0 auto;
}

.current-news-content figure.image.image-style-align-right,
.current-news-content figure.image.image-style-align-left {
    margin: 10px auto;
    float: none;
}




.news-detail h1 {
    margin: 20px 0 10px 0;
    text-align: center;
}
.news-meta {
    margin: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}


.views {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.glaz {
    display: inline-flex;
    object-position: right;
}
.current-news-content {
    text-align: left;
}

/* .tags {
    display: inline-flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    font-weight: 400;
} */


.news-meta span a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #9fa39a;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.news-meta span a:hover {
    background: #c9dfbf;
    color: #000;
    scale: calc(1.1);
}

.sidebar {
    padding: 10px;
    border-radius: 10px;
    background: #ec707065;
    opacity: 0;
    animation: forwards 1s 2s slidedown;
}

.popular-news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-news-item {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e5e5e5;
}

.popular-news-item:last-child {
    border-bottom: none;
}

.popular-news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.popular-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #8d8989;
}

.popular-news-category {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-news-views {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.current-news-content a {
    color:#27ae60;
    font-weight: 500;
    text-decoration: none !important;
}


/* ===== СТРАНИЦА НОВОСТЕЙ (стили под тёмную тему + золото) ===== */
/* ===== СТРАНИЦА НОВОСТЕЙ (минимальные фиксы) ===== */

.news-page {
    padding: 20px 0 40px;
}

.news-page-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

.page-title {
    color: #D4AF37;
    font-size: 32px;
    text-align: center;
    margin-bottom: 15px;
}

.page-subtitle {
    color: rgba(255,255,255,0.7);
    text-align: center;
    margin-bottom: 30px;
}

/* Главная новость */
.featured-news {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
}

.featured-news-image {
    flex: 1;
    min-width: 250px;
    display: block;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.featured-news-content {
    flex: 1;
    padding: 25px;
}
.featured-news-content a {
    text-decoration: none !important;
    color:#3dbb5d;

}

.news-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}

.featured-news-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.featured-news-title a {
    color: #D4AF37;
    text-decoration: none;
    display: inline;
    padding: 0;
}

.featured-news-title a:hover {
    text-decoration: underline;
}

.featured-news-excerpt {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 15px;
}

.featured-news-meta {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    display: flex;
    gap: 10px;
}

/* Сетка */
.news-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-list {
    flex: 2;
    min-width: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Карточка новости */
.news-card {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.5);
}

.news-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-image {
    display: block;
}

.news-card-content {
    padding: 15px;
}
.news-card-content a{
    text-decoration: none;
    color: whitesmoke;
}

.news-card-meta {
    color: #D4AF37;
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.news-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-card-title a {
    color: white;
    text-decoration: none;
    display: inline;
    padding: 0;
}

.news-card-title a:hover {
    color: #D4AF37;
}

.news-card-excerpt {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card-bottom {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

/* Боковая панель */
.news-sidebar {
    flex: 1;
    min-width: 220px;
    align-self: flex-start;
}

.sidebar-widget {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 20px;
}

.sidebar-widget h3 {
    color: #D4AF37;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tag {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 6px 14px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.tag-count {
    opacity: 0.8;
    font-size: 11px;
    margin-left: 4px;
}

.tag.active-tag {
    background: #D4AF37;
    color: #1a1a1a;
    font-weight: 700;
}

.tag:hover {
    background: #D4AF37;
    color: #1a1a1a;
}

/* Адаптив */
@media (max-width: 768px) {
    .featured-news {
        flex-direction: column;
    }
    
    .news-layout {
        flex-direction: column;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 26px;
    }
}



@media screen and (max-width: 768px) {
    .views {
    margin-left: auto; /* 👈 магия */
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

    .tags-separator {
        display: none;
    }
    .news-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
    }
    .tags {
        display: block;
        width: 100%;
        margin-top: 1px;
    }

    .tags a {
        display: inline-block;
        margin-top: 2px;
    }
    .sidebar {
        flex: none;
        width: 85%;
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
    .layout {
        flex-direction: column;
        gap: 10px;
        padding: 0 16px;
    }
    .news-detail {
    flex: 0 0 100%;
    margin: auto;
}

}

@keyframes slidedown {
    from {
        opacity: 0;
        transform: translateY(-100px);

    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
