/* =========================================
   TABS_1991 — ГОТОВЫЙ СТИЛЬ
   ========================================= */

/* контейнер */
#Tabs_1991.ajax__tab_container,
.ajax__tab_container.ajax__tab_default {
  margin: 0;
  padding: 0;
}

/* шапка вкладок */
#Tabs_1991_header,
.ajax__tab_header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 0 0 10px;
  margin: 0 0 12px;
  border-bottom: 1px solid #cfe0f0;
  background: transparent;
}

/* убираем системные фоны и "ушки" */
#Tabs_1991_header > span,
#Tabs_1991_header .ajax__tab_outer,
#Tabs_1991_header .ajax__tab_inner,
.ajax__tab_header > span,
.ajax__tab_header .ajax__tab_outer,
.ajax__tab_header .ajax__tab_inner {
  display: block;
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* вкладка */
#Tabs_1991_header .ajax__tab_tab,
.ajax__tab_header .ajax__tab_tab {
  display: block;
  padding: 12px 20px !important;
  line-height: 1.2;
  font-size: 15px;
  font-weight: 600;
  color: #2f5fa7 !important;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #e8f1fa 100%);
  border: 1px solid #cdddec !important;
  border-radius: 14px 14px 0 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 2px 6px rgba(72, 108, 153, 0.05);
  transition:
    background .22s ease,
    color .22s ease,
    transform .18s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

#Tabs_1991_header .ajax__tab_tab:hover,
.ajax__tab_header .ajax__tab_tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #edf5fc 100%);
  color: #1f4d90 !important;
  border-color: #bdd2e6 !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 6px 14px rgba(72, 108, 153, 0.08);
}

/* активная вкладка */
#Tabs_1991_header .ajax__tab_active .ajax__tab_tab,
.ajax__tab_header .ajax__tab_active .ajax__tab_tab {
  color: #fff !important;
  background: linear-gradient(180deg, #5aa4ee 0%, #2f78d0 100%);
  border-color: #2f78d0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 8px 18px rgba(47, 120, 208, 0.22);
  z-index: 2;
}

#Tabs_1991_header .ajax__tab_active .ajax__tab_tab::before,
.ajax__tab_header .ajax__tab_active .ajax__tab_tab::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

#Tabs_1991_header .ajax__tab_active .ajax__tab_tab::after,
.ajax__tab_header .ajax__tab_active .ajax__tab_tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2f78d0;
}

/* тело вкладок */
#Tabs_1991_body,
.ajax__tab_body {
  background: #f7fbff;
  border: 1px solid #d9e6f2;
  border-radius: 0 18px 18px 18px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.ajax__tab_panel {
  background: transparent;
}

/* заголовок внутри */
.ajax__tab_panel h1,
#Tabs_1991_body h1 {
  margin: 0 0 18px;
  padding: 14px 20px;
  font-size: 1.8em;
  font-weight: 700;
  color: #2f5fa7;
  text-align: right;
  background: linear-gradient(180deg, #f9fcff 0%, #edf4fb 100%);
  border: 1px solid #d7e3ef;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

/* =========================================
   RSS-НОВОСТИ КАК КАРТОЧКИ
   ========================================= */

ul.rss,
ul.rss.republic {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.rss li,
ul.rss.republic li {
  margin: 0 0 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(66, 105, 155, 0.05);
  transition: all .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
}

ul.rss li::before,
ul.rss.republic li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6fb2f1, #3c87dc);
}

ul.rss li:hover,
ul.rss.republic li:hover {
  transform: translateY(-2px);
  border-color: #cddfed;
  box-shadow: 0 10px 24px rgba(66, 105, 155, 0.1);
}

ul.rss .date,
ul.rss.republic .date {
  display: inline-block;
  margin-bottom: 8px;
  color: #7e93ae;
  font-size: 0.92em;
  font-weight: 600;
}

ul.rss .title,
ul.rss.republic .title {
  display: block;
  margin: 0 0 10px;
  color: #2f5fa7;
  font-size: 1.12em;
  line-height: 1.35;
  font-weight: 700;
}

ul.rss .content,
ul.rss.republic .content {
  margin: 0 0 14px;
  color: #4f627a;
  font-size: 0.98em;
  line-height: 1.6;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  transition: max-height .35s ease;
}

ul.rss .content::after,
ul.rss.republic .content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  transition: opacity .25s ease;
  pointer-events: none;
}

ul.rss .content img,
ul.rss.republic .content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 10px 0;
}

ul.rss .read_more,
ul.rss.republic .read_more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #6eb0f0 0%, #4b93e2 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.93em;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(75, 147, 226, 0.18);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  z-index: 5;
}

ul.rss .read_more:hover,
ul.rss.republic .read_more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(75, 147, 226, 0.24);
  background: linear-gradient(180deg, #63a8ec 0%, #4189db 100%);
}

ul.rss li hr,
ul.rss.republic li hr {
  display: none;
}

/* раскрытое состояние */
ul.rss li.expanded .content,
ul.rss.republic li.expanded .content {
  max-height: 3000px;
}

ul.rss li.expanded .content::after,
ul.rss.republic li.expanded .content::after {
  opacity: 0;
}

ul.rss li.expanded,
ul.rss.republic li.expanded {
  box-shadow: 0 10px 24px rgba(66, 105, 155, 0.12);
  border-color: #bfd6ea;
}

/* подсказка */
ul.rss li .toggle_hint,
ul.rss.republic li .toggle_hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #7e93ae;
  user-select: none;
}

ul.rss li.expanded .toggle_hint,
ul.rss.republic li.expanded .toggle_hint {
  color: #2f5fa7;
}

/* =========================================
   АДАПТАЦИЯ
   ========================================= */

@media (max-width: 900px) {
  #Tabs_1991_header,
  .ajax__tab_header {
    gap: 6px;
    padding-bottom: 8px;
  }

  #Tabs_1991_header .ajax__tab_tab,
  .ajax__tab_header .ajax__tab_tab {
    padding: 10px 14px !important;
    font-size: 14px;
    border-radius: 12px 12px 0 0 !important;
  }

  #Tabs_1991_body,
  .ajax__tab_body {
    padding: 14px;
    border-radius: 0 14px 14px 14px;
  }

  .ajax__tab_panel h1,
  #Tabs_1991_body h1 {
    font-size: 1.5em;
    text-align: center;
    padding: 12px 14px;
  }

  ul.rss li,
  ul.rss.republic li {
    padding: 16px;
    border-radius: 14px;
  }

  ul.rss .title,
  ul.rss.republic .title {
    font-size: 1.02em;
  }
}



/* ЖЁСТКО ЦЕНТРУЕМ ЗАГОЛОВКИ ВНУТРИ ВКЛАДОК */
#Tabs_1991 .ajax__tab_panel h1,
#Tabs_1991_body .ajax__tab_panel h1,
#Tabs_1991_body h1 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 14px 20px !important;

  text-align: center !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;

  font-size: 1.8em !important;
  font-weight: 700 !important;
  color: #2f5fa7 !important;

  background: linear-gradient(180deg, #f9fcff 0%, #edf4fb 100%) !important;
  border: 1px solid #d7e3ef !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95) !important;
}


