/*
 * MyLiverpool.ru — страница списка новостей uCoz.
 */

/* 01. Общая страница */
.mlnl-page {
  background: var(--ml-canvas);
}

.mlnl-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ml-line);
  background:
    radial-gradient(circle at 10% 0, rgba(200, 16, 46, 0.13), transparent 34%),
    linear-gradient(118deg, #fff 0%, #f8f8f5 100%);
}

.mlnl-hero::after {
  position: absolute;
  right: max(-76px, calc((100vw - var(--ml-container)) / 2 - 76px));
  bottom: -116px;
  width: 310px;
  height: 310px;
  border: 52px solid rgba(200, 16, 46, 0.04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mlnl-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding-top: 29px;
  padding-bottom: 37px;
}

.mlnl-breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 27px;
  color: var(--ml-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.mlnl-breadcrumbs a {
  color: var(--ml-red) !important;
  text-decoration: none !important;
}

.mlnl-breadcrumbs a:hover,
.mlnl-breadcrumbs a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mlnl-breadcrumbs span[aria-hidden="true"] {
  color: #b6b7b2;
}

.mlnl-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.mlnl-hero__copy {
  min-width: 0;
}

.mlnl-hero__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mlnl-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(36px, 5.2vw, 61px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.mlnl-hero__copy p {
  max-width: 700px;
  margin: 17px 0 0;
  color: var(--ml-muted);
  font-size: 14px;
  line-height: 1.65;
}

.mlnl-rss {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
  color: var(--ml-red) !important;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.mlnl-rss svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mlnl-rss:hover,
.mlnl-rss:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
  transform: translateY(-1px);
}

/* 02. Основная колонка и сайдбар */
.mlnl-content {
  padding: 24px 0 60px;
  background:
    radial-gradient(circle at 7% 2%, rgba(200, 16, 46, 0.035), transparent 24%),
    var(--ml-canvas);
}

.mlnl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ml-sidebar);
  align-items: start;
  gap: 24px;
}

.mlnl-main,
.mlnl-section,
.mlnl-feed,
.mlnl-sidebar {
  min-width: 0;
}

.mlnl-main:focus {
  outline: 0;
}

.mlnl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mlnl-sidebar > * {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* 03. Заголовок ленты и рубрики */
.mlnl-toolbar {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.09), transparent 42%),
    linear-gradient(90deg, #fff 0%, #fafaf8 100%);
  box-shadow: var(--ml-shadow-sm);
}

.mlnl-toolbar__copy {
  position: relative;
  min-width: 0;
  padding-left: 15px;
}

.mlnl-toolbar__copy::before {
  position: absolute;
  inset: 1px auto 1px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--ml-red);
  content: "";
}

.mlnl-toolbar__copy > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mlnl-toolbar h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mlnl-topics {
  display: flex;
  min-width: 0;
  gap: 8px;
  margin-top: 12px;
  padding: 3px 1px 5px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.mlnl-topic {
  display: inline-flex;
  min-height: 35px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ml-muted) !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.mlnl-topic:hover,
.mlnl-topic:focus-visible,
.mlnl-topic[aria-current="page"] {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

/* 04. Сетка материалов. #allEntries создаёт сам uCoz внутри $BODY$. */
.mlnl-feed {
  margin-top: 12px;
}

.mlnl-feed #allEntries {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.mlnl-feed #allEntries > :where([id^="entryID"], .ml-news-card, .eBlock) {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.mlnl-feed #allEntries > [id^="entryID"] {
  display: flex;
}

.mlnl-feed #allEntries > [id^="entryID"] > .ml-news-card {
  width: 100%;
}

/* Вертикальная карточка: обложка 16:9 сверху, содержание снизу */
.mlnl-feed .ml-news-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.mlnl-feed .ml-news-card--text {
  grid-template-rows: minmax(0, 1fr);
}

.mlnl-feed .ml-news-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  background: #171717;
}

.mlnl-feed .ml-news-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

.mlnl-feed .ml-news-card:hover .ml-news-card__media img {
  transform: none !important;
}

.mlnl-feed .ml-news-card__body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 18px;
}

.mlnl-feed .ml-news-card__meta {
  margin-bottom: 9px;
}

.mlnl-feed .ml-news-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mlnl-feed .ml-news-card__summary {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mlnl-feed .ml-news-card__footer {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
}

/* Совместимость, если uCoz временно отдаст старый табличный вид материала */
.mlnl-feed #allEntries > table.eBlock {
  display: table;
  overflow: hidden;
  border: 1px solid var(--ml-line) !important;
  border-spacing: 0;
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.mlnl-feed .eTitle {
  padding: 16px 18px 8px !important;
  color: var(--ml-ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.14;
}

.mlnl-feed .eMessage {
  padding: 10px 18px 18px !important;
  color: #50514e;
  font-size: 13px;
  line-height: 1.55;
}

.mlnl-feed .eDetails {
  padding: 10px 18px !important;
  border-top: 1px solid var(--ml-line-soft);
  color: var(--ml-muted);
  font-size: 11px;
}

/* 05. Пагинация uCoz */
.mlnl-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 16px 0 0;
  color: var(--ml-muted);
  font-size: 12px;
}

.mlnl-feed :where(.swchItem, .swchItemA),
.mlnl-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ml-ink) !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.mlnl-feed .swchItemA,
.mlnl-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a:hover,
.mlnl-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

/* 06. Адаптивность */
@media (max-width: 1020px) {
  .mlnl-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mlnl-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .mlnl-hero__inner {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 29px;
  }

  .mlnl-breadcrumbs {
    margin-bottom: 22px;
  }

  .mlnl-hero__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .mlnl-hero h1 {
    font-size: clamp(34px, 10vw, 49px);
  }

  .mlnl-rss {
    min-height: 39px;
  }

  .mlnl-content {
    padding-top: 16px;
    padding-bottom: 42px;
  }

  .mlnl-feed #allEntries {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .mlnl-feed .ml-news-card__title {
    font-size: clamp(21px, 6vw, 27px);
  }

  .mlnl-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .mlnl-toolbar {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .mlnl-toolbar .ml-button {
    align-self: stretch;
  }

  .mlnl-feed .ml-news-card__body {
    padding: 16px;
  }

  .mlnl-feed .ml-news-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlnl-rss,
  .mlnl-topic,
  .mlnl-feed .ml-news-card,
  .mlnl-feed .ml-news-card__media img {
    transition: none !important;
  }

  .mlnl-rss:hover,
  .mlnl-rss:focus-visible,
  .mlnl-feed .ml-news-card:hover {
    transform: none !important;
  }
}

/*
 * MyLiverpool.ru — «Страница архива материалов» модуля новостей uCoz.
 */

/* 01. Страница и верхний блок */
.mlna-page {
  background: var(--ml-canvas);
}

.mlna-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ml-line);
  background:
    radial-gradient(circle at 10% 0, rgba(200, 16, 46, 0.13), transparent 34%),
    linear-gradient(118deg, #fff 0%, #f8f8f5 100%);
}

.mlna-hero::after {
  position: absolute;
  right: max(-76px, calc((100vw - var(--ml-container)) / 2 - 76px));
  bottom: -116px;
  width: 310px;
  height: 310px;
  border: 52px solid rgba(200, 16, 46, 0.04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mlna-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding-top: 29px;
  padding-bottom: 37px;
}

.mlna-breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 27px;
  color: var(--ml-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.mlna-breadcrumbs a {
  color: var(--ml-red) !important;
  text-decoration: none !important;
}

.mlna-breadcrumbs a:hover,
.mlna-breadcrumbs a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mlna-breadcrumbs span[aria-hidden="true"] {
  color: #b6b7b2;
}

.mlna-hero__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.mlna-hero__copy {
  min-width: 0;
}

.mlna-hero__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mlna-hero h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(36px, 5.2vw, 61px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.mlna-hero__description {
  max-width: 760px;
  margin: 17px 0 0;
  color: var(--ml-muted);
  font-size: 14px;
  line-height: 1.65;
}

.mlna-hero__description > :first-child {
  margin-top: 0;
}

.mlna-hero__description > :last-child {
  margin-bottom: 0;
}

.mlna-datebar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: var(--ml-muted);
  font-size: 11px;
  font-weight: 750;
}

.mlna-datebar > span {
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mlna-datebar a {
  color: var(--ml-ink) !important;
  font-weight: 850;
  text-decoration: none !important;
}

.mlna-datebar a:hover,
.mlna-datebar a:focus-visible {
  color: var(--ml-red) !important;
}

.mlna-rss {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
  color: var(--ml-red) !important;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.mlna-rss svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mlna-rss:hover,
.mlna-rss:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
  transform: translateY(-1px);
}

/* 02. Основная колонка и боковые блоки */
.mlna-content {
  padding: 24px 0 60px;
  background:
    radial-gradient(circle at 7% 2%, rgba(200, 16, 46, 0.035), transparent 24%),
    var(--ml-canvas);
}

.mlna-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--ml-sidebar);
  align-items: start;
  gap: 24px;
}

.mlna-main,
.mlna-section,
.mlna-feed,
.mlna-sidebar {
  min-width: 0;
}

.mlna-main:focus {
  outline: 0;
}

.mlna-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mlna-sidebar > * {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* 03. Панель архива, поиск, рубрики и фильтры */
.mlna-tools {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.08), transparent 35%),
    #fff;
  box-shadow: var(--ml-shadow-sm);
}

.mlna-tools__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ml-line-soft);
}

.mlna-tools__header > div {
  position: relative;
  min-width: 0;
  padding-left: 15px;
}

.mlna-tools__header > div::before {
  position: absolute;
  inset: 1px auto 1px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--ml-red);
  content: "";
}

.mlna-tools__header span {
  display: block;
  margin-bottom: 6px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mlna-tools__header h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mlna-all-news {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--ml-red) !important;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.mlna-all-news:hover,
.mlna-all-news:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

.mlna-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mlna-control {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ml-line-soft);
  border-radius: 14px;
  background: #fafaf8;
}

.mlna-control__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ml-muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mlna-control__field,
.mlna-control__field form,
.mlna-control__field table,
.mlna-control__field tbody,
.mlna-control__field tr,
.mlna-control__field td {
  width: 100% !important;
  max-width: 100%;
}

.mlna-control__field table {
  border-collapse: collapse;
}

.mlna-control__field td {
  padding: 0 !important;
  border: 0 !important;
}

.mlna-control__field select,
.mlna-filters select,
.mlna-control__field input[type="text"],
.mlna-control__field input[type="search"] {
  width: 100% !important;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ml-line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ml-ink);
  font: inherit;
  font-size: 12px;
}

.mlna-control__field select:focus,
.mlna-filters select:focus,
.mlna-control__field input[type="text"]:focus,
.mlna-control__field input[type="search"]:focus {
  border-color: var(--ml-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.mlna-control__field input[type="button"],
.mlna-control__field input[type="submit"],
.mlna-control__field button {
  min-height: 42px;
  margin-left: 7px;
  padding: 9px 13px;
  border: 1px solid var(--ml-red);
  border-radius: 10px;
  background: var(--ml-red);
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.mlna-control__field input[type="button"]:hover,
.mlna-control__field input[type="submit"]:hover,
.mlna-control__field button:hover {
  background: var(--ml-red-dark, #9f0d25);
}

.mlna-categories,
.mlna-filters {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ml-line-soft);
}

.mlna-categories__body,
.mlna-categories__body :where(ul, ol),
.mlna-filters__body {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.mlna-categories__body :where(li) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mlna-categories__body a {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ml-muted) !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.mlna-categories__body a:hover,
.mlna-categories__body a:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

.mlna-filters__body > * {
  min-width: min(100%, 170px);
  flex: 1 1 170px;
}

/* 04. Заголовок списка публикаций */
.mlna-toolbar {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.09), transparent 42%),
    linear-gradient(90deg, #fff 0%, #fafaf8 100%);
  box-shadow: var(--ml-shadow-sm);
}

.mlna-toolbar__copy {
  position: relative;
  min-width: 0;
  padding-left: 15px;
}

.mlna-toolbar__copy::before {
  position: absolute;
  inset: 1px auto 1px 0;
  width: 4px;
  border-radius: 999px;
  background: var(--ml-red);
  content: "";
}

.mlna-toolbar__copy > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mlna-toolbar h2 {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* 05. Сетка материалов: 2 колонки на компьютере, 1 на телефоне */
.mlna-feed {
  margin-top: 12px;
}

.mlna-feed #allEntries {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.mlna-feed #allEntries > :where([id^="entryID"], .ml-news-card, .eBlock) {
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.mlna-feed #allEntries > [id^="entryID"] {
  display: flex;
}

.mlna-feed #allEntries > [id^="entryID"] > .ml-news-card {
  width: 100%;
}

.mlna-feed .ml-news-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.mlna-feed .ml-news-card--text {
  grid-template-rows: minmax(0, 1fr);
}

.mlna-feed .ml-news-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  background: #171717;
}

.mlna-feed .ml-news-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

.mlna-feed .ml-news-card:hover .ml-news-card__media img {
  transform: none !important;
}

.mlna-feed .ml-news-card__body {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 18px;
}

.mlna-feed .ml-news-card__meta {
  margin-bottom: 9px;
}

.mlna-feed .ml-news-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mlna-feed .ml-news-card__summary {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.mlna-feed .ml-news-card__footer {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
}

/* Совместимость со старым табличным «Видом материалов» uCoz */
.mlna-feed #allEntries > table.eBlock {
  display: table;
  overflow: hidden;
  border: 1px solid var(--ml-line) !important;
  border-spacing: 0;
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.mlna-feed .eTitle {
  padding: 16px 18px 8px !important;
  color: var(--ml-ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.14;
}

.mlna-feed .eMessage {
  padding: 10px 18px 18px !important;
  color: #50514e;
  font-size: 13px;
  line-height: 1.55;
}

.mlna-feed .eDetails {
  padding: 10px 18px !important;
  border-top: 1px solid var(--ml-line-soft);
  color: var(--ml-muted);
  font-size: 11px;
}

/* 06. Пагинация uCoz */
.mlna-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 16px 0 0;
  color: var(--ml-muted);
  font-size: 12px;
}

.mlna-feed :where(.swchItem, .swchItemA),
.mlna-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ml-ink) !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.mlna-feed .swchItemA,
.mlna-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a:hover,
.mlna-feed :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) > a:focus-visible {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

/* Сообщения uCoz: пустой архив, ошибки поиска и служебные уведомления */
.mlna-feed > :where(.myWinError, .myWinSuccess, .noEntries, .manFlSbm) {
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  color: var(--ml-muted);
  box-shadow: var(--ml-shadow-sm);
}

/* 07. Адаптивность */
@media (max-width: 1020px) {
  .mlna-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mlna-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 760px) {
  .mlna-hero__inner {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 29px;
  }

  .mlna-breadcrumbs {
    margin-bottom: 22px;
  }

  .mlna-hero__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .mlna-hero h1 {
    font-size: clamp(34px, 10vw, 49px);
  }

  .mlna-rss {
    min-height: 39px;
  }

  .mlna-content {
    padding-top: 16px;
    padding-bottom: 42px;
  }

  .mlna-tools__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mlna-feed #allEntries {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }

  .mlna-feed .ml-news-card__title {
    font-size: clamp(21px, 6vw, 27px);
  }

  .mlna-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .mlna-tools {
    padding: 16px;
  }

  .mlna-tools__header,
  .mlna-toolbar {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mlna-all-news,
  .mlna-toolbar .ml-button {
    align-self: stretch;
  }

  .mlna-control__field form,
  .mlna-control__field tr {
    display: flex;
    min-width: 0;
    align-items: stretch;
  }

  .mlna-control__field td:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .mlna-control__field td:last-child {
    flex: 0 0 auto;
  }

  .mlna-feed .ml-news-card__body {
    padding: 16px;
  }

  .mlna-feed .ml-news-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .mlna-control__field form,
  .mlna-control__field tr {
    flex-direction: column;
    gap: 7px;
  }

  .mlna-control__field input[type="button"],
  .mlna-control__field input[type="submit"],
  .mlna-control__field button {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlna-rss,
  .mlna-all-news,
  .mlna-categories__body a,
  .mlna-feed .ml-news-card,
  .mlna-feed .ml-news-card__media img {
    transition: none !important;
  }

  .mlna-rss:hover,
  .mlna-rss:focus-visible,
  .mlna-feed .ml-news-card:hover {
    transform: none !important;
  }
}