/* Доп. стили для WordPress-специфичных мест (не перезаписываются gulp-сборкой). */

/* Внутренние страницы: блог, новость, обычная страница */
.nsk-page {
  padding: 56px 0 80px;
}
.nsk-page__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #002d43;
  margin: 16px 0 24px;
  line-height: 1.15;
}
.nsk-page__thumb {
  margin: 0 0 28px;
}
.nsk-page__thumb img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Типографика контента из редактора */
.nsk-entry {
  margin: 0 auto;
  margin-bottom: 100px;
  max-width: 1140px;
  color: #2a3b45;
  font-size: 17px;
  line-height: 1.7;
}
.nsk-entry > * + * {
  margin-top: 18px;
}
.nsk-entry h2 {
  font-size: 28px;
  color: #002d43;
  margin-top: 36px;
  font-weight: 700;
}
.nsk-entry h3 {
  font-size: 22px;
  color: #002d43;
  margin-top: 28px;
  font-weight: 600;
}
.nsk-entry a {
  color: #008dd2;
  text-decoration: underline;
}
.nsk-entry ul,
.nsk-entry ol {
  padding-left: 22px;
}
.nsk-entry li + li {
  margin-top: 8px;
}
.nsk-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.nsk-entry blockquote {
  border-left: 4px solid #008dd2;
  padding-left: 18px;
  color: #4a5b65;
  font-style: italic;
}

/* ───────── Статья / новость (single.php) ───────── */
/* Баннер использует разметку и стили .hero-catalog (как в каталоге). */

/* Тело */
.art-body {
  padding: 40px 0 16px;
}
.art-thumb {
  margin: 0 0 28px;
}
.art-thumb img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

/* Оглавление */
.art-toc {
  margin: 0 0 32px;
  border: 1px solid #e1ebf1;
  border-radius: 16px;
  padding: 22px 26px;
  background: #f3f7fa;
}
.art-toc__heading {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #002d43;
}
.art-toc__list {
  display: grid;
  gap: 10px;
}
.art-toc__link {
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  color: #008dd2;
}
.art-toc__link:hover {
  text-decoration: underline;
}

/* Отступ блока похожих статей */
.art-related {
  margin-top: 24px;
}

/* Пустой каталог */
.catalog-products__empty {
  padding: 40px 0;
  color: #6a7b85;
  font-size: 17px;
}

/* Пагинация (paginate_links / the_posts_pagination → .page-numbers) */
.articles-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}
.articles-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d8e2e8;
  color: #002d43;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.articles-pagination .page-numbers:hover {
  border-color: #008dd2;
  color: #008dd2;
}
.articles-pagination .page-numbers.current {
  background: #008dd2;
  border-color: #008dd2;
  color: #fff;
}
.articles-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* Статус отправки формы */
.nsk-form-status {
  margin-top: 12px;
  font-size: 14px;
}

/* ── Contact Form 7 в формах темы (.modal-form / .contacts-form — grid) ── */
.modal-form .wpcf7-form-control-wrap,
.contacts-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

/* Текстовая область занимает 3 строки правой колонки (как в вёрстке) */
.contacts-form .wpcf7-form-control-wrap[data-name="your-comment"] {
  grid-row: span 3;
}
.contacts-form .wpcf7-form-control-wrap[data-name="your-comment"] .contacts-form__input--textarea {
  height: 100%;
}

/* Блок согласия — на всю ширину сетки */
.modal-form .wpcf7-form-control-wrap[data-name="policy"],
.contacts-form .wpcf7-form-control-wrap[data-name="policy"] {
  grid-column: 1 / -1;
}
.modal-form .wpcf7-form-control-wrap[data-name="policy"] {
  margin: 20px 0 10px;
}
.contacts-form .wpcf7-form-control-wrap[data-name="policy"] {
  margin: 20px 0 30px;
}
.modal-form .wpcf7-acceptance .wpcf7-list-item,
.contacts-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.modal-form .wpcf7-acceptance label,
.contacts-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.modal-form .wpcf7-acceptance input[type="checkbox"],
.contacts-form .wpcf7-acceptance input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  outline: none;
  border: 1px solid #99abb4;
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #008dd2;
}
.modal-form .wpcf7-acceptance .wpcf7-list-item-label,
.contacts-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #011c2a;
}
.modal-form .wpcf7-acceptance .wpcf7-list-item-label a,
.contacts-form .wpcf7-acceptance .wpcf7-list-item-label a {
  font-weight: 600;
  color: #008dd2;
}

/* Спиннер, ошибки полей и итоговое сообщение */
.modal-form .wpcf7-spinner,
.contacts-form .wpcf7-spinner {
  grid-column: 1 / -1;
  margin: 0 auto;
}
.modal-form .wpcf7-not-valid-tip,
.contacts-form .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 13px;
}
.modal-form .wpcf7-response-output,
.contacts-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  border: none;
  padding: 0;
  font-size: 14px;
  color: #e02424;
}
.wpcf7 form.sent .wpcf7-response-output {
  color: #1f9d55;
}
