:root {
  --black: #000000;
  --navy: #00284d;
  --blue: #005596;
  --white: #ffffff;
  --gray-100: #f6f7f9;
  --gray-200: #e6e8eb;
  --text-main: #1a1a1a;
  --text-secondary: #555;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--gray-100);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a {
  text-decoration: none; 
  color: #111;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-3col {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .grid-3col {
    grid-template-columns: 1fr;
  }
  .sidebar-left,
  .sidebar-right {
    margin-bottom: 24px;
  }
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 38px; /* было 24px, стало 32px — даст больше воздуха вокруг стрелки */
}


.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 44px; /* фиксируем высоту, чтобы центр был предсказуемым */
}

.nav-link {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center; /* центрируем текст внутри ссылки */
  box-sizing: border-box;
}

/* Стрелка как отдельный треугольник — не будет «наезжать» на буквы */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  right: -20px;               /* <-- положительное число: двигает ВПРАВО от текста */
  top: 53%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #adc2c7; /* жёлтый */
  pointer-events: none;
  z-index: 1;
}


.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  min-width: 200px;
  display: none;
  margin-top: 0px;
  z-index: 101;
}

.nav-item:hover .dropdown-menu {
  display: block;
}



.dropdown-link {
  display: block;
  padding: 8px 0;
  color: var(--text-main);
  text-decoration: none;
}

.dropdown-link:hover {
  color: var(--blue);
}

/* Новости */
.news-list {
  display: grid;
  gap: 20px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);  
  margin-bottom: 25px;
}

.news-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;

  /* Закругление углов */
  border-radius: 1px;

  /* Небольшая тень */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  display: block; /* убирает лишние отступы снизу у картинки */
}


.news-body {
  padding: 20px;
}

.news-meta {
  display: flex;
  align-items: center;       /* вертикальное выравнивание по центру */
  gap: 10px;                 /* расстояние между датой и категорией */
  margin-bottom: 12px;
}

.news-meta span {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
}


.news-category {
  background-color: #ddd;       /* голубой фон */
  color: #ddd;                     /* светло‑серый текст */
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-category a {
  color: #555;                     /* светло‑серый текст */
}

.news-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.news-link {
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Сайдбары и виджеты */
.widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
  border-left: 4px solid var(--blue);
  padding-left: 12px;
}

/* Блоки матчей */
.match-block {
  text-align: center;
  padding: 16px 0;
  border-radius: 12px;
  margin-bottom: 12px;
}

.match-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
}

.match-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.match-date-time {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.match-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

/* Таблица Серии А */
.table-serie-a {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.table-serie-a th,
.table-serie-a td {
  padding: 10px 8px;
}

/* Белый фон у заголовков + толстая чёрная линия снизу */
.table-serie-a thead th {
  background-color: #ffffff;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 3px solid #ddd;
}

/* Разделители между строками (командами) */
.table-serie-a tbody tr {
  border-bottom: 1px solid var(--border-color);
}

/* Убираем разделитель у последней строки */
.table-serie-a tbody tr:last-child {
  border-bottom: none;
}

/* Чередование цветов строк */
.table-serie-a tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.table-serie-a tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

/* Позиция 1 — акцентный стиль (перекрывает чередование) */
.table-serie-a .top-team {
  background-color: #fff8e1 !important;
  font-weight: 600;
}

.pos-1 {
  color: #d4af37; /* золотой цвет для 1-го места */
}

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

.team-logo-sm {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}


/* Кнопка «Вся таблица» */
.table-actions {
  margin-top: 12px;
  text-align: center;
}

.btn-full-table {
  display: inline-block;
  width: 100%;                   /* кнопка на всю ширину */
  padding: 10px 16px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color .2s ease;
}

.btn-full-table:hover {
  background-color: var(--primary-hover);
  color: #fff;
}

.table-squad {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  margin-top: 16px;
  font-size: 15px;
}

/* Заголовки таблицы: белый фон + чёрная линия снизу */
.table-squad thead th {
  background-color: #ffffff;
  color: #333;             /* тёмный текст на белом фоне */
  padding: 11px 11px;
  text-align: left;
  font-weight: 600;
  border-bottom: 3px solid #ddd;  /* толстая чёрная линия */
}

.table-squad tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

/* Убираем разделитель после последней строки */
.table-squad tbody:last-of-type tr:last-child {
  border-bottom: none;
}

/* Чередование цветов строк */
.table-squad tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.table-squad tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-squad td {
  padding: 7px 12px;
  vertical-align: middle;
}

/* Строки-заголовки секций (Вратари, Защитники и т.д.) */
.table-squad .squad-section {
  background-color: #00284d; /* фирменный тёмно‑синий «Интера» */
  color: #ffffff;
  padding: 8px 12px !important;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #ffffff;
  cursor: default;
}

.table-squad .squad-section td {
  padding: 8px 12px;
}

/* Иконки в ячейках */
.table-squad i.fa-solid {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}


/* Ссылки в таблице — чуть светлее (не тёмно‑синий, а ближе к фирменному оттенку) */
.table-squad a {
  color: #0c6fbb;          /* чуть светлее, чем #00284d */
  text-decoration: none;
  font-weight: 500;
}

.table-squad a:hover {
  color: #d4af37;          /* золотой при наведении — как раньше */
  text-decoration: underline;
}

/* Стоимость — выравнивание и цвет */
.table-squad td:last-child {
  text-align: right;
  font-weight: 600;
  color: #444;
}

.squad-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.season-label {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-right: 12px;
}

.season-dropdown {
  position: relative;
}

.season-toggle {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-toggle:hover {
  border-color: #00284d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.season-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  min-width: 140px;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.season-dropdown.open .season-list {
  opacity: 1;
  visibility: visible;
}

.season-list li {
  text-align: center;
}

.season-list a {
  display: block;
  padding: 8px 12px;
  color: #004477;
  text-decoration: none;
}

.season-list a:hover {
  background-color: #f5f5f5;
  color: #d4af37;
}

/* стрелка при открытом состоянии */
.season-dropdown.open .arrow {
  transform: rotate(180deg);
}

.matches-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.matches-table thead tr {
  background-color: #00284d;
}

.matches-table th {
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.matches-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

/* Чередование фона строк для читаемости */
.matches-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Статус: сыгранный матч */
.matches-table .match-finished td {
  color: #444;
}
.matches-table .match-finished td:first-child {
  background-color: #eef2f5;
  color: #00284d;
  font-weight: 700;
}

/* Статус: будущий матч */
.matches-table .match-upcoming td {
  color: #555;
}
.matches-table .match-upcoming td:first-child {
  background-color: #ffffff;
  color: #666;
  border: 1px solid #e0e0e0;
}

.small-text {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Выделение «Интера» в матче */
.matches-table strong {
  color: #00284d;
}
:root {
  --inter-blue: #00284d;
  --inter-black: #000000;
  --inter-white: #ffffff;
  --text-gray: #555555;
  --border-color: #cccccc;
}

.abbr-legend-title {
  color: var(--inter-black);
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.abbr-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.abbr-legend li {
  background: var(--inter-white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--inter-blue);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.4;
}

.abbr {
  font-weight: 700;
  color: var(--inter-black);
  display: inline-block;
  min-width: 24px;
  text-align: center;
}



.guestbook-module {
    background: #ffffff;
    border: none;
    border-radius: 6px;
}

/* Горизонтальная форма входа */
.guestbook-login-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.guestbook-login-form input[type="text"],
.guestbook-login-form input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Кнопка входа — фирменный цвет и скругление */
.guestbook-btn-small {
    padding: 8px 16px;
    background-color: #005596;
    color: white;
    border: none;
    border-radius: 25px; /* более круглая */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.guestbook-btn-small:hover {
    background-color: #004275; /* чуть темнее при наведении */
}

/* Статус авторизации */
.guestbook-auth-status {
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 10px;
    background-color: #eef6ff;
    border-left: 4px solid #005596; /* акцентная полоса в фирменном цвете */
    border-radius: 4px;
}

/* Панель смайлов */
.guestbook-smiles-panel {
    margin-bottom: 8px;
    font-size: 13px;
    color: #2c2c2c;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
}
.guestbook-smiles-label {
    margin-right: 8px;
    font-weight: 600;
}
.gb-smile-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    margin: 0 4px 0 0;
    color: #333;
}
.gb-smile-btn:hover {
    background-color: #eef6ff;
    border-color: #b6d7ff;
}

/* Заголовок формы */
.guestbook-label {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Поле ввода — рамка в фирменном синем */
.guestbook-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #005596;
    border-radius: 4px;
    padding: 10px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease;
}
.guestbook-form textarea:focus {
    outline: none;
    border-color: #004275;
}

/* Кнопка отправки — фирменный цвет и более круглая */
.guestbook-btn {
    margin-top: 12px;
    background-color: #005596;
    color: white;
    border: none;
    padding: 10px 20px; /* чуть просторнее */
    border-radius: 25px; /* более круглая */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.guestbook-btn:hover {
    background-color: #004275;
}

/* Линия над списком сообщений */
.guestbook-list {
    margin-top: 20px;
    position: relative;
}
.guestbook-list-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

/* Каждое сообщение */
.guestbook-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.guestbook-item:last-child {
    border-bottom: none;
}

.guestbook-author {
    color: #222;
}
.guestbook-date {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}
.guestbook-text {
    margin-top: 6px;
    color: #444;
    line-height: 1.4;
}
.guestbook-empty {
    padding: 12px;
    color: #888;
    margin: 0;
}

/* Пагинация */
.guestbook-pagination {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
}
.gb-page-link {
    color: #005596;
    text-decoration: none;
    margin: 0 8px;
}
.gb-page-link:hover {
    text-decoration: underline;
}
.gb-page-info {
    margin: 0 12px;
    font-weight: 500;
}




/* --- Гамбургер кнопка --- */
.hamburger {
  display: none; /* скрыто на десктопе */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  order: 0; /* ставим перед меню */
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #000000; /* чёрный цвет */
  margin: 4px 0;
  transition: background-color 0.2s;
}


/* Активное состояние гамбургера (крестик) */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}


/* --- Мобильное меню (выезжающее) --- */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* показываем кнопку */
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%; /* скрыто слева */
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: 5px 0 20px rgba(0,0,0,0.12);
    z-index: 1001;
    padding: 16px 0 0 16px;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
  }

  .main-nav.active {
    left: 0; /* выезжает на экран */
  }

  /* Блоки-обёртки для пунктов, чтобы подменю работали корректно */
  .nav-item-wrapper {
    width: 100%;
  }

  .nav-item {
    position: relative;
    width: 100%;
    margin: 0;
    min-height: 44px;
  }

  .nav-link {
    white-space: normal;
    text-align: left;
    padding: 10px 8px;
    border-radius: 8px;
    color: var(--text-main);
  }

  .nav-link:hover {
    background-color: #f5f6f8;
  }

  /* Стрелка у пунктов с выпадающим меню — делаем её частью ссылки или рядом */
  .has-dropdown .nav-link::after {
    content: '▼';
    font-size: 11px;
    color: #999;
    float: right;
    margin-left: 12px;
    line-height: 1.4;
  }

  /* Выпадающее меню внутри мобильного: раскрываем вниз по клику */
  .dropdown-menu {
    position: static; /* не absolute, чтобы шло потоком */
    transform: none;
    left: 0;
    top: auto;
    margin: 8px 0 16px 0;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 12px 8px;
    box-shadow: var(--shadow);
    display: none; /* скрыто по умолчанию */
    flex-direction: column;
    gap: 6px;
  }

  .has-dropdown.open .dropdown-menu {
    display: flex; /* показываем при классе .open */
  }

  .dropdown-link {
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text-main);
  }
  .dropdown-link:hover {
    color: var(--blue);
    background-color: #f0f4f8;
  }

  /* Логотип и бренд центрируем над меню на мобильном */
  .site-brand {
    justify-content: center;
    order: -1; /* перед кнопкой гамбургера */
  }
}

.news_share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.news_share__label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  margin-right: 12px;
}

.news_share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #f5f6f8;
  color: #333;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.news_share__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  background-color: var(--white);
}

.news_share__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.news_share__link[title*="ВКонтакте"]:hover {
  background-color: #0077FF;
  color: #fff;
}

.news_share__link[title*="Telegram"]:hover {
  background-color: #24A1DE;
  color: #fff;
}

.news_share__link--internal {
  background-color: transparent;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

.news_share__link--internal:hover {
  background-color: #f0f0f0;
  transform: none;
  box-shadow: none;
  border-color: #ccc;
}

.news-hrn {
  border: 0;
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

.similar-news-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 20px;
  position: relative;
}

.similar-news-section h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--blue);
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* ГЛАВНОЕ ИЗМЕНЕНИЕ: одна колонка вместо 5 */
.similar-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.similar-news-item {
  display: flex;
  align-items: flex-start;
  overflow: visible;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.similar-news-img-wrapper {
  flex: 0 0 100px;       /* фиксированная ширина картинки */
  height: 80px;          /* фиксированная высота */
  overflow: hidden;
  border-radius: var(--radius) 0 0 var(--radius);
}

.similar-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.similar-news-body {
  padding: 16px 16px 16px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.similar-news-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 4px;
  text-decoration: none;
  overflow: visible;
  text-overflow: clip;
}

.similar-news-title:hover {
  color: var(--blue);
}

.similar-news-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  display: block;
}

/* На мобильном оставляем одну колонку — тут ничего менять не надо */
@media (max-width: 768px) {
  .similar-news-grid {
    grid-template-columns: 1fr;
  }
  .similar-news-item {
    flex-direction: column;
  }
  .similar-news-img-wrapper {
    width: 100%;
    height: 140px;
    border-radius: var(--radius);
  }
  .similar-news-body {
    padding: 16px;
    text-align: left;
  }
}

#moduleNewsComments #errorAuth {
    background-color: #EF9A9A;
    border-radius: 3px;
    text-align: center;
    color: #333;
    padding: 15px 20px;
}

#moduleNewsComments #commentForm {
    background-color: #eee;
    border-radius: 3px;
    padding: 15px 20px;
    margin-bottom: 10px;
}

#moduleNewsComments #commentForm p {
    margin-bottom: 10px;
}

#moduleNewsComments #comments {
    font-size: 14px;
    margin-top: 10px;
}

/* Блок комментария */
#comments .comment {
    position: relative;
    /* padding-bottom 24px — это и даёт отступ снизу до линии */
    padding: 0 20px 24px 70px;
    margin-bottom: 0;
    
    /* Линия-разделитель */
    border-bottom: 1px solid #e0e0e0;
}

/* У последнего комментария линии нет */
#comments .comment:last-child {
    border-bottom: none;
}

#commentsHeader {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main, #1a1a1a); /* запасной цвет, если переменная не задана */
  margin: 32px 0 20px;
  position: relative;
  line-height: 1.2;
}
#commentsHeader h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--blue);
  position: absolute;
  bottom: -8px;
  left: 0;
}

/* Аватар: круглый, без рамки */
.comment .avatar {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: transparent;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
}

.comment .avatar img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Шапка комментария: выравниваем в строку */
.comment .commentHead {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px; /* Расстояние между элементами */
}

.commentHead .author,
.commentHead .gost,
.commentHead .re {
    white-space: nowrap;
}

.commentHead .author {
    font-size: 16px;
    font-weight: 700; /* Жирный ник */
}

.commentHead .gost {
    color: #E53935;
}

.comment .commentContent p {
    margin-bottom: 5px;
}

.comment .commentContent p:last-child {
    margin-bottom: 0px;
}


.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.this {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0056b3;
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
}

.link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

/* Hover: рамка и текст — #999888 */
.link:hover {
  border-color: #999888;
  color: #999888;
  background-color: rgba(153, 152, 136, 0.08); /* очень лёгкий фон того же оттенка */
}

.link.last {
  border-color: #ccc;
  color: #666;
}

.link.last:hover {
  border-color: #999888;
  color: #999888;
}



footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;

  /* Центрирование по горизонтали */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Контейнер внутри футера, чтобы не центрировать всё впритык к краю экрана */
.footer-inner {
  max-width: 1200px;
  width: 100%;
  padding: 0 15px;
  text-align: center; /* На случай, если внутри будут просто параграфы */
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.85rem;
  color: #888;
}

