/*
 * MyLiverpool.ru — единый файл стилей
 * Версия: 2026-08-09.2
 * Путь на uCoz: /css/myliverpool.css
 *
 * Все компоненты используют изолированные префиксы mlh-, mln-, ml7k-,
 * ml-home-, nmw-, ml-top5-, ml-chat-, ml-community- и mlf-.
 * В глобальных блоках не должно оставаться тегов <style>.
 */

/* 01. Токены и безопасная базовая настройка */
:root {
  --ml-red: #c8102e;
  --ml-red-dark: #970c24;
  --ml-red-deep: #71091b;
  --ml-red-soft: #fff0f3;
  --ml-ink: #171717;
  --ml-ink-soft: #292b30;
  --ml-muted: #6f706d;
  --ml-muted-light: #93948f;
  --ml-line: #deded9;
  --ml-line-soft: #ecece8;
  --ml-paper: #ffffff;
  --ml-canvas: #f4f4f1;
  --ml-soft: #f8f8f5;
  --ml-blue: #188dc8;
  --ml-container: 1180px;
  --ml-sidebar: 376px;
  --ml-radius-sm: 8px;
  --ml-radius: 14px;
  --ml-radius-lg: 20px;
  --ml-shadow-sm: 0 8px 24px rgba(23, 23, 23, 0.055);
  --ml-shadow: 0 18px 50px rgba(23, 23, 23, 0.075);
  --ml-focus: 0 0 0 3px rgba(200, 16, 46, 0.22);
  --ml-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ml-serif: Georgia, "Times New Roman", serif;
}

html {
  min-width: 320px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.ml-site,
body.ml-site *,
body.ml-site *::before,
body.ml-site *::after {
  box-sizing: inherit;
}

body.ml-site {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ml-canvas);
  color: var(--ml-ink);
  font-family: var(--ml-font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.ml-site button,
body.ml-site input,
body.ml-site select,
body.ml-site textarea {
  max-width: 100%;
  font: inherit;
}

body.ml-site button,
body.ml-site [type="button"],
body.ml-site [type="submit"] {
  cursor: pointer;
}

body.ml-site img,
body.ml-site picture,
body.ml-site svg,
body.ml-site video {
  display: block;
  max-width: 100%;
}

body.ml-site img {
  height: auto;
}

body.ml-site [hidden] {
  display: none !important;
}

body.ml-site ::selection {
  background: var(--ml-red);
  color: #fff;
}

body.ml-site :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 0;
  box-shadow: var(--ml-focus);
}

.ml-shell {
  width: min(var(--ml-container), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.ml-skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 50%;
  padding: 10px 14px;
  border-radius: var(--ml-radius-sm);
  background: var(--ml-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -140%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ml-skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* 02. Верхняя часть сайта — $GLOBAL_AHEADER$ */
.mlh {
  position: relative;
  z-index: 100;
  width: 100%;
  background: #fff;
  color: var(--ml-ink);
}

.mlh a {
  color: inherit;
  text-decoration: none;
}

.mlh__service {
  width: 100%;
  background: #17191d;
  color: rgba(255, 255, 255, 0.72);
}

.mlh__service-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 18px;
}

.mlh__datetime {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.mlh__calendar {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.mlh__time {
  margin-left: 1px;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  color: #fff;
  font-weight: 850;
}

.mlh__timezone {
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.mlh__since {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mlh__since::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ml-red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
  content: "";
}

.mlh__account {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.mlh__account-link {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.mlh__account-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.mlh__account-link--primary {
  margin-left: 3px;
  background: var(--ml-red);
  color: #fff !important;
}

.mlh__account-link--primary:hover {
  background: #e01438;
}

.mlh__account-icon {
  position: relative;
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
}

.mlh__account-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mlh__pm-dot {
  position: absolute;
  top: -3px;
  right: -4px;
  width: 7px;
  height: 7px;
  border: 1.5px solid #17191d;
  border-radius: 50%;
  background: #ff3454;
}

.mlh__welcome {
  color: rgba(255, 255, 255, 0.43);
  font-weight: 600;
}

.mlh__username {
  max-width: 150px;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mlh__main {
  border-bottom: 1px solid var(--ml-line);
  background: #fff;
}

.mlh__main-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  min-height: 84px;
  align-items: center;
  gap: 30px;
}

.mlh__brand {
  position: relative;
  display: inline-flex;
  min-width: 229px;
  align-items: center;
}

.mlh__brand-mark {
  display: grid;
  width: 42px;
  height: 48px;
  flex: 0 0 42px;
  margin-right: 10px;
  place-items: center;
  border-radius: 5px 5px 14px 14px;
  background: var(--ml-red);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
  box-shadow: 0 7px 16px rgba(200, 16, 46, 0.18);
  transform: skewY(-3deg);
}

.mlh__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.mlh__brand-copy strong {
  color: var(--ml-ink);
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.mlh__brand-copy small {
  margin-top: 5px;
  color: #8a8a85;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.23em;
}

.mlh__brand-domain {
  align-self: flex-start;
  margin: 13px 0 0 3px;
  color: var(--ml-red);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.mlh__quote {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.mlh__quote-mark {
  flex: 0 0 auto;
  margin-right: 12px;
  color: rgba(200, 16, 46, 0.19);
  font-family: var(--ml-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 0.75;
}

.mlh__quote-copy {
  min-width: 0;
  max-width: 480px;
}

.mlh__quote-text {
  display: -webkit-box;
  overflow: hidden;
  color: #555551;
  font-family: var(--ml-serif);
  font-size: 12px;
  font-style: italic;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mlh__quote-text > :first-child {
  margin-top: 0;
}

.mlh__quote-text > :last-child {
  margin-bottom: 0;
}

.mlh__quote-author {
  display: block;
  margin-top: 4px;
  color: var(--ml-red);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mlh__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlh__telegram,
.mlh__search {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.mlh__telegram {
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #1f92d1;
  background: #1f92d1;
  color: #fff !important;
}

.mlh__telegram:hover {
  border-color: #1682bd;
  background: #1682bd;
  transform: translateY(-1px);
}

.mlh__telegram svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.mlh__search {
  width: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--ml-line);
  background: #fff;
  color: var(--ml-ink) !important;
}

.mlh__search:hover {
  border-color: rgba(200, 16, 46, 0.35);
  color: var(--ml-red) !important;
}

.mlh__search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ml-back-top {
  position: fixed;
  z-index: 160;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: var(--ml-ink);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background-color 0.16s ease;
}

.ml-back-top:hover {
  background: var(--ml-red);
}

.ml-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ml-back-top svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 03. Главное меню */
.mln-wrap {
  position: relative;
  z-index: 130;
  width: 100%;
  border-bottom: 3px solid var(--ml-red);
  background: linear-gradient(135deg, #111318 0%, #191c22 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.mln {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: stretch;
}

.mln__mobile-brand,
.mln__toggle {
  display: none;
}

.mln__list {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mln__list li {
  display: flex;
  margin: 0;
  padding: 0;
}

.mln__link {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}

.mln__link::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mln__link:hover,
.mln__link:focus-visible {
  background: rgba(200, 16, 46, 0.72);
}

.mln__link:hover::after,
.mln__link:focus-visible::after,
.mln__link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.mln__link[aria-current="page"] {
  background: linear-gradient(135deg, var(--ml-red) 0%, var(--ml-red-dark) 100%);
}

/* 04. Юбилейная лента */
.ml7k {
  position: relative;
  z-index: 120;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(200, 16, 46, 0.45);
  background: radial-gradient(circle at 14% 120%, rgba(200, 16, 46, 0.48), transparent 31%), linear-gradient(104deg, #08080a 0%, #111116 55%, #310006 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
}

.ml7k::after {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 8%;
  width: 170px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--ml-red), transparent);
  content: "";
  opacity: 0.14;
  transform: skewX(-24deg);
}

.ml7k__pattern {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -18px;
  color: transparent;
  font-size: 112px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.09em;
  opacity: 0.08;
  pointer-events: none;
  transform: translateY(-52%);
  user-select: none;
  -webkit-text-stroke: 1px #fff;
}

.ml7k__inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  min-height: 88px;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: 13px 0;
  color: #fff !important;
  text-decoration: none !important;
}

.ml7k__number {
  color: #fff;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 1000;
  line-height: 0.82;
  letter-spacing: -0.09em;
  filter: drop-shadow(0 7px 18px rgba(0, 0, 0, 0.38));
}

.ml7k__number b {
  color: #e31b23;
  font: inherit;
}

.ml7k__message {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.ml7k__message small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ml7k__message strong {
  margin-top: 4px;
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.ml7k__message > span {
  margin-top: 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml7k__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #e31b23;
  border-radius: 999px;
  background: #e31b23;
  color: #fff;
  box-shadow: 0 8px 24px rgba(227, 27, 35, 0.22);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ml7k__inner:hover .ml7k__button {
  background: #f12730;
  transform: translateY(-1px);
}

/* 05. Заголовок и сетка главной */
.ml-home-intro {
  border-bottom: 1px solid var(--ml-line);
  background: radial-gradient(circle at 8% 0, rgba(200, 16, 46, 0.09), transparent 31%), #fff;
}

.ml-home-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  min-height: 184px;
  align-items: center;
  gap: 48px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.ml-home-intro__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--ml-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ml-home-intro h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(31px, 4.2vw, 52px);
  font-weight: 950;
  line-height: 1.01;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ml-home-intro p {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--ml-red);
  color: var(--ml-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ml-home {
  padding: 24px 0 56px;
  background: radial-gradient(circle at 8% 3%, rgba(200, 16, 46, 0.035), transparent 22%), var(--ml-canvas);
}

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

.ml-home__main,
.ml-home__sidebar,
.ml-home-feed,
.ml-home-news {
  min-width: 0;
}

.ml-home__main:focus {
  outline: 0;
}

.ml-home__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ml-home__sidebar > * {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.ml-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  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;
}

.ml-button:hover {
  transform: translateY(-1px);
}

.ml-button--outline {
  border-color: rgba(200, 16, 46, 0.2);
  background: #fff;
  color: var(--ml-red) !important;
}

.ml-button--outline:hover {
  border-color: var(--ml-red);
  background: var(--ml-red);
  color: #fff !important;
}

.ml-button--quiet {
  border-color: var(--ml-line);
  background: var(--ml-soft);
  color: var(--ml-muted) !important;
}

.ml-button--quiet:hover {
  border-color: #c9c9c3;
  background: #fff;
  color: var(--ml-ink) !important;
}

.ml-section-head {
  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);
}

.ml-section-head__copy {
  position: relative;
  min-width: 0;
  padding-left: 15px;
}

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

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

.ml-section-head__title {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ml-section-head__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

/* 06. Лента новостей и совместимость с «Видом материалов» uCoz */
.ml-home-news {
  display: flow-root;
  margin-top: 16px;
}

.ml-home-news > :where(.ml-news-card, .news-item, .short-story, .eBlock) {
  width: 100%;
  margin: 0 0 16px;
}

.ml-home-news :where(.ml-news-card, .news-item, .short-story) {
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.ml-home-news table.eBlock {
  width: 100% !important;
  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);
}

.ml-home-news .eBlock :where(td, th) {
  border-color: var(--ml-line-soft);
}

.ml-home-news .eTitle {
  padding: 16px 18px 8px !important;
  color: var(--ml-ink);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.03em;
}

.ml-home-news .eTitle a {
  color: inherit !important;
  text-decoration: none !important;
}

.ml-home-news .eTitle a:hover {
  color: var(--ml-red) !important;
}

.ml-home-news .eMessage {
  padding: 10px 18px 18px !important;
  color: #4f504d;
  font-size: 14px;
  line-height: 1.62;
}

.ml-home-news .eMessage img {
  border-radius: 11px;
}

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

.ml-home-news :where(.entry-img, .news-image, .ml-news-card__media) {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #2e070f, var(--ml-red));
}

.ml-home-news :where(.entry-img, .news-image, .ml-news-card__media) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.ml-home-news :where(.ml-news-card, .news-item, .short-story):hover :where(.entry-img, .news-image, .ml-news-card__media) img {
  transform: scale(1.025);
}

.ml-news-card {
  display: grid;
  grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
  min-height: 250px;
}

.ml-news-card__media {
  height: 100%;
  aspect-ratio: auto !important;
}

.ml-news-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 25px);
}

.ml-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ml-muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.ml-news-card__category {
  color: var(--ml-red) !important;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.ml-news-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7b7b2;
}

.ml-news-card__title {
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(22px, 2.6vw, 24px);
  font-weight: 500;
  line-height: 1.08;
  /*letter-spacing: -0.038em;*/
  text-wrap: balance;
}

.ml-news-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ml-news-card__title a:hover {
  color: var(--ml-red) !important;
}

.ml-news-card__summary {
  display: -webkit-box;
  margin: 13px 0 16px;
  overflow: hidden;
  color: #555652;
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ml-line-soft);
  color: var(--ml-muted);
  font-size: 11px;
}

.ml-news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ml-red) !important;
  font-weight: 850;
  text-decoration: none !important;
}

.ml-home-news :where(.catPages1, .catPages2, .pagesBlockuz1, .pagesBlockuz2) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 8px;
  padding: 0;
  color: var(--ml-muted);
  font-size: 12px;
}

.ml-home-news :where(.swchItem, .swchItemA),
.ml-home-news :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;
  text-decoration: none !important;
}

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

/* 07. Блок о сообществе */
.ml-home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius-lg);
  background: radial-gradient(circle at 0 0, rgba(200, 16, 46, 0.08), transparent 42%), #fff;
  box-shadow: var(--ml-shadow);
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.ml-home-about__copy h2 {
  max-width: 520px;
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ml-home-about__copy p {
  max-width: 620px;
  margin: 17px 0 0;
  color: var(--ml-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ml-home-about__links {
  display: grid;
  gap: 9px;
}

.ml-home-about__links a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  align-content: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid var(--ml-line-soft);
  border-radius: 12px;
  background: var(--ml-soft);
  color: var(--ml-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.ml-home-about__links a:hover {
  border-color: rgba(200, 16, 46, 0.3);
  background: #fff;
  transform: translateX(2px);
}

.ml-home-about__links span {
  color: var(--ml-red);
  font-size: 13px;
  font-weight: 700;
  /*letter-spacing: 0.11em;
  text-transform: uppercase;*/
}

.ml-home-about__links strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ml-home-about__links i {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--ml-red);
  font-size: 20px;
  font-style: normal;
}

/* 08. Матч-центр — $GLOBAL_CLEFTER$ */
.nmw-stack {
  --nmw-red: #d00027;
  --nmw-red-dark: #a90020;
  --nmw-ink: #111317;
  --nmw-line: #e9ebee;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  color: var(--nmw-ink);
}

.nmw-stack a {
  text-decoration: none;
}

.nmw-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: var(--ml-radius);
  background: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.nmw-last {
  position: relative;
  padding: 21px 20px 0;
}

.nmw-last::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--nmw-red), transparent);
  content: "";
}

.nmw-light-head,
.nmw-table-head,
.nmw-next-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.nmw-kicker {
  display: block;
  margin-bottom: 4px;
  color: #969ba3;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.nmw-light-head h2,
.nmw-table-head h2,
.nmw-next-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.nmw-light-chip,
.nmw-season,
.nmw-dark-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.nmw-light-chip {
  border: 1px solid #e6e8eb;
  background: #f6f7f8;
  color: #666c75;
}

.nmw-last-date {
  margin: 17px 0 16px;
  color: #6b6d70;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.nmw-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: start;
  gap: 2px;
}

.nmw-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.nmw-team > strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmw-team--small {
  gap: 8px;
}

.nmw-team--small > strong {
  color: #202329;
  font-size: 12px;
}

.nmw-crest {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nmw-crest > span {
  color: #b7bac0;
  font-size: 11px;
  font-weight: 850;
}

.nmw-crest img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
}

.nmw-team--small .nmw-crest {
  width: 62px;
  height: 62px;
  border-color: #e4e6e9;
  box-shadow: 0 9px 22px rgba(24, 27, 32, 0.12);
}

.nmw-team--small .nmw-crest img {
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.nmw-score {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nmw-score > span {
  color: #a1a5ac;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nmw-score > strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 1px;
  color: #17191d;
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nmw-score > strong b {
  font: inherit;
}

.nmw-score > strong i {
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
}

.nmw-score small {
  color: #c40025;
  font-size: 11px;
  font-weight: 750;
}

.nmw-report {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px -20px 0;
  padding: 13px 20px;
  border-top: 1px solid var(--nmw-line);
  background: #fbfbfc;
  color: var(--nmw-red) !important;
  font-size: 14px;
  font-weight: 750;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nmw-report span {
  font-size: 19px;
  transition: transform 0.18s ease;
}

.nmw-report:hover {
  background: #fff4f6;
  color: var(--nmw-red-dark) !important;
}

.nmw-report:hover span {
  transform: translateX(3px);
}

.nmw-next-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 22px 22px;
  background: radial-gradient(circle at 50% 54%, rgba(208, 0, 39, 0.28), transparent 43%), linear-gradient(145deg, #1c1f25 0%, #101216 72%);
  color: #fff;
}

.nmw-next-hero::before,
.nmw-next-hero::after {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.nmw-next-hero::before {
  top: 66px;
  width: 220px;
  height: 220px;
}

.nmw-next-hero::after {
  top: 101px;
  width: 150px;
  height: 150px;
}

.nmw-next-head,
.nmw-matchup,
.nmw-venue,
.nmw-date {
  position: relative;
  z-index: 1;
}

.nmw-live-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nmw-live-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ee244b;
  animation: nmw-pulse 2s ease-out infinite;
}

.nmw-next-head h2 {
  color: #fff;
}

.nmw-dark-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
}

.nmw-date {
  margin: 24px 0 16px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.nmw-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.nmw-next-hero .nmw-team > strong {
  color: #fff;
}

.nmw-kickoff {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nmw-kickoff b {
  margin-top: 6px;
  font-size: 29px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
}

.nmw-kickoff small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.nmw-vs {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--nmw-red);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.nmw-venue {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px auto 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  font-weight: 620;
}

.nmw-pin {
  width: 8px;
  height: 8px;
  border: 2px solid #ef3155;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.nmw-next-foot {
  padding: 20px;
  background: #fff;
}

.nmw-count-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.nmw-count-head > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.nmw-count-head small {
  color: #9ca0a7;
  font-size: 8px;
}

.nmw-count,
.nmw-league-timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 12px;
  background: #f7f8fa;
}

.nmw-time,
.nmw-league-time {
  position: relative;
  min-width: 0;
  padding: 12px 3px 11px;
  text-align: center;
}

.nmw-time + .nmw-time::before,
.nmw-league-time + .nmw-league-time::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 1px;
  background: #e1e3e7;
  content: "";
}

.nmw-time b,
.nmw-league-time b {
  display: block;
  color: #17191d;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
}

.nmw-time span,
.nmw-league-time span {
  display: block;
  margin-top: 5px;
  color: #8b9098;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nmw-count[data-started="true"],
.nmw-league-timer[data-started="true"] {
  display: block;
  padding: 15px;
  border-color: #f0d5dc;
  background: #fff1f4;
  color: var(--nmw-red-dark);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.nmw-button {
  display: flex;
  min-height: 51px;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc002a, #b80023);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(193, 0, 37, 0.22);
  font-size: 14px;
  font-weight: 760;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.nmw-button:hover {
  box-shadow: 0 15px 30px rgba(193, 0, 37, 0.28);
  transform: translateY(-1px);
}

.nmw-play {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.nmw-play i {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}

.nmw-arrow {
  margin-left: auto;
  font-size: 18px;
}

.nmw-table-head {
  padding: 21px 20px 15px;
}

.nmw-season {
  border: 1px solid #ece2f6;
  background: #f7f1fc;
  color: #4c176d;
}

.nmw-league-count {
  margin: 0 20px 18px;
  padding: 14px;
  border: 1px solid #f0dde2;
  border-radius: 12px;
  background: radial-gradient(circle at 88% 18%, rgba(208, 0, 39, 0.09), transparent 38%), linear-gradient(145deg, #fff9fa, #f7f8fa 74%);
}

.nmw-league-count-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nmw-league-count-top > div {
  min-width: 0;
}

.nmw-league-count-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--nmw-red-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nmw-league-count-label i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--nmw-red);
  box-shadow: 0 0 0 4px rgba(208, 0, 39, 0.08);
}

.nmw-league-count-top strong {
  display: block;
  overflow: hidden;
  color: #22252a;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmw-league-count-top small {
  flex: 0 0 auto;
  color: #8d9299;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.nmw-league-count-top small b {
  display: block;
  color: #4b5058;
  font-size: 10px;
  font-weight: 800;
}

.nmw-league-timer {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.nmw-league-time {
  padding: 9px 3px 8px;
}

.nmw-league-time b {
  font-size: 17px;
}

.nmw-league-time span {
  margin-top: 4px;
  font-size: 7px;
}

.nmw-table {
  border-top: 1px solid var(--nmw-line);
  border-bottom: 1px solid var(--nmw-line);
}

.nmw-table-row {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 25px 31px 25px;
  min-height: 38px;
  align-items: center;
  gap: 3px;
  padding: 0 15px;
  border-top: 1px solid #f0f1f3;
  color: #7d828a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.nmw-table-labels {
  min-height: 31px;
  border-top: 0;
  background: #f7f8fa;
  color: #a0a5ad;
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nmw-table-labels span:nth-child(2) {
  text-align: left;
}

.nmw-pos {
  color: #989da5;
  font-weight: 700;
}

.nmw-club {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.nmw-club b {
  min-width: 0;
  overflow: hidden;
  color: #34383f;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmw-table-row > strong {
  color: #23262b;
  font-weight: 820;
}

.nmw-liverpool {
  background: linear-gradient(90deg, #fff1f4, #fff 72%);
}

.nmw-liverpool::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--nmw-red);
  content: "";
}

.nmw-liverpool .nmw-pos,
.nmw-liverpool .nmw-club b,
.nmw-liverpool > strong {
  color: var(--nmw-red-dark);
}

.nmw-full-table {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #4a4f57 !important;
  font-size: 13px;
  font-weight: 750;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nmw-full-table span {
  color: #6a1b83;
  font-size: 16px;
}

.nmw-full-table:hover {
  background: #faf7fc;
  color: #6a1b83 !important;
}

@keyframes nmw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(238, 36, 75, 0.42); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(238, 36, 75, 0); }
}

/* 09. Правая колонка — $GLOBAL_DRIGHTER$ */
.mlr-stack {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.ml-top5 {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  color: var(--ml-ink);
  box-shadow: var(--ml-shadow-sm);
}

.ml-top5__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid var(--ml-line);
  background: radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.1), transparent 46%), #fff;
}

.ml-top5__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ml-top5__heading {
  margin: 0;
  color: var(--ml-ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.08;
}

.ml-top5__period {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.055);
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ml-top5__list {
  counter-reset: ml-top-news;
}

.ml-top5__item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 102px;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--ml-line);
  counter-increment: ml-top-news;
  transition: background-color 0.16s ease;
}

.ml-top5__item:last-child {
  border-bottom: 0;
}

.ml-top5__item:hover {
  background: #fafaf8;
}

.ml-top5__media {
  position: relative;
  align-self: stretch;
  min-height: 76px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 11px;
  background: linear-gradient(145deg, #310711, var(--ml-red));
}

.ml-top5__media::after {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  content: counter(ml-top-news);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ml-top5__media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 76px;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.ml-top5__item:hover .ml-top5__media img {
  transform: scale(1.035);
}

.ml-top5__fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 22px;
  font-weight: 900;
}

.ml-top5__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ml-top5__category {
  display: block;
  max-width: 100%;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--ml-red) !important;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.075em;
  text-decoration: none !important;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ml-top5__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ml-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ml-top5__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.ml-top5__title a:hover {
  color: var(--ml-red) !important;
}

.ml-top5__meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 7px;
  color: var(--ml-muted);
  font-size: 9px;
  line-height: 1;
}

.ml-top5__views,
.ml-top5__comments {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.ml-top5__comments:hover {
  color: var(--ml-red) !important;
}

.ml-top5__eye {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 70% 30% 70% 30%;
  transform: rotate(45deg);
}

.ml-top5__eye::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.ml-top5__comments-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Мини-чат uCoz */
.ml-chat-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  border-radius: var(--ml-radius);
  background: #fff;
  color: var(--ml-ink);
  box-shadow: var(--ml-shadow-sm);
}

.ml-chat-shell__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ml-line);
  background: radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.09), transparent 48%), #fff;
}

.ml-chat-shell__eyebrow,
.ml-chat-shell__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ml-red);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ml-chat-shell__eyebrow {
  margin-bottom: 5px;
}

.ml-chat-shell__eyebrow i,
.ml-chat-shell__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.09);
}

.ml-chat-shell__heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ml-chat-shell__live {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(200, 16, 46, 0.15);
  border-radius: 999px;
  background: var(--ml-red-soft);
}

.ml-chat-shell__content {
  min-height: 330px;
  /*padding: 8px;*/
  background: var(--ml-soft);
}

.ml-chat-shell__content iframe {
  display: block;
  width: 100% !important;
  min-height: 330px;
  border: 0 !important;
  border-radius: 9px;
  background: #fff;
}

.ml-chat-online {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-top: 1px solid var(--ml-line);
  background: #fff;
}

.ml-chat-online__label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.ml-chat-online__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ml-red-soft);
  color: var(--ml-red);
}

.ml-chat-online__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-chat-online__label small,
.ml-chat-online__label strong {
  display: block;
}

.ml-chat-online__label small {
  margin-bottom: 3px;
  color: var(--ml-muted-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ml-chat-online__label strong {
  font-size: 11px;
  font-weight: 850;
}

.ml-chat-online__users {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ml-muted);
  font-size: 10px;
  text-align: right;
}

.ml-chat-online__users a {
  color: var(--ml-red) !important;
  font-weight: 800;
  text-decoration: none !important;
}

html.ml-chat-frame-root {
  min-width: 0;
  background: #fff;
}

body.ml-chat-frame-body {
  min-width: 0;
  min-height: 0;
  padding: 8px;
  overflow-x: hidden;
  background: #fff;
  color: var(--ml-ink);
  font-family: var(--ml-font);
  font-size: 12px;
  line-height: 1.45;
}

body.ml-chat-frame-body a {
  color: var(--ml-red) !important;
}

body.ml-chat-frame-body table {
  max-width: 100%;
}

body.ml-chat-frame-body textarea,
body.ml-chat-frame-body input[type="text"] {
  width: 100% !important;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--ml-line) !important;
  border-radius: 8px;
  background: #fff;
  color: var(--ml-ink);
  font-size: 12px;
  outline: 0;
}

body.ml-chat-frame-body textarea {
  min-height: 72px;
  resize: vertical;
}

body.ml-chat-frame-body textarea:focus,
body.ml-chat-frame-body input[type="text"]:focus {
  border-color: rgba(200, 16, 46, 0.5) !important;
  box-shadow: var(--ml-focus);
}

body.ml-chat-frame-body :where(input[type="button"], input[type="submit"], button) {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ml-red);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

/* Карточка сообщества */
.ml-community {
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ml-radius);
  background: radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.3), transparent 45%), #17191d;
  color: #fff;
  box-shadow: var(--ml-shadow-sm);
}

.ml-community__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #ef4864;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ml-community h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ml-community p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.62;
}

.ml-community__links {
  display: grid;
  gap: 7px;
}

.ml-community__links a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff !important;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.ml-community__links a:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(200, 16, 46, 0.32);
}

.ml-community__links i {
  color: #ef4864;
  font-size: 17px;
  font-style: normal;
}

/* 10. Подвал — $GLOBAL_BFOOTER$ */
.mlf {
  background: #15171b;
  color: rgba(255, 255, 255, 0.7);
}

.mlf a {
  text-decoration: none;
}

.mlf__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 54px;
  padding-top: 42px;
  padding-bottom: 38px;
}

.mlf__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}

.mlf__logo > span {
  display: grid;
  width: 36px;
  height: 40px;
  place-items: center;
  border-radius: 4px 4px 12px 12px;
  background: var(--ml-red);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.mlf__logo strong {
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.mlf__logo small {
  margin-left: 2px;
  color: #ef4864;
  font-size: 9px;
}

.mlf__brand p {
  max-width: 300px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.65;
}

.mlf__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mlf__nav div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.mlf__nav strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mlf__nav a {
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px;
}

.mlf__nav a:hover {
  color: #fff !important;
}

.mlf__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111317;
}

.mlf__bottom-inner {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
}

.mlf__bottom a {
  color: rgba(255, 255, 255, 0.64) !important;
}

/* 11. Адаптивность */
@media (max-width: 1180px) and (min-width: 901px) {
  .mln__link {
    padding-right: 13px;
    padding-left: 13px;
    font-size: 13px;
  }

  .ml-home__layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-width: 1020px) {
  .ml-home__layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 980px) {
  .mlh__main-inner {
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 18px;
  }

  .mlh__quote {
    justify-content: flex-start;
    padding: 0;
  }

  .mlh__quote-copy {
    max-width: 340px;
  }

  .mlh__quote-text {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 900px) {
  .mln-wrap {
    position: sticky;
    top: 0;
    border-bottom-width: 2px;
  }

  .mln {
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
  }

  .mln__mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    color: #fff !important;
    text-decoration: none !important;
  }

  .mln__mobile-mark {
    width: 4px;
    height: 34px;
    flex: 0 0 auto;
    margin-right: 11px;
    border-radius: 4px;
    background: var(--ml-red);
    box-shadow: 7px 0 0 rgba(200, 16, 46, 0.28);
  }

  .mln__mobile-brand > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .mln__mobile-brand strong {
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mln__mobile-brand small {
    overflow: hidden;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mln--ready .mln__toggle {
    display: flex;
  }

  .mln__toggle {
    min-width: 84px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    appearance: none;
  }

  .mln__toggle:hover,
  .mln__toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
  }

  .mln__toggle-label {
    margin-right: 9px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
  }

  .mln__toggle-icon {
    position: relative;
    display: block;
    width: 19px;
    height: 15px;
  }

  .mln__toggle-icon i {
    position: absolute;
    right: 0;
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }

  .mln__toggle-icon i:nth-child(1) { top: 0; }
  .mln__toggle-icon i:nth-child(2) { top: 6px; }
  .mln__toggle-icon i:nth-child(3) { top: 12px; }

  .mln-wrap.is-open .mln__toggle-icon i:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  .mln-wrap.is-open .mln__toggle-icon i:nth-child(2) {
    opacity: 0;
  }

  .mln-wrap.is-open .mln__toggle-icon i:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .mln__list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #14171c;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  }

  .mln--ready:not(.is-open) .mln__list {
    display: none;
  }

  .mln--ready.is-open .mln__list {
    animation: mln-open 0.18s ease-out both;
  }

  .mln__list li {
    display: block;
    width: 100%;
  }

  .mln__link {
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 14px;
    text-align: left;
    white-space: normal;
  }

  .mln__link::after {
    top: 13px;
    right: auto;
    bottom: 13px;
    left: 0;
    width: 4px;
    height: auto;
    border-radius: 0 4px 4px 0;
    transform: scaleY(0.35);
  }

  .mln__link:hover::after,
  .mln__link:focus-visible::after,
  .mln__link[aria-current="page"]::after {
    transform: scaleY(1);
  }

  .mln__link[aria-current="page"] {
    background: rgba(200, 16, 46, 0.2);
  }

  .ml-home-intro__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
  }

  .ml-home-intro p {
    max-width: 650px;
  }

  .ml-home-about {
    grid-template-columns: minmax(0, 1fr);
  }

  .mlf__inner {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 32px;
  }
}

@keyframes mln-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .ml-shell {
    width: calc(100% - 24px);
  }

  .mlh__service-inner {
    min-height: 31px;
    gap: 10px;
  }

  .mlh__since,
  .mlh__welcome,
  .mlh__account-link--register,
  .mlh__quote {
    display: none;
  }

  .mlh__datetime {
    margin-right: auto;
    font-size: 9px;
  }

  .mlh__account {
    margin-left: 0;
  }

  .mlh__account-link {
    min-height: 25px;
    padding: 0 6px;
    font-size: 9px;
  }

  .mlh__username {
    max-width: 105px;
  }

  .mlh__account-link--primary {
    padding-right: 8px;
    padding-left: 8px;
  }

  .mlh__main-inner {
    display: flex;
    min-height: 68px;
  }

  .mlh__brand {
    min-width: 0;
  }

  .mlh__brand-mark {
    width: 34px;
    height: 40px;
    flex-basis: 34px;
    margin-right: 8px;
    border-radius: 4px 4px 11px 11px;
    font-size: 12px;
  }

  .mlh__brand-copy strong {
    font-size: 16px;
  }

  .mlh__brand-copy small {
    margin-top: 4px;
    font-size: 6px;
    letter-spacing: 0.2em;
  }

  .mlh__brand-domain {
    margin-top: 11px;
    font-size: 9px;
  }

  .mlh__actions {
    margin-left: auto;
  }

  .mlh__telegram {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .ml7k__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .ml7k__button {
    width: 40px;
    min-width: 40px;
    padding: 0;
    font-size: 0;
  }

  .ml7k__button > span {
    font-size: 18px;
  }

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

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

@media (max-width: 640px) {
  .ml-home-intro__inner {
    padding-top: 27px;
    padding-bottom: 27px;
  }

  .ml-home-intro h1 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .ml-section-head {
    align-items: flex-start;
  }

  .ml-section-head__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ml-news-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ml-news-card__media {
    height: auto;
    aspect-ratio: 16 / 9 !important;
  }

  .ml-home-about {
    margin-top: 22px;
  }

  .mlf__nav {
    gap: 14px;
  }

  .mlf__bottom-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 560px) {
  .ml7k__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78px;
    gap: 12px;
    padding: 14px 0;
  }

  .ml7k__number {
    display: none;
  }

  .ml7k__message small {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .ml7k__message strong {
    font-size: 17px;
  }

  .ml7k__message > span {
    white-space: normal;
  }

  .ml-home {
    padding-top: 16px;
    padding-bottom: 38px;
  }

  .ml-section-head {
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .ml-section-head__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ml-home-about {
    padding: 22px;
    border-radius: var(--ml-radius);
  }

  .ml-home-about__links a {
    min-height: 68px;
  }

  .mlf__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mlf__nav div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .mlh__weekday,
  .mlh__account-link--logout .mlh__account-label,
  .mlh__account-link--messages .mlh__account-label {
    display: none;
  }

  .mlh__account-link--logout,
  .mlh__account-link--messages {
    width: 25px;
    justify-content: center;
    padding: 0;
  }

  .mlh__username {
    max-width: 78px;
  }

  .mln__mobile-brand small {
    display: none;
  }

  .mln__toggle {
    min-width: 48px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .mln__toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ml-home-intro p {
    padding-left: 14px;
    font-size: 13px;
  }

  .ml-top5__item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    min-height: 96px;
    padding: 11px 12px;
  }

  .ml-top5__media,
  .ml-top5__media img {
    min-height: 72px;
  }

  .ml-chat-online {
    align-items: flex-start;
    flex-direction: column;
  }

  .ml-chat-online__users {
    text-align: left;
  }
}

@media (max-width: 360px) {
  .mlh__calendar,
  .mlh__date,
  .mlh__brand-copy small,
  .mlh__search {
    display: none;
  }

  .mlh__time {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .mlh__brand-copy strong {
    font-size: 15px;
  }

  .ml-top5__period {
    display: none;
  }

  .ml-top5__item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .nmw-stack {
    gap: 12px;
  }

  .nmw-last,
  .nmw-next-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nmw-report {
    margin-right: -16px;
    margin-left: -16px;
  }

  .nmw-next-foot {
    padding: 16px;
  }

  .nmw-dark-chip {
    display: none;
  }

  .nmw-crest {
    width: 66px;
    height: 66px;
  }

  .nmw-team--small .nmw-crest {
    width: 56px;
    height: 56px;
  }

  .nmw-result {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  }

  .nmw-score > strong {
    font-size: 27px;
  }

  .nmw-table-head {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nmw-league-count {
    margin-right: 16px;
    margin-left: 16px;
    padding: 12px;
  }

  .nmw-table-row {
    grid-template-columns: 23px minmax(0, 1fr) 22px 27px 22px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* 12. Доступность, системные режимы и печать */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.ml-site *,
  body.ml-site *::before,
  body.ml-site *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .mlh__brand-mark,
  .ml7k__button,
  .nmw-button,
  .ml-community {
    border: 1px solid ButtonText;
  }
}

@media print {
  .mlh__service,
  .mlh__actions,
  .mlh__quote,
  .mln-wrap,
  .ml7k,
  .ml-back-top,
  .ml-home__sidebar,
  .ml-section-head__actions,
  .mlf {
    display: none !important;
  }

  body.ml-site,
  .ml-home,
  .ml-home-intro {
    background: #fff !important;
  }

  .ml-home__layout {
    display: block;
  }

  .ml-home-news > * {
    break-inside: avoid;
    box-shadow: none !important;
  }
}
/* ЧАТ */

.mchat-body {
 background-color: #fafafa;
}

.ml-chat-shell,
.ml-chat-shell *,
.ml-chat-message,
.ml-chat-message *,
.ml-chat-form,
.ml-chat-form *,
.ml-chat-auth,
.ml-chat-auth * {
 box-sizing: border-box;
}

.ml-chat-shell {
 --ml-chat-red: #c8102e;
 --ml-chat-red-dark: #a70e27;
 --ml-chat-ink: #191919;
 --ml-chat-muted: #767672;
 --ml-chat-line: #e3e3de;
 --ml-chat-soft: #f6f6f3;

 width: 100%;
 margin: 0 0 20px;
 overflow: hidden;
 border: 1px solid var(--ml-chat-line);
 border-radius: 7px;
 background: #fff;
 color: var(--ml-chat-ink);
 font-family: inherit;
 box-shadow: 0 10px 30px rgba(20, 20, 20, 0.055);
}

.ml-chat-shell__header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 min-height: 78px;
 padding: 16px 17px;
 border-bottom: 1px solid var(--ml-chat-line);
 background:
 radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.1), transparent 46%),
 #fff;
}

.ml-chat-shell__eyebrow {
 display: flex;
 align-items: center;
 gap: 7px;
 margin-bottom: 5px;
 color: var(--ml-chat-red);
 font-size: 10px;
 font-weight: 900;
 line-height: 1;
 letter-spacing: 0.12em;
 text-transform: uppercase;
}

.ml-chat-shell__eyebrow i,
.ml-chat-shell__live i {
 display: block;
 flex: 0 0 auto;
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: var(--ml-chat-red);
}

.ml-chat-shell__heading h2 {
 margin: 0;
 color: var(--ml-chat-ink);
 font-size: 21px;
 font-weight: 700;
 line-height: 1.08;
 /*letter-spacing: -0.035em;*/
}

.ml-chat-shell__live {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 9px;
 border: 1px solid rgba(200, 16, 46, 0.16);
 border-radius: 15px;
 background: rgba(200, 16, 46, 0.055);
 color: var(--ml-chat-red);
 font-size: 9px;
 font-weight: 900;
 line-height: 1;
 letter-spacing: 0.08em;
 text-transform: uppercase;
}

.ml-chat-shell__live i {
 width: 6px;
 height: 6px;
 animation: ml-chat-pulse 1.8s ease-out infinite;
}

.ml-chat-shell__content {
 background: var(--ml-chat-soft);
}

.ml-chat-shell__content iframe {
 display: block;
 width: 100% !important;
 height: 400px !important;
 margin: 0;
 border: 0 !important;
 background: var(--ml-chat-soft);
}

.ml-chat-frame-root,
.ml-chat-frame-body {
 min-width: 0 !important;
 margin: 0 !important;
 padding: 0 !important;
 overflow-x: hidden !important;
 background: #f6f6f3 !important;
 color: #191919;
 font-family: Arial, Helvetica, sans-serif;
 scrollbar-color: #c8c8c2 transparent;
 scrollbar-width: thin;
}

.ml-chat-frame-body {
 padding: 10px !important;
}

.ml-chat-frame-body::-webkit-scrollbar {
 width: 8px;
}

.ml-chat-frame-body::-webkit-scrollbar-thumb {
 border: 2px solid #f6f6f3;
 border-radius: 999px;
 background: #c8c8c2;
}

.ml-chat-message {
 position: relative;
 display: grid;
 grid-template-columns: 40px minmax(0, 1fr);
 gap: 10px;
 margin: 0 0 9px;
 padding: 11px;
 border: 1px solid #e2e2dd;
 border-radius: 15px;
 background: #fff;
 color: #191919;
 font-family: inherit;
 box-shadow: 0 3px 12px rgba(20, 20, 20, 0.035);
}

.ml-chat-message:last-child {
 margin-bottom: 0;
}

.ml-chat-message__avatar {
 position: relative;
 display: grid;
 width: 40px;
 height: 40px;
 overflow: hidden;
 place-items: center;
 border: 2px solid #fff;
 border-radius: 50%;
 background: linear-gradient(145deg, #8d0c23, #d91c3b);
 box-shadow: 0 0 0 1px rgba(200, 16, 46, 0.13);
 text-decoration: none;
}

.ml-chat-message__avatar-fallback {
 position: absolute;
 color: rgba(255, 255, 255, 0.92);
 font-size: 14px;
 font-weight: 900;
}

.ml-chat-message__avatar img {
 position: relative;
 z-index: 1;
 display: block;
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.ml-chat-message__content {
 min-width: 0;
}

.ml-chat-message__head {
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: 8px;
 min-width: 0;
}

.ml-chat-message__name {
 min-width: 0;
 overflow: hidden;
 color: #c8102e;
 font-size: 12px;
 font-weight: 900;
 line-height: 1.2;
 text-decoration: none;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.ml-chat-message__name:hover {
 text-decoration: underline;
 text-underline-offset: 2px;
}

.ml-chat-message__date {
 display: inline-flex;
 flex: 0 0 auto;
 gap: 4px;
 color: #8a8a86;
 font-size: 9px;
 line-height: 1;
 white-space: nowrap;
}

.ml-chat-message__text {
 margin-top: 6px;
 color: #2b2b2a;
 font-size: 12px;
 line-height: 1.48;
 overflow-wrap: anywhere;
}

.ml-chat-message__text img,
.ml-chat-message__text video,
.ml-chat-message__text iframe {
 max-width: 100% !important;
 height: auto;
}

.ml-chat-message__text a {
 color: #b30e29;
 text-decoration: underline;
 text-decoration-color: rgba(179, 14, 41, 0.3);
 text-underline-offset: 2px;
}

.ml-chat-message__reply {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 margin: 7px 0 0;
 padding: 0;
 border: 0;
 background: transparent;
 color: #82827e;
 cursor: pointer;
 font: inherit;
 font-size: 9px;
 font-weight: 800;
 line-height: 1;
}

.ml-chat-message__reply:hover {
 color: #c8102e;
}

.ml-chat-message__reply svg {
 width: 12px;
 height: 12px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.7;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.ml-chat-form,
.ml-chat-auth {
 border-top: 1px solid var(--ml-chat-line);
 background: #fff;
}

.ml-chat-form {
 padding: 13px 14px 14px;
}

.ml-chat-form__toolbar,
.ml-chat-form__footer,
.ml-chat-captcha {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.ml-chat-form__toolbar {
 margin-bottom: 12px;
}

.ml-chat-form__autoupdate {
 display: flex;
 align-items: center;
 gap: 7px;
 color: var(--ml-chat-muted);
 font-size: 9px;
 font-weight: 800;
 letter-spacing: 0.02em;
}

.ml-chat-form__autoupdate select {
 min-width: 62px;
 height: 30px;
 padding: 0 23px 0 8px;
 border: 1px solid var(--ml-chat-line);
 border-radius: 15px;
 background: #fff;
 color: var(--ml-chat-ink);
 font: inherit;
}

.ml-chat-form__tools {
 display: flex;
 gap: 5px;
}

.ml-chat-tool {
 display: grid;
 width: 31px;
 height: 31px;
 place-items: center;
 border: 1px solid var(--ml-chat-line);
 border-radius: 15px;
 background: #fff;
 color: #6f6f6b !important;
 text-decoration: none !important;
 transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.ml-chat-tool:hover {
 border-color: rgba(200, 16, 46, 0.25);
 background: rgba(200, 16, 46, 0.045);
 color: var(--ml-chat-red) !important;
}

.ml-chat-tool svg,
.ml-chat-auth__icon svg,
.ml-chat-online__icon svg {
 width: 16px;
 height: 16px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.7;
 stroke-linecap: round;
 stroke-linejoin: round;
}

.ml-chat-form__fields {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 9px;
 margin-bottom: 10px;
}

.ml-chat-field {
 display: block;
 min-width: 0;
}

.ml-chat-field--wide {
 grid-column: 1 / -1;
}

.ml-chat-field > span {
 display: block;
 margin: 0 0 6px;
 color: #6f6f6b;
 font-size: 9px;
 font-weight: 900;
 line-height: 1;
 letter-spacing: 0.07em;
 text-transform: uppercase;
}

.ml-chat-form input[type="text"],
.ml-chat-form input[type="email"],
.ml-chat-form input[type="url"],
.ml-chat-form input[type="password"],
.ml-chat-form textarea {
 display: block;
 width: 100% !important;
 min-width: 0;
 margin: 0;
 border: 1px solid var(--ml-chat-line);
 border-radius: 15px;
 outline: none;
 background: #fafaf8;
 color: var(--ml-chat-ink);
 font-family: inherit;
 font-size: 12px;
 transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ml-chat-form input[type="text"],
.ml-chat-form input[type="email"],
.ml-chat-form input[type="url"],
.ml-chat-form input[type="password"] {
 height: 38px;
 padding: 0 11px;
}

.ml-chat-form textarea {
 min-height: 88px;
 max-height: 190px;
 padding: 10px 11px;
 resize: vertical;
 line-height: 1.45;
}

.ml-chat-form input:focus,
.ml-chat-form textarea:focus,
.ml-chat-form select:focus {
 border-color: rgba(200, 16, 46, 0.55);
 outline: none;
 background: #fff;
 box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.075);
}

.ml-chat-field--message {
 margin-bottom: 10px;
}

.ml-chat-captcha {
 align-items: end;
 margin-bottom: 10px;
}

.ml-chat-captcha .ml-chat-field {
 flex: 1 1 auto;
}

.ml-chat-captcha__image {
 flex: 0 0 auto;
 padding-bottom: 2px;
}

.ml-chat-captcha__image img {
 display: block;
 max-width: 120px;
 height: 36px;
 border-radius: 7px;
}

.ml-chat-form__counter {
 display: flex;
 align-items: center;
 gap: 4px;
 color: var(--ml-chat-muted);
 font-size: 9px;
}

.ml-chat-form__counter input {
 max-width: 48px;
 border: 0 !important;
 background: transparent !important;
 color: inherit;
 font: inherit;
}

.ml-chat-form__submit input,
.ml-chat-form__submit button {
 min-width: 122px;
 min-height: 38px;
 padding: 0 15px;
 border: 0;
 border-radius: 15px;
 background: var(--ml-chat-red);
 color: #fff;
 cursor: pointer;
 font-family: inherit;
 font-size: 11px;
 font-weight: 900;
 transition: background 150ms ease, transform 150ms ease;
}

.ml-chat-form__submit input:hover,
.ml-chat-form__submit button:hover {
 background: var(--ml-chat-red-dark);
}

.ml-chat-form__submit input:active,
.ml-chat-form__submit button:active {
 transform: translateY(1px);
}

.ml-chat-auth {
 display: flex;
 align-items: flex-start;
 gap: 11px;
 padding: 14px;
}

.ml-chat-auth__icon {
 display: grid;
 flex: 0 0 36px;
 width: 36px;
 height: 36px;
 place-items: center;
 border-radius: 10px;
 background: rgba(200, 16, 46, 0.07);
 color: var(--ml-chat-red);
}

.ml-chat-auth strong {
 display: block;
 margin: 1px 0 4px;
 color: var(--ml-chat-ink);
 font-size: 12px;
 font-weight: 900;
}

.ml-chat-auth p {
 margin: 0;
 color: var(--ml-chat-muted);
 font-size: 11px;
 line-height: 1.45;
}

.ml-chat-auth a {
 color: var(--ml-chat-red) !important;
 font-weight: 800;
 text-decoration: none !important;
}

.ml-chat-auth a:hover {
 text-decoration: underline !important;
 text-underline-offset: 2px;
}

.ml-chat-online {
 padding: 14px 16px 15px;
 border-top: 1px solid var(--ml-chat-line);
 background: #fff;
}

.ml-chat-online__label {
 display: flex;
 align-items: center;
 gap: 9px;
 margin-bottom: 8px;
}

.ml-chat-online__icon {
 display: grid;
 flex: 0 0 31px;
 width: 31px;
 height: 31px;
 place-items: center;
 border-radius: 15px;
 background: var(--ml-chat-soft);
 color: var(--ml-chat-red);
}

.ml-chat-online__label small,
.ml-chat-online__label strong {
 display: block;
}

.ml-chat-online__label small {
 margin-bottom: 2px;
 color: var(--ml-chat-muted);
 font-size: 9px;
 line-height: 1;
}

.ml-chat-online__label strong {
 color: var(--ml-chat-ink);
 font-size: 11px;
 line-height: 1.15;
}

.ml-chat-online__users {
 padding: 9px 10px;
 border-radius: 15px;
 background: var(--ml-chat-soft);
 color: var(--ml-chat-muted);
 font-size: 13px;
 line-height: 1.45;
 overflow-wrap: anywhere;
}

.ml-chat-online__users a {
 color: var(--ml-chat-red) !important;
 font-weight: 800;
 text-decoration: none !important;
}

.ml-chat-online__users a:hover {
 text-decoration: underline !important;
 text-underline-offset: 2px;
}

@keyframes ml-chat-pulse {
 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.35); }
 70%, 100% { box-shadow: 0 0 0 6px rgba(200, 16, 46, 0); }
}

@media (max-width: 430px) {
 .ml-chat-shell {
 border-radius: 13px;
 }

 .ml-chat-shell__header {
 min-height: 72px;
 padding: 14px;
 }

 .ml-chat-shell__heading h2 {
 font-size: 19px;
 }

 .ml-chat-shell__content iframe {
 height: 390px !important;
 }

 .ml-chat-form__fields {
 grid-template-columns: minmax(0, 1fr);
 }

 .ml-chat-field--wide {
 grid-column: auto;
 }

 .ml-chat-form__autoupdate > span {
 display: none;
 }
}

@media (max-width: 340px) {
 .ml-chat-shell__live {
 display: none;
 }

 .ml-chat-form__footer {
 align-items: stretch;
 flex-direction: column;
 }

 .ml-chat-form__submit input,
 .ml-chat-form__submit button {
 width: 100%;
 }
}

@media (prefers-reduced-motion: reduce) {
 .ml-chat-shell__live i {
 animation: none;
 }
}

/* Карточка краткой новости */
.ml-news-card {
  position: relative;
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: auto 250px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  margin-bottom: 20px;
}

.ml-news-card--text {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.075), transparent 42%),
    #fff;
}

.ml-news-card--text::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ml-red);
  content: "";
}

.ml-news-card--text .ml-news-card__body {
  padding-left: clamp(22px, 3vw, 31px);
}

/* Панель управления видна только редакторам и администраторам uCoz */
.ml-news-card__moder {
  position: absolute;
  z-index: 6;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(23, 23, 23, 0.12);
  color: var(--ml-ink);
  font-size: 11px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.ml-news-card__moder :where(img, svg) {
  display: inline-block;
  width: auto;
  max-height: 18px;
  vertical-align: middle;
}

/* Изображение */
.ml-news-card__media {
  outline: 0;
}

.ml-news-card__media:focus-visible {
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.92), inset 0 0 0 7px var(--ml-red);
}

.ml-news-card__body {
  position: relative;
  z-index: 1;
}

/* Дата и время */
.ml-news-card__date,
.ml-news-card__time {
  color: var(--ml-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Краткое описание: убирает дубли изображения из $MESSAGE$ */
.ml-news-card__summary > :first-child {
  margin-top: 0 !important;
}

.ml-news-card__summary > :last-child {
  margin-bottom: 0 !important;
}

.ml-news-card__summary :where(p, div) {
  display: inline;
  margin: 0 !important;
}

.ml-news-card__summary :where(img, picture, video, iframe, object, embed, table) {
  display: none !important;
}

.ml-news-card__summary a {
  color: inherit;
  text-decoration-color: rgba(200, 16, 46, 0.35);
  text-underline-offset: 2px;
}

/* Нижняя строка карточки */
.ml-news-card__stats {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.ml-news-card__stat {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: var(--ml-muted) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.ml-news-card__stat svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-news-card__stat strong {
  color: var(--ml-ink);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

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

.ml-news-card__author span {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-news-card__read {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ml-news-card__read span {
  font-size: 15px;
  transition: transform 0.16s ease;
}

.ml-news-card__read:hover span,
.ml-news-card__read:focus-visible span {
  transform: translateX(3px);
}

@media (hover: hover) and (pointer: fine) {
  .ml-news-card:hover {
    border-color: rgba(200, 16, 46, 0.28);
    box-shadow: 0 15px 38px rgba(23, 23, 23, 0.09);
    transform: translateY(-2px);
  }
}

@media (max-width: 520px) {
  .ml-news-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ml-news-card__read {
    align-self: flex-start;
  }

  .ml-news-card__stat-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }
}

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

  .ml-news-card:hover,
  .ml-news-card__read:hover span,
  .ml-news-card__read:focus-visible span {
    transform: none !important;
  }
}