/* =====================================================================
   terebro-gnb.com | Custom CSS проекта Tilda
   ---------------------------------------------------------------------
   Дата ревизии: 02.05.2026
   Что в файле:
     1) Tilda native overrides — формы, чекбоксы, Marquiz pops
     2) Стили статей блока T123 (.trb-*) — единая версия (объединены
        v1 от 18.03.2026 и v2 от 18.03.2026, рудиментные классы
        .trb-company-info и .trb-meta-date удалены — не использовались)
     3) Mobile-override для секционных H2 (P1 от 02.05.2026):
        перебивает inline-style font-size:62px, чтобы заголовки
        не переносились в 5 строк на мобиле.
   Размер: ~12 КБ. Применяется на всех страницах сайта (/custom.css).
   PageSpeed impact: 0 (без новых сетевых запросов).
   ===================================================================== */


/* =====================================================================
   1) TILDA NATIVE OVERRIDES — формы, чекбоксы, Marquiz
   ===================================================================== */

.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;
}


/* =====================================================================
   2) СТИЛИ СТАТЕЙ — блок T123 (data-record-type="131")
   ---------------------------------------------------------------------
   Единая объединённая версия (была разбита на 2 дубликата)
   Базовая дата: 18.03.2026
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;600;700&display=swap');

/* --- Обёртка статьи --- */
.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;
  background: #ffffff;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* --- Хлебные крошки --- */
.trb-breadcrumbs {
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.5;
  color: #999999;
}
.trb-breadcrumbs a,
.trb-bc-link {
  color: #999999;
  text-decoration: none;
  transition: color 0.2s;
}
.trb-breadcrumbs a:hover,
.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-tag {
  color: #9f9c9c;
  font-size: 12px;
  line-height: 1.5;
}
.trb-meta-sep {
  margin: 0 8px;
  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, H3 --- */
.trb-h2 {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  line-height: 1.35;
  margin: 40px 0 16px;
}
.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;
  transition: color 0.2s;
}
.trb-link:hover {
  color: #b8292f;
  text-decoration-color: #b8292f;
}

/* --- Сноски (верхний индекс) --- */
.trb-fn {
  font-size: 12px;
  line-height: 1;
  vertical-align: super;
}
.trb-fn a {
  color: #e52629;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.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;
  text-transform: uppercase;
}
.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-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-ol {
  padding-left: 24px;
  margin: 0 0 16px;
  color: #707070;
}
.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 footer {
  font-size: 14px;
  color: #9f9c9c;
  font-style: normal;
}
.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;
  font-size: 14px;
  color: #565656;
}
.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;
}
.trb-author p {
  margin: 0 0 10px 0;
}
.trb-author strong {
  color: #333333;
}

/* --- Кнопка-контур «Вернуться в блог» --- */
.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;
  background: transparent;
  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;
  color: #707070;
}
.trb-fn-list li {
  font-size: 14px;
  color: #707070;
  line-height: 1.45;
  margin-bottom: 6px;
}
.trb-fn-list li:target {
  background-color: #fff0f0;
  transition: background-color 0.5s;
}
.trb-fn-list a {
  color: #e52629;
  text-decoration: underline;
  border-bottom: 1px solid rgba(184, 41, 47, 0.3);
}
.trb-fn-list a:hover {
  border-bottom-color: #b8292f;
}

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


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

/* ≤1199px — планшет широкий */
@media screen and (max-width: 1199px) {
  .trb-article {
    padding: 45px 20px 60px;
  }
  .trb-h1 {
    font-size: 40px;
  }
}

/* ≤959px — планшет */
@media screen and (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 screen and (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 screen and (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;
  }
  /* H3 остаётся 16px, не меняется */
}


/* =====================================================================
   3) MOBILE-OVERRIDE H2 СЕКЦИОННЫХ ЗАГОЛОВКОВ (P1 — 02.05.2026)
   ---------------------------------------------------------------------
   Контекст:    P1 от P0 концепта T12 (CEO Context #938, supersedes #936).
   Проблема:    inline-style "font-size:62px" в  внутри
                .t-section__title перебивает родной responsive-каскад
                Tilda (42 → 38 → 30px). На всех экранах 320–1440px
                заголовок остаётся 62px → на iPhone 390px переносится
                в 5 строк, выглядит непрофессионально.
   Решение:    перебиваем inline-style через !important на 4 брейкпоинтах
                Tilda — плавная деградация 62 → 48 → 42 → 38 → 32 px.
   Селекторы:  .t-section__title (Tilda H2/H3/H4 любой секции)
                .js-block-header-title (внутренний div-обёртка)
                + span (потому что inline-стиль сидит на ).
   Конфликты:  проверено — ни в HEAD, ни в Tilda native CSS, ни в
                остальном Custom CSS этих селекторов нет.
   PageSpeed:  0 (~500 байт текстового CSS, без JS, без новых запросов;
                font-display:swap для Opensans уже стоит в HEAD).
   Применяется: автоматически на всех страницах сайта через /custom.css.
   Откат:      удалить блок #3 целиком — inline 62px вернётся на всех
                экранах.
   ===================================================================== */

/* Планшет широкий ≤1199px → 48px */
@media screen and (max-width: 1199px) {
  .t-section__title,
  .t-section__title span,
  .js-block-header-title,
  .js-block-header-title span {
    font-size: 48px !important;
    line-height: 1.18 !important;
  }
}

/* Планшет узкий ≤959px → 42px */
@media screen and (max-width: 959px) {
  .t-section__title,
  .t-section__title span,
  .js-block-header-title,
  .js-block-header-title span {
    font-size: 42px !important;
    line-height: 1.18 !important;
  }
}

/* Мобила ≤639px → 38px */
@media screen and (max-width: 639px) {
  .t-section__title,
  .t-section__title span,
  .js-block-header-title,
  .js-block-header-title span {
    font-size: 38px !important;
    line-height: 1.20 !important;
  }
}

/* Мобила малая ≤479px (iPhone SE) → 32px */
@media screen and (max-width: 479px) {
  .t-section__title,
  .t-section__title span,
  .js-block-header-title,
  .js-block-header-title span {
    font-size: 32px !important;
    line-height: 1.22 !important;
  }
}
