:root {
  --kg24-accent: #ea1717;
  --kg24-accent-hover: #c41414;
  --kg24-accent-soft: rgba(234, 23, 23, 0.08);
  --kg24-text: #000;
  --kg24-muted: #888;
  --kg24-border: #eaeaea;
  --kg24-border-strong: #ddd;
  --kg24-surface: #fff;
  --kg24-surface-alt: #f5f5f5;
  --kg24-hover-bg: #fafafa;
  --kg24-footer-end: #222;
  --kg24-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
  --kg24-container: 1240px;
  --kg24-wide-container: 1240px;
  --kg24-gutter: 24px;
  --kg24-layout-gap: 28px;
  --kg24-font-body: "KG24Montserrat", Arial, sans-serif;
  --kg24-font-head: "KG24Oswald", Arial, sans-serif;
  --kg24-thumb-ratio: 3 / 2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--kg24-text);
  background: #fff;
  font-family: var(--kg24-font-body);
  font-size: 16px;
  line-height: 1.56;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.15em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kg24-shell {
  width: min(100% - 40px, var(--kg24-container));
  margin: 0 auto;
}

.kg24-shell--wide {
  width: min(100% - 48px, var(--kg24-wide-container));
}

.kg24-main {
  position: relative;
  z-index: 0;
  min-height: 50vh;
}

.kg24-section {
  margin-bottom: 42px;
}

.kg24-section-title,
.kg24-page-title,
.kg24-entry-title,
.kg24-card__title,
.kg24-widget-title,
.kg24-archive-title {
  font-family: var(--kg24-font-head);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.kg24-header {
  position: relative;
  z-index: 1000;
}

/* Mobile weather remark under header */
.kg24-mobile-weather-section {
  display: block;
}

.kg24-weather-remark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kg24-weather-remark::after {
  display: none;
}

.kg24-weather-remark__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.kg24-weather-remark__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kg24-weather-remark__link {
  font-family: var(--kg24-font-body, "KG24Montserrat", Arial, sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  color: var(--kg24-muted, #888);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kg24-weather-remark__link:hover {
  color: var(--kg24-text, #222);
}

.kg24-weather-remark__icon {
  flex-shrink: 0;
  width: 1.7em;
  height: 1.7em;
  color: var(--kg24-accent, #ea1717);
  line-height: 1;
}

.kg24-weather-remark__icon .kg24-fx-remark__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kg24-weather-remark__title {
  margin: 0;
  font-family: var(--kg24-font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--kg24-accent, #ea1717);
}

.kg24-weather-remark__temp {
  flex-shrink: 0;
  font-family: var(--kg24-font-head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--kg24-text, #222);
  font-variant-numeric: tabular-nums;
}

.kg24-mobile-header,
.kg24-desktop-header,
.kg24-sticky-header {
  background: #fff;
}

.kg24-mobile-header {
  background: var(--kg24-accent);
}

.kg24-mobile-header__inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
}

.kg24-mobile-header--sticky,
.kg24-sticky-header {
  position: fixed;
  inset: 0 0 auto;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.kg24-mobile-header--sticky {
  box-shadow: var(--kg24-shadow);
}

.kg24-sticky-header {
  z-index: 1001;
  overflow: visible;
}

.kg24-sticky-header.is-active {
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.kg24-sticky-header .kg24-logo--desktop {
  padding: 6px 12px;
  gap: 10px;
}

.kg24-sticky-header .kg24-logo--desktop img {
  height: 35px;
  max-height: 35px;
}

.kg24-sticky-header .kg24-logo__text {
  font-size: 28px;
}

.kg24-sticky-header .kg24-header-nav-row {
  border-bottom: 0;
}

.kg24-mobile-header--sticky.is-active,
.kg24-sticky-header.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.kg24-burger,
.kg24-search-toggle,
.kg24-mobile-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.kg24-burger {
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: #fff;
}

.kg24-burger span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}

.kg24-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.kg24-logo--mobile,
.kg24-logo--desktop,
.kg24-logo--sticky {
  color: #fff;
  background: var(--kg24-accent);
}

.kg24-logo--mobile {
  min-width: 104px;
  min-height: 56px;
  padding: 8px 12px;
}

.kg24-logo--desktop {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 8px 14px;
}

.kg24-logo__text {
  font-family: var(--kg24-font-head);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.kg24-logo--sticky {
  min-width: 108px;
  min-height: 44px;
  padding: 7px 10px;
}

.kg24-logo img {
  width: auto;
  height: 38px;
  flex: 0 0 auto;
}

.kg24-logo--mobile {
  justify-self: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  gap: 8px;
}

.kg24-logo--mobile .kg24-logo__text {
  font-size: 30px;
}

.kg24-logo--desktop img {
  width: auto;
  height: 40px;
  max-width: none;
  max-height: 40px;
  transform: none;
}

html.kg24-js .kg24-logo--desktop img.kg24-logo-icon--spin {
  transform-origin: center center;
}

.kg24-logo--sticky img {
  height: auto;
  width: 88px;
}

.kg24-logo--mobile img {
  height: 35px;
  width: auto;
  max-height: 35px;
}

.kg24-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--kg24-accent);
}

.kg24-search-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.kg24-search-toggle--desktop {
  width: 36px;
  height: 36px;
}

.kg24-search-toggle--desktop .kg24-search-icon {
  width: 24px;
  height: 24px;
}

.kg24-mobile-header .kg24-search-toggle {
  width: 44px;
  height: 44px;
  justify-self: end;
  color: #fff;
}

.kg24-mobile-header .kg24-search-icon {
  width: 24px;
  height: 24px;
}

.kg24-mobile-header .kg24-burger {
  justify-self: start;
}

.kg24-desktop-header {
  display: none;
  overflow: visible;
}

.kg24-desktop-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 75%);
  gap: var(--kg24-layout-gap);
  align-items: stretch;
}

.kg24-desktop-header__logo {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: visible;
}

.kg24-desktop-header__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: 0;
  overflow: visible;
}

.kg24-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 4px 0 2px;
}

.kg24-header-meta__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.kg24-header-meta__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

.kg24-header-date,
.kg24-header-weather {
  font-family: var(--kg24-font-head);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.kg24-header-date {
  flex-shrink: 0;
}

.kg24-header-weather {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.kg24-header-nav-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--kg24-border);
  min-height: 36px;
  overflow: visible;
}

.kg24-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.kg24-menu {
  list-style: none;
}

.kg24-menu--primary {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
  min-height: 36px;
  width: 100%;
}

.kg24-menu--primary > li {
  display: flex;
  flex: 0 0 auto;
}

.kg24-menu--primary > li > a,
.kg24-menu--primary > li > .kg24-menu-more__toggle,
.kg24-menu--mobile > li > a {
  font-family: var(--kg24-font-head);
}

.kg24-menu--primary > li > a,
.kg24-menu--primary > li > .kg24-menu-more__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.kg24-menu--primary > li.current-menu-item > a::after,
.kg24-menu--primary > li > a:hover::after,
.kg24-menu--primary > li.current-menu-ancestor > a::after,
.kg24-menu--primary > li.kg24-menu-more:hover > .kg24-menu-more__toggle::after,
.kg24-menu--primary > li.kg24-menu-more.is-open > .kg24-menu-more__toggle::after,
.kg24-menu--primary > li.kg24-menu-more.current-menu-item > .kg24-menu-more__toggle::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 5px;
  background: var(--kg24-accent);
}

.kg24-menu-more {
  position: relative;
}

.kg24-menu-more__caret {
  display: inline-block;
  margin-left: 5px;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.9;
}

.kg24-menu-more__list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--kg24-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.kg24-menu-more__list > li {
  display: block;
  list-style: none;
  margin: 0;
}

.kg24-menu--primary .kg24-menu-more:hover > .kg24-menu-more__list,
.kg24-menu--primary .kg24-menu-more:focus-within > .kg24-menu-more__list,
.kg24-menu-more.is-open > .kg24-menu-more__list {
  display: block;
}

.kg24-menu-more__list > li > a {
  display: block;
  padding: 8px 20px;
  font-family: var(--kg24-font-head);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--kg24-text);
}

.kg24-menu-more__list > li > a:hover,
.kg24-menu-more__list > li.current-menu-item > a {
  background: var(--kg24-surface-alt);
  color: var(--kg24-text);
}

.kg24-menu-more__list > li.kg24-menu-more__heading > a {
  font-weight: 700;
}

.kg24-menu--mobile > li.kg24-menu-more__heading > a {
  font-weight: 700;
}

.kg24-menu-more__divider {
  height: 0;
  margin: 8px 16px;
  border: 0;
  border-top: 1px solid var(--kg24-border);
  pointer-events: none;
}

.kg24-social-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg24-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--kg24-border);
  background: #fff;
  color: var(--kg24-accent);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.kg24-social-icon {
  display: block;
  width: 12px;
  height: 12px;
  max-width: 16px;
  max-height: 16px;
  fill: currentColor;
  overflow: visible;
}

.kg24-social-link--facebook .kg24-social-icon {
  width: 8px;
  height: 12px;
}

.kg24-social-link--odnoklassniki .kg24-social-icon {
  width: 10px;
  height: 12px;
}

.kg24-social-link--telegram .kg24-social-icon,
.kg24-social-link--vk .kg24-social-icon,
.kg24-social-link--instagram .kg24-social-icon,
.kg24-social-link--youtube .kg24-social-icon {
  width: 13px;
  height: 13px;
}

.kg24-social-link:hover {
  background: var(--kg24-accent);
  border-color: var(--kg24-accent);
  color: #fff;
}

.kg24-header-meta .kg24-social-menu {
  gap: 2px;
}

.kg24-header-meta .kg24-social-link {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.kg24-header-meta .kg24-social-link:hover {
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
}

.kg24-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.kg24-mobile-drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 8px 0;
  background: linear-gradient(to bottom, rgba(73, 46, 81, 0.94) 0%, rgba(221, 33, 33, 0.88) 100%);
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
}

.kg24-mobile-drawer.is-open .kg24-mobile-drawer__panel {
  transform: translate3d(0, 0, 0);
}

.kg24-mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 70px;
  padding: 8px 8px 8px 12px;
}

.kg24-mobile-drawer__top .kg24-logo--mobile {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
  order: 1;
}

.kg24-mobile-drawer__top .kg24-logo__text {
  font-size: 30px;
}

.kg24-mobile-drawer__top .kg24-social-menu {
  order: 3;
  flex: 1 1 100%;
}

.kg24-mobile-drawer__top .kg24-mobile-close {
  order: 2;
}

.kg24-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
}

.kg24-mobile-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 12px 40px;
}

.kg24-menu--mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kg24-menu--mobile > li {
  display: block;
  list-style: none;
}

.kg24-menu--mobile > li > a {
  display: block;
  width: 100%;
  padding: 12px;
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.kg24-menu--mobile > li.kg24-menu-more__heading > a {
  font-weight: 700;
}

.kg24-menu--mobile > li.current-menu-item > a {
  color: #ff3f3f;
}

.kg24-menu--mobile .kg24-menu-more__divider {
  margin: 8px 12px;
  border-top-color: rgba(255, 255, 255, 0.28);
}

.kg24-mobile-drawer .kg24-social-menu {
  gap: 4px;
}

.kg24-mobile-drawer .kg24-social-link {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.kg24-mobile-drawer .kg24-social-icon {
  width: 16px;
  height: 16px;
}

.kg24-mobile-drawer .kg24-social-link:hover {
  background: transparent;
  color: #ff3f3f;
}

.kg24-site {
  transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
}

body.kg24-menu-open,
html.kg24-menu-open,
body.kg24-search-overlay-open,
html.kg24-search-overlay-open {
  overflow: hidden;
}

body.kg24-menu-open .kg24-site,
body.kg24-search-overlay-open .kg24-site {
  transform: scale3d(0.92, 0.92, 0.92);
  transform-origin: 50% 0;
  box-shadow: 0 0 46px #000;
  pointer-events: none;
}

.kg24-header-search {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.kg24-search-panel {
  z-index: 120;
}

.kg24-header-search .kg24-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 430px;
  padding: 22px 20px 20px;
  background: #fff;
  border: 0;
  border-top: 3px solid var(--kg24-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.kg24-header-search .kg24-search-panel::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 11px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 8px solid var(--kg24-accent);
}

.kg24-search-panel--mobile {
  display: none;
}

.kg24-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
}

.kg24-search-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

.kg24-search-overlay__panel {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(to bottom, rgba(73, 46, 81, 0.94) 0%, rgba(221, 33, 33, 0.88) 100%);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s cubic-bezier(0.79, 0.14, 0.15, 0.86);
  text-align: center;
  color: #fff;
}

.kg24-search-overlay.is-open .kg24-search-overlay__panel {
  transform: translate3d(0, 0, 0);
}

.kg24-search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
}

.kg24-search-overlay__form {
  margin: 8px 0 30px;
}

.kg24-search-overlay__input {
  position: relative;
  margin: 0 5%;
}

.kg24-search-overlay__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.kg24-search-overlay__field {
  width: 100%;
  height: 40px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 26px;
  font-weight: 500;
  line-height: 36px;
  text-align: center;
  outline: none;
  box-shadow: none;
  appearance: none;
  border-radius: 0;
}

.kg24-search-overlay__field::-webkit-search-decoration,
.kg24-search-overlay__field::-webkit-search-cancel-button {
  appearance: none;
}

.kg24-search-overlay__input::before,
.kg24-search-overlay__input::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #fff;
}

.kg24-search-overlay__input::before {
  opacity: 0.2;
}

.kg24-search-overlay__input::after {
  opacity: 0.8;
  transform: scaleX(0);
  transition: transform 0.5s ease 0.35s;
}

.kg24-search-overlay.is-open .kg24-search-overlay__input::after {
  transform: scaleX(1);
}

.kg24-search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.kg24-search-form > label {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.kg24-search-field {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d6d6d6;
  border-right: 0;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  appearance: none;
}

.kg24-search-field:focus {
  border-color: #cfcfcf;
}

.kg24-search-submit {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  background: #2f2f2f;
  color: #fff;
  font-family: var(--kg24-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.kg24-home-main {
  padding-top: 0;
}

.kg24-home-layout {
  display: grid;
  gap: var(--kg24-layout-gap);
  align-items: stretch;
}

.kg24-home-sidebar,
.kg24-home-content {
  min-width: 0;
}

.kg24-home-content {
  padding-top: 24px;
}

.kg24-home-sidebar {
  position: relative;
  height: 100%;
  padding-top: 0;
}

[data-kg24-pin] {
  position: relative;
  overflow: visible;
  overflow-anchor: none;
}

.kg24-home-sidebar__inner {
  position: relative;
}

.kg24-home-sidebar__inner::after,
.kg24-sticky-column::after {
  content: "";
  display: block;
  height: 50px;
}

.kg24-sticky-column {
  position: relative;
}

.kg24-section-title {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 10px;
  font-size: 20px;
}

.kg24-section-title::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--kg24-accent);
}

.kg24-sidebar-feed,
.kg24-popular-list {
  display: grid;
  gap: 12px;
}

.kg24-sidebar-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kg24-home-sidebar__inner > .kg24-sidebar-feed > .kg24-card--text:first-child {
  padding-top: 24px;
}

.kg24-card--text {
  padding-left: 0;
  border-left: 5px solid transparent;
}

.kg24-card--text:hover {
  border-left-color: var(--kg24-accent);
}

.kg24-home-main .kg24-home-sidebar .kg24-card--text,
.kg24-home-sidebar--page .kg24-card--text,
.kg24-home-rail .kg24-card--text {
  border-left: 0;
}

.kg24-home-main .kg24-home-sidebar .kg24-card--text:hover,
.kg24-home-sidebar--page .kg24-card--text:hover,
.kg24-home-rail .kg24-card--text:hover {
  border-left-color: transparent;
}

.kg24-home-main .kg24-home-sidebar .kg24-card--text:hover .kg24-card__title a,
.kg24-home-main .kg24-home-sidebar .kg24-card--text .kg24-card__title a:hover,
.kg24-home-sidebar--page .kg24-card--text:hover .kg24-card__title a,
.kg24-home-sidebar--page .kg24-card--text .kg24-card__title a:hover,
.kg24-home-rail .kg24-card--text:hover .kg24-card__title a,
.kg24-home-rail .kg24-card--text .kg24-card__title a:hover,
.kg24-home-rail .kg24-card--compact:hover .kg24-card__title a {
  color: var(--kg24-accent);
}

.kg24-post-category {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--kg24-accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}

.kg24-card__date {
  display: block;
  margin-bottom: 1px;
  color: var(--kg24-muted);
  font-size: 11px;
  line-height: 1.4;
}

.kg24-card--text .kg24-card__title {
  font-size: 15px;
  line-height: 1.4;
  overflow: visible;
}

.kg24-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 6px;
  color: var(--kg24-muted);
  font-size: 11px;
  line-height: 1.3;
}

.kg24-card__stats .kg24-entry-meta__icon {
  width: 13px;
  height: 13px;
}

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

.kg24-hero-grid {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.kg24-hero-grid > .kg24-card--featured {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.kg24-hero-grid > .kg24-card--teaser {
  grid-column: 2;
}

.kg24-card--featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.kg24-card--featured .kg24-card__media,
.kg24-card--featured .kg24-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--kg24-surface-alt);
}

.kg24-card--featured img {
  display: block;
  width: 100%;
  aspect-ratio: var(--kg24-thumb-ratio);
  object-fit: cover;
}

.kg24-card--featured .kg24-post-category {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 6px 10px;
  background: #111;
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.kg24-card--featured .kg24-card__body {
  padding-top: 14px;
}

.kg24-card--featured .kg24-card__title {
  font-size: 28px;
  line-height: 1.2;
}

.kg24-card--featured .kg24-card__title a:hover,
.kg24-card--teaser .kg24-card__title a:hover,
.kg24-card--compact .kg24-card__title a:hover {
  color: var(--kg24-accent);
}

.kg24-card--featured .kg24-card__date,
.kg24-card--teaser .kg24-card__date {
  margin-top: 8px;
  color: var(--kg24-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.kg24-card--teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.kg24-card--teaser .kg24-card__thumb {
  display: block;
  width: 100%;
  background: var(--kg24-surface-alt);
}

.kg24-card--teaser img {
  display: block;
  width: 100%;
  aspect-ratio: var(--kg24-thumb-ratio);
  object-fit: cover;
}

.kg24-card--teaser .kg24-card__title {
  font-size: 16px;
  line-height: 1.25;
}

.kg24-card--hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: var(--kg24-thumb-ratio);
  min-height: 0;
  background: #111;
}

.kg24-card--hero .kg24-card__thumb,
.kg24-card--hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kg24-card--hero img {
  object-fit: cover;
}

.kg24-card__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.kg24-card--hero .kg24-card__title {
  font-size: 28px;
}

.kg24-card--hero.kg24-card--small .kg24-card__title {
  font-size: 18px;
}

.kg24-card__thumb,
.kg24-card--overlay-cat .kg24-card__media {
  overflow: hidden;
}

.kg24-card__thumb img {
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .kg24-card:hover .kg24-card__thumb img,
  .kg24-card:focus-within .kg24-card__thumb img {
    transform: scale(1.06);
  }
}

.kg24-home-mid {
  display: grid;
  gap: var(--kg24-layout-gap);
  align-items: stretch;
}

.kg24-home-rail {
  min-width: 0;
}

.kg24-home-rail__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kg24-home-rail .kg24-home-column {
  min-height: 0;
}

.kg24-home-rail .kg24-column-feed {
  margin-bottom: 16px;
}

.kg24-home-rail .kg24-sidebar-feed {
  gap: 0;
}

.kg24-home-rail .kg24-sidebar-feed .kg24-card--text {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--kg24-border);
}

.kg24-home-columns {
  display: grid;
  gap: 28px;
  align-items: stretch;
  min-width: 0;
}

.kg24-home-column {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.kg24-home-column .kg24-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.kg24-home-column .kg24-section-title::after {
  position: static;
  flex: 1 1 auto;
  height: 4px;
}

.kg24-column-feed {
  display: grid;
  gap: 22px;
  margin-bottom: 18px;
}

.kg24-home-column .kg24-card--grid {
  border: 0;
}

.kg24-home-column .kg24-card--grid .kg24-card__body {
  padding: 12px 0 0;
}

.kg24-home-column .kg24-card--grid .kg24-card__title {
  font-size: 18px;
  line-height: 1.25;
}

.kg24-read-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--kg24-accent);
  background: #fff;
  color: var(--kg24-accent);
  font-family: var(--kg24-font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kg24-read-all:hover {
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-section--interest .kg24-read-all {
  margin-top: 24px;
}

.kg24-card--grid,
.kg24-card--list {
  border: 1px solid var(--kg24-border);
  background: #fff;
}

.kg24-card--grid .kg24-card__thumb,
.kg24-card--list .kg24-card__thumb {
  display: block;
  background: var(--kg24-surface-alt);
}

.kg24-card--grid img {
  width: 100%;
  aspect-ratio: var(--kg24-thumb-ratio);
  object-fit: cover;
}

.kg24-card--grid .kg24-card__body,
.kg24-card--list .kg24-card__body {
  padding: 16px 18px 18px;
}

.kg24-card--grid .kg24-card__title {
  font-size: 18px;
}

.kg24-card--overlay-cat {
  border: 0;
  background: transparent;
}

.kg24-card--overlay-cat .kg24-card__media,
.kg24-card--overlay-cat .kg24-card__thumb {
  position: relative;
  display: block;
}

.kg24-card--overlay-cat .kg24-post-category {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 6px 10px;
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.kg24-card--overlay-cat .kg24-card__body {
  padding: 12px 0 0;
}

.kg24-card--overlay-cat .kg24-card__title a:hover {
  color: var(--kg24-accent);
}

.kg24-card__excerpt {
  margin-top: 8px;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
}

.kg24-card--list {
  display: grid;
  grid-template-columns: 30% 1fr;
  align-items: start;
}

.kg24-card--list img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--kg24-thumb-ratio);
  object-fit: cover;
}

.kg24-card--list .kg24-card__title {
  font-size: 16px;
}

.kg24-post-grid--archive .kg24-card--grid {
  border: 0;
  background: transparent;
}

.kg24-post-grid--archive .kg24-card__thumb {
  display: block;
  width: 100%;
  background: var(--kg24-surface-alt);
}

.kg24-post-grid--archive .kg24-card__body {
  padding: 12px 0 0;
}

.kg24-interest-grid,
.kg24-latest-grid,
.kg24-post-grid--archive,
.kg24-related-grid {
  display: grid;
  gap: 24px;
}

.kg24-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.kg24-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kg24-pagination .page-numbers li {
  display: flex;
}

.kg24-pagination .page-numbers a,
.kg24-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-family: var(--kg24-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.kg24-pagination .page-numbers a:hover {
  border-color: var(--kg24-accent);
  color: var(--kg24-accent);
}

.kg24-pagination .page-numbers .current {
  border-color: var(--kg24-accent);
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-pagination .page-numbers .dots {
  width: auto;
  min-width: 20px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #999;
}

.kg24-pagination__status {
  margin: 0 0 0 auto;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.kg24-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  margin-top: 28px;
  border: 0;
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.kg24-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: var(--kg24-accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.kg24-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kg24-to-top:hover {
  background: #c51212;
}

.kg24-content-layout,
.kg24-archive-layout,
.kg24-single-layout {
  display: grid;
  gap: 28px;
  padding: 34px 0 48px;
}

.kg24-breadcrumbs {
  margin-bottom: 18px;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
}

.kg24-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kg24-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg24-breadcrumbs__item:not(:last-child)::after {
  content: "›";
  color: var(--kg24-accent);
}

.kg24-archive-desc {
  margin: -8px 0 26px;
  color: #555;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.5;
  text-transform: none;
}

.kg24-page-title,
.kg24-archive-title {
  font-size: 40px;
  margin-bottom: 26px;
}

.kg24-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.kg24-category-pills--children {
  margin-top: -14px;
}

.kg24-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  background: #fff;
  color: var(--kg24-accent);
  border: 1px solid var(--kg24-accent);
  font-family: var(--kg24-font-head);
  font-size: 14px;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.kg24-category-pill:hover,
.kg24-category-pill:focus-visible {
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-category-pill.is-current {
  background: #000;
  border-color: #000;
  color: #fff;
}

.kg24-category-pills--children .kg24-category-pill {
  min-height: 36px;
  padding: 0 14px;
  background: var(--kg24-accent);
  color: #fff;
  border: 0;
}

.kg24-category-pills--children .kg24-category-pill:hover,
.kg24-category-pills--children .kg24-category-pill:focus-visible {
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-category-pills--children .kg24-category-pill.is-current {
  background: #000;
}

.kg24-entry-title {
  font-size: 30px;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.kg24-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin: 0 0 18px;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.kg24-entry-meta__primary,
.kg24-entry-meta__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
}

.kg24-entry-meta__stats {
  margin-left: auto;
  justify-content: flex-end;
}

.kg24-entry-meta__stats[hidden],
.kg24-entry-meta__item[hidden] {
  display: none !important;
}

.kg24-entry-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.kg24-entry-meta__icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.kg24-entry-meta a {
  color: inherit;
}

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

.kg24-single-thumbnail {
  width: 100%;
  margin-bottom: 18px;
}

.kg24-entry,
.kg24-single-thumbnail,
.kg24-single-content {
  min-width: 0;
  max-width: 100%;
}

/* Оригинал квадратнее 4:3 — рамка 4:3, картинка на всю ширину, обрезка по высоте. */
.kg24-single-thumbnail--fit-4-3 {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--kg24-surface-alt);
}

.kg24-single-thumbnail--fit-4-3 .kg24-single-thumbnail__img,
.kg24-single-thumbnail--fit-4-3 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Шире 4:3 — на всю ширину, высота по пропорциям. */
.kg24-single-thumbnail--natural .kg24-single-thumbnail__img,
.kg24-single-thumbnail--natural img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.kg24-entry-byline {
  display: grid;
  gap: 28px;
  margin: 43px 0 8px;
}

.kg24-entry-byline .kg24-share,
.kg24-entry-byline .kg24-author {
  margin: 0;
}

.kg24-share {
  margin: 43px 0 8px;
}

.kg24-share[hidden] {
  display: none;
}

.kg24-share__title,
.kg24-author__title,
.kg24-reactions__title,
.kg24-comments__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: var(--kg24-font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.kg24-share__title::after,
.kg24-author__title::after,
.kg24-reactions__title::after,
.kg24-comments__title::after {
  content: "";
  flex: 1 1 auto;
  height: 4px;
  background: var(--kg24-accent);
}

.kg24-comments__title {
  margin-bottom: 18px;
}

.kg24-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kg24-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--kg24-accent);
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 14px;
  text-transform: uppercase;
}

.kg24-share a:hover {
  background: #c41414;
  border-color: #c41414;
  color: #fff;
}

.kg24-author {
  display: flex;
  flex-direction: column;
  margin: 43px 0 8px;
  min-height: 0;
}

.kg24-author__person {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  text-align: center;
}

.kg24-author__photo {
  display: inline-flex;
  line-height: 0;
}

.kg24-author__photo img,
.kg24-author__photo .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--kg24-accent);
}

.kg24-author__name {
  font-family: var(--kg24-font-head);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kg24-author__person:hover .kg24-author__name {
  color: var(--kg24-accent);
}

.kg24-single-content {
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.kg24-single-content h2,
.kg24-single-content h3,
.kg24-single-content h4,
.kg24-single-content h5 {
  font-family: var(--kg24-font-head);
  font-weight: 500;
  line-height: 1.25;
  margin: 1.35em 0 0.55em;
  text-transform: none;
}

.kg24-single-content h2 {
  font-size: 22px;
}

.kg24-single-content h3 {
  font-size: 18px;
}

.kg24-single-content h4,
.kg24-single-content h5 {
  font-size: 16px;
}

.kg24-single-content figure,
.kg24-single-content .wp-caption,
.kg24-single-content .alignnone,
.kg24-single-content .aligncenter,
.kg24-single-content img {
  max-width: 100%;
  height: auto;
}

.kg24-single-content figure,
.kg24-single-content .wp-caption {
  width: auto !important;
  margin: 1.25em 0;
}

.kg24-single-content figcaption,
.kg24-single-content .wp-caption-text {
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.kg24-single-content ul,
.kg24-single-content ol {
  margin: 1.6em 0;
  padding-left: 1.35em;
}

.kg24-single-content ul {
  list-style: disc;
}

.kg24-single-content ol {
  list-style: decimal;
}

.kg24-single-content li {
  margin: 0 0 0.65em;
  padding: 0;
  line-height: inherit;
}

.kg24-single-content li:last-child {
  margin-bottom: 0;
}

.kg24-single-content li ul,
.kg24-single-content li ol {
  margin: 0.45em 0 0.2em;
}

.kg24-single-stream,
.kg24-archive-main {
  min-width: 0;
}

.kg24-infinite-feed {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.kg24-infinite-feed .kg24-entry {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--kg24-border);
}

.kg24-infinite-sentinel {
  height: 1px;
}

.kg24-single-content a {
  color: var(--kg24-accent);
}

.kg24-reactions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 43px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.kg24-reactions__head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: 0;
}

.kg24-reactions__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.kg24-reactions__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.kg24-reactions__btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 78px;
  padding: 12px 6px 10px;
  border: 1px solid var(--kg24-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  color: inherit;
  font: inherit;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.kg24-reactions__btn:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 23, 23, 0.45);
  background: #fff;
  box-shadow: 0 12px 22px rgba(234, 23, 23, 0.16);
}

.kg24-reactions__btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(234, 23, 23, 0.12);
}

.kg24-reactions__btn:focus-visible {
  outline: 2px solid var(--kg24-accent);
  outline-offset: 3px;
}

.kg24-reactions__btn.is-active {
  background: var(--kg24-accent);
  border-color: var(--kg24-accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(234, 23, 23, 0.28);
}

.kg24-reactions__btn.is-active:hover {
  background: #d41414;
  border-color: #d41414;
  box-shadow: 0 14px 24px rgba(234, 23, 23, 0.32);
}

.kg24-reactions__btn.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.kg24-reactions__emoji {
  font-size: 28px;
  line-height: 1;
  transform: scale(1);
  transition: transform 0.22s ease;
}

.kg24-reactions__btn:hover .kg24-reactions__emoji {
  transform: scale(1.18);
}

.kg24-reactions__btn.is-active .kg24-reactions__emoji {
  transform: scale(1.08);
}

.kg24-reactions__btn.is-active:hover .kg24-reactions__emoji {
  transform: scale(1.2);
}

.kg24-reactions__label {
  font-family: var(--kg24-font-head);
  font-size: 12px;
  line-height: 1.2;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.22s ease;
}

.kg24-reactions__btn:hover .kg24-reactions__label {
  color: var(--kg24-accent);
}

.kg24-reactions__btn.is-active .kg24-reactions__label {
  color: #fff;
}

.kg24-reactions__count {
  min-width: 1.2em;
  font-family: var(--kg24-font-head);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--kg24-accent);
  transition: color 0.22s ease;
}

.kg24-reactions__count[hidden] {
  display: none !important;
}

.kg24-reactions__btn.is-active .kg24-reactions__count {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .kg24-reactions__btn,
  .kg24-reactions__emoji,
  .kg24-reactions__label,
  .kg24-reactions__count {
    transition: none;
  }

  .kg24-reactions__btn:hover,
  .kg24-reactions__btn:active,
  .kg24-reactions__btn:hover .kg24-reactions__emoji,
  .kg24-reactions__btn.is-active .kg24-reactions__emoji,
  .kg24-reactions__btn.is-active:hover .kg24-reactions__emoji {
    transform: none;
  }
}

.kg24-single-content blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 4px solid var(--kg24-accent);
  color: var(--kg24-accent);
  font-family: var(--kg24-font-body);
  font-size: 26px;
  line-height: 1.4;
}

.kg24-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 22px 0 0;
}

.kg24-tags__label {
  font-family: var(--kg24-font-head);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
}

.kg24-tags__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kg24-tags__item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.kg24-tags__item:hover {
  background: #c41414;
  color: #fff;
}

.kg24-comments {
  margin-top: 51px;
}

.kg24-comments__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}

.kg24-comments__count {
  color: var(--kg24-accent);
}

.kg24-comments__empty,
.kg24-comments__closed {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.kg24-comments__list,
.kg24-comments__list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kg24-comments__list > .comment + .comment,
.kg24-comments__list .children .comment {
  margin-top: 18px;
}

.kg24-comments__list .children {
  margin-top: 18px;
  padding-left: 28px;
}

.kg24-comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.kg24-comment__avatar img,
.kg24-comment__avatar svg,
.kg24-comment__avatar .kg24-guest-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.kg24-comment__body {
  min-width: 0;
  flex: 1;
}

.kg24-comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 6px;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
}

.kg24-comment__author {
  color: #000;
  font-weight: 600;
  text-transform: none;
  font-size: 14px;
}

.kg24-comment__time {
  color: inherit;
}

.kg24-comment__awaiting {
  margin: 0 0 8px;
  color: var(--kg24-accent);
  font-size: 13px;
}

.kg24-comment__content p:last-child {
  margin-bottom: 0;
}

.kg24-comment__reply {
  margin-top: 8px;
}

.kg24-comment__reply a {
  color: var(--kg24-accent);
  font-family: var(--kg24-font-head);
  font-size: 12px;
  text-transform: uppercase;
}

.kg24-cform-wrap {
  margin-top: 24px;
}

.kg24-cform__title {
  margin: 0 0 14px;
  font-family: var(--kg24-font-head);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.kg24-cform__cancel a {
  color: var(--kg24-accent);
  font-family: var(--kg24-font-body);
  font-size: 13px;
  text-transform: none;
}

.kg24-cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kg24-cform__field--comment,
.kg24-cform__cookies,
.kg24-cform__foot,
.kg24-cform .logged-in-as {
  grid-column: 1 / -1;
}

.kg24-cform .logged-in-as {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.kg24-cform__input,
.kg24-cform__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--kg24-border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 15px;
}

.kg24-cform__textarea {
  min-height: 120px;
  resize: vertical;
}

.kg24-cform__input:focus,
.kg24-cform__textarea:focus {
  outline: 2px solid var(--kg24-accent);
  outline-offset: 0;
  border-color: var(--kg24-accent);
}

.kg24-cform__cookies {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #666;
  font-size: 13px;
}

.kg24-cform__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
}

.kg24-cform__submit:hover {
  background: #d41414;
}

.kg24-footer {
  padding: 0 0 28px;
  background: linear-gradient(270deg, #000 0%, var(--kg24-footer-end) 100%);
  color: #b5b5b5;
}

.kg24-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.kg24-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.kg24-footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: fit-content;
  padding: 5px 12px;
  background: var(--kg24-accent);
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.kg24-footer-logo__title {
  display: block;
  font-family: var(--kg24-font-head);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
}

.kg24-footer-logo__tagline {
  display: block;
  margin-top: 0;
  font-family: var(--kg24-font-body);
  font-size: 10px;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.kg24-footer__lead {
  margin: 0;
  max-width: 16em;
  color: #d8d8d8;
  font-size: 15px;
  line-height: 1.4;
}

.kg24-footer__socials {
  display: flex;
  justify-content: flex-start;
}

.kg24-footer .kg24-social-menu {
  gap: 8px;
}

.kg24-footer .kg24-social-link {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: var(--kg24-accent);
  color: #fff;
}

.kg24-footer .kg24-social-icon {
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
}

.kg24-footer .kg24-social-link--facebook .kg24-social-icon {
  width: 10px;
  height: 15px;
}

.kg24-footer .kg24-social-link--odnoklassniki .kg24-social-icon {
  width: 12px;
  height: 15px;
}

.kg24-footer .kg24-social-link:hover {
  background: #d41414;
  border-color: transparent;
  color: #fff;
}

.kg24-footer__navs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kg24-footer__heading {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kg24-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kg24-footer-nav a {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.35;
}

.kg24-footer-nav a:hover {
  color: #fff;
}

.kg24-footer-nav .kg24-footer-link--accent a {
  color: var(--kg24-accent);
  font-weight: 600;
}

.kg24-footer-nav .kg24-footer-link--accent a:hover {
  color: #ff4d4d;
}

.kg24-footer__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #888;
  font-family: var(--kg24-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
}

.kg24-footer__bottom p {
  margin: 0;
}

.kg24-footer__age {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) and (max-width: 1018px) {
  .kg24-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }

  .kg24-footer-logo {
    padding: 3px 10px;
  }

  .kg24-footer-logo__title {
    font-size: 42px;
    letter-spacing: 1px;
  }

  .kg24-footer-logo__tagline {
    letter-spacing: -1px;
  }

  .kg24-footer__navs {
    gap: 20px;
  }
}

.kg24-generic-section {
  padding: 40px 0 48px;
}

.kg24-empty {
  padding: 32px 0;
}

.kg24-hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .kg24-mobile-header,
  .kg24-mobile-header--sticky,
  .kg24-mobile-drawer,
  .kg24-search-overlay,
  .kg24-mobile-weather-section {
    display: none;
  }

  .kg24-desktop-header {
    display: block;
  }

  .kg24-entry-byline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .kg24-entry-byline > :only-child {
    grid-column: 1 / -1;
  }

  .kg24-home-layout,
  .kg24-content-layout {
    grid-template-columns: minmax(0, 25%) minmax(0, 75%);
  }

  .kg24-interest-grid,
  .kg24-latest-grid,
  .kg24-post-grid--archive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kg24-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kg24-archive-layout {
    grid-template-columns: minmax(0, 75%) minmax(0, 25%);
    align-items: stretch;
  }

  .kg24-sidebar {
    align-self: stretch;
    min-width: 0;
    overflow: visible;
  }

  .kg24-single-main {
    display: grid;
    grid-template-columns: minmax(0, 25%) minmax(0, 75%);
    gap: var(--kg24-layout-gap);
    align-items: stretch;
  }

  .kg24-home-sidebar .kg24-section--feed,
  .kg24-home-sidebar .kg24-section--popular {
    margin-top: 0;
    margin-bottom: 0;
  }

  .kg24-home-sidebar .kg24-section--popular {
    margin-top: 28px;
  }

  .kg24-home-sidebar .kg24-popular-thumbs {
    display: grid;
    gap: 22px;
    margin-bottom: 16px;
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card--grid {
    display: flex;
    flex-direction: column;
    border: 0;
    background: transparent;
    padding-left: 0;
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card--grid:hover .kg24-card__title a,
  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card--grid .kg24-card__title a:hover {
    color: var(--kg24-accent);
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card__thumb {
    display: block;
    width: 100%;
    background: var(--kg24-surface-alt);
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card__thumb img {
    width: 100%;
    aspect-ratio: var(--kg24-thumb-ratio);
    object-fit: cover;
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card__body {
    padding: 12px 0 0;
  }

  .kg24-home-sidebar .kg24-popular-thumbs .kg24-card__title {
    font-size: 18px;
    line-height: 1.25;
  }

  .kg24-home-sidebar .kg24-card--text .kg24-card__title {
    font-size: 14px;
    line-height: 1.3;
  }

  .kg24-home-sidebar .kg24-section--feed .kg24-section-title,
  .kg24-home-sidebar .kg24-section--popular .kg24-section-title {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .kg24-home-sidebar--page .kg24-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 0;
  }

  .kg24-home-sidebar--page .kg24-section-title::after {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    height: 4px;
  }

  .kg24-home-sidebar--page .kg24-card--text:first-child {
    padding-top: 0;
  }

  .kg24-hidden-mobile {
    display: block;
  }

  .kg24-home-sidebar__inner,
  .kg24-sticky-column {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .kg24-home-main .kg24-home-sidebar {
    align-self: stretch;
    height: auto;
  }

  .kg24-home-sidebar--page {
    align-self: stretch;
    height: auto;
    min-height: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1239px) {
  .kg24-desktop-header .kg24-shell,
  .kg24-sticky-header .kg24-shell,
  .kg24-desktop-header__grid {
    overflow: visible;
  }

  .kg24-desktop-header__logo::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: var(--kg24-accent);
    pointer-events: none;
  }

  .kg24-logo--desktop {
    gap: 10px;
    padding: 8px 10px;
  }

  .kg24-logo--desktop img {
    height: 40px;
    max-width: none;
    max-height: 40px;
  }

  .kg24-logo__text {
    font-size: 22px;
  }
}

@media (max-width: 1140px) {
  :root {
    --kg24-container: 1140px;
    --kg24-wide-container: 1140px;
    --kg24-gutter: 20px;
  }

  .kg24-menu--primary {
    gap: 18px;
  }
}

@media (min-width: 1019px) {
  .kg24-home-mid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kg24-home-columns {
    grid-column: 1 / span 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kg24-home-rail {
    grid-column: 3;
    align-self: stretch;
    position: relative;
    top: auto;
  }

  .kg24-home-rail__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 1018px) {
  .kg24-menu--primary {
    gap: 12px;
  }

  .kg24-card--hero .kg24-card__title {
    font-size: 22px;
  }

  .kg24-page-title,
  .kg24-archive-title {
    font-size: 36px;
  }

  .kg24-home-columns {
    grid-template-columns: 1fr;
  }

  .kg24-home-rail {
    order: -1;
  }

  .kg24-column-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
  }

  .kg24-home-column .kg24-card--grid .kg24-card__title {
    font-size: 16px;
  }

  .kg24-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .kg24-hero-grid > .kg24-card--featured,
  .kg24-hero-grid > .kg24-card--teaser {
    grid-column: auto;
    grid-row: auto;
  }

  .kg24-card--featured,
  .kg24-card--teaser {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .kg24-card--featured .kg24-post-category {
    display: none;
  }

  .kg24-card--featured .kg24-card__body,
  .kg24-card--teaser .kg24-card__body {
    padding: 12px 0 0;
  }

  .kg24-card--featured .kg24-card__title,
  .kg24-card--teaser .kg24-card__title {
    font-size: 16px;
    line-height: 1.25;
  }

  .kg24-card--featured .kg24-card__date,
  .kg24-card--teaser .kg24-card__date {
    margin-top: 6px;
  }
}

@media (max-width: 767px) {
  .kg24-shell,
  .kg24-shell--wide {
    width: min(100% - 40px, 100%);
  }

  .kg24-content-layout,
  .kg24-archive-layout,
  .kg24-single-layout,
  .kg24-generic-section {
    padding-top: 24px;
  }

  .kg24-home-sidebar {
    padding-top: 0;
    order: 3;
  }

  .kg24-home-sidebar__inner > .kg24-sidebar-feed > .kg24-card--text:first-child {
    padding-top: 0;
  }

  .kg24-home-content {
    display: contents;
  }

  .kg24-home-layout,
  .kg24-home-mid {
    gap: 14px;
  }

  .kg24-home-sidebar .kg24-sidebar-feed {
    gap: 8px;
  }

  .kg24-hero-grid {
    gap: 8px;
  }

  .kg24-home-primary {
    order: 1;
    padding-top: 0;
  }

  .kg24-home-mid {
    order: 4;
  }

  .kg24-section--interest {
    order: 5;
  }

  .kg24-home-layout > .kg24-section:not(.kg24-home-primary):not(.kg24-home-mid):not(.kg24-section--interest):not(.kg24-fx-remark-section) {
    order: 6;
  }

  .kg24-home-columns,
  .kg24-interest-grid,
  .kg24-latest-grid,
  .kg24-post-grid--archive,
  .kg24-related-grid {
    grid-template-columns: 1fr;
  }

  .kg24-card--list {
    grid-template-columns: 1fr;
  }

  .kg24-page-title,
  .kg24-archive-title {
    font-size: 24px;
  }

  .kg24-entry-title {
    font-size: 24px;
  }

  .kg24-reactions {
    gap: 12px;
  }

  .kg24-reactions__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kg24-reactions__btn {
    min-height: 74px;
    border-radius: 16px;
  }

  .kg24-cform {
    grid-template-columns: 1fr;
  }

  .kg24-comments__list .children {
    padding-left: 16px;
  }

  .kg24-single-content {
    font-size: 16px;
  }

  .kg24-footer__main {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .kg24-footer-logo {
    align-self: flex-start;
  }

  .kg24-footer__navs {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .kg24-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .kg24-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

.kg24-ad {
  display: none;
  margin: 24px 0;
  text-align: center;
  clear: both;
}

.kg24-ad.is-loaded {
  display: block;
}

.kg24-ad__label {
  display: none;
  margin-bottom: 8px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kg24-ad.is-loaded .kg24-ad__label {
  display: block;
}

.kg24-ad__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.kg24-ad.is-loaded .kg24-ad__inner {
  min-height: 90px;
}

.kg24-ad__inner > div,
.kg24-ad__inner iframe {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.kg24-ad--header {
  margin: 0 auto;
  padding: 16px 0 0;
}

.kg24-ad--after-content,
.kg24-ad--before-comments,
.kg24-ad--after-comments {
  margin: 28px 0;
}

.kg24-ad--sidebar {
  margin: 24px 0 8px;
}

.kg24-home-rail .kg24-ad--sidebar,
.kg24-home-sidebar .kg24-ad--sidebar,
.kg24-sidebar .kg24-ad--sidebar {
  margin-top: 8px;
  margin-bottom: 8px;
}

.kg24-section--ad {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .kg24-ad {
    margin: 20px 0;
  }

  .kg24-ad__inner {
    min-height: 50px;
  }
}

/* ——— Article tables ——— */
.kg24-single-content .kg24-table-wrap,
.entry-content .kg24-table-wrap {
  margin: 1.5em 0;
  border: 1px solid var(--kg24-border-strong);
  border-radius: 8px;
  background: var(--kg24-surface);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.kg24-single-content .kg24-table-size,
.entry-content .kg24-table-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--kg24-border);
  background: var(--kg24-hover-bg);
  border-radius: 7px 7px 0 0;
}

.kg24-single-content .kg24-table-size__label,
.entry-content .kg24-table-size__label {
  color: var(--kg24-muted);
  font-family: var(--kg24-font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kg24-single-content .kg24-table-size__control,
.entry-content .kg24-table-size__control {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--kg24-border-strong);
  border-radius: 999px;
  background: var(--kg24-surface);
}

.kg24-single-content .kg24-table-size__btn,
.entry-content .kg24-table-size__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--kg24-text);
  font-family: var(--kg24-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.kg24-single-content .kg24-table-size__btn:hover:not(:disabled),
.entry-content .kg24-table-size__btn:hover:not(:disabled) {
  background: var(--kg24-accent-soft);
  color: var(--kg24-accent);
}

.kg24-single-content .kg24-table-size__btn:focus-visible,
.entry-content .kg24-table-size__btn:focus-visible {
  outline: 2px solid var(--kg24-accent);
  outline-offset: -2px;
}

.kg24-single-content .kg24-table-size__btn:disabled,
.entry-content .kg24-table-size__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.kg24-single-content .kg24-table-size__value,
.entry-content .kg24-table-size__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 0 4px;
  border-left: 1px solid var(--kg24-border);
  border-right: 1px solid var(--kg24-border);
  background: var(--kg24-surface-alt);
  color: var(--kg24-text);
  font-family: var(--kg24-font-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.kg24-single-content .kg24-table-scroll,
.entry-content .kg24-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.kg24-single-content table,
.entry-content table,
.kg24-single-content .kg24-table,
.entry-content .kg24-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--kg24-table-fs, 1em);
  line-height: 1.45;
  color: var(--kg24-text);
  background: var(--kg24-surface);
}

/* Fallback before tables.js wraps/enhances the markup */
.kg24-single-content table:not(.kg24-table),
.entry-content table:not(.kg24-table) {
  margin: 1.5em 0;
  border: 1px solid var(--kg24-border-strong);
  border-radius: 8px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.kg24-single-content .kg24-table-wrap .kg24-table,
.entry-content .kg24-table-wrap .kg24-table {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.kg24-single-content table caption,
.entry-content table caption {
  caption-side: top;
  padding: 12px 16px 0;
  text-align: left;
  font-family: var(--kg24-font-head);
  font-size: 1em;
  font-weight: 500;
  color: var(--kg24-text);
}

.kg24-single-content thead th,
.entry-content thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--kg24-accent-hover);
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-head);
  font-size: 1em;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.kg24-single-content thead th:not(:last-child),
.entry-content thead th:not(:last-child),
.kg24-single-content tbody th:not(:last-child),
.entry-content tbody th:not(:last-child),
.kg24-single-content .kg24-table th:not(:last-child),
.entry-content .kg24-table th:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.kg24-single-content tbody td:not(:last-child),
.entry-content tbody td:not(:last-child),
.kg24-single-content .kg24-table td:not(:last-child),
.entry-content .kg24-table td:not(:last-child) {
  border-right: 1px solid var(--kg24-border-strong);
}

.kg24-single-content thead th[align="right"],
.entry-content thead th[align="right"],
.kg24-single-content thead th.is-num,
.entry-content thead th.is-num {
  text-align: right;
}

.kg24-single-content tbody th,
.entry-content tbody th {
  width: 38%;
  padding: 11px 14px;
  border-bottom: 1px solid var(--kg24-accent-hover);
  background: var(--kg24-accent);
  color: #fff;
  font-family: var(--kg24-font-body);
  font-size: 1em;
  font-weight: 500;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: break-word;
}

.kg24-single-content .kg24-table th.is-sortable,
.entry-content .kg24-table th.is-sortable {
  cursor: pointer;
  user-select: none;
}

.kg24-single-content .kg24-table th.is-sortable:hover,
.entry-content .kg24-table th.is-sortable:hover {
  background: var(--kg24-accent-hover);
}

.kg24-single-content .kg24-table th.is-sortable:focus-visible,
.entry-content .kg24-table th.is-sortable:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.kg24-single-content .kg24-table th.is-sortable::after,
.entry-content .kg24-table th.is-sortable::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.45em;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  opacity: 0.7;
}

.kg24-single-content .kg24-table th.is-sorted-asc::after,
.entry-content .kg24-table th.is-sorted-asc::after {
  border-top: 0;
  border-bottom: 5px solid #fff;
  opacity: 1;
}

.kg24-single-content .kg24-table th.is-sorted-desc::after,
.entry-content .kg24-table th.is-sorted-desc::after {
  border-top: 5px solid #fff;
  opacity: 1;
}

.kg24-single-content td,
.entry-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--kg24-border);
  vertical-align: top;
  text-align: left;
}

.kg24-single-content td[align="right"],
.entry-content td[align="right"],
.kg24-single-content td.is-num,
.entry-content td.is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kg24-single-content tbody tr:last-child td,
.entry-content tbody tr:last-child td,
.kg24-single-content tbody tr:last-child th,
.entry-content tbody tr:last-child th {
  border-bottom: 0;
}

.kg24-single-content tbody tr:nth-child(even) td,
.entry-content tbody tr:nth-child(even) td {
  background: var(--kg24-surface-alt);
}

.kg24-single-content tbody tr:hover td,
.entry-content tbody tr:hover td {
  background: var(--kg24-accent-soft);
}

.kg24-single-content tbody tr:hover th,
.entry-content tbody tr:hover th {
  background: var(--kg24-accent-hover);
}

.kg24-single-content .kg24-table-hint,
.entry-content .kg24-table-hint {
  display: none;
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--kg24-border);
  background: var(--kg24-surface-alt);
  color: var(--kg24-muted);
  font-size: 12px;
  line-height: 1.35;
  border-radius: 0 0 7px 7px;
}

.kg24-single-content .kg24-table-wrap:not(:has(.kg24-table-hint)) > .kg24-table-scroll:last-child .kg24-table tbody tr:last-child > :first-child,
.entry-content .kg24-table-wrap:not(:has(.kg24-table-hint)) > .kg24-table-scroll:last-child .kg24-table tbody tr:last-child > :first-child {
  border-bottom-left-radius: 7px;
}

.kg24-single-content .kg24-table-wrap:not(:has(.kg24-table-hint)) > .kg24-table-scroll:last-child .kg24-table tbody tr:last-child > :last-child,
.entry-content .kg24-table-wrap:not(:has(.kg24-table-hint)) > .kg24-table-scroll:last-child .kg24-table tbody tr:last-child > :last-child {
  border-bottom-right-radius: 7px;
}

.kg24-single-content .kg24-table-wrap--kv > .kg24-table-scroll .kg24-table tr:first-child > :first-child,
.entry-content .kg24-table-wrap--kv > .kg24-table-scroll .kg24-table tr:first-child > :first-child {
  border-top-left-radius: 7px;
}

.kg24-single-content .kg24-table-wrap--kv > .kg24-table-scroll .kg24-table tr:first-child > :last-child,
.entry-content .kg24-table-wrap--kv > .kg24-table-scroll .kg24-table tr:first-child > :last-child {
  border-top-right-radius: 7px;
}

.kg24-single-content .kg24-table-wrap--kv:not(:has(.kg24-table-hint)) > .kg24-table-scroll .kg24-table tr:last-child > :first-child,
.entry-content .kg24-table-wrap--kv:not(:has(.kg24-table-hint)) > .kg24-table-scroll .kg24-table tr:last-child > :first-child {
  border-bottom-left-radius: 7px;
}

.kg24-single-content .kg24-table-wrap--kv:not(:has(.kg24-table-hint)) > .kg24-table-scroll .kg24-table tr:last-child > :last-child,
.entry-content .kg24-table-wrap--kv:not(:has(.kg24-table-hint)) > .kg24-table-scroll .kg24-table tr:last-child > :last-child {
  border-bottom-right-radius: 7px;
}

@media (max-width: 767px) {
  .kg24-single-content .kg24-table-wrap,
  .entry-content .kg24-table-wrap {
    border-radius: 10px;
  }

  .kg24-single-content .kg24-table-hint,
  .entry-content .kg24-table-hint {
    display: block;
  }

  .kg24-single-content .kg24-table.is-cards thead,
  .entry-content .kg24-table.is-cards thead {
    display: block;
  }

  .kg24-single-content .kg24-table.is-cards thead tr,
  .entry-content .kg24-table.is-cards thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: var(--kg24-accent);
    border-bottom: 1px solid var(--kg24-accent-hover);
  }

  .kg24-single-content .kg24-table.is-cards thead th,
  .entry-content .kg24-table.is-cards thead th {
    display: inline-flex;
    align-items: flex-start;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: var(--kg24-accent-hover);
    color: #fff;
    white-space: normal;
    line-height: 1.3;
  }

  .kg24-single-content .kg24-table.is-kv,
  .kg24-single-content .kg24-table.is-kv tbody,
  .entry-content .kg24-table.is-kv,
  .entry-content .kg24-table.is-kv tbody {
    display: block;
    width: 100%;
  }

  .kg24-single-content .kg24-table.is-kv tr,
  .entry-content .kg24-table.is-kv tr {
    display: block;
  }

  .kg24-single-content .kg24-table.is-kv th,
  .entry-content .kg24-table.is-kv th {
    display: block;
    width: auto;
    border-bottom: 0;
    border-right: 0;
  }

  .kg24-single-content .kg24-table.is-kv td,
  .entry-content .kg24-table.is-kv td {
    display: block;
    width: auto;
    padding-top: 0;
  }

  .kg24-single-content .kg24-table.is-cards,
  .kg24-single-content .kg24-table.is-cards tbody,
  .entry-content .kg24-table.is-cards,
  .entry-content .kg24-table.is-cards tbody {
    display: block;
    width: 100%;
  }

  .kg24-single-content .kg24-table.is-cards tbody tr,
  .entry-content .kg24-table.is-cards tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--kg24-border);
    background: var(--kg24-surface);
  }

  .kg24-single-content .kg24-table.is-cards tbody tr:nth-child(even),
  .entry-content .kg24-table.is-cards tbody tr:nth-child(even) {
    background: var(--kg24-surface-alt);
  }

  .kg24-single-content .kg24-table.is-cards tbody tr:last-child,
  .entry-content .kg24-table.is-cards tbody tr:last-child {
    border-bottom: 0;
  }

  .kg24-single-content .kg24-table.is-cards td,
  .entry-content .kg24-table.is-cards td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 36%) minmax(0, 1fr);
    gap: 8px 12px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 5px 0;
    border: 0;
    border-right: 0;
    background: transparent !important;
    text-align: left !important;
    white-space: normal;
  }

  .kg24-single-content .kg24-table.is-cards td::before,
  .entry-content .kg24-table.is-cards td::before {
    content: attr(data-label);
    color: var(--kg24-muted);
    font-family: var(--kg24-font-head);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .kg24-single-content .kg24-table.is-cards td.is-num,
  .entry-content .kg24-table.is-cards td.is-num {
    font-variant-numeric: tabular-nums;
  }
}

