/*
 * Galina Yanko — общие стили сайта.
 * Тёмная шапка, свободная журнальная сетка и один бирюзовый акцент.
 */

:root {
  --accent: #00acc6;
  --accent-hover: #008fa5;
  --accent-tint: rgba(0, 172, 198, 0.08);
  --text-color: #333333;
  --heading-color: #222222;
  --muted-color: #999999;
  --line-color: #e8e8e8;
  --soft-line: #f0f0f0;
  --page-bg: #ffffff;
  --panel-bg: #ffffff;
  --header-bg: #000000;
  --footer-bg: #121c20;
  
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1368px;
  --masthead-height: 70px;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --transition: all 0.2s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  --accent: #00c0dd;
  --accent-hover: #00a4be;
  --accent-tint: rgba(0, 192, 221, 0.12);
  --text-color: #e2e8f0;
  --heading-color: #ffffff;
  --muted-color: #a0aec0;
  --line-color: #2d3748;
  --soft-line: #1f2937;
  --page-bg: #0d1117;
  --panel-bg: #161b22;
  --header-bg: #000000;
  --footer-bg: #080d11;
}

/* Базовые правила */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--page-bg);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  width: 100%;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--heading-color);
  font-weight: 400;
  line-height: 1.35;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 300;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 300;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
}

h4 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

/* Общая ширина страниц */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Фирменная линия над шапкой */
.header-top-accent {
  height: 3px;
  background: var(--accent);
  width: 100%;
}

/* Шапка сайта */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--masthead-height);
  background-color: var(--header-bg);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.header-container {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--masthead-height);
  width: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.15;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

/* Основная навигация */
.main-navigation {
  display: flex;
  align-items: center;
  height: 70px;
}

.main-navigation .nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 70px;
  flex-wrap: nowrap;
}

.main-navigation .nav-list > li {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 70px;
  line-height: 70px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: #ffffff;
  box-shadow: 0 3px 0 var(--accent) inset;
}

/* Выпадающее меню */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-menu {
  position: absolute;
  top: 70px;
  left: 0;
  background-color: #0c0e10;
  min-width: 230px;
  list-style: none;
  padding: 8px 0;
  border-top: 2px solid var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease-in-out;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}

.dropdown-item a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  padding-left: 24px;
}

/* Кнопки в шапке */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

/* Поиск */
.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.search-dialog.active {
  opacity: 1;
  visibility: visible;
}

.search-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.search-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  background: var(--panel-bg);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  margin: 0 20px;
}

.search-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-dialog__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--heading-color);
}

.search-dialog__header .action-btn {
  border-color: var(--line-color);
  color: var(--heading-color);
}

.search-dialog__header .action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#site-search-field {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--line-color);
  border-radius: var(--radius-xs);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s ease;
}

#site-search-field:focus {
  border-color: var(--accent);
}

.search-results-container {
  margin-top: 14px;
  max-height: 320px;
  overflow-y: auto;
}

.search-result-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-color);
  display: block;
  text-decoration: none;
  border-radius: var(--radius-xs);
}

.search-result-item:hover {
  background: var(--accent-tint);
}

.search-result-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading-color);
  display: block;
}

.search-result-item-cat {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

/* Первый экран главной */
.story-hero {
  position: relative;
  width: 100%;
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  margin-bottom: 40px;
}

.story-hero__image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.story-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.story-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  max-width: 820px;
  padding: 30px 20px;
}

.story-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}

.story-hero__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.story-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.story-hero__summary {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Подборка публикаций */
#featured-area {
  margin-bottom: 45px;
}

.featured-stories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.featured-story {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: none;
}

.featured-story:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.fa-thumbnail {
  width: 110px;
  height: 82px;
  overflow: hidden;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0;
}

.fa-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-story:hover .fa-thumbnail img {
  transform: scale(1.05);
}

.fa-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.fa-content .entry-categories {
  margin-bottom: 4px;
}

.fa-content .entry-categories .post-categories li a {
  font-size: 0.68rem;
  letter-spacing: 1px;
}

.fa-title {
  font-family: var(--font-serif);
  font-size: 0.90rem;
  line-height: 1.35;
  font-weight: 400;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fa-title a {
  color: var(--heading-color);
  transition: color 0.2s ease;
}

.featured-story:hover .fa-title a,
.fa-title a:hover {
  color: var(--accent);
}

/* Основная сетка с сайдбаром */
.site-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
  margin-bottom: 60px;
}

.content-area {
  min-width: 0;
  width: 100%;
}

.sidebar {
  width: 100%;
  max-width: 350px;
  min-width: 0;
}

/* Виджеты сайдбара */
.widget {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 48px;
  box-shadow: none;
}

.widget-title {
  position: relative;
  margin-bottom: 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
}

.widget-title span {
  display: inline-block;
  position: relative;
  z-index: 1;
  background-color: var(--page-bg);
  padding: 0 16px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  font-size: 11px;
  color: var(--heading-color);
}

.widget-title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--line-color);
}

/* Карточка автора */
.article-author__content {
  text-align: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 2px solid var(--accent);
  padding: 3px;
  background-color: var(--panel-bg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.author-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.author-card__bio {
  font-size: 0.9rem;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 18px;
}

.author-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-bottom: 18px;
}

.author-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-color);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading-color);
  background-color: var(--page-bg);
}

.author-socials a:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.author-more {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.author-more:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Рубрики */
.widget_categories ul {
  list-style: none;
}

.widget_categories li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--line-color);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget_categories li a {
  color: var(--text-color);
  font-weight: 600;
}

.widget_categories li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.blog-category-menu ul {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.blog-category-menu li {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.blog-category-menu li a {
  display: inline-block;
  text-align: center;
}

.blog-category-menu li a:hover {
  padding-left: 0;
}

.sidebar-navigation li.is-current-section {
  border-left: 2px solid var(--accent);
  background-color: var(--accent-tint);
}

.sidebar-navigation li.is-current-section a {
  color: var(--accent);
  padding-left: 12px;
}

/* Свежие публикации */
.recent-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recent-posts-widget .widget-title {
  margin-bottom: 0;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--heading-color);
  text-align: left;
}

.recent-posts-widget .widget-title::after {
  display: none;
}

.recent-posts-widget .widget-title span {
  padding: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.recent-post {
  position: relative;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--soft-line);
}

.recent-post:last-child {
  border-bottom: 0;
}

.recent-post:first-child {
  display: block;
  padding: 16px 0 22px;
}

.recent-post::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: -10px;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.recent-post:hover::before,
.recent-post:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.recent-post > a {
  display: block;
  width: 106px;
  height: 80px;
  overflow: hidden;
  background: var(--soft-line);
}

.recent-post:first-child > a {
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  aspect-ratio: 16 / 9;
}

.recent-post__thumb {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.recent-post:hover .recent-post__thumb,
.recent-post:focus-within .recent-post__thumb {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.recent-post__content {
  min-width: 0;
  padding-top: 1px;
}

.recent-post:first-child .recent-post__content {
  padding: 0 2px;
}

.recent-post__content h5 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recent-post:first-child .recent-post__content h5 {
  margin-bottom: 9px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.38;
}

.recent-post__content h5 a {
  color: var(--heading-color);
}

.recent-post__content h5 a:hover {
  color: var(--accent);
}

.recent-post__content h5 a:focus-visible,
.recent-post > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.recent-post__date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.025em;
  color: var(--muted-color);
}

.recent-post__date::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Облако тегов */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tagcloud a {
  display: inline-block;
  font-size: 0.76rem;
  padding: 4px 10px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  color: var(--muted-color);
  background-color: var(--page-bg);
}

.tagcloud a:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Подписка на рассылку */
.newsletter-widget p {
  font-size: 0.88rem;
  color: var(--muted-color);
  margin-bottom: 14px;
  line-height: 1.55;
}

.sidebar-form__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  background-color: var(--page-bg);
  color: var(--text-color);
  margin-bottom: 10px;
  outline: none;
}

.sidebar-form__input:focus {
  border-color: var(--accent);
}

.sidebar-form__submit {
  width: 100%;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-form__submit:hover {
  background-color: var(--accent-hover);
}

/* Карточки публикаций */
.post-entry {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: var(--transition);
}

/* Главная публикация */
.post-entry--lead {
  margin-bottom: 0;
}

.post-entry--lead .post-thumbnail {
  position: relative;
  width: 100%;
  height: 490px;
  overflow: hidden;
  margin-bottom: 25px;
}

.post-entry--lead .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-entry--lead:hover .post-thumbnail img {
  transform: scale(1.02);
}

.entry-wrapper {
  padding: 0;
}

.entry-categories {
  margin-bottom: 10px;
}

.entry-categories .post-categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-categories .post-categories li {
  display: inline-flex;
  align-items: center;
}

.entry-categories .post-categories li a {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 700;
}

.entry-categories .post-categories li a:hover {
  color: var(--accent-hover);
}

.entry-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 12px;
}

.entry-title a {
  color: var(--heading-color);
}

.entry-title a:hover {
  color: var(--accent);
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted-color);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft-line);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item a {
  color: var(--text-color);
  font-weight: 600;
}

.meta-item a:hover {
  color: var(--accent);
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 22px;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

/* Ссылка «Читать далее» */
.post-read-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 8px 20px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.post-read-more a:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateX(2px);
}

.comments-link a {
  font-size: 0.78rem;
  color: var(--muted-color);
  font-weight: 600;
}

.comments-link a:hover {
  color: var(--accent);
}

.share-link {
  font-size: 0.78rem;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Разделитель публикаций */
.article-divider {
  display: block;
  width: 100%;
  height: 9px;
  margin: 35px 0;
  clear: both;
}

.article-divider--pattern {
  background: url('/assets/img/pat_bg.png') repeat-x center;
}

/* Горизонтальная карточка */
.post-entry--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 0;
}

.post-entry--row .post-thumbnail {
  width: 360px;
  min-height: 260px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border-radius: 0;
}

.post-entry--row .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-entry--row:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-entry--row .entry-wrapper {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-entry--row .entry-title {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-entry--row .entry-content {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Акцентная карточка */
.post-entry--highlight.post-entry--row {
  background-color: var(--accent);
  padding: 28px;
  position: relative;
}

.post-entry--highlight.post-entry--row .entry-title a,
.post-entry--highlight.post-entry--row .entry-content,
.post-entry--highlight.post-entry--row .entry-meta,
.post-entry--highlight.post-entry--row .entry-meta span,
.post-entry--highlight.post-entry--row .entry-meta a,
.post-entry--highlight.post-entry--row .entry-categories .post-categories li a {
  color: #ffffff !important;
}

.post-entry--highlight.post-entry--row .entry-title a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.post-entry--highlight.post-entry--row .post-read-more a {
  background-color: #ffffff;
  color: var(--accent) !important;
  border-color: #ffffff;
  font-weight: 700;
}

.post-entry--highlight.post-entry--row .post-read-more a:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--accent) !important;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 45px 0 20px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--panel-bg);
  transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Страница статьи */
.single-article-content {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
  box-shadow: none;
}

.single-hero-thumbnail {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 0;
}

.single-hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero-thumbnail img {
  object-position: center 18%;
}

.single-header {
  padding: 0 0 25px;
  border-bottom: 1px solid var(--soft-line);
}

.single-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.2rem);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--heading-color);
}

.single-body {
  padding: 35px 0 45px;
  font-size: 1.0625rem;
  line-height: 1.82;
}

.single-body > p {
  width: 100%;
  max-width: none;
  margin-bottom: 1.5em;
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
}

.single-body > .article-lead {
  width: 100%;
  max-width: none;
  margin-bottom: 36px;
  color: var(--heading-color);
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.72;
}

/* Буквица первого абзаца */
.has-drop-cap::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 4.2rem;
  line-height: 0.75;
  margin: 6px 14px 0 0;
  color: var(--accent);
  font-weight: 300;
}

/* Заголовки и списки внутри статьи */
.single-body h2 {
  width: 100%;
  max-width: none;
  scroll-margin-top: 96px;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.4vw, 1.82rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 56px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--heading-color);
  /* text-wrap: balance; */
}

.single-body h3 {
  width: 100%;
  max-width: none;
  scroll-margin-top: 96px;
  font-family: var(--font-sans);
  font-size: clamp(1.22rem, 1.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-top: 38px;
  margin-bottom: 16px;
  color: var(--heading-color);
  /* text-wrap: balance; */
}

.single-body h4 {
  font-size: 1.12rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.single-body ul,
.single-body ol {
  width: 100%;
  max-width: none;
  margin: 22px 0 30px;
  padding-left: 1.4rem;
}

.single-body li {
  margin-bottom: 10px;
  padding-left: 0.35rem;
  line-height: 1.68;
}

.single-body li::marker {
  color: var(--accent);
  font-weight: 700;
}

.single-body strong {
  color: var(--heading-color);
  font-weight: 700;
}

/* Выносная цитата */
.editorial-quote {
  position: relative;
  padding: 24px 30px 24px 70px;
  margin: 35px 0;
  background-color: var(--page-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.editorial-quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
}

.editorial-quote p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--heading-color);
  margin-bottom: 6px;
}

.editorial-quote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
}

/* Информационная врезка */
.insight-box {
  background-color: var(--accent-tint);
  border: 1px solid rgba(0, 172, 198, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 22px 26px;
  width: 100%;
  max-width: none;
  margin: 36px 0;
}

.insight-header {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.insight-content {
  font-size: 0.96rem;
  color: var(--text-color);
  line-height: 1.7;
}

/* Таблицы */
.comparison-table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border: 1px solid var(--line-color);
  text-align: left;
}

.comparison-table th {
  background-color: var(--page-bg);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--heading-color);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--accent-tint);
}

/* Дополняющие редакционные блоки */
.article-value-block {
  width: 100%;
  max-width: none;
  margin: 46px 0;
  padding: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--line-color);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.single-body .value-block__title {
  margin: 6px 0 22px;
  padding: 0;
  border: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.72rem);
}

.value-block__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.single-body .value-block__takeaway {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-color);
  font-size: 0.94rem;
}

.single-body .evidence-note {
  margin: 18px 0 0;
  color: var(--muted-color);
  font-size: 0.78rem;
  line-height: 1.55;
}

.evidence-note a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Статистический срез */
.market-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-color);
  border: 1px solid var(--line-color);
}

.market-snapshot__grid > div {
  padding: 22px 18px;
  background: var(--panel-bg);
}

.market-snapshot__grid dt {
  margin-bottom: 8px;
  color: var(--heading-color);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
}

.market-snapshot__grid dd {
  color: var(--muted-color);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Лицензионный фильтр */
.license-gate__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.license-gate__cards article {
  min-width: 0;
  padding: 18px;
  background: var(--accent-tint);
}

.license-gate__code {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.single-body .license-gate__cards h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.single-body .license-gate__cards p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Реестр технического аудита */
.audit-ledger__scroll {
  overflow-x: auto;
  border: 1px solid var(--line-color);
  -webkit-overflow-scrolling: touch;
}

.audit-ledger table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.audit-ledger th,
.audit-ledger td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-color);
  text-align: left;
  vertical-align: top;
}

.audit-ledger th {
  background: var(--heading-color);
  color: var(--page-bg);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-ledger tbody tr:last-child td {
  border-bottom: 0;
}

.audit-ledger td:first-child {
  color: var(--heading-color);
  font-weight: 700;
}

/* Сравнение моделей атрибуции */
.attribution-split__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.attribution-split__columns section {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-color);
}

.attribution-split__columns section:last-child {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.attribution-split__label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
}

.single-body .attribution-split__columns p {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.attribution-split__columns strong {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Схема touch-зон */
.tap-zone__layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: center;
}

.tap-zone__phone {
  display: grid;
  grid-template-rows: 0.7fr 2fr 0.8fr;
  width: min(100%, 230px);
  min-height: 360px;
  margin-inline: auto;
  padding: 10px;
  border: 2px solid var(--heading-color);
  border-radius: 28px;
  background: var(--page-bg);
  overflow: hidden;
}

.tap-zone__screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid var(--line-color);
  color: var(--muted-color);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.tap-zone__screen--main {
  background: linear-gradient(135deg, var(--accent-tint), transparent);
  color: var(--text-color);
}

.tap-zone__screen--thumb {
  border-bottom: 0;
  background: var(--accent);
  color: #ffffff;
}

.tap-zone__rules {
  display: grid;
  gap: 14px;
}

.tap-zone__rules > div {
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--line-color);
}

.tap-zone__rules dt {
  color: var(--heading-color);
  font-weight: 800;
}

.tap-zone__rules dd {
  color: var(--muted-color);
  font-size: 0.86rem;
  line-height: 1.5;
}

.single-body .tap-zone figcaption {
  margin-top: 20px;
  color: var(--text-color);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Диагностика отказов */
.decline-path__items {
  display: grid;
  gap: 8px;
}

.decline-path details {
  border: 1px solid var(--line-color);
  background: var(--page-bg);
}

.decline-path summary {
  padding: 14px 16px;
  color: var(--heading-color);
  font-weight: 700;
  cursor: pointer;
}

.decline-path details[open] summary {
  border-bottom: 1px solid var(--line-color);
  background: var(--accent-tint);
}

.single-body .decline-path details p {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 0.88rem;
}

.decline-path code,
.metric-stack code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
}

/* Цепочка метрик */
.metric-stack__formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-stack__formulas article {
  padding: 18px;
  border-top: 1px solid var(--line-color);
  background: var(--accent-tint);
}

.metric-stack__formulas article > span {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.single-body .metric-stack__formulas h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.metric-stack__formulas code {
  display: block;
  min-height: 48px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.single-body .metric-stack__formulas p {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.82rem;
}

/* Датированный регуляторный сигнал */
.regulatory-alert {
  border-top-color: #b44d3a;
  background: color-mix(in srgb, var(--panel-bg) 94%, #b44d3a 6%);
}

.regulatory-alert__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 14px;
  color: #b44d3a;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-body .regulatory-alert > p {
  margin-bottom: 18px;
}

.regulatory-alert__action {
  padding: 18px 20px;
  border-left: 3px solid #b44d3a;
  background: var(--panel-bg);
}

.single-body .regulatory-alert__action p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

/* Карьерные маршруты */
.career-routes__lanes {
  display: grid;
  gap: 12px;
}

.career-routes__lanes article {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1.6fr);
  gap: 22px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-color);
}

.career-routes__lanes article:last-child {
  border-bottom: 0;
}

.career-routes__lanes span {
  color: var(--accent);
  font-weight: 800;
}

.single-body .career-routes__lanes p {
  margin: 0;
  font-size: 0.9rem;
}

/* Стресс-тест тезисов */
.thesis-test__stack {
  counter-reset: thesis;
}

.thesis-test__stack article {
  position: relative;
  padding: 20px 0 20px 54px;
  border-bottom: 1px solid var(--line-color);
  counter-increment: thesis;
}

.thesis-test__stack article::before {
  content: counter(thesis, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}

.thesis-test__stack article:last-child {
  border-bottom: 0;
}

.single-body .thesis-test__stack p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.thesis-test__stack p span {
  display: inline-block;
  min-width: 145px;
  color: var(--muted-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Квадрант рисков */
.risk-quadrant__matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-color);
  border: 1px solid var(--line-color);
}

.risk-quadrant__cell {
  padding: 20px;
  background: var(--panel-bg);
}

.risk-quadrant__cell--critical {
  box-shadow: inset 4px 0 0 #b44d3a;
}

.risk-quadrant__cell--watch {
  box-shadow: inset 4px 0 0 var(--accent);
}

.risk-quadrant__cell span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-color);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.risk-quadrant__cell strong {
  display: block;
  margin-bottom: 6px;
}

.single-body .risk-quadrant__cell p {
  margin: 0;
  font-size: 0.84rem;
}

/* Протокол после встречи */
.single-body .followup-clock__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.followup-clock__steps li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-color);
}

.followup-clock__steps li:last-child {
  border-bottom: 0;
}

.followup-clock__steps time {
  color: var(--accent);
  font-weight: 800;
}

.single-body .followup-clock__steps p {
  margin: 5px 0 0;
  font-size: 0.88rem;
}

/* Изображения в тексте */
.figure-align-center {
  margin: 44px auto;
  max-width: 100%;
}

.figure-align-center img {
  width: 100%;
  border-radius: var(--radius-xs);
}

.figure-align-left {
  float: left;
  max-width: 45%;
  margin: 10px 25px 20px 0;
}

.figure-align-right {
  float: right;
  max-width: 45%;
  margin: 10px 0 20px 25px;
}

.figure-caption {
  width: 100%;
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted-color);
  text-align: left;
  margin-top: 10px;
  font-style: normal;
}

/* Переход между статьями */
.article-navigation {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0;
  width: 100%;
  clear: both;
}

.article-navigation > div {
  width: 50%;
}

.article-navigation__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-color);
  margin-bottom: 6px;
}

.article-navigation__link {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--heading-color);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.article-navigation__link:hover {
  color: var(--accent);
}

/* Общая оболочка дополнительных блоков */
.article-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 45px;
  box-shadow: none;
  clear: both;
  width: 100%;
}

.article-section__title {
  position: relative;
  margin-bottom: 30px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

.article-section__title span {
  display: inline-block;
  position: relative;
  z-index: 1;
  background-color: var(--page-bg);
  padding: 0 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--heading-color);
}

.article-section__title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--line-color);
}

/* Информация об авторе */
.article-author .article-section__body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.article-author .data-image img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line-color);
}

.article-author .data-content {
  flex: 1;
  min-width: 0;
}

.article-author .author-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--heading-color);
}

.article-author__role {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.article-author .data-entry-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-color);
  margin-bottom: 14px;
}

.author-profile-link.button-secondary {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line-color);
  color: var(--text-color);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.author-profile-link.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Рекомендованные материалы */
.related-posts {
  --related-rule: #111111;
  --related-accent: #e4002b;
  --related-surface: #ffffff;
  margin-top: 64px;
  border-top: 4px solid var(--related-rule);
}

[data-theme="dark"] .related-posts {
  --related-rule: #f7f7f8;
  --related-surface: #161b22;
}

.related-posts .article-section__title {
  margin: 0;
  padding: 18px 0 17px;
  border-bottom: 1px solid var(--related-rule);
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.related-posts .article-section__title span {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--heading-color);
  font-size: inherit;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
}

.related-posts .article-section__title::after {
  display: none;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.post-entry.post-entry--related {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--related-surface);
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: none;
}

.post-entry.post-entry--related .post-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

.post-entry.post-entry--related .post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.post-entry.post-entry--related .post-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.post-entry.post-entry--related:hover .post-thumbnail img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.post-entry.post-entry--related .entry-wrapper {
  min-width: 0;
  min-height: 190px;
  padding: 19px 18px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-entry.post-entry--related .fa-category {
  color: var(--related-accent);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.post-entry.post-entry--related .entry-title {
  margin: 9px 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
}

.post-entry.post-entry--related .entry-title a {
  color: var(--heading-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-entry.post-entry--related:hover .entry-title a,
.post-entry.post-entry--related .entry-title a:hover {
  color: var(--related-accent);
  text-decoration: underline;
  text-decoration-color: var(--related-accent);
}

.post-entry.post-entry--related .fa-meta {
  margin-top: auto;
  color: var(--muted-color);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.035em;
}

.post-entry.post-entry--related:focus-within {
  outline: 3px solid var(--related-accent);
  outline-offset: -3px;
}

/* Комментарии */
.comments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.comment-item {
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 20px;
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--heading-color);
}

.comment-date {
  font-size: 0.75rem;
  color: var(--muted-color);
  margin-left: auto;
}

.comment-text {
  font-size: 0.92rem;
  color: var(--text-color);
  line-height: 1.6;
  padding-left: 42px;
}

.comment-respond-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.comment-form textarea,
.comment-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  background-color: var(--page-bg);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 14px;
  outline: none;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: var(--accent);
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.button-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 11px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.button-primary:hover {
  background-color: var(--accent-hover);
}

/* Аккордеоны */
.accordion-item {
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  background-color: var(--panel-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  cursor: pointer;
  text-align: left;
}

.accordion-trigger:hover {
  background-color: var(--page-bg);
}

.accordion-icon {
  transition: transform 0.25s ease;
  color: var(--accent);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.accordion-item.active .accordion-content {
  padding: 0 20px 20px;
}

/* Страницы рубрик */
.category-header-banner {
  background-color: var(--panel-bg);
  border: 1px solid var(--line-color);
  border-radius: var(--radius-xs);
  padding: 35px 40px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.category-header-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 300;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.category-header-lead {
  font-size: 1.05rem;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 20px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.category-pill {
  padding: 6px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--page-bg);
  border: 1px solid var(--line-color);
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-pill:hover,
.category-pill.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted-color);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted-color);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs-sep {
  color: var(--line-color);
}

/* Подвал */
.site-footer {
  background-color: var(--footer-bg);
  color: #999999;
  padding: 60px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-widget .widget-title {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer-widget .widget-title span {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 0 14px 0 0;
  letter-spacing: 1.8px;
  font-size: 12px;
}

.footer-widget .widget-title::after {
  display: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #999999;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-copyright {
  color: #777777;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-links a {
  color: #777777;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

/* Кнопка возврата наверх */
.back-to-top-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
}

/* Короткое уведомление */
.toast-notice {
  position: fixed;
  bottom: 25px;
  right: 80px;
  background-color: #111111;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-xs);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent);
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.9rem;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Мобильное меню */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: #111111;
  color: #ffffff;
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 30px 24px;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-link {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #ffffff;
  display: block;
}

.drawer-sublist {
  list-style: none;
  margin: 8px 0 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-sublink {
  font-size: 0.86rem;
  color: #999999;
}

.drawer-sublink:hover {
  color: var(--accent);
}

/* Адаптивные состояния */
@media (max-width: 1200px) {
  .site-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .recent-posts-widget {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .featured-stories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  .site-branding {
    gap: 8px;
    min-width: 0;
  }
  
  .brand-logo-img {
    width: 32px;
    height: 32px;
  }
  
  .brand-title {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  
  .site-branding .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }
  
  .action-btn {
    width: 32px;
    height: 32px;
  }

  .action-btn svg {
    width: 16px;
    height: 16px;
  }

  .featured-stories {
    grid-template-columns: 1fr;
  }
  
  .post-entry--row {
    flex-direction: column;
  }

  .post-entry--row .post-thumbnail {
    width: 100%;
    height: 220px;
  }

  .post-entry--row .entry-wrapper {
    padding: 22px 20px;
  }
  
  .story-hero {
    height: auto;
    min-height: 330px;
    padding: 35px 14px;
    margin-bottom: 30px;
  }
  
  .story-hero__content {
    padding: 0;
    max-width: 100%;
    width: 100%;
  }

  .story-hero__title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
    margin-bottom: 12px;
  }

  .story-hero__summary {
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 100%;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .single-header {
    padding: 24px 20px 20px;
  }

  .single-body {
    padding: 24px 20px 30px;
    font-size: 1rem;
    line-height: 1.76;
  }

  .single-body > .article-lead {
    margin-bottom: 30px;
    font-size: 1.06rem;
  }

  .single-body h2 {
    margin-top: 44px;
    margin-bottom: 18px;
  }

  .single-body h3 {
    margin-top: 32px;
  }

  .single-body ul,
  .single-body ol {
    padding-left: 1.15rem;
  }

  .comparison-table {
    font-size: 0.84rem;
  }
  
  .figure-align-left,
  .figure-align-right {
    float: none;
    max-width: 100%;
    margin: 20px 0;
  }

  .figure-align-center {
    margin: 32px auto;
  }
  
  .article-author--single {
    flex-direction: column;
    text-align: center;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .related-posts__grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    margin-top: 48px;
  }

  .related-posts .article-section__title {
    padding: 15px 0 14px;
  }

  .post-entry.post-entry--related .entry-wrapper {
    min-height: 0;
    padding: 18px 16px 20px;
  }

  .comment-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-value-block {
    margin: 34px 0;
    padding: 22px 18px;
  }

  .market-snapshot__grid,
  .license-gate__cards,
  .attribution-split__columns,
  .metric-stack__formulas,
  .risk-quadrant__matrix {
    grid-template-columns: 1fr;
  }

  .tap-zone__layout {
    grid-template-columns: 1fr;
  }

  .tap-zone__phone {
    min-height: 320px;
  }

  .career-routes__lanes article,
  .followup-clock__steps li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .thesis-test__stack article {
    padding-left: 44px;
  }

  .thesis-test__stack p span {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-branding .brand-tagline {
    display: none;
  }
  
  .site-branding {
    gap: 8px;
  }
  
  .brand-logo-img {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    font-size: 0.98rem;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
  }
  
  .action-btn svg {
    width: 15px;
    height: 15px;
  }

  .entry-wrapper {
    padding: 22px 16px;
  }
  
  .entry-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
