/* ==========================================================================
   custom.css v2.0 для terebro-gnb.com (Tilda проект 5657012)
   Дата: 07.06.2026
   Обновление от v1.x (02.05.2026):
     P0 #1 — Удалены 2× @import Google Fonts (render-blocking).
              Шрифты теперь грузятся через preload в HEAD v3.5.0.
     P0 #2 — Удалён дублирующий блок CSS статей T123 (бывшие строки 31-347).
              Источник истины — расширенный блок ниже (бывший «Бестраншейная прокладка»).
              3 уникальных класса из старого блока перенесены сюда:
                .trb-company-info, .trb-meta-date базовое, .trb-fn базовое.
   Подключение: Tilda → Настройки сайта → Дополнительно → Свой CSS
   Откат: kod-CSS-02.05-2.txt (custom.css v1.x)
   ========================================================================== */

/* ----- Базовые стили форм Tilda (без изменений с v1) ----- */
.t-input-title {
    font-size: 16px;
}
.t-checkbox__control {
    font-size: 12px;
    font-weight: 400;
}
.t-checkbox__control a {
    color: #363636 !important;
    text-decoration: underline !important;
}
.t396 .t-checkbox__control a {
    color: #fff !important;
}
.t-checkbox__control a:hover {
    text-decoration: none !important;
}
.t-checkbox__indicator {
    border-color: #B8292F;
    border-radius: 2px;
}
.t-checkbox__indicator:after {
    border-color: #B8292F;
}
.marquiz-pops__content {
    font-family: "Gilroy", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   terebro-gnb.com | Стили для статей (блок T123)
   Версия: v2.0 от 07.06.2026 (объединённая, без дублей)
   Назначение: типографика, цвета, адаптация статейных материалов
   Подключение: применяется на всех страницах со статьями (T123)
   ========================================================================== */

/* --- Обёртка --- */
.trb-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 70px;
  font-family: var(--t-text-font, 'Open Sans', Arial, sans-serif);
  color: #707070;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* --- Хлебные крошки --- */
.trb-breadcrumbs {
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.5;
  color: #999999;
}
.trb-bc-link {
  color: #999999;
  text-decoration: none;
}
.trb-bc-link:hover {
  color: #e52629;
  text-decoration: underline;
}
.trb-bc-sep {
  margin: 0 6px;
  color: #999999;
}
.trb-bc-current {
  color: #707070;
}

/* --- H1 --- */
.trb-h1 {
  font-size: 50px;
  font-weight: 200;
  color: #b8292f;
  line-height: 1.35;
  margin: 0 0 20px;
}

/* --- Мета-строка --- */
.trb-meta {
  font-size: 14px;
  font-weight: 400;
  color: #565656;
  line-height: 1.35;
  margin-bottom: 28px;
}
.trb-meta-sep {
  margin: 0 8px;
}
.trb-meta-tag {
  color: #9f9c9c;
  font-size: 12px;
  line-height: 1.5;
}
/* Перенос из v1: дата в мета-строке (исп. в старых статьях) */
.trb-meta-date {
  color: #565656;
}

/* --- Даты --- */
.trb-dates {
  font-size: 14px;
  color: #565656;
  margin: 32px 0 24px;
}
.trb-date-item {
  color: #565656;
}
.trb-dates .trb-meta-sep {
  margin: 0 8px;
}

/* --- H2 --- */
.trb-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  line-height: 1.35;
  margin: 40px 0 16px;
}

/* --- H3 --- */
.trb-h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  line-height: 1.35;
  margin: 28px 0 12px;
}

/* --- Параграф --- */
.trb-p {
  font-size: 16px;
  font-weight: 400;
  color: #707070;
  line-height: 1.35;
  margin: 0 0 16px;
}

/* --- Ссылки --- */
.trb-link {
  color: #e52629;
  text-decoration: underline;
  text-decoration-color: rgba(229, 38, 41, 0.3);
  text-underline-offset: 2px;
}
.trb-link:hover {
  color: #b8292f;
  text-decoration-color: #b8292f;
}

/* --- Сноски (верхний индекс) --- */
/* Перенос из v1: базовое определение .trb-fn (vertical-align:super) */
.trb-fn {
  font-size: 12px;
  line-height: 1;
  vertical-align: super;
}
.trb-fn a {
  color: #e52629;
  text-decoration: none;
  font-size: 12px;
}
.trb-fn a:hover {
  text-decoration: underline;
}

/* --- Блок «Кратко» --- */
.trb-summary {
  background: #f3f3f3;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0 32px;
}
.trb-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 12px;
}

/* --- Маркированный список --- */
.trb-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.trb-ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
  color: #707070;
}
.trb-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8292f;
}
.trb-summary .trb-ul {
  margin-bottom: 0;
}
.trb-summary .trb-ul li {
  margin-bottom: 10px;
}
.trb-summary .trb-ul li:last-child {
  margin-bottom: 0;
}

/* --- Нумерованный список --- */
.trb-ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.trb-ol li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
  color: #707070;
}

/* --- Таблица --- */
.trb-table-wrap {
  overflow-x: auto;
  margin: 20px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.trb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.35;
}
.trb-table th {
  background: #f3f3f3;
  color: #333333;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  text-align: left;
  white-space: nowrap;
}
.trb-table td {
  font-size: 14px;
  color: #707070;
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  vertical-align: top;
}
.trb-table tr:nth-child(even) td {
  background: #fafafa;
}

/* --- Цитата (blockquote) --- */
.trb-blockquote {
  border-left: 4px solid #b8292f;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f3f3f3;
  border-radius: 0 8px 8px 0;
}
.trb-blockquote p {
  font-size: 16px;
  font-style: italic;
  color: #333333;
  line-height: 1.45;
  margin: 0 0 8px;
}
.trb-blockquote p:last-child {
  margin-bottom: 0;
}
.trb-blockquote-author {
  font-size: 14px;
  font-style: normal;
  color: #565656;
  font-weight: 600;
  margin-top: 8px;
}

/* --- Примечание (кейс) --- */
.trb-note {
  background: #fff8e6;
  border-left: 4px solid #f5a623;
  border-radius: 0 8px 8px 0;
  padding: 16px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: #565656;
  line-height: 1.45;
}

/* --- FAQ --- */
.trb-faq {
  margin: 40px 0 24px;
}
.trb-faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebebeb;
}
.trb-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.trb-faq-item .trb-h3 {
  margin-top: 0;
}

/* --- Блок автора --- */
.trb-author {
  display: flex;
  gap: 16px;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 40px 0 24px;
}
.trb-author-info {
  flex: 1;
}
.trb-author-name {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 4px;
}
.trb-author-role {
  font-size: 14px;
  color: #565656;
  margin: 0 0 8px;
}
.trb-author-bio {
  font-size: 14px;
  color: #707070;
  margin: 0;
  line-height: 1.45;
}

/* --- Информация о компании (перенос из v1, исп. в старых статьях) --- */
.trb-company-info {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  font-size: 14px;
  color: #565656;
}
.trb-company-info p {
  margin: 0 0 10px 0;
}

/* --- Кнопка-контур --- */
.trb-back-wrap {
  margin: 32px 0 0;
  text-align: center;
}
.trb-btn-outline {
  display: inline-block;
  color: #e72b2b;
  border: 1px solid #e72b2b;
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.trb-btn-outline:hover {
  background: #e72b2b;
  color: #ffffff;
}

/* --- Источники --- */
.trb-footnotes {
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}
.trb-fn-title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  margin: 0 0 12px;
}
.trb-fn-list {
  padding-left: 24px;
  margin: 0;
}
.trb-fn-list li {
  font-size: 14px;
  color: #707070;
  line-height: 1.45;
  margin-bottom: 6px;
}
.trb-fn-list a {
  color: #e52629;
  text-decoration: underline;
}

/* --- Рекомендуемые материалы --- */
.trb-related {
  margin: 32px 0 24px;
}
.trb-related .trb-ul li {
  margin-bottom: 10px;
}

/* ==========================================================================
   АДАПТИВ — Брейкпоинты Тильды
   ========================================================================== */

/* ≤1199px */
@media (max-width: 1199px) {
  .trb-article {
    padding: 45px 20px 60px;
  }
  .trb-h1 {
    font-size: 40px;
  }
}

/* ≤959px */
@media (max-width: 959px) {
  .trb-article {
    padding: 40px 20px 55px;
  }
  .trb-h1 {
    font-size: 40px;
  }
  .trb-h2 {
    font-size: 20px;
  }
  .trb-author {
    flex-direction: column;
  }
}

/* ≤639px */
@media (max-width: 639px) {
  .trb-article {
    padding: 28px 16px 48px;
  }
  .trb-h1 {
    font-size: 37px;
  }
  .trb-h2 {
    font-size: 18px;
  }
  .trb-h3 {
    font-size: 16px;
  }
  .trb-summary {
    padding: 20px 20px;
  }
  .trb-author {
    padding: 16px 18px;
  }
  .trb-blockquote {
    padding: 12px 18px;
  }
  .trb-table th,
  .trb-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ≤479px */
@media (max-width: 479px) {
  .trb-article {
    padding: 20px 14px 40px;
  }
  .trb-h1 {
    font-size: 40px;
  }
  .trb-h2 {
    font-size: 17px;
  }
  .trb-table {
    font-size: 12px;
  }
  .trb-table th,
  .trb-table td {
    padding: 6px 8px;
    font-size: 12px;
  }
}
