/* ============================================================
   Справочные страницы: таблицы характеристик
   Стиль: чертёжный лист 3D-страницы
   ============================================================ */

.reference-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-left: 6px solid var(--acc, #e04a17);
  background: linear-gradient(135deg, rgba(44, 93, 158, .10), var(--card, #faf8f2) 70%);
}

.reference-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: 5px;
  background: var(--paper, #f2f0e9);
  color: var(--acc, #e04a17);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-style: italic;
  line-height: 1;
}

.reference-hero h2 {
  padding-bottom: 0;
  margin-bottom: 6px;
  border-bottom: 0;
}

.reference-hero p {
  max-width: 780px;
  font-size: 14px;
  line-height: 1.65;
}

/* ---- Таблица ---- */
.reference-table {
  margin: 24px 0 28px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: var(--radius-sm, 5px);
  background: var(--card, #faf8f2);
  box-shadow: var(--shadow, 0 2px 0 rgba(27, 35, 46, .08));
  overflow: hidden;
}

.reference-table__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 12px;
  padding: 13px 18px;
  border-bottom: 1.5px solid var(--ink, #1b232e);
  background: var(--paper2, #eae7dd);
}

.reference-table__num {
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc, #e04a17);
}

.reference-table__title {
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.35;
  color: var(--ink, #1b232e);
}

.reference-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reference-table__scroll:focus-visible {
  outline: 2px solid var(--acc, #e04a17);
  outline-offset: -3px;
}

.reference-table__hint {
  display: none;
  margin: 0;
  padding: 8px 14px 9px;
  border-top: 1px dashed var(--line, #c8c2b2);
  background: var(--paper2, #eae7dd);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--ink2, #5b6572);
}

.spec-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--line, #c8c2b2);
  vertical-align: middle;
}

.spec-table thead th {
  padding: 9px 12px;
  border-color: #3a4553;
  background: var(--ink, #1b232e);
  color: var(--paper, #f2f0e9);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.spec-table thead th:first-child {
  border-left: 0;
}

.spec-table thead th:last-child {
  border-right: 0;
}

.spec-table thead th sub {
  font-size: .82em;
  text-transform: none;
}

.spec-symbol {
  text-transform: none;
}

.spec-table tbody th {
  padding: 9px 14px;
  border-left: 0;
  background: var(--paper2, #eae7dd);
  color: var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
}

.spec-table tbody td {
  padding: 8px 12px;
  background: #fff;
}

.spec-table tbody tr:nth-child(even) td {
  background: #faf8f2;
}

.spec-table tbody + tbody th,
.spec-table tbody + tbody td {
  border-top: 2px solid var(--ink, #1b232e);
}

.spec-table .spec-thickness {
  color: var(--ink, #1b232e);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 12px;
  letter-spacing: .01em;
  white-space: nowrap;
}

.spec-table .spec-value {
  color: var(--ink, #1b232e);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.spec-table .spec-value--v {
  font-weight: 500;
}

/* ---- Широкие таблицы ГОСТ 27772-2021 ---- */
.spec-table--wide {
  font-size: 11.5px;
}

.spec-table--t4 {
  min-width: 1040px;
}

.spec-table--t5 {
  min-width: 900px;
}

.spec-table--wide thead th {
  padding: 6px 5px;
  font-size: 8px;
  letter-spacing: .04em;
  line-height: 1.3;
}

.spec-table--wide thead th sub,
.spec-table--wide thead th sup {
  font-size: .75em;
}

.spec-table--wide tbody th {
  padding: 5px 8px;
  font-size: 13px;
}

.spec-table--wide tbody td {
  padding: 5px 6px;
}

.spec-table--wide .spec-thickness {
  font-size: 10.5px;
}

.spec-table--wide .spec-value {
  font-size: 11px;
}

.spec-table--wide thead tr:first-child th:first-child,
.spec-table--wide tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}

.spec-table--wide thead tr:first-child th:first-child {
  z-index: 3;
}

.spec-table--wide tbody th {
  box-shadow: 2px 0 0 var(--line, #c8c2b2);
}

.reference-table {
  scroll-margin-top: 110px;
}

.reference-source {
  margin: -8px 0 22px;
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--ink2, #5b6572);
}

.reference-source strong {
  color: var(--ink, #1b232e);
}

.reference-notes {
  padding: 12px 16px 14px;
  border-top: 1px dashed var(--line, #c8c2b2);
  background: var(--paper2, #eae7dd);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink2, #5b6572);
}

.reference-notes p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.reference-notes p + p,
.reference-notes p + ol {
  margin-top: 6px;
}

.reference-notes ol {
  margin: 0;
  padding-left: 20px;
}

.reference-notes li + li {
  margin-top: 4px;
}

.reference-notes sup {
  font-size: .75em;
}


@media (hover: hover) {
  .spec-table tbody tr:hover td {
    background: #f6f0e6;
  }
}

/* ---- Пояснения и порядок работы ---- */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.reference-grid .card {
  margin-bottom: 0;
}

.reference-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink2, #5b6572);
}

.reference-list li:last-child {
  margin-bottom: 0;
}

.reference-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--acc, #e04a17);
  background: var(--paper, #f2f0e9);
}

.reference-steps {
  counter-reset: reference-step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-steps li {
  counter-increment: reference-step;
  position: relative;
  padding-left: 38px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink2, #5b6572);
}

.reference-steps li:last-child {
  margin-bottom: 0;
}

.reference-steps li::before {
  content: counter(reference-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: var(--ink, #1b232e);
  color: var(--paper, #f2f0e9);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 10px;
  font-weight: 600;
}

.reference-note {
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid var(--line, #c8c2b2);
  border-left: 4px solid var(--blue, #2c5d9e);
  border-radius: 4px;
  background: var(--paper2, #eae7dd);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink2, #5b6572);
}

.reference-note strong {
  color: var(--ink, #1b232e);
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.reference-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: 4px;
  background: var(--card, #faf8f2);
  color: var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.reference-actions a:hover {
  border-color: var(--acc, #e04a17);
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
}

@media (max-width: 760px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-table__hint {
    display: block;
  }

  .reference-hero {
    flex-direction: column;
    gap: 12px;
  }

  .spec-table {
    min-width: 620px;
  }

  .spec-table--t4 {
    min-width: 1040px;
  }

  .spec-table--t5 {
    min-width: 900px;
  }

  .spec-table thead th,
  .spec-table tbody td {
    padding: 7px 10px;
  }

  .spec-table--wide thead th,
  .spec-table--wide tbody td {
    padding: 5px 5px;
  }

  .spec-table tbody th {
    padding: 7px 10px;
  }

  .spec-table--wide tbody th {
    padding: 5px 7px;
  }

  .spec-table .spec-thickness {
    font-size: 11px;
  }

  .spec-table--wide .spec-thickness {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .breadcrumbs {
    flex-wrap: wrap;
    row-gap: 3px;
  }
}

/* ============================================================
   ГОСТ 35087-2024: сортамент двутавров
   ============================================================ */

.reference-section-title {
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--ink, #1b232e);
}

.reference-section-title:first-of-type {
  margin-top: 28px;
}

.reference-lead {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink2, #5b6572);
}

/* ---- Рисунки 1 и 2 ---- */
.gost-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin: 20px 0 28px;
}

.gost-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 12px 16px 12px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: var(--radius-sm, 5px);
  background: var(--card, #faf8f2);
  box-shadow: var(--shadow, 0 2px 0 rgba(27, 35, 46, .08));
}

.gost-figure svg {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 0 auto;
}

.gost-legend {
  margin: 6px 0 10px;
  padding: 9px 0 0;
  border-top: 1px dashed var(--line, #c8c2b2);
  list-style: none;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink2, #5b6572);
}

.gost-legend li {
  padding-left: 1.1em;
  text-indent: -1.1em;
}

.gost-legend li + li {
  margin-top: 2px;
}

.gost-figure figcaption {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line, #c8c2b2);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink2, #5b6572);
}

.gost-figure figcaption b {
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--acc, #e04a17);
}

/* ---- Переходы по типам ---- */
.reference-actions--types {
  gap: 8px;
  margin-bottom: 22px;
}

.reference-actions--types a {
  gap: 8px;
  padding: 7px 11px;
  font-size: 10.5px;
}

.reference-actions__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--line, #c8c2b2);
  border-radius: 20px;
  background: var(--paper2, #eae7dd);
  color: var(--ink2, #5b6572);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.reference-actions--types a:hover .reference-actions__count {
  border-color: rgba(242, 240, 233, .55);
  background: transparent;
  color: var(--paper, #f2f0e9);
}

/* ---- Счётчик профилей в подписи ---- */
.reference-table__count {
  margin-left: auto;
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink2, #5b6572);
  white-space: nowrap;
}

/* ---- Таблица 1: 18 столбцов ---- */
.spec-table--ibeam {
  min-width: 1180px;
}

.spec-table--ibeam thead th {
  padding: 5px 4px;
  font-size: 7.5px;
  letter-spacing: .03em;
  line-height: 1.25;
}

.spec-table--ibeam thead tr:first-child th:first-child {
  min-width: 92px;
}

.spec-table--ibeam thead th small {
  display: block;
  margin-top: 1px;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .75;
}

.spec-table--ibeam tbody th {
  min-width: 92px;
  padding: 4px 8px;
  font-size: 12px;
}

.spec-table--ibeam tbody td {
  padding: 4px 5px;
}

.spec-table--ibeam .spec-value {
  font-size: 10.5px;
  font-weight: 500;
}

/* ---- Примечания под таблицей ---- */
.reference-notes--panel {
  margin: 18px 0 26px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: var(--radius-sm, 5px);
  background: var(--paper2, #eae7dd);
}

.reference-notes--panel > p:first-child {
  margin-bottom: 7px;
  color: var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---- Сворачивание таблиц ---- */
.reference-table__toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  margin-left: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line, #c8c2b2);
  border-radius: 4px;
  background: var(--card, #faf8f2);
  color: var(--ink2, #5b6572);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.reference-table__toggle:hover,
.reference-table__toggle:focus-visible {
  border-color: var(--acc, #e04a17);
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
  outline: none;
}

.reference-table__chev {
  font-size: 10px;
  line-height: 1;
  transition: transform .22s ease;
}

.reference-table.is-collapsed .reference-table__chev {
  transform: rotate(-90deg);
}

.reference-table__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  transition: grid-template-rows .3s ease;
}

.reference-table__body-inner {
  min-height: 0;
  overflow: hidden;
}

.reference-table.is-collapsed .reference-table__body {
  grid-template-rows: minmax(0, 0fr);
}

.no-collapse-transition .reference-table__body {
  transition: none;
}

/* ---- Поиск по номеру профиля ---- */
.reference-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: end;
  margin: 16px 0 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: var(--radius-sm, 5px);
  background: linear-gradient(135deg, rgba(44, 93, 158, .07), var(--card, #faf8f2) 62%);
  box-shadow: var(--shadow, 0 2px 0 rgba(27, 35, 46, .08));
}

.ibeam-search {
  min-width: 0;
}

.ibeam-search__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--acc, #e04a17);
}

.ibeam-search__field {
  display: flex;
  gap: 6px;
}

.ibeam-search__field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: 4px;
  background: #fff;
  color: var(--ink, #1b232e);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .05em;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.ibeam-search__field input:focus {
  border-color: var(--acc, #e04a17);
  box-shadow: 0 0 0 3px rgba(224, 74, 23, .15);
}

.ibeam-search__field input::placeholder {
  color: #9a9384;
  font-weight: 400;
  letter-spacing: .03em;
}

.ibeam-search__submit {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 15px;
  border: 1.5px solid var(--acc, #e04a17);
  border-radius: 4px;
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.ibeam-search__submit:hover,
.ibeam-search__submit:focus-visible {
  border-color: var(--ink, #1b232e);
  background: var(--ink, #1b232e);
  outline: none;
}

.ibeam-search__clear {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line, #c8c2b2);
  border-radius: 4px;
  background: var(--card, #faf8f2);
  color: var(--ink2, #5b6572);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.ibeam-search__clear:hover,
.ibeam-search__clear:focus-visible {
  border-color: var(--acc, #e04a17);
  color: var(--acc, #e04a17);
  outline: none;
}

.ibeam-search__meta {
  margin: 7px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink2, #5b6572);
}

.ibeam-search__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.ibeam-search__suggestions[hidden] {
  display: none;
}

.ibeam-suggestion {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 10px;
  border: 1px solid var(--line, #c8c2b2);
  border-radius: 4px;
  background: var(--paper, #f2f0e9);
  color: var(--ink, #1b232e);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 11px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease;
}

.ibeam-suggestion b {
  font-size: 12px;
  letter-spacing: .04em;
}

.ibeam-suggestion span {
  font-size: 9px;
  color: var(--ink2, #5b6572);
}

.ibeam-suggestion:hover,
.ibeam-suggestion:focus-visible {
  border-color: var(--acc, #e04a17);
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
  outline: none;
}

.ibeam-suggestion:hover span,
.ibeam-suggestion:focus-visible span {
  color: rgba(242, 240, 233, .82);
}

.ibeam-search__empty {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--acc, #e04a17);
}

.reference-tools__collapse {
  display: flex;
  align-items: end;
}

.reference-tools__btn {
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: 4px;
  background: var(--card, #faf8f2);
  color: var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.reference-tools__btn:hover,
.reference-tools__btn:focus-visible {
  border-color: var(--acc, #e04a17);
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
  outline: none;
}

/* ---- Карточка найденного профиля ---- */
.ibeam-result {
  margin: 0 0 18px;
}

.ibeam-result[hidden] {
  display: none;
}

.ibeam-result__card {
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: var(--radius-sm, 5px);
  background: var(--card, #faf8f2);
  box-shadow: var(--shadow, 0 2px 0 rgba(27, 35, 46, .08));
  overflow: hidden;
  animation: ibeamResultIn .28s ease both;
}

@keyframes ibeamResultIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ibeam-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink, #1b232e);
  background: linear-gradient(135deg, rgba(224, 74, 23, .11), var(--paper2, #eae7dd) 72%);
}

.ibeam-result__eyebrow {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc, #e04a17);
}

.ibeam-result__title {
  margin: 0;
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.15;
  color: var(--ink, #1b232e);
}

.ibeam-result__title span {
  display: block;
  margin-top: 2px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink2, #5b6572);
}

.ibeam-result__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ibeam-result__goto {
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--ink, #1b232e);
  border-radius: 4px;
  background: var(--card, #faf8f2);
  color: var(--ink, #1b232e);
  font-family: var(--disp, 'Oswald', 'Arial Narrow', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.ibeam-result__goto:hover,
.ibeam-result__goto:focus-visible {
  border-color: var(--acc, #e04a17);
  background: var(--acc, #e04a17);
  color: var(--paper, #f2f0e9);
  outline: none;
}

.ibeam-result__close {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line, #c8c2b2);
  border-radius: 4px;
  background: transparent;
  color: var(--ink2, #5b6572);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.ibeam-result__close:hover,
.ibeam-result__close:focus-visible {
  border-color: var(--acc, #e04a17);
  color: var(--acc, #e04a17);
  outline: none;
}

.ibeam-result__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ibeam-result__scroll:focus-visible {
  outline: 2px solid var(--acc, #e04a17);
  outline-offset: -3px;
}

.ibeam-result__hint {
  margin: 0;
  padding: 8px 14px 9px;
  border-top: 1px dashed var(--line, #c8c2b2);
  background: var(--paper2, #eae7dd);
  font-family: var(--mono, 'IBM Plex Mono', Consolas, monospace);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--ink2, #5b6572);
}

/* ---- Подсветка найденной строки в таблице ---- */
.spec-table tbody tr.is-highlighted > th,
.spec-table tbody tr.is-highlighted > td {
  background: #fbe0d2 !important;
  transition: background-color .3s ease;
}

@media (max-width: 1000px) {
  .gost-figures {
    grid-template-columns: 1fr;
  }

  .gost-figure svg {
    max-width: 380px;
  }
}

@media (max-width: 760px) {
  .reference-table__count {
    flex-basis: 100%;
    margin-left: 0;
  }

  .reference-table {
    scroll-margin-top: 148px;
  }

  .spec-table--ibeam {
    min-width: 1120px;
  }

  .reference-tools {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 12px 13px;
  }

  .reference-tools__collapse {
    align-items: stretch;
  }

  .reference-tools__btn {
    width: 100%;
  }

  .ibeam-search__field {
    flex-wrap: wrap;
  }

  .ibeam-search__field input {
    flex-basis: 100%;
  }

  .ibeam-search__submit {
    flex: 1 1 auto;
  }

  .ibeam-result__head {
    flex-direction: column;
    align-items: stretch;
  }

  .ibeam-result__tools {
    justify-content: space-between;
  }

  .ibeam-result__goto {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-table__body,
  .reference-table__chev {
    transition: none;
  }

  .ibeam-result__card {
    animation: none;
  }
}


/* ============================================================
   ГОСТ 82-70: сортамент широкополосного универсального проката
   ============================================================ */

.reference-table__scroll--grid {
  max-height: min(74vh, 900px);
  overflow: auto;
}

.spec-table--gost82 {
  min-width: 1000px;
  font-size: 11px;
}

.spec-table--gost82 thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 6px 3px;
  font-size: 8.5px;
  letter-spacing: .05em;
}

.spec-table--gost82 thead tr:first-child th {
  height: 26px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 9px;
  letter-spacing: .09em;
  line-height: 26px;
}

.spec-table--gost82 thead tr:nth-child(2) th {
  top: 27px;
}

.spec-table--gost82 thead tr:first-child th:first-child {
  left: 0;
  z-index: 5;
}

.spec-table--gost82 tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: .02em;
  box-shadow: 2px 0 0 var(--line, #c8c2b2);
}

.spec-table--gost82 tbody td {
  padding: 4px 3.5px;
}

.spec-table--gost82 .spec-value {
  font-size: 10.5px;
  font-weight: 500;
}

/* Перекрестие: подсветка столбца при наведении */
.spec-table--gost82 .is-hl {
  background: #f3e7cf !important;
}

.spec-table--gost82 thead th.is-hl {
  background: var(--blue, #2c5d9e) !important;
}

@media (max-width: 760px) {
  .reference-table__scroll--grid {
    max-height: none;
  }

  .spec-table--gost82 {
    min-width: 1040px;
  }

  .spec-table--gost82 tbody th {
    padding: 4px 7px;
  }

  .spec-table--gost82 tbody td {
    padding: 4px 4px;
  }
}

.spec-table--gost82 .gost82-group {
  border-left: 2px solid var(--ink, #1b232e);
}

.spec-table--gost82 thead tr:first-child th:first-child {
  font-size: 8px;
  letter-spacing: .04em;
}

/* ============================================================
   ГОСТ 103-76: сортамент полосовой стали
   ============================================================ */

.spec-table--gost103 {
  min-width: 1060px;
  font-size: 11px;
}

.spec-table--gost103 thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 6px 3px;
  font-size: 8.5px;
  letter-spacing: .05em;
}

.spec-table--gost103 thead tr:first-child th {
  height: 26px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 9px;
  letter-spacing: .09em;
  line-height: 26px;
}

.spec-table--gost103 thead tr:nth-child(2) th {
  top: 27px;
}

.spec-table--gost103 thead tr:first-child th:first-child {
  left: 0;
  z-index: 5;
  font-size: 8px;
  letter-spacing: .04em;
}

.spec-table--gost103 tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 4px 8px;
  font-size: 12px;
  letter-spacing: .02em;
  box-shadow: 2px 0 0 var(--line, #c8c2b2);
}

.spec-table--gost103 tbody td {
  padding: 4px 3.5px;
}

.spec-table--gost103 .spec-value {
  font-size: 10.5px;
  font-weight: 500;
}

.spec-table--gost103 .spec-dash {
  color: #a09a8e;
  font-weight: 400;
}

.spec-table--gost103 .gost103-group {
  border-left: 2px solid var(--ink, #1b232e);
}

.spec-table--gost103 tbody tr.gost103-group > th,
.spec-table--gost103 tbody tr.gost103-group > td {
  border-top: 2px solid var(--ink, #1b232e);
}

/* Перекрестие: подсветка столбца при наведении */
.spec-table--gost103 .is-hl {
  background: #f3e7cf !important;
}

.spec-table--gost103 thead th.is-hl {
  background: var(--blue, #2c5d9e) !important;
}

@media (max-width: 760px) {
  .spec-table--gost103 {
    min-width: 1080px;
  }

  .spec-table--gost103 tbody th {
    padding: 4px 7px;
  }

  .spec-table--gost103 tbody td {
    padding: 4px 4px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
