.star-rating,
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus,
.star-rating .current-rating{background:url(../images/stars.png) left -1000px repeat-x;}
.star-rating{position:relative;width:125px;height:25px;overflow:hidden;list-style:none;margin:0px auto;padding:0;background-position:left top;}
.star-rating li, .star-rating dt{display:inline;}
.star-rating a,
.star-rating .current-rating{position:absolute;top:0;left:0;text-indent:-1000em;height:25px;line-height:25px;outline:none;overflow:hidden;border:none;}
.star-rating a:hover,
.star-rating a:active,
.star-rating a:focus{background-position:left bottom;}
.star-rating a.one-star{width:20%;z-index:6;}
.star-rating a.two-stars{width:40%;z-index:5;}
.star-rating a.three-stars{width:60%;z-index:4;}
.star-rating a.four-stars{width:80%;z-index:3;}
.star-rating a.five-stars{width:100%;z-index:2;}
.star-rating .current-rating{z-index:1;background-position:left center;}
.inline-rating{display:-moz-inline-block;display:-moz-inline-box;display:inline-block;vertical-align:middle;}
.lead{font-size:12px;color:#039;font-weight:bold;}
.star-rating1,
.star-rating1 a:hover,
.star-rating1 a:active,
.star-rating1 a:focus,
.star-rating1 .current-rating{background:url(../images/stars.png) left -1000px repeat-x;}
.star-rating1{position:relative;width:125px;height:25px;overflow:hidden;list-style:none;margin:0px auto;padding:0;background-position:left top;}
.star-rating1 li, .star-rating1 dt{display:inline;}
.star-rating1 a,
.star-rating1 .current-rating{position:absolute;top:0;left:0;text-indent:-1000em;height:25px;line-height:25px;outline:none;overflow:hidden;border:none;}
.star-rating1 a.one-star{width:20%;z-index:6;}
.star-rating1 a.two-stars{width:40%;z-index:5;}
.star-rating1 a.three-stars{width:60%;z-index:4;}
.star-rating1 a.four-stars{width:80%;z-index:3;}
.star-rating1 a.five-stars{width:100%;z-index:2;}
.star-rating1 .current-rating{z-index:1;background-position:left;}
.anek .btn{
  border-radius: 12px !important;
  padding: 8px 10px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(37,99,235,.25) !important;
  background: rgba(37,99,235,.10) !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}
.anek .btn:hover{
  background: rgba(37,99,235,.16) !important;
}

/* dropdown (меню тегов) */
.anek .dropdown-menu{
  border-radius: 12px;
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 40px rgba(17,24,39,.12);
  padding: 6px;
}
.anek .dropdown-item{
  border-radius: 10px;
  padding: 8px 10px;
}
.anek .dropdown-item:hover{
  background: rgba(37,99,235,.10);
}
.anek .text2{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

font.storycontent,
font.storycontent * {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
}
[itemprop="articleBody"],
[itemprop="articleBody"] * {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
/* перебиваем font: ... !important 
#colLeft td,
#colLeft th {
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}*/
/* ===== Sidebar: шрифт + читабельность (не меняем HTML) ===== */

/* === ВИДЖЕТ "Новые приколы" (только стилями) === */

/* внешняя рамка виджета */
table.bgcolor4.stab{
  width: 220px;                 /* было 165px — можно вернуть, но 220 читабельнее */
  border-spacing: 0;            /* убираем "дырки" между ячейками */
  border-collapse: separate;
  border: 1px solid #d7e0ff;
  border-radius: 10px;
  overflow: hidden;             /* чтобы скругление работало */
  background: #fff;             /* вместо серо-синего фона таблицы */
}

/* заголовок */
table.bgcolor4.stab th.titleline{
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: #1f3aa6;
  background: #f4f7ff;
  border-bottom: 1px solid #d7e0ff;
}

/* ячейка с содержимым */
table.bgcolor4.stab td.bgcolor1{
  padding: 6px 0;
  background: #fff;
}

/* внутренний контейнер */
table.bgcolor4.stab .newnews{
  padding: 0;
}

/* вложенные таблицы превращаем в "пункты" */
table.bgcolor4.stab .newnews table{
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin: 0;
}

/* td: убираем табличные отступы */
table.bgcolor4.stab .newnews td{
  padding: 0;
  border: 0;
  background: transparent;
}

/* убираем <br>, чтобы не раздувало высоту */
table.bgcolor4.stab .newnews br{
  display: none;
}

/* ссылка как строка списка */
table.bgcolor4.stab .newnews td > a{
  display: block;
  padding: 8px 12px 8px 42px;   /* слева место под номер */
  text-decoration: none;
  color: #1a2a6b;
  font-size: 13px;
  line-height: 1.25;
  position: relative;
  overflow-wrap: anywhere;
}

/* разделители между пунктами */
table.bgcolor4.stab .newnews table + table td > a{
  border-top: 1px solid #edf1ff;
}

/* hover */
table.bgcolor4.stab .newnews td > a:hover{
  background: #f6f9ff;
  color: #102a83;
}

/* фокус с клавиатуры */
table.bgcolor4.stab .newnews td > a:focus-visible{
  outline: 2px solid #6a8bff;
  outline-offset: -2px;
  background: #f6f9ff;
}

/* --- НУМЕРАЦИЯ: прячем "1:" как текст и рисуем номера через CSS --- */
table.bgcolor4.stab .newnews{
  counter-reset: nn;
}

table.bgcolor4.stab .newnews table{
  counter-increment: nn;
}

/* прячем текст "1:" в td, но НЕ ссылку */
table.bgcolor4.stab .newnews td{
  font-size: 0;                 /* скрывает "1:" */
}
table.bgcolor4.stab .newnews td > a{
  font-size: 13px;              /* возвращаем размер текста ссылки */
}

/* рисуем номер слева */
table.bgcolor4.stab .newnews td > a::before{
  content: counter(nn) ".";
  position: absolute;
  left: 12px;
  top: 8px;
  color: #6c7bb6;
  font-weight: 600;
}





/* === Навигация: только внутри .navbox, чтобы не задеть другие блоки === */

#sidebarleft .navbox{
  padding: 8px 0;              /* общий внутренний отступ */
}

/* баннер */
#sidebarleft .navbox-banner{
  display: block;
  margin: 2px 12px 10px;
  border-radius: 8px;
  overflow: hidden;
}
#sidebarleft .navbox-banner img{
  display: block;
  width: 100%;
  height: auto;
}

/* разделитель */
#sidebarleft .navbox-sep{
  border: 0;
  height: 1px;
  background: #edf1ff;
  margin: 8px 12px;
}

/* ссылки как пункты меню */
#sidebarleft .navbox-link{
  display: block;
  padding: 9px 12px 9px 34px;  /* слева место под маркер */
  text-decoration: none;
  color: #1a2a6b;
  font-size: 13px;
  line-height: 1.2;
  position: relative;
  overflow-wrap: anywhere;
}

/* разделители между ссылками */
#sidebarleft .navbox-link + .navbox-link{
  border-top: 1px solid #edf1ff;
}

/* hover/focus */
#sidebarleft .navbox-link:hover{
  background: #f6f9ff;
  color: #102a83;
}
#sidebarleft .navbox-link:focus-visible{
  outline: 2px solid #6a8bff;
  outline-offset: -2px;
  background: #f6f9ff;
}

/* аккуратный маркер вместо текстового "•" (прячем его сдвигом) */
#sidebarleft .navbox-link{
  text-indent: -12px;          /* уводим "•" влево */
  padding-left: 46px;          /* возвращаем красивый отступ */
}
#sidebarleft .navbox-link::before{
  content: "•";
  position: absolute;
  left: 30px;
  top: 9px;
  color: #6c7bb6;
  font-weight: 700;
}

/* акцентная ссылка */
#sidebarleft .navbox-accent{
  font-weight: 700;
  color: #b00020 !important;   /* перебивает старый inline color */
}
#sidebarleft .navbox-accent:hover{
  background: #fff3f5;
}

@font-face{
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* если italic нужен */
@font-face{
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
/* Кнопка случайные анекдоты */
.more-jokes{
  text-align: center;
  margin: 14px 0 6px;
}

.btn-more-jokes{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 12px;

  font: 700 14px/1.1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;

  color: #102a83;
  background: #f4f7ff;
  border: 1px solid #d7e0ff;

  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

.btn-more-jokes::after{
  content: "↻";
  font-weight: 900;
  opacity: .85;
}

.btn-more-jokes:hover{
  background: #eef3ff;
  border-color: #c7d4ff;
  transform: translateY(-1px);
}

.btn-more-jokes:active{
  transform: translateY(0);
}

.btn-more-jokes:focus-visible{
  outline: 3px solid rgba(106,139,255,.45);
  outline-offset: 2px;
}



/* Блок под кнопкой: категории/рейтинг */
.dash{
  margin: 12px 0 0;
  padding: 12px 12px;
  border: 1px solid #d7e0ff;
  border-radius: 12px;
  background: #fff;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #1a2a6b;
}

/* делаем заголовки строк чуть заметнее */
.dash strong{
  font-weight: 600;
}

/* перенос строки оставляем, но делаем расстояние аккуратнее */
.dash br + br{
  content: "";
  display: block;
  margin-top: 10px;
}

/* ссылки превращаем в "теги" */
.dash a{
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 10px;

  text-decoration: none;
  color: #102a83;

  background: #f4f7ff;
  border: 1px solid #d7e0ff;
  border-radius: 999px;

  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

/* убираем запятые визуально (они остаются в HTML, но не мешают) */
.dash a + text,
.dash strong{
  white-space: normal;
}

/* hover */
.dash a:hover{
  background: #eef3ff;
  border-color: #c7d4ff;
  transform: translateY(-1px);
}

/* фокус с клавиатуры */
.dash a:focus-visible{
  outline: 3px solid rgba(106,139,255,.45);
  outline-offset: 2px;
}

/* “Рейтинг” — можно слегка отделить визуально */
.dash{
  position: relative;
}

@media (max-width: 480px){
  .dash a{
    padding: 5px 9px;
    margin: 6px 6px 0 0;
    font-size: 12.5px;
  }
}


.dash a:hover{
  transform: none;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}


.dash{
  display: flow-root; /* на всякий случай */
}

.dash > strong:first-of-type{
  display: inline-block;
  margin-bottom: 8px;
}

.dash br + br{
  display: block;
  margin-top: 14px; /* было 10 */
}


/* ===== Cards: Анекдот дня / Случайный анекдот ===== */

.wrap{
  display: flex;
  gap: 12px;
  align-items: stretch;
  justify-content: space-between;

  margin: 10px 0 14px;
  overflow: visible;          /* никакого внутреннего скролла */
}

.lessonstart{
  flex: 1 1 0;
  min-width: 0;               /* важно для flex, чтобы не появлялся скролл */
  min-height: 140px;

  padding: 12px 14px;
  margin: 0;

  border: 1px solid #d7e0ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);

  text-align: left;           /* базовое выравнивание */
  overflow: hidden;           /* чтобы ничего не вылезало */
}

/* Шапка */
.lessonstart .obsh{
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;

  background: #f4f7ff;
  border: 1px solid #edf1ff;

  text-align: center;         /* заголовок по центру */
}

.lessonstart .obsh h4{
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f3aa6;
}

.lessonstart .obsh a{
  color: inherit;
  text-decoration: none;
}
.lessonstart .obsh a:hover{ text-decoration: underline; }

/* Текст */
.lessonstart > span{
  display: block;
  margin-top: 4px;
  padding: 0 2px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a2a6b;

  white-space: normal;
  overflow-wrap: anywhere;

  text-align: left;           /* явное */
}

/* если внутри много <br> */
.lessonstart > span br{ line-height: 1.9; }

/* ВАЖНО: скрипт может вставлять <center> / align=center — переопределяем только внутри span */
.lessonstart > span center,
.lessonstart > span [align="center"]{
  text-align: left;
}

/* Мобилка */
@media (max-width: 679px){
  .wrap{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* Скрипт внутри может ставить inline style="text-align:center" — перебиваем точечно */
.lessonstart > span,
.lessonstart > span *{
  text-align: left !important;
}

/* Заголовок оставим по центру */
.lessonstart .obsh,
.lessonstart .obsh *{
  text-align: center !important;
}

.lessonstart > span{
  line-height: 1.55;
}
.lessonstart > span br{
  line-height: 1.55;
}

/* контейнер */
#srch{margin:12px 0}

/* форма по центру, но как блок, чтобы следующий элемент ушёл на новую строку */
#srch .search-form{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  max-width:740px;
  margin:0 auto;
}

/* поле */
#srch .search-form input{
  width:460px;
  max-width:65vw;
  min-width:220px;
  height:42px;
  padding:0 12px;
  border:1px solid #cfd6df;
  border-radius:10px;
  outline:none;
  box-sizing:border-box;
}

#srch .search-form input:focus{
  border-color:#2b7cff;
  box-shadow:0 0 0 3px rgba(43,124,255,.15);
}

/* кнопка */
#srch .search-form button{
  height:42px;
  padding:0 14px;
  border:1px solid #2b7cff;
  background:#2b7cff;
  color:#fff;
  border-radius:10px;
  cursor:pointer;
  box-sizing:border-box;
}

/* НАВИГАЦИЯ — обязательно блочная, чтобы не прилипала к форме */
#srch .search-nav{
  margin-top:10px;
  display:flex;              /* НЕ inline-flex */
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 14px;
  font-size:14px;
  opacity:.95;
  width:100%;
}

#srch .search-nav a{text-decoration:none}
#srch .search-nav a:hover{text-decoration:underline}

/* label прячем так, чтобы не влиял на верстку */
#srch .sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

@media (max-width:420px){
  #srch .search-form{flex-wrap:wrap}
  #srch .search-form input{width:100%; max-width:100%}
  #srch .search-form button{width:100%}
}

#srch .sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
#srch .search-nav{ opacity:.85; font-size:13px; }
#srch{ padding:6px 0 2px; }
#srch .search-form button{ white-space:nowrap; }


@media (max-width: 768px){
  #srch{display:block !important; visibility:visible !important; opacity:1 !important;}
  #srch .search-form{display:flex !important;}
  #srch .search-nav{display:flex !important;}
}
@media (max-width: 420px){
  #srch .search-form{flex-wrap:wrap}
  #srch .search-form input{width:100% !important; max-width:100% !important}
  #srch .search-form button{width:100%}
}

@media (max-width: 480px){
  #srch .search-form input{height:40px}
  #srch .search-form button{height:40px}
}
@media (max-width: 480px){
  #srch .search-form{gap:8px}
}
@media (max-width: 480px){
  #srch .search-nav{gap:6px 12px; line-height:1.4}
}

#srch .search-nav a:link,
#srch .search-nav a:visited{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;   /* или 13px */
  color: #2666B9;    /* можно оставить как есть */
  text-decoration: none;
  font-weight: 500;  /* по желанию */
}

#srch .search-nav a:hover{
  text-decoration: underline;
}

