/* ==== Base ==== */

body {
  max-width: 1920px;
  margin: 0 auto;
}

.bond-big-card__footer {
  margin-bottom: 16px;
  justify-content: space-between;
  align-items:center;
}

.header-footer-button {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-content: space-between;
  margin-top: 20px;
}

.bond-big-card_adaptive_fix {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0px 16px;
}

.bond-big-card_adaptive_fix_3 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ==== 1200px ==== */
@media only screen and (max-width: 1200px) {

  .nav-menu {
    gap: 10px 10px;
  }

  .bond h2 {
    font-size: 18px;
  }

  .bond-big-card__liquidity {
    margin-bottom: 0;
  }
}

/* ==== 992px ==== */
@media only screen and (max-width: 992px) {

  .bond-big-card {
    display: flex;
    justify-content: space-between;
  }

  .bond-big-card__footer {
    margin-bottom: 16px;
    align-items: flex-end;
    margin-top: 0;
    justify-content: space-between;
  }

  .header-footer-button {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .header-section-top {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  .bond-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  .bond-cards > * {
    grid-column: auto / span 1 !important;
    grid-row: auto / span 1 !important;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

/* ==== 768px ==== */
@media only screen and (max-width: 768px) {

  .bond-big-card_adaptive_fix {
    flex-direction: column;
    gap: 0px;
    align-items: baseline;
    margin-top: 10px;
  }

  .bond-big-card__btn {
    margin-bottom: 16px;
  }

  .bond-big-card_adaptive_fix_3 {
    margin-top: 10px;
  }

  .bond-big-card {
    flex-direction: column;
  }

  .bond-big-card__header {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
  }

  .bond-big-card__footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0 0 0;
    width: 100%;
    max-width: 100%;
  }

  .bond-info__item table tbody tr td:first-child {
    flex: none !important;
    font-size: 16px;
    max-width: none;
  }

  /* «каждый второй» p без отступа */
  .bond-info__item p {
    padding-right: 15px !important;
  }

  .bond-info__item p:nth-of-type(even) {
    padding-right: 0 !important;
  } 
}

/* ==== 576px ==== */
@media only screen and (max-width: 576px) {

  .link-arrow {
    font-size: 14px;
  }

  .bond-info__item table tbody tr {
    display: flex;
    gap: 20px;
  }

  .bond-info__item table tbody tr {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 0;
  }

  .bond-info__item table tbody td {
    width: 100%;
  }

  .bond-info__item .val {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .bond-big-card__footer {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .bond-cards {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .bond-cards > * {
    grid-column: auto / span 2 !important;
  }

  .bond-cards > *:nth-last-child(-n+2) {
    grid-column: auto / span 3 !important;
  }

  .bond-big-card {
    flex-direction: column;
  }

  .bond-big-card__liquidity {
    margin-top: 11px;
    position: absolute;
    left: 30px;
  }

  .bond-info__item table tbody tr td:last-child {
    flex: 1 0 1rem;
    font-size: 16px;
    text-align: right;
  }

  .bond-big-card__btn img {
    display: none;
  }

  .bond-big-card__header {
    width: 100%;
  }

  .bond-big-card__header h1 {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .bond-big-card__liquidity span.tooltip {
    position: relative !important;
  }

  .val {
    display: inline-flex;
  }

  .bond-info__item tr td:nth-of-type(even) p {
    padding-right: 0 !important;
  }
}

/* ==== 450px ==== */
@media only screen and (max-width: 450px) {

  .bond-big-card__footer {
    flex-wrap: nowrap;
    padding-top: 10px;
  }

  .bond-big-card__btn {
    font-size: 12px;
  }

  .bond-big-card__liquidity p:last-child {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: -.05em;
    margin-left: 0;
  }

  .bond-table table tr {
    padding: 8px 0 8px 0;
  }

  .bond-info__item table tbody tr td:first-child {
    flex: auto !important;
    font-size: 16px;
    max-width: none;
  }
}

/* ==== 378px ==== */
@media only screen and (max-width: 378px) {
  .bond-info__item table tbody tr td:first-child {
    flex: auto !important;
    font-size: 16px;
    max-width: none;
  }

  .site .header__row .site-name {
    font-size: 14px;
  }
}

/* ==== 318px ==== */
@media only screen and (max-width: 318px) {
  .bond-big-card__btn {
    font-size: 10px;
  }

  .bond-info__item {
    padding: 1.1em;
  }

  .bond-card .text p {
    word-break: break-all;
  }

  .bond-cards {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bond-cards > *:nth-last-child(-n+2) {
    grid-column: auto / span 4 !important;
  }

  section.bond .val.empty {
    font-size: 14px;
  }

  .bond-card.text-big .text p {
    font-size: 14px;
  }

  .bond-card .text {
    font-size: 14px;
  }
}

/* ========== Базовые стили для таблицы выплат ========== */

.bond-payments{
  background:#fff;
  border:1px solid #3ab54a33;
  border-radius:24px;
  padding:24px;
}

.bond-payments table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--bd);
  border-radius:16px;
  margin-left:-13px; 
  overflow:scroll;  
}

.bond-payments thead th{
  color:#647383;
  font-weight:400;
  letter-spacing:-.01em;
}

.bond-payments th,
.bond-payments td{
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
}

.bond-payments thead tr{
  font-size:1rem;
}

.bond-payments tbody tr+tr{
  border-top:1px solid var(--bd);
}

.bond-payments table tbody tr td{
  color:#121213;
  font-weight:700;
  letter-spacing:-.01em;
  text-align:left;
}

.bond-payments h2{
  display:inline-block;
}

/* ===== Мобильный вид блока выплат по облигации ===== */
@media (max-width: 768px) {

  .bond-payments table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bond-payments table {
    min-width: 0;
    max-width: 100%;
  }

  .bond-payments table > thead,
  .bond-payments table > tbody {
    display: block;
    width: max(100%, 320px);
  }

  .bond-payments table thead {
    display: block;
    width: 100%;
  }

  .bond-payments table thead tr {
    display: grid;
    grid-template-columns: minmax(120px, 1.25fr) minmax(70px, .9fr) minmax(55px, .8fr) minmax(75px, 1.15fr);
    align-items: stretch;
  }

  .bond-payments table thead th {
    display: none;
    min-width: 0;
    font-size: 16px;
    font-weight: 400;
    color: #647383;
  }

  .bond-payments table thead th:nth-child(3),
  .bond-payments table thead th:nth-child(4),
  .bond-payments table thead th:nth-child(5),
  .bond-payments table thead th:nth-child(6) {
    display: flex;
    align-items: flex-start;
    min-height: 64px;
    padding: 10px 10px;
    line-height: 1.25;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bond-payments table,
  .bond-payments tbody {
    display: block;
    width: 100%;
  }

  .bond-payments tbody tr {
    display: grid;
    grid-template-columns: minmax(120px, 1.25fr) minmax(70px, .9fr) minmax(55px, .8fr) minmax(75px, 1.15fr);
    grid-template-rows:auto auto;
    align-items: start;
  }

  .bond-payments tbody tr:last-child {
    border-bottom: 0;
  }

  .bond-payments tbody td {
    border: 0;
    font-size: 14px;
    min-width: 0;
  }

  .bond-payments thead th:nth-child(1),
  .bond-payments tbody td:nth-child(1) {
    display: none !important;
  }

  .bond-payments thead th:nth-child(2) {
    display: none !important;
  }

  .bond-payments tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
    font-weight: 600;
    padding-bottom: 0;
  }

  .bond-payments tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    padding-top: 4px;
  }

  .bond-payments tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-weight: 600;
    align-self: start;
    white-space: nowrap;
  }

  .bond-payments tbody td:nth-child(5) {
    grid-column: 3;
    grid-row: 1 / span 2;
    font-weight: 600;
    align-self: start;
    white-space: nowrap;
  }

  .bond-payments tbody td:nth-child(6) {
    grid-column: 4;
    grid-row: 1 / span 2;
    font-weight: 600;
    align-self: start;
    white-space: nowrap;
  }

  .bond-payments .bp__type {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #647383;
    margin-top: 2px;
  }
}

@media (max-width: 378px) {
  .bond-payments thead th {
    font-size: 14px;
    font-weight: 400;
    color: #647383;
  }
}

.bond-table.bond-offers table td,
.bond-table.bond-offers table th,
.bond-table table tbody tr td,
.bond-table table tbody tr td:last-child,
.bond-table table thead th:last-child{
  text-align:left;
}

/* СТРАНИЦА ЭМИТЕНТА */

.emitent {
  grid-gap: 1.1428571429rem;
  display: grid;
  flex: 1 0 5rem;
  gap: 1.1428571429rem;
  grid-template-columns: repeat(4,1fr)
}
.issuer .emitent {
  grid-template-columns: repeat(2,1fr);
  gap: 8px;
  width: 600px;
  flex: initial;
}

/* Рейтинг + стрелка (data: svg) */
.bond-table.issuer-ratings td:nth-child(2) a.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
}

.bond-table.issuer-ratings td:nth-child(2) a.link-arrow::after{
  content:"";
  width:24px;
  height:24px;
  /* SVG-стрелка внешней ссылки, цвет = currentColor */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a65b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  transform: translateY(1px);
  opacity:.85;
  transition: transform .2s ease, opacity .2s ease;
}

@media (hover:hover){
  .bond-table.issuer-ratings td:nth-child(2) a.link-arrow:hover::after{
    transform: translate(2px,-2px);
    opacity:1;
  }
}

.bond-table.issuer-ratings td:nth-child(2) a.link-arrow:focus-visible{
  outline:2px solid color-mix(in oklab, currentColor 30%, transparent);
  outline-offset:2px;
  border-radius:4px;
}

.issuer-history table {
  margin-left: -5px;
}

.bond-table a[data-expand] {
  margin-left: -5px;
}

.bond-table.issuer-history .history-date {
  min-width: 75px;
  word-break: auto-phrase;
}

.bond-table.issuer-history .history-bond {
  width: 350px;
  word-break: auto-phrase;
}

.bond-table table thead th {
  font-size: 16px;
  word-break: keep-all !important;
}

/* ==== 1200px ==== */
@media only screen and (max-width: 1200px) {
 .issuer .bond-big-card {
    width: 100%;
	margin-right: 8px;
}

.issuer .bond-cards {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
}
}

/* ==== 1152px ==== */
@media only screen and (max-width: 1152px) {

  .emitent {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 равные колонки */
    width: 100%;
  }

  .issuer .emitent {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 равные колонки */
    width: 100%
  }

  .issuer .emitent > .bond-card {
    grid-column: auto / span 1 !important;
  }

  .bond-table table thead th {
    text-align: left;
  }
}

/* ==== 992px ==== */
@media only screen and (max-width: 992px) {
  .emitent {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 равные колонки */
    width: 100%;
  }
  .issuer .emitent {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 равные колонки */
    width: 100%
  }
  .issuer .emitent > .bond-card {
    grid-column: auto / span 1 !important;
  }
  .issuer .bond-big-card__img {
    width: 180px;
    height: 180px;
  }
  .issuer-desc {
    width: calc(100% - 200px);
  }
}

/* ==== 768px ==== */
@media only screen and (max-width: 768px) {
  .bond-table.issuer-ratings td, .bond-table.issuer-ratings th {
    min-width: 100px;
  }
  .bond-table table tbody tr td {
    font-weight: 500;
  }
}

/* ==== 576px ==== */
@media only screen and (max-width: 576px) {
  .emitent {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    grid-auto-flow: row dense;

    grid-column: auto / span 1 !important; /* или просто: grid-column: auto !important; */
    grid-row: auto !important;
    /* на случай наследованных «растяжек» */
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: initial !important;
  }

  .issuer-history table {
    margin-left: 0px;
    margin-top: 16px;
  }

  .bond h2, .bond-table h2 {
    margin-bottom: 18px;
  }

  .issuer .emitent > .bond-card {
    grid-column: auto / span 2 !important;
  }

  .bond-big-card__header,
  .issuer .bond-big-card__header {
    display: grid; /* grid for precise placement */
    grid-template-columns:85px 1fr;
    grid-auto-rows: min-content;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .bond-big-card__img {
    width: 56px;
    height: 56px;
    border-radius: 12px; /* compact square logo */
    grid-column: 1;
    grid-row: 1;
  }

  .issuer-desc {
    display: contents;
    width: auto;
  }

  .bond-big-card__header h1 {
    grid-column: 2;
    grid-row: 1;
  }

  .issuer-desc p {
    grid-column: 1 / -1;
  }

  .issuer .bond-big-card__img {
    width: 80px;
    height: 80px;
  }

  .issuer-tables .screener__table-wrapper {
    padding-top: 65px;
    overflow-x: unset;
    margin-top: -30px;
    width: 100%;
    background: none;
    border: none;
    overflow: hidden;
  }

  .screener__table-wrapper-2 .common-pager .pager {
    display: block;
    margin: 0px auto;
  }

  .table-body tr:hover, .table-body tr:hover td {
    background-color: #fff;
  }

  #screener_results_wrap {
    /* margin-bottom: -17px; */
    padding-bottom: 0;
  }

  .issuer-tables #screener_results_wrap h2 {
    margin-left: 5px;
    margin-bottom: 0;
    position: initial;
  }
}

/* ==== 450px ==== */
@media only screen and (max-width: 450px) {
  .bond-table.issuer-history .history-event {
    width: 100%;
    min-width: 90px;
  }

  .bond-big-card__header h1 {
    grid-column: 2;
    grid-row: 1;
  }

  .issuer .bond-big-card__img {
    width: 64px;
    height: 64px;
  }
}

/* ==== 378px ==== */
@media only screen and (max-width: 378px) {
  .issuer-desc p {
    font-size: 14px;
  }

  .issuer .bond-card .text, .bond-card .text p {
    font-size: 14px;
  }
}

/* ==== 280px ==== */
@media only screen and (max-width: 280px) {
  .issuer .emitent > .bond-card {
    grid-column: auto / span 4 !important;
  }
}

/* ⇩ АДАПТИВ ДЛЯ СТРАНИЦЫ ЭМИТЕНТА ⇩ */

@media only screen and (max-width: 1600px) {
  .emitent .bond-card .text p {
    font-size: 20px;
  }
}

/* === Таблица с тултипами === */
@media only screen and (max-width: 1400px) {
  .screener__table-wrapper-2 .table td {
    font-size: 16px; /* базовый размер шрифта в ячейках таблицы с подсказками */
    font-weight: 700; /* делаем текст жирным, важно понимать, не перебивает ли это общие таблицы */
  }
}

/* === Описание эмитента в шапке карточки === */
.issuer-desc p {
  padding-bottom: 1em; /* отступ между абзацами */
  font-size: 18px; /* комфортный размер текста для десктопа */
}

/* === Текст внутри bond-card (общий случай, десктоп) === */
.bond-card .text {
  font-size: 20px; /* крупный текст для основных описаний облигации */
}

.issuer-tables .screener__table-wrapper {
  margin-bottom: 16px;
}

/* ==================================================================
   Адаптация шрифтов и верстки по брейкпоинтам
   ================================================================== */

/* <= 1200px: немного уменьшаем текст в карточках */
@media (max-width: 1200px) {
  .emitent .bond-card .text p {
    font-size: 18px;
  }

  .bond-card h3 {
    font-size: 16px; /* заголовок карточки поменьше, чтобы не раздувался на узких экранах */
  }

  .screener__table-wrapper .table td {
    text-align: left;
  }
}

/* <= 450px: поджимаем текст описания эмитента */
@media only screen and (max-width: 450px) {
  .issuer-desc p {
    padding-bottom: 1em;
    font-size: 16px;   /* мелкие экраны: описание поменьше, чтобы не ломать верстку */
  }
}

/* <= 378px: еще сильнее уменьшаем текст в bond-card и ограничиваем ширину ссылки в названии */
@media only screen and (max-width: 378px) {
  .bond-card .text,
  .issuer .bond-card .text,
  .bond-card .text p {
    font-size: 16px; /* компактный текст для совсем маленьких экранов */
  }

  .emitent .bond-card .text p {
    font-size: 16px;
  }

  /* Ссылка в названии облигации в таблице: переносим текст в столбик и ограничиваем ширину */
  .screener__table-wrapper-2 #screenerTable tbody td.title a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: calc(100% - 100px); /* резервируем примерно 100px справа под иконки/бейджи */
  }

  .bond-table table tbody tr td {
    font-size: 14px;
  }
}

/* <= 330px: еще чуть-чуть "отгрызаем" ширину под иконки справа */
@media only screen and (max-width: 330px) {
  .screener__table-wrapper-2 #screenerTable tbody td.title a {
    max-width: calc(100% - 130px); /* для самых узких экранов оставляем больше места справа */
  }
}

.params-inline {
  display: none;
}

@media (max-width: 768px) {

  .issuer-tables .screener__table-wrapper {
    background: none;
    border: none;
  }

  .screener__table-wrapper-2 {
    padding-bottom: 0px !important;
  }

  /* === Заголовки таблицы в блоке bond-table === */
  .bond-table table thead th {
    font-size: 16px; /* чуть покрупнее, чтобы на мобиле не превращалось в "мелочь" */
  }

  .issuer-tables .screener__table-wrapper {
    padding-bottom: 90px;
  }

  /* Первый логотип/иконка в названии облигации — прячем на мобиле */
  .screener__table-wrapper-2 #screenerTable tbody td.title img:first-child {
    height: 24px;
    width: 24px;
    border-radius: 6px;
    display: none; /* иконка не помещается — убираем, размеры остаются "на будущее" */
  }

  /* Все .tooltip на мобиле показываем как inline-flex
     ВАЖНО: это глобальное правило для брейкпоинта, может затронуть все тултипы на странице */
  .tooltip {
    display: inline-flex !important;
  }

  /* Описание эмитента поджимаем по вертикали на узких экранах */
  .issuer-desc p {
    padding-bottom: 0;
  }

  /* === Переключаем screener в карточный режим таблицы === */
  .screener__table-wrapper-2 #screenerTable {
    min-width: 0; /* таблица не раздвигает контейнер */
    width: 100%;
    border-collapse: separate; /* нужно для скруглений и теней */
  }

  .screener__table-wrapper-2 #screenerTable thead {
    display: none; /* классический mobile-подход: заголовок прячем, лейблы рисуем через ::before */
  }

  .screener__table-wrapper-2 #screenerTable tbody {
    display: block; /* каждая строка — отдельная карточка */
  }

  /* Карточка-строка как CSS Grid */
  .screener__table-wrapper-2 #screenerTable tbody tr {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns:
      25%               /* 1: Цена */
      25%                 /* 2: YTM */
      25%                 /* 3: Срок, лет */
      minmax(20%, 1fr); /* 4: Дюрация */
    background: #fff;
    border: 1px solid #e6f1e6;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    padding: 12px;
    margin: 10px 0;
    gap: 8px 4px; /* [ряды] [колонки] */
    overflow-x: auto; /* горизонтальный скролл, если не помещается */
    position: relative; /* якорь для .icons в заголовке */
  }

  .screener__table-wrapper-2 #screenerTable tbody tr + tr {
    margin-top: 12px;
  }

  /* === Заголовок облигации === */
  .screener__table-wrapper-2 #screenerTable tbody td.title {
    grid-column: 1 / span 4; /* заголовок занимает первые 4 колонки сетки */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 6px 0;
    margin: 0;
    border-bottom: none;
    position: relative; /* для абсолютного позиционирования .icons */
    width: auto;
  }

  /* Оставшиеся иконки/логотипы внутри заголовка */
  .screener__table-wrapper-2 #screenerTable tbody td.title img {
    height: 24px;
    width: 24px;
    border-radius: 6px;
  }

  .screener__table-wrapper-2 #screenerTable tbody td.title a {
    display: flex;
    flex-direction: column; /* эмитент + полное название в столбик */
    gap: 2px;
  }

  /* Строка с названием эмитента (атрибут data-issuer на tr) */
  .screener__table-wrapper-2 #screenerTable tbody tr[data-issuer] td.title a::before {
    content: attr(data-issuer);
    font-size: 12px;
    line-height: 1;
    color: #9aa7b2;
    font-weight: 500;
  }

  /* Полное название облигации */
  .screener__table-wrapper-2 #screenerTable tbody td.title a .full {
    display: none;
  }

  .screener__table-wrapper-2 #screenerTable td.title a span.short {
    display: block !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 210px;
  }

  /* История облигаций эмитента — минимальная ширина карточки */
  .bond-table.issuer-history .history-bond {
    min-width: 150px;
  }

  /* Блок иконок справа от названия */
  .screener__table-wrapper-2 #screenerTable tbody td.title .icons {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    z-index: 4;
  }

  /* === Метрики (числа) — колонки в GRID === */
  .screener__table-wrapper-2 #screenerTable tbody td {
    border: 0;
    font-size: 15px;
    padding: 0;
    min-width: max-content;
    text-align: left;
    font-weight: 700;
  }

  /* Лейблы метрик из ::before (подменяем заголовки колонок) */
  .screener__table-wrapper-2 #screenerTable tbody td::before {
    display: block;
    font-weight: 400;
    color: #8794a1;
    padding-bottom: 10px;
    margin-bottom: 2px;
    font-size: 12px;
  }

  .screener__table-wrapper-2 #screenerTable tbody td.nominalPercentage {
    grid-column: 1;
  }

  /* Цена */
  .screener__table-wrapper-2 #screenerTable tbody td.ytm {
    grid-column: 2;
  }

  /* YTM  */
  .screener__table-wrapper-2 #screenerTable tbody td.term {
    grid-column: 3;
  }

  /* Срок */
  .screener__table-wrapper-2 #screenerTable tbody td.duration {
    grid-column: 4;
    background: unset;
  }

  /* Дюрация */
  /* лишние колонки можно просто выкинуть или на всякий случай выключить */
  .screener__table-wrapper-2 #screenerTable tbody td.mSpread,
  .screener__table-wrapper-2 #screenerTable tbody td.gSpread,
  .screener__table-wrapper-2 #screenerTable tbody td.liquidity {
    display: none !important;
  }

  /* Подписи полей */
  .screener__table-wrapper-2 #screenerTable tbody td.nominalPercentage::before {
    content: "Цена, %";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.ytm::before {
    content: "YTM, %";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.mSpread::before {
    content: "М-Спред";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.gSpread::before {
    content: "G-Спред";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.term::before {
    content: "Срок / Дюрация";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.duration::before {
    content: "";
  }

  .screener__table-wrapper-2 #screenerTable tbody td.liquidity::before {
    content: "Ликвидность";
  }

  /* === Параметры (иконки) — переносим в title через .params-inline === */
  td.duration.is-hidden-duration {
    display: none;
  }

  /* Сам столбец params прячем на мобилке */
  .screener__table-wrapper-2 #screenerTable tbody td.params {
    display: none;
  }

  /* На всякий случай продублируем для принудительного mobile-режима через .is-mobile */
  .screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.params {
    display: none !important;
  }

  /* Внутри заголовка используем .params-inline для иконок */
  .screener__table-wrapper-2 #screenerTable tbody .params-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px; /* небольшой отступ от текста названия */
  }

  .screener__table-wrapper-2 #screenerTable tbody .params-inline img {
    width: 20px;
    height: 20px;
  }

  /* === Кнопка-кошелёк (action-tooltip) в заголовке === */
  /* Общие стили "зелёной кнопки" — и для обычного mobile, и для .is-mobile */
  .screener__table-wrapper-2 #screenerTable tbody td.title .icons .tooltip.action-tooltip,
  .screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.title .icons .tooltip.action-tooltip {
    display: flex; /* всегда видимая кнопка, не зависит от :hover */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px !important;
    border-radius: 12px;
    background: #1db954; /* временный зелёный под "кошелёк" */
    color: #fff;
    border: none;
    margin-bottom: -35px; /* приподнимаем кнопку относительно строки */
    opacity: 1; /* перекрываем site.css, где мог быть 0 или зависимость от hover */
  }

  /* Текстовый тултип рядом с кнопкой на мобилке не показываем */
  .screener__table-wrapper-2 #screenerTable tbody td.title .icons .tooltip-content,
  .screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.title .icons .tooltip-content {
    display: none;
  }
}

/* === Мобильный режим через класс .is-mobile ===
   Дублируем mobile-правила из @media, чтобы JS мог принудительно включать
   мобильный вид даже в широком iframe.
*/

.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable {
  min-width: 0; /* таблица не раздвигает контейнер по ширине */
  width: 100%;
  border-collapse: separate;
  display: block; /* превращаем таблицу в блочный контейнер для карточек-строк */
}

.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable thead {
  display: none; /* заголовок в карточном виде не нужен */
}

.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody {
  display: block; /* строки ведут себя как независимые карточки */
}

/* Заголовок облигации */
.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.title {
  grid-column: 1 / span 1; /* только первая колонка сетки */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 6px 0;
  margin: 0;
  border-bottom: none;
  position: static;
}

/* Ячейка с иконками / параметрами */
.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.params {
  grid-column: 4 / span 2; /* ВАЖНО: может пересекаться с gSpread/term, держим в уме */
  align-self: start;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  padding: 0;
  position: relative;
  z-index: 5; /* иконки поверх остального контента карточки */
}

/* Метрики по колонкам GRID — каждая в своей ячейке */
.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.nominalPercentage {
  grid-column: 1;
}

.screener__table-wrapper.is-mobile .screener__table-wrapper-2 #screenerTable tbody td.ytm {
  grid-column: 2;
}

/* === Общий красивый пейджер === */
.screener__table-wrapper-2 .common-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  gap: 12px;
}

/* Текст "Показано N из M" */
.screener__table-wrapper-2 .common-pager .rows-count-text {
  font-size: 16px;
  color: #121213;
}

/* Контейнер с кнопками страниц */
.screener__table-wrapper-2 .common-pager .pager {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-x: auto;            /* даём горизонтальный скролл на узких экранах */
  overflow-y: hidden;          /* убираем вертикальную полосу прокрутки */
}

/* Внутренняя обёртка — всё, что реально скроллится */
.screener__table-wrapper-2 .common-pager .pager .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Серый "чип" под цифрами страниц */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EFF2F6;
  border-radius: 16px;
  padding: 8px 12px;
}

/* Кнопки-страницы */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-numbers button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  font: 400 16px/1.2 inherit;  /* наследуем семейство шрифта от контейнера */
  color: #7b8a9a;
  cursor: pointer;
}

.screener__table-wrapper-2 .common-pager .pager .wrap .pg-numbers button:hover {
  background: #e9eef3;
  color: #2a2f36;
}

/* Текущая страница */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-numbers button.is-active {
  color: #121213;
}

/* Многоточие "..." между страницами */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-numbers .pg-ellipsis {
  padding: 6px 2px;
  color: #9aa7b2;
}

/* Стрелки-навигация (пред/след) */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-prev,
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #7f8ea0;
  padding: 0;
}

.screener__table-wrapper-2 .common-pager .pager .wrap .pg-prev:hover,
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-next:hover {
  background: #eef3f7;
}

/* Заблокированные стрелки */
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-prev[disabled],
.screener__table-wrapper-2 .common-pager .pager .wrap .pg-next[disabled] {
  opacity: .4;
  cursor: default;
}

/* ==================================================================
   Верстка скринера
   ================================================================== */

.screener__block_adaptive {
  background: #fff;
  border: 1px solid #3ab54a33;
  border-radius: 24px;
  margin-bottom: 20px;
  padding: 16px;
}

.search_adaptive {
  margin-bottom: 24px;
}

.screener__table-wrapper_adaptive {
  margin-bottom: 35px;
  max-width: 100%;
  overflow: scroll;
}

/* Мобильный режим: < 768px */
@media (max-width: 767px) {

  .issuer .emitent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }

  .filters-popup__close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #eff2f6 url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23121213' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/16px 16px no-repeat;
    cursor: pointer;
    flex-shrink: 0;
    position: absolute;
    right: 20px;
    top: 20px;
  }
}

.screener__table-wrapper-3 {
  overflow-x: scroll;
  overflow-y: hidden;
  max-width: 100%;
  margin-bottom: 30px;
}

.screener__table-wrapper-3 .table tbody td.title {
  position: unset;
  left: 0;
  z-index: 10;
}

.screener__table-wrapper-3 .table thead th.title {
  position: unset;
  left: 0;
  z-index: 10;
}

/* по умолчанию шапку фильтров вообще не показываем */
.filters-header {
  display: none;
}


@media (max-width: 767px) {
  .issuer-tables .screener__btns h2 {
    position: static;
    margin: 0;
    padding: 10px 0 0 16px;
  }
}

.filters-body {
    display: contents;
    /* gap: 16px; */
    /* background: #fff; */
}

.custom-select {
    height: fit-content;
}

.screener__table-wrapper-2 .common-pager .pager {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: hidden;
  margin-top: 0px;
  margin-bottom: 0px;
}

@media (max-width: 768px) {
  .issuer-tables .screener__table-wrapper {
    display: inline-block;
    min-width: 100%;
    background: none;
    margin-top: 5px;
    padding: 0px;
  }

  .issuer-tables .screener__table-wrapper {
    padding-bottom: 0px;
    border: none;
  }
  .screener__table-wrapper-2 .common-pager .pager {
    FONT-WEIGHT: 500;
    margin-bottom: 16px;
    height: max-content;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: hidden;
  }
}

@media (max-width: 768px) {

  .filters-left {
    width: 100% !important;
    display: ruby;
  }

  .filters-left {
    max-width: 100% !important;
  }
}

@media (max-width: 576px) {
  .filters-left {
    max-width: 100% !important;
  }

  .screener__table-wrapper-2 .common-pager .pager {
    margin-bottom: 32px;
  }
}

/* блокировка скролла под поп-апом */
.body--settings-open {
  overflow: hidden;
}

.bond-links {
  margin-bottom: 8px;
}

@media only screen and (max-width: 1150px) {
  .bond-info__item:first-child {
    display: block;
  }
}

/* --- ОВЕРАЙД ИЗ DEBUG CSS --- */

#screener_results_wrap .screener__table-wrapper-2 .common-pager .pager {
    justify-content: flex-end !important;
}

#screener_results_wrap .screener__table-wrapper-2 .common-pager .pager {
    flex: inherit !important;
}

#screener_results_wrap .screener__table-wrapper-2 .common-pager .rows-count-text {
    display: none; /* flex */
    justify-content: flex-start !important;
    align-items: flex-start !important;
    margin: 0 !important;
    gap: 5px !important;
    color: #8599B1 !important;
}

#screener_results_wrap .screener__table-wrapper-2 .common-pager {
    justify-content: flex-end !important;
}

/* ==== Правим выравнивание на странице эмитента  ==== */

@media only screen and (max-width: 768px) {
    .bond-table.issuer-ratings td, .bond-table.issuer-ratings th {
        align-items: center;
    }
}


@media only screen and (max-width: 390px) {
    .bond-big-card__header, .issuer .bond-big-card__header {
        align-items: flex-start;
    }
}

@media only screen and (max-width: 768px) {
    .screener__table-wrapper screener__table-wrapper-2 is-mobile {
        overflow: hidden;
    }
}

@media only screen and (max-width: 768px) {
    .issuer-desc p {
        font-family: Mulish;
        font-weight: 400;
        font-size: 18px;
        line-height: 100%;
    }
}

/* ==== Смена иконки в мобильных версиях странициы эмитента ==== */

@media only screen and (max-width: 768px) {
    body.site.signed-in
    #root > main.content.with-tooltips
    > article.screener.bond.issuer-tables.start-content
    .screener__table-wrapper.screener__table-wrapper-2.is-mobile
    #screenerTable tbody td.title .icons
    > span.tooltip.action-tooltip.tooltip-plus {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px !important;
      height: 40px !important;
      padding: 0px 20px;
      min-width: 32px !important;
      border-radius: 12px;
      background: rgba(245, 248, 249, 1) !important;
      color: #1db954 !important;
      font-size: 32px !important;
      font-weight: 200 !important;
      border: none;
      margin-bottom: -35px;
      opacity: 1;
  }
}

/* ====  Отступы в скринере  ==== */

@media only screen and (max-width: 1280px) {
    .table__icons-header {
        gap: 0px;
    }
}

/* ====  Шрифт рейтинга как в макете ==== */

.link-arrow {
    font-family: Mulish;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -1.5%;
}

@media only screen and (max-width: 992px) {
    .link-arrow {
        font-size: 16px;
    }
}

@media only screen and (max-width: 768px) {
    .link-arrow {
        font-size: 14px;
    }
}

@media only screen and (max-width: 450px) {
    .link-arrow {
        font-weight: 500;
    }
}

@media only screen and (max-width: 768px) {
    .issuer-tables #screener_results_wrap h2 {
        margin-left: -12px;
        margin-top: 0px;
    }
    .screener__table-wrapper screener__table-wrapper-2 is-mobile {
        overflow: hidden;
    }
}

@media only screen and (max-width: 576px) {
    .screener__table-wrapper screener__table-wrapper-2 is-mobile {
        overflow: hidden;
    }
}

@media only screen and (max-width: 768px) {
    .screener .rows-count-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .screener__table-wrapper-2 #screenerTable tbody tr {
        overflow-y: hidden;
    }
}

/* общий цвет линии можешь привязать к своей переменной */
.screener__table-wrapper-2 #screenerTable tbody tr{
    position: relative;
}

.screener__table-wrapper-2 #screenerTable tbody tr::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #eff2f6;
    pointer-events: none;
}

.screener__table-wrapper-2 #screenerTable td > div{
    border-bottom: 0 !important;
}

/* ==== Правим цвет описания эмитента и шрифт ==== */

.issuer-desc p {
    color: rgba(55, 63, 72, 1);
}

@media only screen and (max-width: 460px) {
    .issuer-desc p {
        font-size: 16px;
    }
}

/* ==== Правим выравнивание в блоке "кредитные рейтинги" ==== */

.bond-table table tbody tr td:first-child {
    align-content: center;
}

/* ==== Правим выравнивание в блоке "события эмитента" ==== */

.bond-table.issuer-history .history-date {
    align-content: center;
}
.bond-table.issuer-history .history-event {
    align-content: center;
}

/* ==== Поджимаем элементы  ==== */

@media only screen and (max-width: 300px) {
    .bond-table table tr  {
        gap: 5px;
    }
    .screener__table-wrapper-2 #screenerTable tbody tr {
        gap: 0px;
    }
}

@media only screen and (max-width: 390px) {
    .bond-big-card__header, .issuer .bond-big-card__header {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
        vertical-align: middle;
    }
}

/* === Выравниванием блоков на странице облигаций */

@media only screen and (max-width: 576px) {
    .bond-big-card__img {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        grid-column: 1;
        grid-row: 1;
    }
    .bond-big-card__header, .issuer .bond-big-card__header {
        align-items: flex-start;
    }
}

@media only screen and (max-width: 300px) {
    .bond-big-card__header h1, .bond-big-card__header h2 {
        font-size: 16px;
    }
    .bond h2, .bond-table h2 {
        font-size: 16px !important;
    }
    .bond-info__item p {
        font-size: 14px;
    }
    .bond-payments table tbody tr td {
        font-size: 14px !important;
    }
}

@media only screen and (max-width: 768px) {

  /* === Screener: подмена "легенды" (заголовков) таблицы только CSS === */
  .screener__table-wrapper-2 #screenerTable thead.table-header th > div{
      display:flex;
      align-items:center;
      gap:8px;
      justify-content:flex-start;

      /* скрываем только текст-нод (заголовок), не трогая иконки/тултипы */
      font-size:0;
      line-height:1.1;
  }

  /* иконки/тултипы возвращаем к нормальному размеру */
  .screener__table-wrapper-2 #screenerTable thead.table-header th .table__icons-header{
      display:inline-flex;
      align-items:center;
      gap:6px;
      font-size: 16px;
      line-height:1;
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th .table__icons-header *{
      font-size:inherit;
  }

  /* базовый вид подменного текста */
  .screener__table-wrapper-2 #screenerTable thead.table-header th > div::before{
      font-size:16px;
      font-weight:400;
      color:inherit; /* если нужно строго как на макете - можно заменить на #8f98ab */
      white-space:nowrap;
  }

  /* === Точные подписи как в макете === */
  .screener__table-wrapper-2 #screenerTable thead.table-header th.title > div::before{
      content:"Название";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.params > div::before{
      content:"Тип";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.nominalPercentage > div::before{
      content:"Цена, %";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.ytm > div::before{
      content:"YTM, %";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.mSpread > div::before{
      content:"М-спред";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.gSpread > div::before{
      content:"G-спред";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.term > div::before{
      content:"Срок, лет";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.duration > div::before{
      content:"Дюрация, лет";
  }
  .screener__table-wrapper-2 #screenerTable thead.table-header th.liquidity > div::before{
      content:"Ликвидность";
      white-space:normal; /* разрешаем перенос, чтобы не разъезжалось на узких ширинах */
  }

  .screener__table-wrapper-2 #screenerTable thead.table-header th .table__icons-header {
      display: inline-flex;
      flex-direction: row;
  }

}

/* === ОБЩЕЕ === */

/* === Убираем серкую полоску скролла  === */

.bond-payments table, .bond-table table  {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* В одну строку делаем купонный платеж */

/* Строка "Частота купона" (5-я), правая ячейка (2-я колонка) */
.bond-info__item table tbody tr:nth-of-type(5) > td:nth-of-type(2) {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline;
    gap: 0.35em;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-end;
}

/* Убираем стандартные отступы у <p> */
.bond-info__item table tbody tr:nth-of-type(5) > td:nth-of-type(2) > p.val {
    margin: 0 !important;
}

/* === Выравниваем таблицу на странице облигации и приводим стили к макету  === */

.bond-payments table {
    display: table;
}

@media (max-width: 768px) {
    .bond-payments table {
        margin-left: 0px;
    }
    .bond-payments table tbody tr td {
        padding-left: 0;
    }
    .bond-payments table thead th {
        padding-left: 0 !important;
    }
    .bond-table table tr {
        padding-left: 0 !important;
    }
    .bond-payments tbody td:nth-child(2) {
        font-size: 14px;
        color: rgba(100, 115, 131, 1);
    }
}


@media (max-width: 768px) {
    .bond-payments tbody td {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .bond-payments tbody td {
        font-size: 16px;
    }
}

@media (max-width: 378px) {
    .bond-payments table thead th {
        font-size: 14px;
    }
    .bond-payments tbody td {
        font-size: 14px;
    }
}

/* === СКРЫТИЕ БОЛЬШЕ 20 СТРОК + JS  === */

/* скрываем строки, которые “за лимитом” */
.screener__table-wrapper-2 #screenerTable tbody tr.is-hidden-by-limit {
    display: none !important;
}

/* ссылка под таблицей */
.table-more-wrap {
    margin-top: 10px;
    text-align: center;
}
@media (max-width: 768px) {
  .table-more-wrap {
    display: none;
  }
}

.table-more-btn {
    background: none;
    border: 0;
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    color: inherit; /* будет в цвет текста, при желании задашь отдельно */
    opacity: .85;
}

.table-more-btn:hover {
    text-decoration: none;
    opacity: 1;
}

/* === логика на странице облигации как в макете  === */

@media (max-width: 576px) {

    /* строка: лейбл + значение в одну линию, с переносом только при нехватке места */
    .bond-info__item table tbody tr{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 12px; /* row-gap / column-gap */
    }

    /* убираем принудительное 100% у ячеек */
    .bond-info__item table tbody tr td{
        width: auto;
        padding: 0;       /* по желанию, если нужно компактнее */
        min-width: 0;     /* важно для корректного wrap в flex */
    }

    /* лейбл занимает остаток */
    .bond-info__item table tbody tr td:first-child{
        flex: 1 1 60%;
    }

    /* значение прижимается вправо и при необходимости падает на новую строку */
    .bond-info__item table tbody tr td:last-child{
        flex: 0 1 auto;
        margin-left: auto;
        text-align: right;
        max-width: 100%;
    }

    /* значение не делаем блочным на всю ширину (иначе опять будет “вторая строка всегда”) */
    .bond-info__item .val{
        display: inline-block;
        width: auto;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* === СТРАНИЦА ОБЛИГАЦИИ СТРОГО ПО МАКЕТУ  === */

/* === Карточки === */

@media (max-width: 1920px) {
    .bond h2,
    .bond-table h2 {
        font-family: Mulish;
        font-weight: 700;
        font-size: 24px;
    }

    .bond-info__item table tbody tr td:first-child {
        font-family: Mulish;
        font-weight: 400;
        font-size: 18px;
        color: rgba(55, 63, 72, 1);
    }

    .bond-info__item table tbody tr td:last-child {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .bond h2,
    .bond-table h2 {
        font-family: Mulish;
        font-weight: 700;
        font-size: 24px;
    }

    .bond-info__item table tbody tr td:first-child {
        font-family: Mulish;
        font-weight: 400;
        font-size: 18px;
    }

    .bond-info__item table tbody tr td:last-child {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .bond h2,
    .bond-table h2 {
        font-family: Mulish;
        font-weight: 700;
        font-size: 20px;
    }

    .bond-info__item table tbody tr td:first-child {
        font-family: Mulish;
        font-weight: 400;
        font-size: 18px;
    }

    .bond-info__item table tbody tr td:last-child {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

/* === Таблица выплат  === */

.bond-payments table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bond-payments table::-webkit-scrollbar{ display:none; }

.bond-payments th,
.bond-payments td{
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

/* если где-то длинный текст, пусть переносится аккуратно */
.bond-payments td{
    white-space: normal;
    overflow-wrap: anywhere;
}

/* нижний разделитель на всю ширину: и для хедера, и для строк */
.bond-payments thead tr,
.bond-payments tbody tr{
    box-shadow: inset 0 -1px 0 rgba(239, 242, 246, 1);
}

/* чтобы у последней строки не было линии снизу (если нужно) */
.bond-payments tbody tr:last-child{
    box-shadow: none;
}

/* Запрет переносов в таблице выплат */

.bond-payments table td{
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

@media (max-width: 1920px) {
    .bond-payments thead th {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments table tbody tr td {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .bond-payments thead th {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments table tbody tr td {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .bond-payments thead th {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments table tbody tr td {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .bond-payments thead th {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments table tbody tr td {
        font-family: Mulish;
        font-weight: 700;
        font-size: 18px;
    }
}

/* Выравнивание картинки "к верху" */

@media (max-width: 390px) {

    .bond-big-card__img img {
        height: 90%;
        width: 100%;
    }
    .issuer .bond-big-card__img img { height: 100%; }
}

/* КОНТРОЛЬ СТИЛЕЙ В ТАБЛИЦЕ ВЫПЛАТ ОБЛИГАЦИЙ  */

@media (max-width: 768px) {
    .bond-payments table thead th:nth-child(3),
    .bond-payments table thead th:nth-child(4),
    .bond-payments table thead th:nth-child(5),
    .bond-payments table thead th:nth-child(6) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
        color: rgba(100, 115, 131, 1);
    }

    .bond-payments tbody td:nth-child(3) {
        font-family: Mulish;
        font-weight: 700;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(2) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 14px;
        color: rgba(100, 115, 131, 1);
    }
}

@media (max-width: 576px) {
    .bond-payments table thead th:nth-child(3),
    .bond-payments table thead th:nth-child(4),
    .bond-payments table thead th:nth-child(5),
    .bond-payments table thead th:nth-child(6) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(3) {
        font-family: Mulish;
        font-weight: 700;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(2) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 14px;
    }
}

@media (max-width: 450px) {
    .bond-payments table thead th:nth-child(3),
    .bond-payments table thead th:nth-child(4),
    .bond-payments table thead th:nth-child(5),
    .bond-payments table thead th:nth-child(6) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(3) {
        font-family: Mulish;
        font-weight: 700;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(2) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 14px;
    }
}

@media (max-width: 450px) {
    .bond-payments table thead th:nth-child(3),
    .bond-payments table thead th:nth-child(4),
    .bond-payments table thead th:nth-child(5),
    .bond-payments table thead th:nth-child(6) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 14px;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bond-payments tbody td:nth-child(3) {
        font-family: Mulish;
        font-weight: 700;
        font-size: 16px;
    }

    .bond-payments tbody td:nth-child(2) {
        font-family: Mulish;
        font-weight: 400;
        font-size: 14px;
    }
}

/* исправление выезжания тултипов и блока "поделится" */

.tooltip-content{
    position: fixed;          /* важно */
    z-index: 9999;
    max-width: min(320px, calc(100vw - 24px));
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.share-wrap .share-buttons {
    right: 0;
}

/* --- CorpBonds: ensure full screener columns are visible on desktop
   adaptive.js прячет duration inline style, а в моб-режиме CSS может гасить некоторые колонки.
   На десктопе принудительно возвращаем нормальное отображение.
--- */

/* --- CorpBonds: ensure full screener columns are visible on desktop
   adaptive.js прячет duration inline style, а в моб-режиме CSS может гасить некоторые колонки.
   На десктопе принудительно возвращаем нормальное отображение.
--- */
@media (min-width: 769px) {
    .screener__table-wrapper-2 #screenerTable tbody td.duration { display: table-cell !important; }
    .screener__table-wrapper-2 #screenerTable tbody td.mSpread,
    .screener__table-wrapper-2 #screenerTable tbody td.gSpread,
    .screener__table-wrapper-2 #screenerTable tbody td.liquidity { display: table-cell !important; }
}

@media (max-width: 768px) {
    .screener__table-wrapper-2 #screenerTable tbody td.duration.is-hidden-duration { display: none !important; }
}

@media (min-width: 769px) {
    .screener__table-wrapper-2 #screenerTable tbody td.mSpread,
    .screener__table-wrapper-2 #screenerTable tbody td.gSpread,
    .screener__table-wrapper-2 #screenerTable tbody td.liquidity {
        display: table-cell !important;
    }
}


@media (max-width: 768px) {
    .bond-payments table thead tr {
        grid-template-columns: minmax(120px, 1.25fr) minmax(70px, .9fr) minmax(65px, .8fr) minmax(75px, 1.15fr) !important;
    }
}
