/*
Theme Name: CHILLS — тестовая копия
Theme URI: https://chills.media
Description: Дочерняя тема Eksell для проекта CHILLS
Author: CHILLS
Template: eksell
Version: 1.0.9
Text Domain: chills-test
*/

/* === Стили модулей до основной таблицы === */

/* CHILLS — «Интересный факт» внутри статьи */
body.single-post .chills-article-body .entry-content .chills-fact {
  box-sizing: border-box;
  margin: 32px 0;
  padding: 20px 22px;
  background: #fbf4f5;
  border: 0;
  border-radius: 0;
  color: #46535a;
}

body.single-post .chills-article-body .entry-content .chills-fact-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

body.single-post .chills-article-body .entry-content .chills-fact-icon {
  flex: 0 0 auto;
  color: #e83b50;
  font-size: 22px;
  line-height: 1;
}

body.single-post .chills-article-body .entry-content .chills-fact-title {
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #202d31;
}

body.single-post .chills-article-body .entry-content .chills-fact p {
  margin: 0 0 16px;
  line-height: 1.5;
}

body.single-post .chills-article-body .entry-content .chills-fact p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.single-post .chills-article-body .entry-content .chills-fact {
    padding: 16px 18px;
  }

  body.single-post .chills-article-body .entry-content .chills-fact-title {
    font-size: 17px;
  }
}


/* CHILLS — дополнительные списки для статей */
body.single-post .chills-article-body .entry-content .chills-styled-list {
  list-style: none;
  box-sizing: border-box;
  margin: 28px 0;
  padding: 24px;
  background: #fdf7f8;
  border: 0;
  border-radius: 0;
}

body.single-post .chills-article-body .entry-content .chills-styled-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #202d31;
}

body.single-post .chills-article-body .entry-content .chills-styled-list li+li {
  margin-top: 18px;
}

body.single-post .chills-article-body .entry-content .chills-styled-list__text {
  display: block;
  min-width: 0;
  flex: 1;
}

body.single-post .chills-article-body .entry-content .chills-styled-list--numbered {
  counter-reset: chills-list-item;
}

body.single-post .chills-article-body .entry-content .chills-styled-list--numbered li::before {
  counter-increment: chills-list-item;
  content: counter(chills-list-item);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: #f4d3d8;
  border-radius: 50%;
  color: #202d31;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

body.single-post .chills-article-body .entry-content .chills-styled-list--checks li::before {
  content: '✓';
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  color: #e83b50;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 767px) {
  body.single-post .chills-article-body .entry-content .chills-styled-list {
    padding: 16px;
  }

  body.single-post .chills-article-body .entry-content .chills-styled-list li {
    gap: 12px;
    font-size: 15px;
  }
}

/* CHILLS — списки без фоновой подложки */

body.single-post .chills-article-body .entry-content .chills-list,
body.single-post .chills-article-body .entry-content .chills-list-numbered,
body.single-post .chills-article-body .entry-content .chills-list-check {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}


/* === Основные стили дочерней темы === */

/* ==========================================
   1. ШРИФТЫ САЙТА
========================================== */

body,
button,
input,
select,
textarea {
  font-family: 'Golos Text', Arial, sans-serif;
}


/* ==========================================
   2. ШИРИНА СТАТЕЙ
========================================== */

@media (min-width: 900px) {

  body.single-post .entry-header.mw-thin,
  body.single-post .post-inner.mw-thin {
    width: calc(100% - 40px);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

}

@media (min-width: 1200px) {

  /* Разрешаем sticky в теме Eksell */

  body.single-post:has(.chills-toc) #site-content {
    overflow: visible;
  }

  /* Широкий контейнер для статей с содержанием */

  body.single-post:has(.chills-toc) .entry-header.mw-thin,
  body.single-post:has(.chills-toc) .post-inner.mw-thin {
    width: calc(100% - 48px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Статья слева, содержание справа */

  body.single-post .chills-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 48px;
    align-items: stretch;
  }

}


/* ==========================================
   3. КОЛОНКА СТАТЬИ
========================================== */

body.single-post .chills-article-body {
  min-width: 0;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

/* Короткие статьи без содержания */

@media (min-width: 1200px) {

  body.single-post .chills-article-layout:not(:has(.chills-toc)) {
    display: block;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

}


/* ==========================================
   4. ТИПОГРАФИКА ЗАГОЛОВКОВ
========================================== */

/* H1 */

body.single-post .entry-title {
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

/* Общий стиль H2–H4 */

body.single-post .chills-article-body h2,
body.single-post .chills-article-body h3,
body.single-post .chills-article-body h4 {
  font-family: 'Public Sans', Arial, sans-serif;
  letter-spacing: -0.02em;
}

/* H2 */

body.single-post .chills-article-body h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

/* H3 */

body.single-post .chills-article-body h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

/* H4 */

body.single-post .chills-article-body h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}


/* ==========================================
   5. АНОНС СТАТЬИ
========================================== */

body.single-post .chills-excerpt {
  width: 100%;
  max-width: 760px;
  margin: 0 0 24px;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

body.single-post .chills-excerpt p {
  margin: 0;
  font: inherit;
  line-height: inherit;
}


/* ==========================================
   6. МЕТАДАННЫЕ СТАТЬИ
========================================== */

/* Автор, дата, время чтения */

body.single-post .chills-post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  column-gap: 48px;
  row-gap: 14px;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  border: none;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #687078;
}

/* Каждый элемент метаданных */

body.single-post .chills-post-meta>span {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
}

/* Только вертикальные разделители */

body.single-post .chills-post-meta>span+span::before {
  content: "";
  display: block;
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: #d6d5d4;
}

/* Автор SLOER */

body.single-post .chills-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #222222;
  font-weight: 600;
}

/* Круглый аватар */

body.single-post .chills-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #202d31;
  color: #ffffff;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}


/* ==========================================
   7. ОБЛОЖКА СТАТЬИ
========================================== */

body.single-post .chills-cover {
  width: 100%;
  max-width: 100%;
  margin: 0 0 40px;
}

body.single-post .chills-cover .media-wrapper {
  width: 100%;
}

body.single-post .chills-cover img {
  display: block;
  width: 100%;
  height: auto;
}

body.single-post .chills-cover figcaption {
  margin-top: 10px;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #687078;
}


/* ==========================================
   8. СОДЕРЖАНИЕ СТАТЬИ
========================================== */

.chills-toc {
  box-sizing: border-box;
  border-left: 1px solid #d6d5d4;
  padding-left: 24px;
}

/* Заголовок содержания */

body.single-post .chills-toc-title {
  margin: 0 0 16px;
  padding: 0 0 12px;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

/* Список */

.chills-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chills-toc li {
  margin: 0 0 16px;
  padding: 0;
}

/* Ссылки содержания */

body.single-post .chills-toc a {
  display: block;
  color: #46535a;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Наведение и активный пункт */

body.single-post .chills-toc a:hover,
body.single-post .chills-toc a:focus-visible,
body.single-post .chills-toc a.is-active {
  color: #d23c50;
  font-weight: 400;
}

/* В содержании отображаем только H2 */

.chills-toc .toc-level-3 {
  display: none;
}


/* ==========================================
   9. STICKY-СОДЕРЖАНИЕ
========================================== */

@media (min-width: 1200px) {

  body.single-post .chills-toc {
    position: sticky;
    top: 160px;
    align-self: start;

    display: flex;
    flex-direction: column;

    max-height: calc(100vh - 180px);
    overflow: hidden;
  }

  /* Заголовок всегда виден */

  body.single-post .chills-toc-title {
    position: static;
    flex-shrink: 0;
    background: #ffffff;
  }

  /* Внутренняя прокрутка содержания */

  body.single-post .chills-toc ul {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d6d5d4 transparent;
  }

  /* Отступ при переходах по якорям */

  body.single-post .chills-article-body h2,
  body.single-post .chills-article-body h3 {
    scroll-margin-top: 110px;
  }

}


/* ==========================================
   10. АДАПТИВНОСТЬ
========================================== */

@media (max-width: 1199px) {

  body.single-post .chills-article-layout {
    display: block;
  }

  body.single-post .chills-toc {
    display: none;
  }

}

@media (max-width: 767px) {

  /* Заголовки */

  body.single-post .entry-title {
    font-size: 34px;
  }

  body.single-post .chills-article-body {
    font-size: 17px;
    line-height: 1.65;
  }

  body.single-post .chills-article-body h2 {
    font-size: 27px;
  }

  body.single-post .chills-article-body h3 {
    font-size: 22px;
  }

  body.single-post .chills-article-body h4 {
    font-size: 19px;
  }

  /* Анонс */

  body.single-post .chills-excerpt {
    font-size: 18px;
    line-height: 1.6;
  }

  /* Метаданные */

  body.single-post .chills-post-meta {
    font-size: 13px;
    column-gap: 36px;
    row-gap: 12px;
  }

  body.single-post .chills-post-meta>span+span::before {
    left: -19px;
    height: 18px;
  }

  /* Обложка */

  body.single-post .chills-cover {
    margin-bottom: 28px;
  }

}




/* ==========================================
   11. ОТСТУПЫ В ШАПКЕ СТАТЬИ
========================================== */

/* Расстояние между H1 и анонсом */

body.single-post .entry-header+.post-inner {
  margin-top: 32px;
  padding-top: 0;
}

/* Одинаковые расстояния вокруг метаданных */

body.single-post .chills-excerpt {
  margin-bottom: 32px;
}

body.single-post .chills-post-meta {
  margin-bottom: 32px;
}


/* ==========================================
   12. ИЗОБРАЖЕНИЯ В СТАТЬЯХ CHILLS
========================================== */

/* Обычные изображения */

body.single-post .chills-article-body .entry-content img {
  max-width: 100%;
  height: auto;
}

/* Изображения с подписями WordPress */

body.single-post .chills-article-body .entry-content .wp-caption,
body.single-post .chills-article-body .entry-content figure.wp-block-image {
  max-width: 100%;
  margin-bottom: 32px;
}

/* Подписи */

body.single-post .chills-article-body .entry-content .wp-caption-text,
body.single-post .chills-article-body .entry-content figcaption {
  margin-top: 10px;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #687078;
}

/* Убираем декоративное оформление */

body.single-post .chills-article-body .entry-content img:not(.chills-quote-avatar) {
  border-radius: 0;
  box-shadow: none;
}



/* ==========================================
   CHILLS — ОТСТУПЫ H4
========================================== */

body.single-post .chills-article-body .entry-content h4 {
  margin-top: 24px;
  margin-bottom: 16px;
}


/* ==========================================
   13. CHILLS — ЦИТАТЫ
   Сетка отступов 4 px
========================================== */

body.single-post .chills-article-body .entry-content blockquote.chills-quote {
  box-sizing: border-box;
  margin: 32px 0;
  padding: 20px 0 20px 24px;
  border: none;
  border-left: 3px solid #e83b50;
  background: transparent;
  color: #202d31;
  font-family: 'Golos Text', Arial, sans-serif;
  font-style: normal;
  text-align: left;
}

/* Текст цитаты */

body.single-post .chills-quote-text,
body.single-post .chills-quote-text p {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
}

body.single-post .chills-quote-text p {
  margin: 0;
}

body.single-post .chills-quote-text p+p {
  margin-top: 16px;
}

/* Блок автора */

body.single-post .chills-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  border: none;
  background: none;
}

/* Круглая фотография */

body.single-post .chills-quote-avatar {
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow: none;
}

/* Имя и должность */

body.single-post .chills-quote-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.single-post .chills-quote-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

body.single-post .chills-quote-role {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #687078;
}

/* Мобильная версия */

@media (max-width: 767px) {

  body.single-post .chills-article-body .entry-content blockquote.chills-quote {
    padding-left: 16px;
  }

  body.single-post .chills-quote-text,
  body.single-post .chills-quote-text p {
    font-size: 18px;
  }

  body.single-post .chills-quote-avatar {
    width: 48px;
    height: 48px;
  }

}




/* ==========================================
   14. CHILLS — ТАБЛИЦЫ
   Минимализм + красная линия + hover
========================================== */

/* Общий стиль таблицы */

body.single-post .chills-article-body .entry-content table {
  width: 100%;
  margin: 32px 0;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 0;
  background: #ffffff;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #202d31;
}

/* Заголовки столбцов */

body.single-post .chills-article-body .entry-content table thead th {
  padding: 16px;
  background: #ffffff;
  color: #202d31;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
  border: none;
  border-bottom: 2px solid #e83b50;
}

/* Ячейки таблицы */

body.single-post .chills-article-body .entry-content table tbody td {
  padding: 16px;
  background-color: #ffffff;
  color: #202d31;
  text-align: left;
  vertical-align: middle;
  border: none;
  border-bottom: 1px solid #e5e7e8;
  transition: background-color 0.2s ease;
}

/* Лёгкая подсветка строки при наведении */

@media (hover: hover) {

  body.single-post .chills-article-body .entry-content table tbody tr:hover td {
    background-color: #fff3f4;
  }

}

/* Последняя строка без нижней границы */

body.single-post .chills-article-body .entry-content table tbody tr:last-child td {
  border-bottom: none;
}


/* ==========================================
   15. CHILLS — ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА
========================================== */

/* Контейнер таблицы */

body.single-post .chills-article-body .entry-content .chills-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c7cccf transparent;
}

/* Таблица внутри контейнера */

body.single-post .chills-article-body .entry-content .chills-table-scroll table {
  width: 100%;
  min-width: 100%;
  margin: 0;
  table-layout: auto;
}

/* Не разрываем слова посередине */

body.single-post .chills-article-body .entry-content .chills-table-scroll th,
body.single-post .chills-article-body .entry-content .chills-table-scroll td {
  min-width: 144px;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Прямые углы */

body.single-post .chills-table-scroll,
body.single-post .chills-table-scroll table {
  border-radius: 0;
}

/* Фокус при использовании клавиатуры */

body.single-post .chills-table-scroll:focus-visible {
  outline: 2px solid #e83b50;
  outline-offset: 2px;
}



/* ==========================================
   17. CHILLS — МОБИЛЬНЫЕ ТАБЛИЦЫ
========================================== */

@media (max-width: 767px) {

  body.single-post .chills-article-body .entry-content table {
    font-size: 14px;
  }

  body.single-post .chills-article-body .entry-content table thead th,
  body.single-post .chills-article-body .entry-content table tbody td {
    padding: 12px;
  }

  body.single-post .chills-article-body .entry-content .chills-table-scroll th,
  body.single-post .chills-article-body .entry-content .chills-table-scroll td {
    min-width: 136px;
  }

  body.single-post .chills-article-body .entry-content .chills-table-scroll table tr> :first-child {
    min-width: 136px;
    max-width: 180px;
  }

}


/* ==========================================
   18. CHILLS — ДОСТУПНОСТЬ
========================================== */

@media (prefers-reduced-motion: reduce) {

  body.single-post .chills-article-body .entry-content table tbody td {
    transition: none;
  }

}


/* ==========================================
   19. CHILLS — ПОДЕЛИТЬСЯ
========================================== */

body.single-post .chills-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0 32px;
}

body.single-post .chills-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #d6d5d4;
  border-radius: 0;
  background: #ffffff;
  color: #202d31;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

body.single-post .chills-share-button:hover {
  border-color: #e83b50;
  color: #e83b50;
  background: #ffffff;
}

body.single-post .chills-share-button svg {
  flex-shrink: 0;
}

body.single-post .chills-share-feedback {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  color: #46535a;
}



/* ==========================================
   20. CHILLS — ТЕГИ ПОСЛЕ СТАТЬИ
========================================== */

body.single-post .chills-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  border: none;
}

body.single-post .chills-post-tags a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #ffffff;
  color: #202d31;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.single-post .chills-post-tags a:hover,
body.single-post .chills-post-tags a:focus-visible {
  border-color: #e83b50;
  color: #e83b50;
}

@media (prefers-reduced-motion: reduce) {
  body.single-post .chills-post-tags a {
    transition: none;
  }
}


/* ==========================================
   21. CHILLS — ЧИТАЙТЕ ТАКЖЕ
========================================== */

body.single-post .chills-related {
  margin-top: 64px;
  padding-top: 0;
  border-top: none;
}

body.single-post .chills-related-title {
  margin: 0 0 24px;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

body.single-post .chills-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.single-post .chills-related-card {
  display: block;
  min-width: 0;
  color: #202d31;
  text-decoration: none;
}

body.single-post .chills-related-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f3f3;
}

body.single-post .chills-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

body.single-post .chills-related-card-title {
  margin: 12px 0 0;
  font-family: 'Public Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #202d31;
  transition: color .2s;
}

body.single-post .chills-related-card:hover .chills-related-card-title {
  color: #e83b50;
}

body.single-post .chills-related-card:focus-visible {
  outline: 2px solid #e83b50;
  outline-offset: 4px;
}


/* ==========================================
   22. АДАПТИВНОСТЬ НОВЫХ ЭЛЕМЕНТОВ
========================================== */

@media (max-width: 767px) {

  body.single-post .chills-share {
    margin-top: 32px;
  }

  body.single-post .chills-related {
    margin-top: 48px;
  }

  body.single-post .chills-related-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  body.single-post .chills-related-title {
    font-size: 24px;
  }

  body.single-post .chills-related-card-title {
    font-size: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {

  body.single-post .chills-share-button,
  body.single-post .chills-post-tags a,
  body.single-post .chills-related-card-title {
    transition: none;
  }

}


/* ==========================================
   CHILLS — ПОДЕЛИТЬСЯ ПОД СОДЕРЖАНИЕМ
========================================== */

/* Кнопка под списком содержания */

body.single-post .chills-toc .chills-share {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e5e7e8;
}

/* Кнопка без рамки */

body.single-post .chills-toc .chills-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #46535a;
  box-shadow: none;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

body.single-post .chills-toc .chills-share-button:hover {
  color: #e83b50;
  background: transparent;
}

body.single-post .chills-toc .chills-share-feedback {
  font-size: 12px;
}

/* На компьютере скрываем старую кнопку под текстом,
   но только если справа есть содержание */

@media (min-width: 1200px) {

  body.single-post:has(.chills-toc) .chills-article-body>.chills-share {
    display: none;
  }

}


/* CHILLS — ссылки с точечным подчёркиванием */

body.single-post .chills-article-body .entry-content a {
  color: #202d31;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #e83b50;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s ease;
}

/* При наведении текст краснеет */

body.single-post .chills-article-body .entry-content a:hover,
body.single-post .chills-article-body .entry-content a:focus-visible {
  color: #e83b50;
}

/* SLOER — ссылка без подчёркивания */

body.single-post .chills-post-meta a.chills-author-link,
body.single-post .chills-post-meta a.chills-author-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #222222;
  font-weight: 600;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none;
}

body.single-post .chills-post-meta a.chills-author-link:hover,
body.single-post .chills-post-meta a.chills-author-link:focus-visible {
  color: #e83b50;
  text-decoration: none !important;
  border: none !important;
}

/* CHILLS — уменьшаем отступ под шапкой */
body.single-post .header-sticky-adjuster {
  margin-bottom: 0 !important;
}


/* CHILLS — типографика статей */

/* Основной текст */
body.single-post .chills-article-body .entry-content {
  line-height: 1.5;
}

/* Абзацы — 16 px */
body.single-post .chills-article-body .entry-content p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* H2 — 60 px сверху, 32 px снизу */
body.single-post .chills-article-body .entry-content h2 {
  margin-top: 60px;
  margin-bottom: 32px;
}

/* H3 — 44 px сверху, 20 px снизу */
body.single-post .chills-article-body .entry-content h3 {
  margin-top: 44px;
  margin-bottom: 20px;
}

/* После заголовков абзац без дополнительного отступа сверху */
body.single-post .chills-article-body .entry-content h2+p,
body.single-post .chills-article-body .entry-content h3+p {
  margin-top: 0;
}

/* Убираем отступ после последнего абзаца перед заголовком,
   чтобы расстояние задавалось самим заголовком */
body.single-post .chills-article-body .entry-content p:has(+ h2),
body.single-post .chills-article-body .entry-content p:has(+ h3) {
  margin-bottom: 0;
}

/* Пустые абзацы не должны создавать лишние промежутки */
body.single-post .chills-article-body .entry-content p:empty {
  display: none;
}

/* CHILLS — полужирное выделение в тексте */

body.single-post .chills-article-body .entry-content strong,
body.single-post .chills-article-body .entry-content b {
  font-weight: 500;
}

/* === Стили модулей после основной таблицы === */

/* CHILLS — in-article gallery. Fixed viewport, no cropped images. */
.chills-gallery {
  width: 100%;
  max-width: 100%;
  margin: 36px 0;
}

.chills-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #202d31;
}

.chills-gallery-slide {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.chills-gallery-slide[hidden] {
  display: none !important;
}

.chills-gallery .chills-gallery-slide img.chills-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.chills-gallery .chills-gallery-nav {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Strong reset: the parent WordPress theme styles generic buttons. */
.chills-gallery .chills-gallery-nav button.chills-gallery-prev,
.chills-gallery .chills-gallery-nav button.chills-gallery-next {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: none;
  box-shadow: none !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #202d31 !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.chills-gallery .chills-gallery-nav button::before,
.chills-gallery .chills-gallery-nav button::after {
  content: none !important;
  display: none !important;
}

.chills-gallery .chills-gallery-nav button.chills-gallery-prev:hover,
.chills-gallery .chills-gallery-nav button.chills-gallery-next:hover {
  background: #fff !important;
  color: #e83b50 !important;
}

.chills-gallery .chills-gallery-nav button:focus-visible {
  outline: 2px solid #e83b50;
  outline-offset: 2px;
}

.chills-gallery-below {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0 12px;
}

.chills-gallery-caption {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #687078;
}

.chills-gallery-counter {
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.5;
  color: #687078;
}

.chills-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.chills-gallery .chills-gallery-thumb {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  flex: 0 0 76px;
  width: 76px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  opacity: .65;
  cursor: pointer;
}

.chills-gallery .chills-gallery-thumb.is-active {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px #e83b50;
  opacity: 1;
}

.chills-gallery .chills-gallery-thumb:hover,
.chills-gallery .chills-gallery-thumb:focus-visible {
  opacity: 1;
}

.chills-gallery .chills-gallery-thumb img.chills-gallery-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 767px) {
  .chills-gallery {
    margin: 28px 0;
  }

  .chills-gallery .chills-gallery-nav {
    top: 8px;
    right: 8px;
  }

  .chills-gallery .chills-gallery-nav button.chills-gallery-prev,
  .chills-gallery .chills-gallery-nav button.chills-gallery-next {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 21px !important;
  }

  .chills-gallery .chills-gallery-thumb {
    flex-basis: 64px;
    width: 64px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chills-gallery .chills-gallery-nav button {
    transition: none;
  }
}


/* CHILLS — исправление галереи */

/* Убираем вертикальный скролл у миниатюр */
body.single-post .chills-gallery .chills-gallery-thumbs {
  overflow-y: hidden !important;
  overflow-x: auto;
  max-height: none;
}

/* Убираем чёрные полосы вокруг фотографий */
body.single-post .chills-gallery .chills-gallery-stage {
  background: transparent;
}

body.single-post .chills-gallery .chills-gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CHILLS — аккуратная рамка активной миниатюры */

.chills-gallery .chills-gallery-thumb {
  position: relative;
  overflow: hidden;
}

.chills-gallery .chills-gallery-thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #e83b50;
  box-sizing: border-box;
  pointer-events: none;
}


/* CHILLS — типографика статьи */

body.single-post .chills-article-body .entry-content p {
  margin-top: 0;
  margin-bottom: 16px;
}

body.single-post .chills-article-body .entry-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
}

body.single-post .chills-article-body .entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

body.single-post .chills-article-body .entry-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
}

/* Сохраняем расстояние от заголовка до первого абзаца */
body.single-post .chills-article-body .entry-content h2+p {
  margin-top: 0;
}

body.single-post .chills-article-body .entry-content h3+p,
body.single-post .chills-article-body .entry-content h4+p {
  margin-top: 0;
}


/* CHILLS: breadcrumbs above single post title */
body.single-post .chills-breadcrumbs {
  margin: 0 0 22px;
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

body.single-post .chills-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-post .chills-breadcrumbs-item {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-post .chills-breadcrumbs-item::before,
body.single-post .chills-breadcrumbs-item::marker {
  content: none;
}

body.single-post .chills-breadcrumbs a {
  color: #687078;
  text-decoration: none;
  border: 0;
  box-shadow: none;
}

body.single-post .chills-breadcrumbs a:hover,
body.single-post .chills-breadcrumbs a:focus-visible {
  color: #e83b50;
}

body.single-post .chills-breadcrumbs-separator {
  padding: 0 9px;
  color: #c4c9cc;
}

body.single-post .chills-breadcrumbs-current {
  color: #a0a8ac;
  cursor: default;
}

body.single-post .chills-breadcrumbs-unlinked {
  color: #a0a8ac;
}



/* CHILLS — карточка внутренней статьи */

body.single-post .chills-article-body .entry-content .chills-material {
  display: block;
  margin: 28px 0;
  padding: 12px 16px;
  border: none;
  border-left: 2px solid #e83b50;
  background: #fcf8f8;
  transition: background-color .2s ease;
}

body.single-post .chills-article-body .entry-content .chills-material:hover {
  background: #faf2f3;
}

body.single-post .chills-article-body .entry-content .chills-material-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #202d31;
  text-decoration: none;
  border: 0;
  padding: 0;
}

body.single-post .chills-article-body .entry-content .chills-material-visual {
  display: block;
  flex: 0 0 112px;
  width: 112px;
  height: 84px;
  overflow: hidden;
}

body.single-post .chills-article-body .entry-content img.chills-material-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

body.single-post .chills-article-body .entry-content .chills-material-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.single-post .chills-article-body .entry-content .chills-material-section {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #687078;
}

body.single-post .chills-article-body .entry-content .chills-material-title {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #202d31;
  transition: color .2s ease;
}

body.single-post .chills-article-body .entry-content .chills-material-link:hover .chills-material-title,
body.single-post .chills-article-body .entry-content .chills-material-link:focus-visible .chills-material-title {
  color: #e83b50;
}

@media (max-width: 767px) {
  body.single-post .chills-article-body .entry-content .chills-material {
    padding: 12px;
  }

  body.single-post .chills-article-body .entry-content .chills-material-visual {
    flex-basis: 88px;
    width: 88px;
    height: 72px;
  }

  body.single-post .chills-article-body .entry-content .chills-material-title {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {

  body.single-post .chills-article-body .entry-content .chills-material,
  body.single-post .chills-article-body .entry-content .chills-material-title {
    transition: none;
  }
}