/* Korrto 2026, этап 5: стили контентных страниц, которых нет в прототипе (подключается через k26c_page(…, ['bx/css/content-bx.css'])).
 * Цвета и шрифты — переменные из assets/css/site.css. */

/* Ссылки в карточках новостей: заголовок кликабелен, но выглядит как в прототипе */
.nw h3 a, .news__item h3 a, .news-list a { color: inherit; text-decoration: none; }
.nw h3 a:hover, .news__item h3 a:hover, .news-list a:hover { color: var(--red); }
.promo__body h3 { color: #fff; }

/* Постраничная навигация (NAV_STRING компонента) */
.k26-pager { margin: 32px 0 0; font-size: 15px; }
.k26-pager a, .k26-pager b, .k26-pager span { display: inline-block; min-width: 36px; padding: 6px 10px; margin: 0 4px 4px 0; text-align: center; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.k26-pager b, .k26-pager .bx-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Статья: новость, акция, запись блога */
.art { min-width: 0; }
.art__head { margin: 0 0 24px; }
.art__date { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.art__title { margin: 0; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.art__img { margin: 0 0 28px; background: var(--stone); }
.art__img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.art__text { max-width: 76ch; margin: 0 0 32px; }
.art__text img { max-width: 100%; height: auto; }
.art__text h2, .art__text h3 { margin: 28px 0 12px; color: var(--ink); }
.art__text ul, .art__text ol { margin: 0 0 14px; padding-left: 22px; }

/* Сертификаты и документы компании (ИБ 41) */
.certs { margin-top: 56px; }
.certs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.certs__item h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 640; line-height: 1.3; }
.certs__item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.certs__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); border: 1px solid var(--line); }
.certs__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .5s var(--ease); }
.certs__img:hover img { transform: scale(1.03); }

/* Документы для скачивания на /contacts/ (ИБ 39) */
.ct-docs { margin-top: 28px; }
.ct-docs ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ct-docs li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.ct-docs li a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ct-docs li svg { width: 18px; height: 18px; flex: none; }
.ct-docs .mono { color: var(--ink-3); font-size: 12.5px; }

/* Дилеры (ИБ 25) */
.dealers { display: grid; gap: 28px; }
.dealers__item { padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.dealers__name { margin: 0 0 10px; font-size: 24px; font-weight: 640; line-height: 1.2; }
.dealers__range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.dealers__range li { padding: 5px 12px; background: var(--mist); font-size: 13.5px; color: var(--ink-2); }
.dealers .ip-dl { margin-bottom: 18px; }
.dealers .ip-dl dd a { white-space: normal; }

/* Страница 404 */
.nf { padding: clamp(40px, 8vw, 96px) 0 clamp(64px, 10vw, 128px); max-width: 720px; }
.nf__code { margin: 0 0 8px; font-size: clamp(96px, 18vw, 220px); line-height: .9; color: var(--red); letter-spacing: -.02em; }
.nf__title { margin: 0 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.nf__text { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.nf__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: 15px; }
.nf__links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Запасной блок вместо формы этапа 4 */
[data-k26-form-fallback] { padding: 28px; background: var(--night-2); color: var(--on-night); }
[data-k26-form-fallback] a { color: #fff; text-decoration: underline; }
[data-k26-form-fallback] h3 { margin: 0 0 10px; }

@media (max-width: 900px) {
  .certs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .certs__grid { grid-template-columns: 1fr; }
  .nf__btns .btn { flex: 1 1 100%; justify-content: center; }
}
