/* ═══════════════════════════════════════════════════════
 HW.UCOZ.NET — Radical Redesign v3 2026
 Magazine · Dark/Light · Reactions · Bookmarks
 ═══════════════════════════════════════════════════════ */

/* ── Accessibility & Performance ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* ── Animations & Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hw-animate {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--c-accent, #0071e3);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--c-accent, #0071e3);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ── CSS Custom Properties — Light (default) ── */
:root {
  --c-bg: #f5f5f7;
  --c-surface: #ffffff;
  --c-surface-hover: #fafafa;
  --c-border: #e8e8ed;
  --c-text: #1d1d1f;
  --c-text-secondary: #6e6e73;
  --c-text-muted: #a1a1a6;
  --c-accent: #0071e3;
  --c-accent-hover: #0077ed;
  --c-accent-light: rgba(0, 113, 227, 0.06);
  --c-accent-glow: rgba(0, 113, 227, 0.15);
  --c-gradient: linear-gradient(135deg, #0071e3, #34aadc);
  --c-gradient-dark: linear-gradient(180deg, #1d1d1f 0%, #2d2d30 100%);
  --c-success: #30d158;
  --c-warning: #ff9f0a;
  --c-danger: #ff3b30;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  --font-heading:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  --wrapper-w: 1240px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 56px;
}

/* ── Dark Theme — auto (prefers-color-scheme) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #0d0d0d;
    --c-surface: #1a1a1c;
    --c-surface-hover: #222224;
    --c-border: #2d2d30;
    --c-text: #f5f5f7;
    --c-text-secondary: #a1a1a6;
    --c-text-muted: #6e6e73;
    --c-accent: #2997ff;
    --c-accent-hover: #40a9ff;
    --c-accent-light: rgba(41, 151, 255, 0.1);
    --c-accent-glow: rgba(41, 151, 255, 0.2);
    --c-gradient: linear-gradient(135deg, #2997ff, #5ac8fa);
    --c-gradient-dark: linear-gradient(180deg, #0d0d0d 0%, #1a1a1c 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

/* ── Dark Theme — manual toggle ── */
[data-theme="dark"] {
  --c-bg: #0d0d0d;
  --c-surface: #1a1a1c;
  --c-surface-hover: #222224;
  --c-border: #2d2d30;
  --c-text: #f5f5f7;
  --c-text-secondary: #a1a1a6;
  --c-text-muted: #6e6e73;
  --c-accent: #2997ff;
  --c-accent-hover: #40a9ff;
  --c-accent-light: rgba(41, 151, 255, 0.1);
  --c-accent-glow: rgba(41, 151, 255, 0.2);
  --c-gradient: linear-gradient(135deg, #2997ff, #5ac8fa);
  --c-gradient-dark: linear-gradient(180deg, #0d0d0d 0%, #1a1a1c 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Reset & Base ── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

footer {
  flex: 0 0 auto;
}

#casing {
  flex: 1 0 auto;
  padding: 48px 0;
}

table {
  font-size: 100%;
}

form,
hr,
img {
  border: 0;
  margin: 0;
}

.module-video img,
embed,
iframe,
object {
  max-width: 100%;
}

.myWinCont img {
  max-width: initial;
}

a,
input {
  outline: 0;
}

a {
  font-size: inherit;
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-accent-hover);
  text-decoration: none;
}

.myWinCont input.commFl {
  width: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0.3em 0;
  padding: 0;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1,
h1 a {
  font-size: 2rem;
}

h2,
h2 a {
  font-size: 1.5rem;
}

h3,
h3 a {
  font-size: 1.25rem;
}

h4,
h4 a {
  font-size: 1.1rem;
}

h5,
h5 a {
  font-size: 1rem;
}

h6,
h6 a {
  font-size: 0.875rem;
}

ul {
  list-style: none;
  padding: 0;
}

hr {
  padding: 0;
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--c-border);
}

input[type="checkbox"] {
  vertical-align: middle;
}

.clearfix::after,
.clearfix::before {
  content: "";
  display: table;
}

.clearfix::after,
hr {
  clear: both;
}

.product-card .product-tail {
  background-color: var(--c-surface);
}

.eBlock+br {
  display: none;
}

/* ── Wrapper ── */
.wrapper {
  max-width: var(--wrapper-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header & Navigation ── */

#header {
  background: rgba(29, 29, 31, 0.97);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

#header .wrapper,
#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

#site-logo {
  flex-shrink: 0;
}

#site-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.site-l {
  display: flex;
  align-items: center;
}

.site-n,
.site-n a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #f5f5f7;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.site-n a:hover {
  text-decoration: none;
  color: #fff;
}

/* Nav menu — light text on dark bg */
#catmenu {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

#catmenu .nav-head {
  display: none;
}

#catmenu li,
#catmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#catmenu li {
  display: inline-flex;
  align-items: center;
}

#catmenu li.item-parent {
  position: relative;
}

#catmenu li a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 6px 14px;
  color: rgba(245, 245, 247, 0.8);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-transform: none;
  position: relative;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

#catmenu li>a:hover,
#catmenu li>a.current-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
#catmenu ul ul {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

#catmenu li li,
#catmenu li li a {
  display: block;
  float: none;
  height: auto;
  border: 0;
}

#catmenu li li {
  text-align: left;
  padding: 0;
}

#catmenu li li a {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.7);
  border-radius: var(--radius-sm);
  background: none;
  text-transform: none;
  line-height: 1.4;
}

#catmenu li li>a:hover,
#catmenu li li>a.current-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#catmenu li li.item-parent>a::after {
  content: "\2039";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

#catmenu ul ul ul {
  right: calc(100% + 4px);
  top: 0;
  z-index: 220;
}

#catmenu li li:first-child::before {
  display: none;
}

#catmenu li li li:first-child::before {
  display: none;
}

/* ── Header Actions (search, theme, auth, burger) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  position: relative;
}

.header-actions button,
.header-actions a.hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.7);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--transition);
  padding: 0;
  font-size: 0;
}

.header-actions button:hover,
.header-actions a.hdr-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions .hdr-auth-text {
  font-size: 0.8rem;
  color: rgba(245, 245, 247, 0.7);
  padding: 6px 14px;
  width: auto;
  border-radius: var(--radius-sm);
}

/* ── Search slide (expands left from search icon) ── */
.hdr-search-field {
  display: flex;
  align-items: center;
  background: rgba(29, 29, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  z-index: 10;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  pointer-events: none;
  height: 36px;
  left: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

.search-open .hdr-search-field {
  width: min(400px, calc(100vw - 120px));
  opacity: 1;
  pointer-events: auto;
  padding: 0 12px;
  right: 100%;
  margin-right: 8px;
}

.hdr-search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f5f5f7;
  font-size: 1rem;
  font-family: var(--font-sans);
  padding: 8px 0;
  outline: none;
}

.hdr-search-field input::placeholder {
  color: rgba(245, 245, 247, 0.4);
}

.hdr-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.7);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.hdr-search-close:hover {
  color: #fff;
}

.hdr-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(245, 245, 247, 0.6);
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: color var(--transition);
}

.hdr-search-submit:hover {
  color: #fff;
}

/* ── Hamburger icon animation ── */
.burger-icon {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-open .burger-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .burger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-open .burger-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Overlay dropdown menu (slides down from header) ── */
.overlay-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 999;
  background: rgba(29, 29, 31, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: calc(var(--header-h) - 4px);
  left: auto;
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.menu-open .overlay-menu {
  max-height: 80vh;
  overflow-y: auto;
  max-height: 70vh;
  opacity: 1;
}

.overlay-menu nav,
.overlay-menu .overlay-menu-inner {
  padding: 16px 24px;
}

.overlay-menu nav a,
.overlay-menu .overlay-menu-inner a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.8);
  padding: 12px 0;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

.overlay-menu nav a:last-child,
.overlay-menu .overlay-menu-inner a:last-child {
  border-bottom: 0;
}

.overlay-menu nav a:hover,
.overlay-menu .overlay-menu-inner a:hover {
  color: #fff;
  padding-left: 8px;
}

.overlay-menu .overlay-auth {
  padding: 8px 24px 20px;
  display: flex;
  gap: 12px;
}

.overlay-auth a {
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 500;
  transition: all var(--transition);
}

.overlay-auth .btn-login {
  background: var(--c-accent);
  color: #fff;
}

.overlay-auth .btn-login:hover {
  background: var(--c-accent-hover);
}

.overlay-auth .btn-register {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.overlay-auth .btn-register:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 0;
  height: 3px;
  background: var(--c-accent);
  z-index: 99;
  transition: width 0.1s linear;
  pointer-events: none;
  transition: top 0.2s;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--c-accent-hover);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Content-visibility for off-screen performance ── */

/* ── Footer ── */

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 40px 0 32px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 3px 0;
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin: 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 8px 0 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Popup dialog (karkas popup section) ── */
.hw-popup {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  color: var(--c-text);
}

.hw-popup-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
}

.hw-popup-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-text-secondary);
}

/* ── Content-visibility for off-screen performance ── */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Admin bar offset */
body.u-admin header {
  top: 32px;
}

body.u-admin .reading-progress {
  top: calc(var(--header-h) + 32px);
}

.hp-hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hp-hero-bg::before,
.hp-hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: hp-float 20s ease-in-out infinite alternate;
}

.hp-hero-bg::before {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: var(--c-accent);
  filter: blur(140px);
  opacity: 0.15;
  animation-duration: 15s;
}

.hp-hero-bg::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: var(--c-gradient);
  animation-delay: -10s;
  filter: blur(140px);
  opacity: 0.12;
  animation-duration: 18s;
}

[data-theme="light"] .hp-hero-bg::before,
[data-theme="light"] .hp-hero-bg::after {
  opacity: 0.06;
}

@keyframes hp-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Dynamic background: 3 elements + noise (all pages) ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.1;
  animation: pg-float 18s ease-in-out infinite alternate;
}

.page-bg::before {
  width: 500px;
  height: 500px;
  top: -80px;
  right: -80px;
  background: var(--c-accent);
}

.page-bg::after {
  width: 400px;
  height: 400px;
  bottom: -120px;
  left: -60px;
  background: #5856d6;
  animation-delay: -9s;
}

/* Third element via extra div */
.page-bg-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  top: 40%;
  left: 50%;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  background: #34aadc;
  animation: pg-float 22s ease-in-out infinite alternate-reverse;
}

/* CSS noise overlay */
.page-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

[data-theme="light"] .page-bg::before,
[data-theme="light"] .page-bg::after {
  opacity: 0.04;
}

[data-theme="light"] .page-bg-orb {
  opacity: 0.03;
}

@keyframes pg-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -25px) scale(1.08);
  }

  66% {
    transform: translate(-15px, 15px) scale(0.97);
  }

  100% {
    transform: translate(20px, -10px) scale(1.03);
  }
}

/* Module-specific color variations */
body.mod-news .page-bg::before {
  background: #0071e3;
}

body.mod-blog .page-bg::before {
  background: #5856d6;
}

body.mod-blog .page-bg::after {
  background: #bf5af2;
}

/* ── HP hero bg: upgrade to 3 elements + noise ── */

/* ── GLOBAL FIXES & BACKGROUNDS ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Admin bar offset */
body.u-admin header {
  top: 32px;
}

body.u-admin .reading-progress {
  top: calc(var(--header-h) + 32px);
}

.breadcrumbs-mini {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0 20px;
}

.breadcrumbs-mini a {
  color: var(--c-text-muted);
  text-decoration: none;
}

.breadcrumbs-mini a:hover {
  color: var(--c-accent);
}

.breadcrumbs-mini .bc-sep {
  margin: 0 6px;
  opacity: 0.3;
}

.breadcrumbs-mini .bc-current {
  color: var(--c-text);
}

.hp-hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hp-hero-bg::before,
.hp-hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: hp-float 20s ease-in-out infinite alternate;
}

.hp-hero-bg::before {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -100px;
  background: var(--c-accent);
  filter: blur(140px);
  opacity: 0.15;
  animation-duration: 15s;
}

.hp-hero-bg::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: var(--c-gradient);
  animation-delay: -10s;
  filter: blur(140px);
  opacity: 0.12;
  animation-duration: 18s;
}

[data-theme="light"] .hp-hero-bg::before,
[data-theme="light"] .hp-hero-bg::after {
  opacity: 0.06;
}

@keyframes hp-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -30px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Overlay menu: smooth CSS transition ── */
.overlay-menu nav a {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    color 0.2s;
}

.menu-open .overlay-menu nav a {
  opacity: 1;
  transform: translateY(0);
}

.menu-open .overlay-menu nav a:nth-child(1) {
  transition-delay: 0.05s;
}

.menu-open .overlay-menu nav a:nth-child(2) {
  transition-delay: 0.1s;
}

.menu-open .overlay-menu nav a:nth-child(3) {
  transition-delay: 0.15s;
}

.menu-open .overlay-menu nav a:nth-child(4) {
  transition-delay: 0.2s;
}

.menu-open .overlay-menu nav a:nth-child(5) {
  transition-delay: 0.25s;
}

.menu-open .overlay-menu nav a:nth-child(6) {
  transition-delay: 0.3s;
}

/* ── Auth button fix ── */
.hdr-auth-text {
  font-size: 0.8rem !important;
  color: rgba(245, 245, 247, 0.8) !important;
}

.hdr-auth-text:hover {
  color: #fff !important;
}

/* ── MAIN LAYOUT — Full width ── */
#casing>.wrapper {
  display: grid;
  grid-template-columns: 1fr;
}

#content {
  float: none;
  width: auto;
  min-width: 0;
}

#content.wide-page {
  grid-column: 1 / -1;
  float: none;
  width: auto;
}

#content fieldset {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 20px;
  margin: 10px 0;
  border-radius: var(--radius-md);
}

#content fieldset legend {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 5px 10px;
}

#content .calTable {
  margin: 0 0 20px;
}

#content .calTable td {
  padding: 12px;
}

/* ── Pagination ── */
.catPages1,
.pagesBlockuz2,
.plist {
  display: block;
  padding: 10px 0 0;
}

#pagesBlock1 a:hover,
#pagesBlock1 b,
#pagesBlock2 a:hover,
#pagesBlock2 b,
.pagesBlockuz a:hover,
.pagesBlockuz b,
.pagesBlockuz1 a:hover,
.pagesBlockuz1 b,
.pagesBlockuz2 a:hover,
.pagesBlockuz2 b,
.pagesBottom a:hover,
.pagesBottom b,
.plist a:hover,
.plist b {
  display: inline-block;
  min-width: 7px;
  padding: 6px 12px;
  font-weight: 500;
  color: #fff;
  background: var(--c-accent);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#pagesBlock1 a,
#pagesBlock2 a,
.pagesBlockuz a,
.pagesBlockuz1 a,
.pagesBlockuz2 a,
.pagesBottom a,
.plist a {
  display: inline-block;
  min-width: 7px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--c-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

#pagesBlock1 a:hover,
#pagesBlock2 a:hover,
.pagesBlockuz1 a:hover,
.pagesBlockuz2 a:hover,
.plist a:hover {
  text-decoration: none;
  background: var(--c-accent-light);
  color: var(--c-accent);
}



/* ── FOOTER — Dark minimal ── */
#footer {
  padding: 48px 0 32px;
  background: var(--c-gradient-dark);
  color: rgba(255, 255, 255, 0.5);
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.foot-l,
.foot-r {
  float: left;
  width: 60%;
  padding: 0 15px;
}

.foot-r {
  float: right;
  width: 40%;
  text-align: right;
}

#soc-box span {
  display: inline-block;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 7px 0 5px;
  height: 16px;
  line-height: 16px;
}

#soc-box span:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 7px;
}

#soc-box a {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url(/.s/t/1715/soc.png);
  opacity: 0.7;
  transition: opacity var(--transition);
}

#soc-box a:hover {
  opacity: 1;
}

#soc-box a.soc-tw {
  background-position: 0 0;
}

#soc-box a.soc-tw:hover {
  background-position: -16px 0;
}

#soc-box a.soc-ig {
  background-position: 0 -48px;
}

#soc-box a.soc-ig:hover {
  background-position: -16px -48px;
}

#soc-box a.soc-fc {
  background-position: 0 -16px;
}

#soc-box a.soc-fc:hover {
  background-position: -16px -16px;
}

#soc-box a.soc-vi {
  background-position: 0 -32px;
}

#soc-box a.soc-vi:hover {
  background-position: -16px -32px;
}

#soc-box a.soc-vk {
  background-position: 0 -64px;
}

#soc-box a.soc-vk:hover {
  background-position: -16px -64px;
}

#uNetRegF table table {
  clear: both;
}

.gTable {
  margin: 10px 0;
  padding: 20px;
  border-spacing: 0;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}

.gTableTop {
  color: var(--c-text);
  padding: 0 0 20px;
  border-bottom: 1px solid var(--c-border);
}

.gTableTop,
.gTableTop a.catLink {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.gTableTop a:hover {
  color: var(--c-accent) !important;
  text-decoration: none !important;
}

.gTableSubTop {
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.gTableBody,
.gTableBody1,
.gTableBottom,
.gTableError,
.threadsType {
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.gTableLeft,
.gTableRight,
.newPollBlock,
.newThreadBlock,
.threadIcoTd {
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.posttdMessage {
  border-bottom: 1px solid #ddd;
  padding: 10px 0 12px;
  line-height: 18px;
}

.gTableSubTop:before {
  content: "";
  position: absolute;
  width: 1px;
  height: 60%;
  top: 20%;
  left: 0;
}

.gTableSubTop:first-child:before {
  display: none;
}

a.forum,
a.threadLink,
a.threadPinnedLink {
  margin: 0 0 5px;
  display: inline-block;
  font-size: 15px;
}

a.forumLastPostLink {
  color: #888 !important;
}

.gTableLeft {
  font-weight: 700;
}

.gTableError {
  color: red;
}

a.catLink {
  text-decoration: none;
}

a.catLink:hover {
  text-decoration: underline;
}

.archivedForum,
.lastPostGuest,
.lastPostUser,
.threadAuthor {
  font-weight: 700;
}

.archivedForum {
  color: red !important;
}

.threadFrmLink {
  color: #999;
}

a.forumBarA,
a.forumBarA:hover,
a.switchBack,
a.switchDigit,
a.switchNext {
  text-decoration: none;
}

.forumBarKw {
  font-weight: 400;
}

.pagesInfo,
.switch,
.switchActive {
  color: #fff;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.pagesInfo,
.switch {
  background: var(--c-text);
  padding: 5px 7px;
}

.switchActive {
  padding: 5px 8px;
  font-size: 11px;
  background: var(--c-accent);
}

a.switchBack:hover,
a.switchDigit:hover,
a.switchNext:hover {
  text-decoration: underline;
}

.threadDescr {
  color: #999;
}

.threadNoticeLink,
.threadsType {
  font-weight: 700;
}

.threadsType {
  height: 20px;
}

.threadsDetails {
  height: 20px;
  font-size: 12px;
  padding: 7px 10px;
}

.forumOnlineBar {
  height: 20px;
  color: #999;
  padding: 0 10px;
}

a.threadPinnedLink {
  color: #f63333 !important;
}

.postpSwithces,
.sidebox li.item-parent.over>ul,
.sidebox li.parent-li.over>ul {
  display: block;
}

.thDescr,
.v-entry h4.ve-title {
  font-weight: 400;
}

.forumNamesBar {
  padding: 3px 0;
}

.postRankName {
  margin-top: 5px;
}

.postRankIco {
  margin-bottom: 5px;
}

.reputation {
  margin-top: 5px;
}

.signatureHr {
  margin-top: 20px;
}

.pollTotal {
  text-align: center;
}

.pollSubmitBut {
  width: 140px;
  font-size: 8pt;
}

.pollreSultsBut {
  font-size: 8pt;
  width: 180px;
  text-align: center;
}

.pollSubmit {
  font-weight: 700;
}

.pollEnd {
  text-align: center;
  height: 30px;
}

.codeMessage,
.quoteMessage,
.uSpoilerText {
  font-size: 0.8rem;
  padding: 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border) !important;
  border-radius: var(--radius-sm);
}

.signatureView {
  display: block;
  font-size: 0.75rem;
  line-height: 14px;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--c-accent);
}

.edited {
  padding-top: 30px;
  font-size: 8pt;
  text-align: right;
  color: gray;
}

.editedBy {
  font-weight: 700;
  font-size: 8pt;
}

.statusBlock {
  padding-top: 3px;
}

.statusOnline {
  color: var(--c-success);
}

.statusOffline {
  color: var(--c-danger);
}

.newPollItem,
.newThreadItem {
  padding: 0 0 8px;
  background: url(/.s/t/1715/12.gif) no-repeat 0 4px;
}

.pollHelp {
  font-weight: 400;
  font-size: 8pt;
  padding-top: 3px;
}

#catmenu.nav-mobi li a.current-item:hover:after,
#catmenu.nav-mobi li a.current-item:hover:before,
#catmenu.nav-mobi li a:after,
#catmenu.nav-mobi li a:before {
  display: none !important;
}

.postIpLink,
.thread_subscribe {
  text-decoration: none;
}

.thread_subscribe:hover {
  text-decoration: underline;
}

.postip,
.postip a {
  font-size: 11px;
  color: #999;
}

.UhideBlockL {
  background: #f5f5f5;
  border: 1px solid #ddd !important;
  color: #888;
  padding: 10px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.UhideBlockL a {
  color: #888;
}

#casing input[type="password"],
#casing input[type="text"] {
  margin: 0 0 1px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

#casing input[type="password"]:focus,
#casing input[type="text"]:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-light);
}

#casing textarea {
  margin: 0 0 1px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  height: auto;
  line-height: normal;
  padding: 6px 4px;
  resize: none;
}

#casing input[type="file"],
#casing input[type="password"],
#casing input[type="text"],
#casing select,
#casing textarea {
  text-align: left;
  background: var(--c-surface);
  color: var(--c-text);
  vertical-align: middle;
  font-family: var(--font-sans);
}

#casing input[type="file"] {
  margin: 0 0 1px;
  padding: 6px 4px;
  background: 0;
  border: 0;
}

#casing select {
  border: 1px solid #e6e6e6;
  padding: 6px 30px 6px 10px;
  max-width: 300px;
  cursor: pointer;
  margin: 3px 2px 3px 0;
}

#casing select:not([multiple]) {
  max-height: 29px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff url(/.s/t/1715/arrow-down.png);
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) 50%;
}

#casing select:focus {
  outline: 0;
}

select::-ms-expand {
  display: none;
}

#casing button,
#casing input[type="button"],
#casing input[type="reset"],
#casing input[type="submit"],
#photoModalWrap .button {
  width: auto !important;
  cursor: pointer;
  margin: 0 0 1px 1px;
  padding: 10px 20px;
  font-weight: 600 !important;
  background: var(--c-accent);
  font-size: 0.85rem;
  color: #fff;
  border: 0;
  text-transform: none;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-family: var(--font-sans);
}

#casing button:hover,
#casing input[type="button"]:hover,
#casing input[type="reset"]:hover,
#casing input[type="submit"]:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

#catmenu.nav-mobi ul li li li a {
  background: var(--c-accent);
}

#casing .sidebox .schBtn input {
  width: 34px !important;
}

#casing .allUsersBtn,
#casing .uSearchFlSbm,
#iplus input {
  padding-left: 7px !important;
  padding-right: 7px !important;
  font-size: 10px !important;
}

#doSmbBt,
.u-combobut {
  display: none;
}

#casing .u-combo,
#casing .u-comboeditcell {
  border: 0 !important;
  background: 0 0 !important;
}

#casing .u-combolist,
#content .filterBlock,
#content .xw-mc {
  padding: 5px 3px;
  font-size: 12px !important;
  color: #6c6c6c !important;
  background: #fff;
  border: 1px solid #e6e6e6;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

#catmenu.nav-mobi li li:before,
#content .u-menuvsep,
#content .xw-bl,
#content .xw-tl,
.mcBBcodesBtn img,
.mcManageBtn img,
.mcReloadBtn img {
  display: none;
}

#content .xw-ml,
#content .xw-mr,
.sidebox .gTable {
  margin: 0;
  padding: 0;
  background: 0;
}

.sidebox .gTable {
  border: 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.sidebox .gTableSubTop,
.sidebox .gTableTop {
  background: 0;
  font-weight: 400;
  height: auto;
  line-height: normal;
  overflow: visible;
  font-size: 13px !important;
  text-transform: none;
  text-shadow: none;
  font-family: "Merriweather", serif;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  display: block;
  color: var(--c-text-secondary);
  margin: 0 0 1px;
  padding: 5px 0 !important;
  text-decoration: none;
  border: 0;
}

.sidebox .gTableSubTop:before,
.sidebox .gTableTop:before {
  width: auto;
  background: 0;
  position: static;
  content: "\2022";
  font-size: 12px;
  font-family: var(--font-sans);
  padding: 0 5px 0 0;
  color: var(--c-accent);
}

.sidebox .gTable ul {
  padding: 0 0 0 20px;
  margin: 0;
  width: auto;
}

.sidebox .gTable ul li a {
  background: 0;
  border: 0;
  padding: 5px 0;
}

.sidebox .forumDescr {
  padding: 0 2px;
}

.sidebox .gTable ul li a:hover,
.sidebox .gTableSubTop:hover,
.sidebox .gTableTop:hover {
  color: var(--c-accent);
  padding: 5px 0 !important;
}

.manTable td input#id_file_add {
  max-width: none;
}

input[id$="basket"] {
  text-align: center !important;
}

#catmenu.nav-mobi,
#catmenu.nav-mobi ul {
  width: auto;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 0;
}

#catmenu.nav-mobi {
  height: auto;
  float: none;
  padding: 0;
  text-align: left;
  max-width: unset;
  margin: 0 auto;
}

#catmenu.nav-mobi .nav-head {
  display: none;
  cursor: pointer;
  text-transform: none;
  font-size: 0.9rem;
  text-align: left;
  margin: 0 auto;
  padding: 14px 20px;
  background: rgba(29, 29, 31, 0.97);
  color: #f5f5f7;
  min-height: 48px;
  border-radius: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.01em;
}

#catmenu.nav-mobi ul li a,
.nav-head a {
  color: #fff;
  text-decoration: none;
}

.nav-head div.icon {
  float: right;
  width: 40px;
  margin: 2px 0 0;
}

.nav-head div.icon span {
  display: block;
  background: #fff;
  height: 4px;
  margin: 0 0 2px;
}

.nav-head.active a,
.nav-head.over a,
.nav-head:hover a {
  color: #fff;
}

.nav-head.active div.icon span,
.nav-head.over div.icon span,
.nav-head:hover div.icon span {
  background: #fff;
}

#catmenu.nav-mobi,
#catmenu.nav-mobi li a.current-item {
  background: rgba(29, 29, 31, 0.97);
}

#catmenu.nav-mobi ul,
#catmenu.nav-mobi ul li {
  height: auto;
  float: none;
  position: relative;
  padding: 0;
}

#catmenu.nav-mobi ul {
  margin: 0;
  overflow: visible;
  background: 0;
  display: none;
}

#catmenu.nav-mobi ul ul {
  background: #fff;
  padding: 0;
  top: 0;
  left: 0;
  z-index: 999;
  width: auto;
  margin: 0 !important;
}

#catmenu.nav-mobi ul ul ul {
  margin: 0 !important;
  border: 0;
}

#catmenu.nav-mobi ul li {
  text-align: left;
  display: block;
  border: 0 !important;
}

#catmenu.nav-mobi ul li.item-parent {
  position: relative !important;
}

#catmenu.nav-mobi ul li li {
  padding: 0;
}

#catmenu.nav-mobi ul li.over {
  z-index: 998;
}

#catmenu.nav-mobi ul li a {
  font-size: 0.8rem;
  display: block;
  border: 0;
  height: auto;
  width: auto !important;
  line-height: normal;
  float: none;
  padding: 0 !important;
  background: rgba(29, 29, 31, 0.95);
  border-radius: 0;
  color: rgba(245, 245, 247, 0.8);
}

#catmenu.nav-mobi ul li:not(:first-child) a {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#catmenu.nav-mobi ul li.over>a,
#catmenu.nav-mobi ul li.over>em {
  color: #fff;
}

#catmenu.nav-mobi li.item-parent a {
  background-image: none !important;
}

#catmenu.nav-mobi ul li li a {
  color: rgba(245, 245, 247, 0.7);
  background: rgba(29, 29, 31, 0.98);
}

#catmenu.nav-mobi ul li a:hover {
  text-decoration: none;
  color: #fff;
}

#catmenu.nav-mobi ul li a span {
  text-align: left;
  display: block;
  cursor: pointer;
  padding: 12px 20px;
}

#catmenu.nav-mobi ul li ul a span {
  white-space: normal;
}

#catmenu.nav-mobi ul li i {
  position: absolute;
  display: block;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 247, 0.6);
  top: 1px;
  right: 0;
  width: 40px;
  line-height: 40px;
  height: 40px;
  text-align: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

#catmenu.nav-mobi ul li i:hover,
#catmenu.nav-mobi ul>li>a:hover {
  cursor: pointer;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#catmenu.nav-mobi ul>li.active>a>span,
#catmenu.nav-mobi ul>li.over>a>span,
#catmenu.nav-mobi ul>li>a:hover>span {
  border: 0;
}

form[name="mform"] table td:first-child:not([align="center"]) {
  text-align: right;
  font-size: 13px;
  padding-top: 3px;
  padding-right: 8px;
}

#casing input[type="button"].u-comboedit {
  background: url(/.s/t/1715/arrow-down-white.png) no-repeat #1a1b1d;
  background-position: 96% 50%;
}

#addPhtFrm #uCatsMenu7,
td.u-comboeditcell input[id^="catSelector"].x-selectable {
  max-width: 360px;
}

[id^="catSelector"] {
  padding-right: 40px !important;
  margin-bottom: 0 !important;
}

#casing #mchatBtn {
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-size: 11px !important;
}

.module-video .size2-parent {
  padding-right: 0;
}

#content form[action$="search/"] table,
.module-video #f_aname {
  width: 100%;
}

.category_row,
.pollBlock {
  font-family: "Merriweather", serif !important;
}

#MCaddFrm table {
  border-spacing: 0;
}

.mcBBcodesBtn:before,
.mcManageBtn:before,
.mcReloadBtn:before {
  color: #f90;
  font-family: "Material Icons";
  font-size: 20px;
  font-weight: 400;
  display: inline-block;
  transition: all 0.3s;
  -webkit-font-feature-settings: liga;
  font-feature-settings: liga;
}

.mcReloadBtn::before {
  content: "\E5D5";
}

.mcBBcodesBtn::before {
  content: "\E86F";
}

.mcManageBtn::before {
  content: "\E254";
}

.mcBBcodesBtn:hover:before,
.mcManageBtn:hover:before,
.mcReloadBtn:hover:before {
  color: #1a1b1d;
}

/* duplicate .wrapper removed — defined at line 80 */
.sidebox ul.ut-vmenu {
  padding-left: 15px;
}

.shop-spec-filter-wrapper {
  overflow: hidden;
}

.reputation,
div#imblock1 div:first-child .postRankName,
input#addcBut {
  margin-top: 5px;
}

div#shop-basket ul li {
  padding-left: 40px;
  background-size: 30px !important;
  background-position: 0 50% !important;
  margin-bottom: 10px;
}

#shop-basket {
  text-align: center;
}

.fil_togg_holder {
  background: #1a1b1d;
  color: #fff;
  display: inline-block;
  padding: 2px 2px 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.fil_togg_holder:hover,
.module-photo #files:hover+.fakefile input {
  background: #f90;
}

#content input#invoice-form-export,
#content input#invoice-form-print,
#content input#invoice-form-send-el-goods {
  font-family: "Material Icons";
  font-size: 20px;
  padding: 4px 12px;
  vertical-align: middle;
  text-transform: none;
  margin-right: 7px;
  width: 48px;
  overflow: hidden;
  font-weight: 400;
}

.fil_togg_wrapper+hr+table td {
  display: inline-block;
  width: 50% !important;
  text-align: left !important;
}

table.filter_table td,
table.status_table td {
  padding: 0 4px;
}

#casing table.status_table td select:first-child {
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 0 !important;
}

#casing table.filter_table td input:first-child,
#casing table.filter_table td select:first-child,
#casing table.status_table td input:first-child {
  margin-left: 0 !important;
}

.fil_togg_wrapper+hr+table td:nth-child(even) {
  text-align: right !important;
}

table.filter_table td input:not(:first-child),
table.filter_table td select:not(:first-child) {
  margin-left: 4px !important;
}

select#user-filter {
  float: right;
}

ul[id^="uStarRating"],
.e-rating {
  display: none !important;
}

#thread_search_field {
  width: calc(100% - 55px) !important;
  max-width: 223px !important;
  margin: 0 4px 7px !important;
}

.forumDescr {
  font-size: 12px;
}

li.uWithSubmenu.item-parent ul li.uWithSubmenu.item-parent i {
  display: none;
}

#mchatIfm2,
#mchatIfm2~form {
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.uPM {
  margin-right: 25px;
}

#casing form#addEntForm span[id*="iCode"].added {
  padding-bottom: 10px;
  overflow: hidden;
}

.module-video .btn-title {
  white-space: normal;
}

.pagesBlockuz,
.pagesBlockuz1 {
  display: inline-block;
  padding: 10px 0;
}

.module-photo .ph-details {
  margin: 10px 0 5px;
}

.wysibb *,
a.login-with i,
form#uf-register:not(.uf-radio):not(.uf-checkbox):not(.captcha-answer) {
  box-sizing: content-box;
}

.opt_vals .gTableSubTop {
  padding-left: 0;
  background: 0;
  height: 48px;
}

#goods-options-list .gTableSubTop,
.module-stuff .eTitle+hr {
  border-bottom: 0;
}

.module-stuff .eDetails {
  padding: 5px 0 0 !important;
}

.gDivRight img {
  max-width: 100%;
}

.calMday,
.calMonth,
.calWday,
.calWdaySe,
.calWdaySu {
  display: table-cell !important;
  width: auto !important;
  text-align: center !important;
}

.calendarsTable td {
  padding: 12px !important;
}

.sidebox #mchatMsgF {
  min-height: 80px;
}

.entTd .eDetails {
  margin: 0 0 40px !important;
}

#casing input[type="button"][id^="bid-"] {
  margin: 0 0 0 5px;
}

.gTable select {
  margin: 0 0 2px;
}

#content form[action$="search/"] table td+td {
  width: 30%;
}

#content .queryField {
  width: 70% !important;
}

#slideshowBlock7 {
  margin: 0 0 20px;
}

.gDivRight,
.ucf-table {
  width: 100%;
  overflow-y: auto;
  margin: 0 0 1em;
}

#casing .module-stuff input[name="szh"],
#casing .module-stuff input[name="szw"] {
  width: 60px !important;
  margin-right: 3px;
}

#casing form#addEntForm span[id*="iCode"].added input {
  margin-top: 0;
  width: auto;
}

#casing .module-stuff input[name="szh"] {
  margin-left: 3px;
}

.uForm {
  padding: 20px 0;
}

#casing .sidebox .recaptcha-wrapper {
  float: left;
  margin: 5px 0 5px -3px;
  -webkit-box-shadow: -1px -1px 4px 0 rgba(0, 0, 0, 0.08);
  box-shadow: -1px -1px 4px 0 rgba(0, 0, 0, 0.08);
}

form#uf-register .uf-text[type="password"] {
  width: 85%;
  padding-left: 5px;
  padding-right: 5px;
}

#MCaddFrm select#mchatRSel {
  padding: 9px 30px 9px 10px;
}

.module-gb .cDetails {
  font-size: 13px;
  font-weight: 700;
}

.archiveCalendars .calendarsTable .calTable td {
  display: table-cell !important;
  width: auto !important;
}

.arrow-menu-icon {
  font-size: 16px;
  position: absolute;
  top: 2px;
}

.sidebox #uidLogForm .loginButton {
  margin: 5px 0;
}

.sidebox .ut-menu.ut-vmenu li a:before {
  content: none;
}

.sidebox .ut-menu.ut-vmenu li.item-parent em {
  left: -20px;
  top: 2px;
}

.uComForm-inner li.ucf-options {
  margin-right: 40px !important;
}

.u-combolist>div * {
  vertical-align: middle;
  margin: 5px 2px;
}

.codeButtons,
.ucf-bb .codeButtons {
  margin: 0 3px 3px 0 !important;
}

#uEntriesList .photo-title {
  text-align: center;
  overflow: hidden;
  white-space: normal;
}

.manTdSep hr,
.notcolumn hr {
  padding: 0;
}

.module-index .manTdSep hr {
  margin: 0;
}

.x-scroll {
  overflow-x: auto;
}

div[class^="cBlock"] a {
  word-break: break-all;
}

.f-column {
  width: 33.3%;
  padding: 10px;
}

.author-id img,
.f-column {
  float: left;
}

.footer-slider {
  padding: 0;
  margin: 0;
}

.footer-slider li {
  padding: 20px;
}

.review-text p {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  padding: 10px 0 40px;
  font-style: italic;
}

.author-text {
  padding-left: 64px;
}

.author-text h4 {
  margin: 0;
  font-weight: 600;
}

.f-logo {
  display: inline-block;
  font-size: 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -1px;
  padding: 0 0 30px;
}

.about-content {
  line-height: 1.7;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.address {
  padding-top: 30px;
  color: #fff;
}

.address h4 {
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
}

@media only screen and (max-width: 1200px) {
  .wrapper {
    padding: 0 20px;
  }

  .site-n,
  .site-n a {
    font-size: 1rem;
  }

  #catmenu {
    padding: 0;
  }

  .fil_togg_wrapper+hr+table td:nth-child(-n + 2) {
    width: 100% !important;
  }

  .fil_togg_wrapper+hr+table td:nth-child(even) {
    text-align: left !important;
  }
}

@media only screen and (max-width: 959px) {
  .f-column {
    width: 50%;
  }

  .f-column:first-child {
    width: 100%;
    text-align: center;
  }

  #header .wrapper {
    padding: 0 16px;
  }

  #site-logo {
    text-align: center;
    padding: 0;
  }

  #catmenu.nav-mobi .nav-head {
    display: block;
    min-height: 48px;
    background: rgba(29, 29, 31, 0.97);
    border-radius: 0;
  }

  #catmenu.nav-mobi #uNMenuDiv1>ul {
    border-bottom: 3px solid var(--c-accent);
  }

  .nav-head.over {
    border-bottom: 2px solid var(--c-accent);
  }

  #casing>.wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #content {
    padding: 0;
  }

  #sidebar {
    position: static;
    padding: 0;
  }

  .eBlock {
    margin: 0 0 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .promo-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .promo-i {
    min-height: 220px;
  }

  .promo-i:first-child {
    min-height: 320px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
  }

  .hero-grid .promo-i:first-child {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }

  .hero-grid .promo-i:nth-child(2),
  .hero-grid .promo-i:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    min-height: 200px;
  }

  .four-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .four-grid .promo-i {
    min-height: 200px;
  }

  .hp-blog-comments {
    grid-template-columns: 1fr;
  }

  .hp-comments-float {
    position: static;
  }

  .comments-ticker {
    max-height: 250px;
  }

  .blog-card-img {
    width: 140px;
    height: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: center;
    float: none;
    margin: 0;
    padding: 8px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    z-index: 80;
    gap: 12px;
  }

  #casing:not(.module_shop) .catsTd {
    min-width: 100%;
  }

  select#user-filter {
    float: none;
  }

  table.filter_table td input:not(:first-child),
  table.filter_table td select:not(:first-child) {
    margin-left: 0 !important;
  }

  #casing {
    padding: 15px 0;
  }

  form[name="searchform"] .gTable>tbody>tr>td.gTableBody1 {
    display: block;
    height: auto !important;
  }

  #catmenu.nav-mobi ul ul a {
    padding-left: 20px !important;
  }

  #catmenu.nav-mobi ul ul ul a {
    padding-left: 30px !important;
  }

  #catmenu.nav-mobi ul ul ul ul a {
    padding-left: 40px !important;
  }
}

@media only screen and (max-width: 768px) {
  #site-logo {
    text-align: center;
    padding: 0;
  }

  #catmenu.nav-mobi .nav-head {
    display: block;
    font-size: 16px;
  }

  .eBlock {
    margin: 0 0 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .e-add,
  .e-author,
  .e-date,
  .e-loads,
  .e-rating,
  .e-reads,
  .e-tags {
    padding: 0 5px 0 0;
  }

  .e-add:after,
  .e-author:after,
  .e-date:after,
  .e-loads:after,
  .e-rating:after,
  .e-reads:after,
  .e-tags:after {
    padding: 0 0 0 5px;
  }

  .e-category+span+span:before {
    padding: 0 5px;
  }

  #sidebar {
    padding: 0 10px;
  }

  .foot-l,
  .foot-r {
    float: none;
    width: auto;
    text-align: center;
  }

  .article-hero-img {
    height: 280px;
  }

  .article-hero-content {
    padding: 20px 24px;
  }

  .article-hero-content h1 {
    font-size: 1.4rem;
  }

  .cta-section {
    padding: 40px 24px;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }

  .profile-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .profile-tab {
    padding: 10px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .overlay-menu nav a {
    font-size: 1.3rem;
  }

  #fTerms~div,
  .foot-r {
    padding: 10px 0 0;
  }

  #uNetRegF tr td:first-child {
    max-width: 20% !important;
    white-space: normal !important;
  }

  #uNetRegF #fAvatar,
  #uNetRegF #fAvatarU {
    display: block;
    margin: 0 0 3px;
  }

  #uNetRegF #fAvatarU+input {
    position: relative;
    margin: 0 0 0 -10px;
  }

  #uNetRegF input,
  #uNetRegF input[type="file"],
  #uNetRegF select {
    max-width: 162px;
  }

  .calendarsTable,
  .calendarsTable>tbody,
  .calendarsTable>tbody>tr,
  .calendarsTable>tbody>tr>td {
    display: block;
    width: 100%;
  }

  #content .calTable {
    width: 100%;
    margin: 0 0 20px;
  }

  #content .calMonth {
    text-align: center;
  }

  #frM53 .gTableLeft,
  #frM53 .gTableRight {
    display: block;
    width: auto !important;
  }

  #puzadpn {
    display: none;
  }

  .fNavLink {
    line-height: 25px;
    position: relative;
  }

  .uTd .user_avatar img {
    width: 40px;
  }

  .opt_vals td {
    display: table-cell !important;
  }

  .opt_items {
    max-width: 97%;
  }

  #uEntriesList .uEntryWrap {
    width: 50% !important;
  }

  #content>section:nth-child(1)>table:nth-child(3)>tbody:nth-child(1)>tr:nth-child(1)>td:nth-child(2) {
    display: block;
  }

  #casing form#uf-register .uf-checkbox,
  #casing form#uf-register .uf-radio,
  #casing form#uf-register input[id="policy"] {
    padding: 0;
  }

  .module-search form td[nowrap="nowrap"] {
    display: block;
  }

  #content form[action$="search/"] table td+td,
  #main-content form[action$="search/"] table td+td {
    width: 100%;
  }

  .eBlock .eTitle,
  .eBlock td.eTitle,
  .eTitle,
  .site-n,
  .site-n a {
    font-size: 26px;
  }

  .uf-fields-wrap .recaptcha-wrapper {
    margin: 10px auto;
  }

  .promo-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .promo-i {
    min-height: 200px;
  }

  .promo-i:first-child {
    min-height: 280px;
  }

  .promo-i:first-child h4 {
    font-size: 1.25rem;
  }

  .promo-i:first-child .news-descr {
    padding: 24px;
  }
}

@media only screen and (max-width: 640px) {
  .wrapper {
    padding: 0 15px;
  }

  .f-column {
    width: 100%;
  }

  #casing form ul.xPhtBlock>li:nth-of-type(n):not(.notcolumn),
  #casing ul.form-fields>li:nth-of-type(n):not(.notcolumn) {
    width: 100%;
    padding: 5px 0 0;
  }

  #addPhtFrm #uCatsMenu7,
  #casing form #uCatsMenu7,
  td.u-comboeditcell input[id^="catSelector"].x-selectable {
    min-width: 280px;
    max-width: 280px;
  }

  .catalog td.catalog-item {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  td.gTableTop #subscribe {
    float: none;
  }

  .popupbody>div>div:not(.udtb) {
    float: none !important;
  }

  form[name="searchform"] input[name="kw"] {
    width: 290px;
  }

  #casing form .navTabs>* {
    display: block;
    width: 100%;
  }

  #casing form .navTabs>b {
    color: #3c3c3c;
    border-radius: 0;
  }

  .module-stuff form#addEntForm span[id*="iCode"].openednow {
    padding-right: 10px;
  }
}

@media only screen and (max-width: 480px) {

  form[name="mform"] table td:first-child:not([align="center"]),
  form[name="mform"] td:not([align="center"]) {
    display: block;
    text-align: left;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .promo-wrapper {
    grid-template-columns: 1fr !important;
  }

  .promo-i {
    min-height: 200px;
  }

  .promo-i:first-child {
    min-height: 260px;
  }

  .hero-grid {
    gap: 8px;
  }

  .four-grid {
    grid-template-columns: 1fr !important;
  }

  .four-grid .promo-i {
    min-height: 180px;
  }

  .blog-card {
    flex-direction: column;
    gap: 12px;
  }

  .blog-card-img {
    width: 100%;
    height: 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reactions-bar {
    flex-wrap: wrap;
  }

  .article-hero-img {
    height: 220px;
  }

  .promo-i .link-holder,
  .promo-i:first-child .link-holder {
    bottom: 30px;
  }

  #uEntriesList .uEntryWrap {
    width: 100% !important;
  }

  table.eBlock td {
    display: block;
    width: 100%;
    padding: 5px 0;
    text-align: left;
  }

  .shop-imgs.with-clear {
    text-align: center;
  }

  div#casing form#addEntForm span[id*="iCode"].openednow {
    padding-right: 10px;
  }

  #casing form#addEntForm span[id*="iCode"].added input[type="text"],
  .module-stuff table tr td[width="180"] img {
    width: 100%;
  }

  #goodsform .manTable>tbody>tr>td,
  table.catsTable td {
    display: block;
    width: 100% !important;
  }

  .manTable tbody#tb_exclude_from_yml tr>td,
  .manTable tbody#tb_undisc tr>td,
  .manTable tbody#yml_is_adult tr>td,
  .manTable tbody#yml_is_delivery tr>td,
  .manTable tbody#yml_is_pickup tr>td,
  .manTable tbody#yml_is_store tr>td {
    display: inline-block;
    width: auto !important;
    vertical-align: bottom;
  }

  .codeMessage,
  .gTableBody,
  .gTableBody1,
  .gTableBottom,
  .gTableError,
  .gTableLeft,
  .gTableRight,
  .newPollBlock,
  .newThreadBlock,
  .quoteMessage,
  .threadIcoTd,
  .threadsType {
    padding: 10px 0 !important;
  }

  .spec-values {
    padding: 0 !important;
  }

  .social-accounts {
    white-space: nowrap;
    float: left;
  }

  .udtb {
    overflow: hidden;
  }

  #addEntForm .commTd1,
  #addEntForm .commTd2,
  #addEntForm .manTable td,
  form#addEntForm>table>tbody>tr:first-child>td:first-child {
    display: block;
    width: 100%;
  }

  #casing .emptyPlaceholder {
    width: 100%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    margin: 0;
  }

  .module-index .manTable td {
    display: block;
    width: 100%;
  }
}

@media only screen and (max-width: 360px) {
  .wrapper {
    padding: 0 10px;
  }

  .recaptcha-wrapper [id^="recaptcha_"] {
    transform: scale(0.88);
  }

  .recaptcha-wrapper {
    max-width: 290px;
  }

  label#uf-terms-label {
    font-size: 12px;
  }

  .eBlock td.eDetails,
  .eBlock td.eDetails1,
  .eBlock td.eDetails2,
  .eDetails,
  .eDetails1,
  .eDetails2 {
    padding: 10px 0 !important;
  }

  #casing select {
    max-width: 240px;
    display: block;
  }

  #casing input[type="file"],
  select[name="modopt"] {
    width: 80%;
    overflow: hidden;
    vertical-align: middle;
  }

  form[name="searchform"] input[name="kw"] {
    width: 260px;
  }
}

/* ── HOMEPAGE — Magazine Layout ── */

/* ── Homepage sections ── */
.hp-section {
  padding: 0 0 48px;
}

.hp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 0;
}

.hp-section-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.hp-section-head a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-accent);
}

/* ── Hero Grid: 1 big + 2 small (same height) ── */
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 420px;
  margin-bottom: 16px;
  position: relative;
}

.hero-grid .promo-i:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 420px;
}

.hero-grid .promo-i:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
}

.hero-grid .promo-i:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
}

.hero-grid .promo-i {
  min-height: 0;
}

/* ── 4-card row ── */
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.four-grid .promo-i {
  min-height: 240px;
}

.four-grid .promo-i:first-child {
  grid-column: auto;
  min-height: 240px;
}

.four-grid .promo-i h4 {
  font-size: 0.95rem;
}

.four-grid .promo-i .promo-message {
  max-height: 0;
}

.four-grid .promo-i .link-holder {
  display: none;
}

/* ── Category pills ── */
.cat-pills {
  display: flex;
  gap: 8px;
  padding: 0 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  padding: 0 0 16px;
  gap: 6px;
  -ms-overflow-style: none;
}

.cat-pills::-webkit-scrollbar {
  display: none;
}

.cat-pills a,
.cat-pills span.cat-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--c-surface);
  transition: all var(--transition);
  text-decoration: none;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-secondary);
}

.cat-pills a:hover,
.cat-pills a.active,
.cat-pills span.cat-pill.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ── Blog horizontal cards (Medium-style) ── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--c-text);
}

/* hover removed */

.blog-card-img {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.blog-card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  display: flex;
  gap: 12px;
}

/* ── Floating comments ticker (sidebar on homepage) ── */
.hp-blog-comments {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

.hp-comments-float {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.hp-comments-float h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.comments-ticker {
  max-height: 400px;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 0;
}

.comments-ticker-track {
  animation: tickerUp 40s linear infinite;
}

.comments-ticker:hover .comments-ticker-track {
  animation-play-state: paused;
}

@keyframes tickerUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8rem;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-item strong {
  font-size: 0.75rem;
  color: var(--c-text);
  display: block;
}

.comment-item p {
  margin: 2px 0 4px;
  color: var(--c-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-item a {
  font-size: 0.7rem;
  color: var(--c-accent);
}

/* ── CTA / Subscribe section ── */
.cta-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 56px 40px;
  text-align: center;
  margin: 0 0 48px;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(-45deg, #0071e3, #34aadc, #5856d6, #bf5af2);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0 0 24px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons a {
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}

.cta-buttons .btn-primary {
  background: #fff;
  color: #1d1d1f;
}

.cta-buttons .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Scroll reveal ── */
.hw-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.hw-animate.hw-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ARTICLE PAGE — Hero + Blur BG + Reactions ── */

/* ── Blurred background from cover image ── */
.article-bg-blur {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(0.5) brightness(0.5);
  opacity: 0.25;
  pointer-events: none;
  filter: blur(120px) saturate(0.5) brightness(0.4);
  opacity: 0.35;
}

/* ── Article hero — cover + overlay gradient + title ── */
.article-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 0 32px;
  min-height: 200px;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      transparent 100%);
}

/* Bookmark badge on hero image */
.hero-bm-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  color: var(--c-accent);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Old module-news grid rules removed — handled by .entries-grid in my.css */

/* removed conflicting eBlock rule (was lines 3747-3751) */

/* removed conflicting eBlock rule (was lines 3753-3760) */

.module-news .eBlock .eTitle {
  padding: 12px 16px 8px !important;
}

.module-news .eBlock .eTitle a {
  font-size: 1.1rem;
}

/* removed conflicting eBlock rule (was lines 3770-3775) */

.module-news .eBlock .eMessage,
.module-news .eBlock .eText {
  padding: 0 16px 8px;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .module-news #content>section {
    grid-template-columns: 1fr;
  }
}

.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  color: #fff;
}

.article-hero-content h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-hero-content .article-meta {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-hero-content .article-meta,
.article-hero-content .article-meta a {
  color: rgba(255, 255, 255, 0.7);
}

.article-hero-content .article-meta a:hover {
  color: #fff;
}

.article-hero-content .article-meta-item i {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Article reading body (max-width for comfort) ── */
.article-reading {
  max-width: 720px;
  margin: 0 auto;
}

/* ── ARTICLE SPECIFIC FIXES ── */
[data-theme="light"] .article-bg-blur {
  filter: blur(120px) saturate(0.3) brightness(0.6);
  opacity: 0.18;
}

/* Old recommend-grid section removed — see HP-CARDS section at bottom */

/* ── Homepage Comments + Top Section (2 columns) ── */
.hp-engage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 0 48px;
}

.hp-engage-col {
  min-width: 0;
}

.hp-engage-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

/* Comments list */
.hp-comment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--c-text);
}

.hp-comment-item:last-child {
  border-bottom: 0;
}

.hp-comment-item:hover {
  color: var(--c-accent);
}

.hp-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-bg);
}

.hp-comment-body {
  flex: 1;
  min-width: 0;
}

.hp-comment-body strong {
  font-size: 0.75rem;
  color: var(--c-text);
  display: block;
}

.hp-comment-body p {
  margin: 2px 0 4px;
  color: var(--c-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-comment-body small {
  font-size: 0.65rem;
  color: var(--c-text-muted);
}

/* ── Top tabs (Обсуждаемое / Популярное) ── */
.top-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--c-border);
  margin: 0 0 12px;
}

.top-tab-btn {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  border: 0;
  background: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.top-tab-btn:hover {
  color: var(--c-text);
}

.top-tab-btn.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.top-panel {
  display: none;
}

.top-panel.active {
  display: block;
}

.top-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  transition: color var(--transition);
  font-size: 0.85rem;
}

.top-item:last-child {
  border-bottom: 0;
}

.top-item:hover {
  color: var(--c-accent);
}

.top-item .top-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-item .top-stat {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text-muted);
  padding-left: 12px;
}

/* ── Related cards: overlay text on image ── */
.related-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--c-text);
}

a.related-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  border: 0;
  background: var(--c-text);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

a.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

a.related-card .related-cover {
  display: block !important;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  margin: 0 !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

a.related-card:hover .related-cover {
  transform: scale(1.04);
}

a.related-card .related-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.3) 60%,
      transparent 100%);
  z-index: 2;
}

a.related-card .related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  padding: 0;
  line-height: 1.3;
}

a.related-card .related-date {
  display: block;
  padding: 4px 0 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

a.related-card .related-noimg {
  height: 200px;
  background: var(--c-surface);
}

/* ── Promo category badge ── */
.promo-cat {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 0 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--c-accent);
  border-radius: var(--radius-sm);
}

/* ── Blog card date (inside blog-grid informer) ── */
.blog-card-date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ── Article tags: clean text, no borders, no commas ── */
.article-tags {
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0;
  /* collapse whitespace/commas */
}

.article-tags span:first-child {
  display: none;
}

/* Hide "Теги:" */
.article-tags a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--c-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 100px;
  transition: all var(--transition);
  text-decoration: none;
}

[data-theme="light"] .article-tags a {
  background: rgba(0, 0, 0, 0.05);
}

.article-tags a:hover {
  color: var(--c-accent);
  background: var(--c-accent-light);
}

/* ══════════════════════════════════════════════════════════
   HP-CARDS.CSS — Homepage carousel cards (Recommend + Blog)
   All card styles consolidated in one file.
   ══════════════════════════════════════════════════════════ */

/* ── Recommend Carousel structure ── */
.recommend-carousel {
  overflow: hidden;
  position: relative;
}

.recommend-viewport {
  overflow: hidden;
}

.recommend-track {
  --rec-gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--rec-gap) * 3)) / 4);
  gap: var(--rec-gap);
  transition: transform .35s ease;
  will-change: transform;
}

/* ── Blog Carousel structure ── */
.blog-carousel {
  overflow: hidden;
  position: relative;
}

.blog-viewport {
  overflow: hidden;
}

.blog-track {
  --blog-gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--blog-gap) * 3)) / 4);
  gap: var(--blog-gap);
  transition: transform .35s ease;
  will-change: transform;
}

/* ── Shared card base ── */
.recommend-carousel .rec-card,
.blog-carousel .entry-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

/* ── Rec-card (Recommend) ── */
.rec-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.recommend-carousel .rec-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  background: transparent;
}

.rec-link,
.rec-link:hover,
.rec-link:visited,
.rec-link:active {
  display: block;
  position: relative;
  height: 100%;
  text-decoration: none;
  color: #fff;
}

.rec-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.rec-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .45) 58%, transparent 100%);
}

.rec-card h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Rec description (4 lines max, reset inner HTML) ── */
.rec-desc {
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  margin: 4px 0 6px;
  line-height: 1.4;
  max-height: 4.4em;
  /* ~4 lines: .78rem * 1.4 * 4 */
  overflow: hidden;
}

.rec-desc * {
  all: unset !important;
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* ── Rec meta row ── */
.rec-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.rec-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.rec-date,
.rec-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  color: rgba(255, 255, 255, .5);
}

.rec-views {
  margin-left: auto;
}

.rec-cat {
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
}

.rec-cat.is-link {
  cursor: pointer;
}

.rec-cat.is-link:hover {
  color: var(--c-accent);
}

/* ── Entry-card (Blog) ── */
.blog-carousel .entry-card-link,
.blog-carousel .entry-card-link:hover,
.blog-carousel .entry-card-link:visited,
.blog-carousel .entry-card-link:active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  min-height: 0;
  height: 100%;
}

.blog-carousel .entry-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-carousel .entry-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .45) 58%, transparent 100%);
}

.blog-carousel .entry-card-top-zone {
  position: relative;
  z-index: 2;
  padding: 0 16px;
  top: auto;
  bottom: auto;
}

.blog-carousel .entry-card-top-zone .entry-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-carousel .entry-card-body {
  position: relative;
  z-index: 2;
  padding: 4px 16px 14px;
}

/* Blog description (4 lines max, reset inner HTML) */
.blog-carousel .entry-card-desc {
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 400;
  cursor: default;
  margin: 0 0 6px;
  line-height: 1.4;
  max-height: 4.4em;
  /* ~4 lines */
  overflow: hidden;
}

.blog-carousel .entry-card-desc *,
.entry-card-desc * {
  all: unset !important;
  display: inline !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* Blog meta */
.blog-carousel .entry-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
}

.entry-card-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.entry-card-meta-left span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.entry-card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.entry-card-cat {
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
}

.entry-card-cat.is-link {
  cursor: pointer;
}

.entry-card-cat.is-link:hover {
  color: var(--c-accent);
}

/* ── Responsive ── */
@media (max-width: 959px) {

  .blog-track,
  .recommend-track {
    grid-auto-columns: calc((100% - (var(--rec-gap, 14px) * 2)) / 3);
  }
}

@media (max-width: 640px) {

  .blog-track,
  .recommend-track {
    grid-auto-columns: calc((100% - var(--rec-gap, 14px)) / 2);
  }
}

@media (max-width: 480px) {

  .blog-track,
  .recommend-track {
    grid-auto-columns: 100%;
  }
}

/* ── Hide category pills bar ── */
.hp-catpills,
.cat-pills-wrap,
.cat-pills,
[class*="catpill"] {
  display: none;
}

/* ════════════════════════════════════════════════════════ */
/* ================================================================ */
/* eBlock card styling — matches rec-card (informer) design          */
/* ================================================================ */

/* -- Category table structure -- */
.entries-grid table.catAllEntries {
   display: block !important;
   width: 100% !important;
   border: 0 !important;
   border-spacing: 0 !important;
   grid-column: 1 / -1 !important;
   margin: 0 !important;
   padding: 0 !important;
}

.entries-grid table.catAllEntries > tbody,
.entries-grid table.catAllEntries > tbody > tr {
   display: block !important;
   width: 100% !important;
}

.entries-grid table.catAllEntries > tbody > tr > td.archiveEntries {
   display: grid !important;
   grid-template-columns: repeat(5, 1fr) !important;
   gap: 14px !important;
   width: 100% !important;
   padding: 0 !important;
   text-align: left !important;
}

/* Pagination inside category */
.archiveEntries > .catPages1,
.archiveEntries > .catPages2,
.archiveEntries > [id^="pagesBlock"] {
   grid-column: 1 / -1 !important;
}

/* Entry wrappers */
.archiveEntries > [id^="entryID"] {
   margin: 0 !important;
   width: 100% !important;
}

/* Hide br between cards */
#allEntries > br,
.archiveEntries > br,
[id^="entryID"] > br {
   display: none !important;
}

/* -- eBlock card: rec-card replica -- */
.module-news .eBlock,
.module-blog .eBlock {
   display: block !important;
   margin: 0 !important;
   position: relative !important;
   overflow: hidden !important;
   padding: 0 !important;
   border-radius: var(--radius-lg) !important;
   background: #111 !important;
   border: 1px solid rgba(255,255,255,.08) !important;
   aspect-ratio: 9 / 16 !important;
}

/* Table internals block */
.module-news .eBlock tr,
.module-blog .eBlock tr {
   display: block !important;
}

.module-news .eBlock td,
.module-blog .eBlock td {
   display: block !important;
   width: 100% !important;
   padding: 0 !important;
   position: static !important;
   height: 100% !important;
}

/* -- Image covers entire card (like rec-card img) -- */
.module-news .eBlock .eMessage img:first-child,
.module-news .eBlock .eText img:first-child,
.module-blog .eBlock .eMessage img:first-child,
.module-blog .eBlock .eText img:first-child {
   position: absolute !important;
   inset: 0 !important;
   width: 100% !important;
   height: 100% !important;
   object-fit: cover !important;
   display: block !important;
   z-index: 0 !important;
   border-radius: 0 !important;
   margin: 0 !important;
}

/* -- Dark gradient overlay -- */
.module-news .eBlock::after,
.module-blog .eBlock::after {
   content: "" !important;
   position: absolute !important;
   inset: 0 !important;
   z-index: 1 !important;
   background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 58%, transparent 100%) !important;
   pointer-events: none !important;
}

/* -- Title (like rec-card h4) -- */
.module-news .eBlock .eTitle,
.module-blog .eBlock .eTitle {
   position: absolute !important;
   bottom: 80px !important;
   left: 0 !important;
   right: 0 !important;
   padding: 0 16px !important;
   z-index: 2 !important;
   text-align: left !important;
}

.module-news .eBlock .eTitle a,
.module-blog .eBlock .eTitle a {
   font-size: .95rem !important;
   font-weight: 600 !important;
   line-height: 1.3 !important;
   color: #fff !important;
   text-decoration: none !important;
   display: -webkit-box !important;
   -webkit-line-clamp: 3 !important;
   line-clamp: 3 !important;
   -webkit-box-orient: vertical !important;
   overflow: hidden !important;
}

/* -- Description (like rec-desc, 4 lines) -- */
.module-news .eBlock .eMessage,
.module-news .eBlock .eText,
.module-blog .eBlock .eMessage,
.module-blog .eBlock .eText {
   position: absolute !important;
   bottom: 38px !important;
   left: 0 !important;
   right: 0 !important;
   padding: 0 16px !important;
   z-index: 2 !important;
   font-size: .78rem !important;
   color: rgba(255,255,255,.55) !important;
   line-height: 1.4 !important;
   max-height: 4.4em !important;
   overflow: hidden !important;
}

/* Reset inner HTML tags in descriptions (like rec-desc *) */
.module-news .eBlock .eMessage p,
.module-news .eBlock .eMessage h2,
.module-news .eBlock .eMessage h3,
.module-news .eBlock .eMessage h4,
.module-news .eBlock .eMessage span,
.module-news .eBlock .eMessage a:not(:first-child),
.module-news .eBlock .eMessage strong,
.module-news .eBlock .eMessage em,
.module-blog .eBlock .eMessage p,
.module-blog .eBlock .eMessage h2,
.module-blog .eBlock .eMessage h3,
.module-blog .eBlock .eMessage h4,
.module-blog .eBlock .eMessage span,
.module-blog .eBlock .eMessage a:not(:first-child),
.module-blog .eBlock .eMessage strong,
.module-blog .eBlock .eMessage em {
   all: unset !important;
   display: inline !important;
   font-size: inherit !important;
   font-weight: inherit !important;
   color: inherit !important;
   line-height: inherit !important;
   margin: 0 !important;
   padding: 0 !important;
   border: none !important;
   background: none !important;
}

/* -- Details row (like rec-meta) -- */
.module-news .eBlock .eDetails,
.module-blog .eBlock .eDetails {
   position: absolute !important;
   bottom: 0 !important;
   left: 0 !important;
   right: 0 !important;
   padding: 10px 16px !important;
   z-index: 2 !important;
   display: flex !important;
   align-items: center !important;
   justify-content: space-between !important;
   gap: 8px !important;
   font-size: .7rem !important;
   color: rgba(255,255,255,.5) !important;
   clear: none !important;
   border: 0 !important;
}

/* Hide: labels, separators, author, comments */
.module-news .eBlock .ed-title,
.module-blog .eBlock .ed-title,
.module-news .eBlock .ed-sep,
.module-blog .eBlock .ed-sep,
.module-news .eBlock .e-author,
.module-blog .eBlock .e-author,
.module-news .eBlock .e-comments,
.module-blog .eBlock .e-comments {
   display: none !important;
}

/* Date */
.module-news .eBlock .e-date,
.module-blog .eBlock .e-date {
   display: inline-flex !important;
   align-items: center !important;
   gap: 4px !important;
   font-size: .7rem !important;
   color: rgba(255,255,255,.5) !important;
}

.module-news .eBlock .e-date .ed-title,
.module-blog .eBlock .e-date .ed-title {
   display: none !important;
}

/* Category link */
.module-news .eBlock .e-category,
.module-blog .eBlock .e-category {
   display: inline-flex !important;
}

.module-news .eBlock .e-category .ed-title,
.module-blog .eBlock .e-category .ed-title {
   display: none !important;
}

.module-news .eBlock .e-category a,
.module-blog .eBlock .e-category a {
   color: rgba(255,255,255,.5) !important;
   text-decoration: none !important;
   font-size: .7rem !important;
   position: relative !important;
   z-index: 3 !important;
   cursor: pointer !important;
}

.module-news .eBlock .e-category a:hover,
.module-blog .eBlock .e-category a:hover {
   color: var(--c-accent) !important;
}

/* Views pushed right */
.module-news .eBlock .e-reads,
.module-blog .eBlock .e-reads {
   display: inline-flex !important;
   align-items: center !important;
   gap: 4px !important;
   margin-left: auto !important;
   font-size: .7rem !important;
   color: rgba(255,255,255,.5) !important;
}

.module-news .eBlock .e-reads .ed-title,
.module-blog .eBlock .e-reads .ed-title {
   display: none !important;
}

/* -- Category pages: hide description -- */
.entries-grid:has(.catAllEntries) .eMessage,
.entries-grid:has(.catAllEntries) .eText {
   display: none !important;
}

/* Category pages: move title lower (no desc) */
.entries-grid:has(.catAllEntries) .eTitle {
   bottom: 38px !important;
}
