:root {
  --primary-blue: #002366;
  --white: #ffffff;
  --gray: #f4f4f4;
  --text-color: #333;
  --btn-hover: #384e75;
  --btn-activ: #8d8c8c;
  --warning: #f80b0bea;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-text-color: #ffffff;
  --default-glow: #00d2ff;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #e0e4e5;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- HEADER --- */
.header {
  height: 80px;
  background: #222;
  color: white;
  display: flex;
  align-items: center;
}
.header a {
text-decoration: none;
}
.header__container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 24px;
}
.logo__super {
  color: white;
}
.logo__plan {
  color: #3498db;
} /* Тёмно-синий/голубой акцент */

.nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item {
  width: 140px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
  line-height: 80px;
}

/* Цвета при наведении */
.nav__item.air:hover {
  background: #87ceeb;
}
.nav__item.earth:hover {
  background: #8b4513;
}
.nav__item.water:hover {
  background: #0000ff;
}
.nav__item.stand:hover {
  background: #2bb141;
}
.nav__item.tools:hover {
  background: #708090;
}

#burger-check {
  display: none;
}

/* --- КАРТОЧКА НОВОСТИ --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  align-items: stretch;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  height: 100%;
  flex-direction: column;
  margin: 0;
}
.card a {
	text-decoration: none;
}
.card:hover {
  transform: translateY(-5px);
}

.card__img-wrap {
  position: relative;
}
.card__img {
  width: 100%;
  height: auto;
  display: block;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  border: 1px solid #000;
}

.card__content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card__text {
  flex-grow: 1;
  text-align: justify;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
}

.card__divider {
  width: 100%;
  border: 0;
  border-top: 1px solid #b3a8a8;
  margin: 15px 0;
  padding: 0;
}

.card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 0 auto;
  padding: 10px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-aline: center;
}
.card__btn:hover {
  background: var(--btn-hover);
}
.card__btn:active {
  box-shadow:
    inset -2px -2px 3px rgba(255, 255, 255, 0.801),
    inset 2px 2px 3px rgb(0 0 0 / 0.6);
  color: var(--btn-activ);
}

/* --- ПОЛНАЯ НОВОСТЬ --- */
.full-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  margin-bottom: 50px;
}

.rounded-img,
.video-container {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.post-right .sticky-sidebar {
  position: sticky;
  top: 20px;
}

.materials-table {
  background-color: var(--white);
  border-radius: 15px;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.materials-table tr:nth-child(even) {
  background: #c9c8c8a4;
}
.materials-table td {
  padding: 10px;
}

.status-ready {
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  color: #129612;
}
.download-btn {
  width: 80%;
  height: 3em;
  border-radius: 8px;
  text-transform: uppercase;
}
.download-btn:hover {
  background-color: #33333338;
}

/*--- Аттач-блок ---*/
.attachment-container {
    display: flex;         /* Включаем flex для управления вложенными элементами */
    flex-direction: column; /* Выстраиваем их вертикально */
    width: 100%;
    margin: 30px 0;        /* Увеличили отступ для визуального разделения */
    clear: both;           /* Запрещаем наплывание любых плавающих элементов */
    position: relative;    /* Фиксируем в потоке документов */
}

/* Кнопка — теперь она растягивается по родителю и имеет четкие отступы */
.download-btn-main {
    display: block;
    text-align: center;
    background: #ccc;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 12px;         /* Чуть больше отступ для удобства */
    text-decoration: none;
    color: #0000ff !important; /* Принудительно синий цвет как на макете */
    font-weight: bold;
    margin-bottom: 15px;
    box-sizing: border-box;
}
.download-btn-main:hover {
	background: #999999
}

/* Блок с размером и скачиванием — исправляем схлопывание */
.file-meta-data {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.meta-item {
    flex: 1; 
    text-align: center;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 5px;      /* Увеличили вертикальный отступ */
    background: #fdfdfd;
    white-space: nowrap;
}





.file-info {
  margin-top: 15px;
}

.size_file,
.dl_file {
  padding: 5px 25px;
  border-radius: 5px;
  border: 1px solid #333;
}
.dl_file {
  margin-left: 20px;
}

.master-tip {
  background: #F6EB87;
  padding: 15px;
  border-radius: 10px;
  border-left: 20px solid var(--warning);
  margin-top: 50px;
}

.master-tip h4 {
  text-transform: uppercase;
}

/* --- ПОДВАЛ --- */
.footer {
  background: #222;
  color: white;
  padding: 40px 0;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.footer__col {
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.vintage-link {
  color: var(--white);
  text-decoration: none;
  transition: 0.5s;
}

.vintage-link:hover {
  text-shadow:
    0 0 10px rgba(255, 250, 205, 0.8),
    0 0 20px rgba(255, 255, 0, 0.651);
}

.informers {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.informer {
  width: 88px;
  height: 31px;
  background: #444;
  font-size: 10px;
  line-height: 33px;
}

/* --- АДАПТИВНОСТЬ --- */

/* Планшет */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .full-post {
    grid-template-columns: 1fr;
  }
  .post-right .sticky-sidebar {
    position: static;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col-2 {
    grid-column: span 2;
    order: 2;
    margin-top: 20px;
  }
}

/* Смартфон */
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #333;
  }

  #burger-check:checked ~ .nav__list {
    display: flex;
  }
  .burger-btn {
    display: block;
    cursor: pointer;
    padding: 10px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer__col-2 {
    grid-column: 1;
  }
  .informers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: fit-content;
    margin: 0 auto;
  }
}









/*--- catmenu ---*/
.glass-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.glass-item {
    position: relative;
    width: 150px;
    height: 30px;
    text-decoration: none;
    color: var(--glass-text-color);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px); /* Эффект матового стекла */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.glass-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.glass-name {
    font-weight: 600;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Эффект свечения при наведении */
.glass-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px var(--hover-color, var(--default-glow));
}

/* Активное состояние */
.glass-item.active {
    border-color: var(--hover-color, var(--default-glow));
    background: rgba(255, 255, 255, 0.2);
    color: var(--hover-color);
}

/* Индивидуальные цвета для разных плиток (по ID категории) */
.item-1 { --hover-color: #87CEEB; } /* Воздух */
.item-2 { --hover-color: #228B22; } /* Земля */
.item-3 { --hover-color: #006994; } /* Вода */
.item-4 { --hover-color: #F4E3AD; } /* Стенд */
.item-5 { --hover-color: #E5E4E2; } /* Инструменты */

/* Блик внутри плитки */
.glass-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.glass-item:hover::before {
    left: 100%;
}


													/*--- Карточка профиля пользователя ---*/
/* 1. ПРЯЧЕМ СИСТЕМНЫЕ ЭЛЕМЕНТЫ DLE */
/* Скрываем верхнюю строку (Пользователь: ... Close) */
#dleprofilepopup ~ div, 
.ui-dialog-titlebar,
.ui-dialog-content > b,
.ui-dialog-content > div:not(.dle-profile-card) {
    display: none !important;
}

/* Прячем стандартные ссылки внизу (Просмотр профиля, ЛС и т.д.) */
.ui-dialog-content > a, 
.ui-dialog-content > br {
    display: none !important;
}

/* 2. ОФОРМЛЕНИЕ КАРТОЧКИ */
.dle-profile-card {
    padding: 20px;
    background: #fff;
    color: #333;
    border: 1px solid #000;
    line-height: 1.4;
    font-family: sans-serif;
}

.card-main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.card-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-info {
    flex: 1;
}

.card-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.card-fullname {
    color: #777;
    font-size: 14px;
    margin-bottom: 12px;
}

.card-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-stats li {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 2px;
}

.status-val.is-online {
    color: #2ecc71;
    font-weight: bold;
}

.card-footer {
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.c-btn {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
}

.c-btn-blue { background: #3498db; color: #fff !important; }
.c-btn-green { background: #2ecc71; color: #fff !important; }
.c-btn-gray { background: #7f8c8d; color: #fff !important; }

.c-btn:hover { 
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Убираем лишние отступы у самого окна DLE */
.ui-dialog {
    padding: 0 !important;
    overflow: hidden;
    border: none !important;
    border-radius: 12px !important;
}
.ui-widget-content {
    border: none !important;
}


																/*--- Карточка автора ---*/

/* Контейнер карточки */
.user-profile-card {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Хедер: Аватар и Имя */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.last-activity {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #777;
}

/* Статус-точка */
.status-dot {width: 12px; height: 12px; border-radius: 50%; display: inline-block;}
.online { background-color: #2ecc71; box-shadow: 0 0 5px #2ecc71;}
.offline { background-color: #e74c3c;}

/* Тело профиля */
.info-row {display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem;}

.label { color: #666; }
.value { font-weight: 600; }
.rating-value { color: #f39c12; }
.profile-bio {margin-top: 20px; padding: 15px; background: #f9f9f9; border-radius: 8px;}

.profile-bio h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #444;
}

.bio-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Кнопки */
.profile-footer {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: 0.3s;
}

.btn-pm {
    background: #3498db;
    color: white;
}

.btn-pm:hover {
    background: #2980b9;
}

.btn-close {
    background: #f0f0f0;
    color: #333;
}

.btn-close:hover {
    background: #e0e0e0;
}
/* Оформляем ссылку внутри тега {pm} */
.btn-pm-wrapper a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    background: #3498db;
    color: white !important;
    transition: 0.3s;
}

.btn-pm-wrapper a:hover {
    background: #2980b9;
}
																/*--- Навигация ---*/
/* Контейнер-обертка: принудительно на всю ширину и по центру */
.navigation-list-glass-final {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    clear: both !important;
}

/* Флекс-ряд: запрещаем перенос на ПК */
.nav-list-flex-row {
    display: inline-flex !important;
    flex-wrap: nowrap !important; /* В одну линию! */
    justify-content: center !important;
    align-items: center !important;
    gap: 10px;
}

/* Стили кнопок и цифр */
.list-glass-btn, 
.list-glass-pages a, 
.list-glass-pages span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    text-decoration: none !important;
    
    /* Контраст: Черный текст и жирный шрифт */
    color: #000000 !important; 
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase; /* Для большей строгости */
    
    /* Стекло: Чуть более плотное голубое */
    background: rgba(135, 206, 250, 0.45) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px;
    transition: 0.3s;
}

/* Для цифр делаем фиксированную ширину */
.list-glass-pages {
    display: flex !important;
    gap: 6px;
}

.list-glass-pages a, 
.list-glass-pages span {
    padding: 0 !important;
    width: 44px !important;
}

/* Активная страница: Темно-голубая */
.list-glass-pages span {
    background: rgba(0, 120, 255, 0.6) !important;
    color: #fff !important;
    border-color: #0078ff !important;
}

/* Ховер: Подсветка */
.list-glass-btn:hover, 
.list-glass-pages a:hover {
    background: rgba(135, 206, 250, 0.8) !important;
    transform: scale(1.05);
}

/* Адаптив под мобилки */
@media (max-width: 600px) {
    .nav-list-flex-row {
        gap: 5px;
    }
    .list-glass-btn {
        padding: 0 10px !important;
        font-size: 0 !important; /* Прячем текст "Назад/Вперёд" */
    }
    /* Добавляем стрелочки вместо текста на мобилках */
    .list-glass-btn::before { font-size: 20px !important; }
    [prev-link] .list-glass-btn::before { content: "«"; color: #000; }
    [next-link] .list-glass-btn::before { content: "»"; color: #000; }
}