/* =========================
   АРХИВ НОВОСТЕЙ — ЧИСТЫЙ СТИЛЬ
   ========================= */

/* ===== Заголовок страницы ===== */
h1,
.post h1 {
  font-size: 2em;
  margin: 0 0 24px;
  padding: 16px 22px;
  text-align: center;
  color: #2f5fa7;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(67, 109, 159, 0.08);
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

h1::before,
.post h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #5aa3ea 0%, #2f78d0 100%);
}

h1::after,
.post h1::after {
  content: "";
  position: absolute;
  inset: auto 22px 0 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,163,234,0.45), transparent);
}

/* ===== Табличная раскладка ===== */
.ArxiwMap,
.ArxiwDetail {
  vertical-align: top;
}

/* ===== Левая колонка архива ===== */
.ArxiwMap {
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 18px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ArxiwMap .mytree > div {
  margin-bottom: 12px;
}

/* строка года */
.ArxiwMap .mytree > div > div:first-child {
  font-size: 1.12em;
  font-weight: 700;
  color: #2f5fa7;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .25s ease, transform .2s ease;
}

.ArxiwMap .mytree > div > div:first-child:hover {
  background: #edf5fd;
  transform: translateX(2px);
}

/* иконка плюс/минус */
.ArxiwMap .mytree img {
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.9;
}

/* месяцы */
.ArxiwMap .mytree a,
.ArxiwMap .mytree b {
  display: block;
  position: relative;
  margin: 3px 0 3px 10px;
  padding: 9px 12px 9px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.98em;
  line-height: 1.25;
  transition: background .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}

/* декоративная точка */
.ArxiwMap .mytree a::before,
.ArxiwMap .mytree b::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #8db7e8;
}

.ArxiwMap .mytree a {
  color: #41546f;
}

.ArxiwMap .mytree a:hover {
  background: #eaf3fd;
  color: #2f5fa7;
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(67, 109, 159, 0.08);
}

.ArxiwMap .mytree b {
  background: linear-gradient(90deg, #eaf3ff 0%, #dcecff 100%);
  color: #2f5fa7;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(95, 160, 234, 0.18);
}

.ArxiwMap .mytree b::before {
  background: #2f78d0;
}

/* ===== Правая колонка ===== */
.ArxiwDetail {
  padding-left: 20px !important;
}

/* ===== Карточка новости ===== */
.news.excerpt {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dde7f1;
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow:
    0 6px 18px rgba(66, 105, 155, 0.07),
    0 1px 0 rgba(255,255,255,0.85) inset;
  transition:
    transform .22s ease,
    box-shadow .25s ease,
    border-color .25s ease;
  position: relative;
  overflow: hidden;
}

.news.excerpt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #69acef 0%, #3d86db 100%);
  opacity: 0.9;
}

.news.excerpt:hover {
  transform: translateY(-3px);
  border-color: #cddded;
  box-shadow:
    0 12px 28px rgba(66, 105, 155, 0.12),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ===== Превью ===== */
.news.excerpt_preview {
  flex: 0 0 150px;
}

.news.excerpt_preview a {
  display: block;
}

.news.excerpt_preview img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(59, 93, 138, 0.1);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news.excerpt:hover .news.excerpt_preview img {
  transform: scale(1.03);
  box-shadow: 0 10px 22px rgba(59, 93, 138, 0.16);
}

/* ===== Контент ===== */
.news.excerpt_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news.excerpt_content .date {
  display: inline-block;
  margin-bottom: 8px;
  color: #7f93ad;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.news.excerpt_content h3 {
  margin: 0 0 14px;
  color: #2f5fa7;
  font-size: 1.22em;
  line-height: 1.32;
  font-weight: 700;
  text-transform: none;
}

.news.excerpt_content h3 a {
  color: inherit;
  text-decoration: none;
}

.news.excerpt_content h3 a:hover {
  text-decoration: underline;
}

/* если появится текст анонса */
.news.excerpt_text {
  margin: 0 0 12px;
  color: #5c6f86;
  line-height: 1.55;
}

/* ===== Кнопка ===== */
.news.excerpt_content .read_more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6eb0f0 0%, #4b93e2 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.94em;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(75, 147, 226, 0.22);
  transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
}

.news.excerpt_content .read_more::after {
  content: "→";
  font-size: 1em;
  line-height: 1;
}

.news.excerpt_content .read_more:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(75, 147, 226, 0.28);
  filter: brightness(1.02);
}

/* ===== Адаптация ===== */
@media (max-width: 1100px) {
  .news.excerpt {
    gap: 18px;
    padding: 16px 18px;
  }

  .news.excerpt_preview {
    flex-basis: 130px;
  }

  .news.excerpt_preview img {
    width: 130px;
  }
}

@media (max-width: 900px) {
  .ArxiwDetail {
    padding-left: 12px !important;
  }

  .news.excerpt {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .news.excerpt::before {
    left: 18px;
    right: 18px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 4px;
  }

  .news.excerpt_preview {
    flex: none;
  }

  .news.excerpt_preview img {
    width: 100%;
    max-width: 240px;
  }
}