/* 03. НОВОСТИ. Большая карточка и четыре малые; на телефоне — 1 + 2 + 2 */

#kru-news {
  background: #fff;
}

/* Компактная строка вкладок: обычное начертание, подписи рядом слева.
   На телефоне дополнительные ссылки переходят на следующую строку. */

#kru-news .news__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 0;
}

#kru-news .news__header-tabs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  margin: 0;
  background: none;
}

#kru-news .news__header-tab {
  position: relative;
  flex: none;
  margin: 0;
  padding: 4px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #212121;
  font: 400 14px/1.3 var(--kru-font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

#kru-news .news__header-tab.mixitup-control-active {
  color: var(--kru-ink);
  font-weight: 400;
  background: transparent;
}

#kru-news .news__header-tab.mixitup-control-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  margin: 0;
  background: var(--kru-ink);
}

#kru-news .news__header-tab::before {
  display: none;
}

#kru-news .news__header-links {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  white-space: nowrap;
}

#kru-news .news__header-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--kru-ink);
  font: 400 14px/1.3 var(--kru-font);
  text-decoration: none;
}

#kru-news .news__header-links a[href$="/digest"] {
  color: #647987;
  font-weight: 400;
}

#kru-news .news__header-link::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
}

#kru-news .news__body {
  padding: 12px 0 0;
}

#kru-news .news__lists {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 190px;
}

#kru-news .news__lists-item {
  display: block;
  position: relative;
  isolation: isolate;
  grid-column: span 3;
  grid-row: span 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--kru-deep-blue);
  box-shadow: none;
}

#kru-news .news__lists-item:first-child {
  grid-column: span 6;
  grid-row: span 2;
}

#kru-news .news__lists-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

#kru-news .news__lists-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
  transition: transform 0.45s ease;
}

#kru-news .news__lists-image::after {
  display: none;
}

#kru-news .news__lists-text {
  position: absolute;
  isolation: isolate;
  z-index: 2;
  inset: auto 0 0;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

#kru-news .news__lists-text::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -28px;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 20, 0) 0%,
    rgba(9, 14, 20, 0.45) 22%,
    rgba(9, 14, 20, 0.62) 55%,
    rgba(9, 14, 20, 0.78) 100%
  );
}

#kru-news .news__lists-title,
#kru-news .news__lists-info {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

#kru-news .news__lists-item:first-child .news__lists-text {
  padding: 26px 28px;
}

#kru-news .news__lists-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 8px;
  padding: 0;
  color: #f5f5f5;
  font: 400 11px/1.35 var(--kru-font);
}

#kru-news .news__lists-published {
  display: flex;
  gap: 0;
}

#kru-news .news__lists-published span:first-child,
#kru-news .news__lists-views {
  display: none;
}

#kru-news .news__lists-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: #fff;
  font: 500 17px/1.28 var(--kru-font);
  letter-spacing: -0.2px;
  text-transform: none;
  text-wrap: pretty;
}

#kru-news .news__lists-item:first-child .news__lists-title {
  max-width: 440px;
  padding-right: 22px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.45px;
  -webkit-line-clamp: 3;
}

#kru-news .news__lists-item:first-child .news__lists-info {
  font-size: 12px;
  margin-bottom: 10px;
}

#kru-news .news__lists-item:first-child .news__lists-text::after {
  content: "→";
  position: absolute;
  right: 25px;
  bottom: 28px;
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

#kru-news .news__lists-link {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

#kru-news .anons-lists,
#kru-news .conf-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#kru-news .anons-lists__item,
#kru-news .conf-lists__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-width: 0;
  min-height: 136px;
  padding: 20px 46px 20px 22px;
  border: 0;
  border-radius: 0;
  background: #f0f5f8;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

#kru-news .anons-lists__item::after,
#kru-news .conf-lists__item::after {
  content: "↗";
  position: absolute;
  right: 18px;
  top: 19px;
  color: var(--kru-ink);
  font-size: 22px;
  line-height: 1;
}

#kru-news .anons-lists__title,
#kru-news .conf-lists__title {
  margin: 0;
  padding: 0;
  color: var(--kru-ink);
  font: 500 17px/1.4 var(--kru-font);
  letter-spacing: -0.15px;
  text-transform: none;
  overflow-wrap: break-word;
}

#kru-news .anons-lists__published,
#kru-news .conf-lists__published {
  order: -1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: #576e7e;
  font: 400 12px/1.4 var(--kru-font);
}

#kru-news .conf-lists__published span {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 0;
  background: #408970;
}

#kru-news .conf-lists__published span.done {
  background: #8798a3;
}

#kru-news .anons-lists__link,
#kru-news .conf-lists__link {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

#kru-news a:focus-visible,
#kru-news button:focus-visible {
  outline: 3px solid #cda65e;
  outline-offset: 3px;
}

#kru-news .news__lists-link:focus-visible,
#kru-news .anons-lists__link:focus-visible,
#kru-news .conf-lists__link:focus-visible {
  outline-offset: -3px;
}

/* Эффекты наведения для устройств с указателем. */

@media (hover: hover) {
  #kru-news .news__header-tab:hover {
    color: var(--kru-ink);
    background: transparent;
  }

  #kru-news .news__header-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    background: transparent;
  }

  #kru-news .news__lists-item:hover .news__lists-image img {
    transform: scale(1.035);
  }

  #kru-news .news__lists-item:hover .news__lists-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  #kru-news .anons-lists__item:hover,
  #kru-news .conf-lists__item:hover {
    background: #e5eef4;
  }
}

/* Адаптация: ширина до 1199px */

@media (max-width: 1199px) {
  #kru-news .news__lists {
    grid-auto-rows: 175px;
  }

  #kru-news .news__lists-text {
    padding: 14px;
  }

  #kru-news .news__lists-title {
    font-size: 16px;
  }

  #kru-news .news__lists-item:first-child .news__lists-text {
    padding: 22px;
  }

  #kru-news .news__lists-item:first-child .news__lists-title {
    font-size: 25px;
  }
}

/* Адаптация: ширина до 991px */

@media (max-width: 991px) {
  #kru-news .news__header {
    gap: 12px;
  }

  #kru-news .news__header-tabs {
    gap: 20px;
  }

  #kru-news .news__header-links {
    gap: 12px;
  }

  #kru-news .news__header-links a {
    font-size: 12px;
  }

  #kru-news .news__lists {
    grid-auto-rows: 160px;
  }

  #kru-news .news__lists-text {
    padding: 12px;
  }

  #kru-news .news__lists-title {
    font-size: 14px;
    line-height: 1.3;
  }

  #kru-news .news__lists-info {
    font-size: 10px;
    margin-bottom: 6px;
  }

  #kru-news .news__lists-item:first-child .news__lists-title {
    font-size: 23px;
  }

  #kru-news .anons-lists__item,
  #kru-news .conf-lists__item {
    min-height: 125px;
    padding: 17px 38px 17px 18px;
  }

  #kru-news .anons-lists__title,
  #kru-news .conf-lists__title {
    font-size: 15px;
  }

  #kru-news .anons-lists__published,
  #kru-news .conf-lists__published {
    font-size: 11px;
  }
}

/* Адаптация: ширина до 767px */

@media (max-width: 767px) {
  #kru-news .news__body {
    padding-top: 10px;
  }

  #kru-news .news__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  #kru-news .news__lists-item {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  #kru-news .news__lists-item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 3/2;
  }

  #kru-news .news__lists-item:first-child .news__lists-title {
    max-width: 440px;
    font-size: 22px;
  }

  #kru-news .news__lists-item:first-child .news__lists-text {
    padding: 18px;
  }

  #kru-news .news__lists-item:first-child .news__lists-text::after {
    right: 18px;
    bottom: 20px;
    font-size: 25px;
  }

  #kru-news .news__lists-title {
    font-size: 16px;
  }

  #kru-news .news__lists-info {
    font-size: 11px;
  }

  #kru-news .anons-lists,
  #kru-news .conf-lists {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #kru-news .anons-lists__item,
  #kru-news .conf-lists__item {
    min-height: 0;
    padding: 15px 38px 15px 16px;
  }
}

/* Адаптация: ширина до 575px */

@media (max-width: 575px) {
  #kru-news .news__header {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  #kru-news .news__header-tabs {
    gap: 18px;
  }

  #kru-news .news__header-tab {
    /* Зона нажатия 44 px; надпись остаётся компактной. */
    padding: 12px 0 14px;
  }

  #kru-news .news__header-links {
    justify-content: flex-end;
    gap: 16px;
  }

  #kru-news .news__header-links a {
    min-height: 32px;
  }

  #kru-news .news__lists {
    grid-auto-rows: auto;
  }

  #kru-news .news__lists-item {
    min-height: 140px;
  }

  #kru-news .news__lists-item:first-child {
    min-height: 0;
    grid-row: auto;
  }

  #kru-news .news__lists-title {
    font-size: 14px;
    line-height: 1.3;
  }

  #kru-news .news__lists-info {
    font-size: 10px;
  }

  #kru-news .news__lists-item:first-child .news__lists-info {
    font-size: 11px;
  }

  #kru-news .news__lists-item:first-child .news__lists-title {
    font-size: 22px;
  }
}

/* Адаптация: ширина до 359px */

@media (max-width: 359px) {
  #kru-news .news__header-tabs {
    gap: 10px;
  }

  #kru-news .news__lists-text {
    padding: 11px;
  }

  #kru-news .news__lists-title {
    font-size: 13px;
  }
}

/* Доступность: отключение анимации по системной настройке. */

@media (prefers-reduced-motion: reduce) {
  #kru-news .news__lists-image img,
  #kru-news .news__header-tab,
  #kru-news .anons-lists__item,
  #kru-news .conf-lists__item {
    transition: none;
  }

  #kru-news .news__lists-item:hover .news__lists-image img {
    transform: none;
  }
}

/* ШИРОКИЙ ЭКРАН: сетка шире, а высота карточек и заголовки растут умеренно. */

@media (min-width: 1441px) {
  #kru-news .news__lists {
    grid-auto-rows: clamp(190px, calc(190px + (100vw - 1440px) * 0.0175), 232px);
  }

  #kru-news .news__lists-item:first-child .news__lists-title {
    max-width: 24ch;
    font-size: clamp(28px, calc(28px + (100vw - 1440px) * 0.0025), 34px);
  }

  #kru-news .news__lists-item:not(:first-child) .news__lists-title {
    max-width: 32ch;
  }
}
