: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: #f0f2f5;
  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;
}

/* Блок с размером и скачиванием — исправляем схлопывание */
.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: #ecd92be8;
  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: 81px;
  height: 33px;
  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%;
}