/* ============================================================
   Новости Дагестана — Soft Glass Editorial UI
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[data-bg] {
  background-color: var(--surface-secondary);
}

:root {
  --bg: #DDDDDD;
  --surface: #FFFFFF;
  --surface-secondary: #F5F5F5;
  --surface-glass: rgba(255,255,255,0.6);

  --border: #E5E5E5;

  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --accent: #475569;
  --accent-secondary: #334155;
  --accent-soft: #E2E8F0;

  --brand-red: #ED1E4D;
  --brand-red-hover: #D1113E;

  --shadow-card: 0 2px 10px rgba(15,23,42,0.06), 0 0 2px rgba(15,23,42,0.03);
  --shadow-floating: 0 8px 22px 2px rgba(180,70,90,0.12);
  /* Подсветка при наведении: по контуру радиуса, собранная */
  --shadow-floating-soft: 0 0 0 1px rgba(180,70,90,0.16), 0 0 14px 3px rgba(180,70,90,0.08);
  --shadow-glow: 0 0 70px 8px rgba(180,70,90,0.1);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-pill: 8px;

  --transition: 180ms ease-out;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes spa-reveal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes reveal-left-to-right {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes slide-in-from-right {
  0% { transform: translateX(60px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.page-loading .topbar {
  opacity: 1;
}

.page-loading .hero-card__badge {
  animation: reveal-left-to-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.page-loading .hero-card__meta {
  animation: reveal-left-to-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
.page-loading .hero-card__title {
  animation: reveal-left-to-right 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
.page-loading .hero-card__tags {
  animation: reveal-left-to-right 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}
.page-loading .hero-card__body .read-btn {
  animation: fade-in 0.5s ease 0.8s both;
}

.page-loading .mini-card:nth-child(1) { animation: fade-in 0.8s ease 0.4s both; }
.page-loading .mini-card:nth-child(2) { animation: fade-in 0.8s ease 0.6s both; }
.page-loading .mini-card:nth-child(3) { animation: fade-in 0.8s ease 0.8s both; }
.page-loading .mini-card:nth-child(4) { animation: fade-in 0.8s ease 1s both; }

@keyframes hero-zoom-in {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.page-loading .hero-card__visual img {
  animation: hero-zoom-in 2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-loading .popular-wrapper {
  animation: fade-in 0.8s ease 0.6s both;
  transform-origin: top center;
}

.page-loading .main-wrapper__right .rec-featured {
  animation: slide-in-from-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.page-loading .main-wrapper__right .rec-featured__content {
  animation: fade-in 0.6s ease 1s both;
}
.page-loading .main-wrapper__right .rec-list__item:nth-child(1) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(2) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(3) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(4) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(5) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(6) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both; }
.page-loading .main-wrapper__right .rec-list__item:nth-child(7) { animation: slide-in-from-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(180,70,90,0.07), 0 0 10px 2px rgba(180,70,90,0.04); }
  50% { box-shadow: 0 0 0 1px rgba(180,70,90,0.12), 0 0 18px 4px rgba(180,70,90,0.08); }
}

[data-theme="dark"] {
  --bg: #0F1219;
  --surface: #1A1F2E;
  --surface-secondary: #141824;
  --surface-glass: rgba(26,31,46,0.7);

  --border: #2A3042;

  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent: #94A3B8;
  --accent-secondary: #CBD5E1;
  --accent-soft: #334155;

  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-floating: 0 8px 22px 2px rgba(180,70,90,0.16);
  /* Та же подсветка по контуру, более собранная в тёмной теме */
  --shadow-floating-soft: 0 0 0 1px rgba(180,70,90,0.18), 0 0 14px 3px rgba(180,70,90,0.1);
  --shadow-glow: 0 0 70px 8px rgba(180,70,90,0.09);
}

[data-theme="dark"] .main-wrapper,
[data-theme="dark"] .popular-wrapper,
[data-theme="dark"] .block-wrapper {
  background: #161B28;
  border: none;
}

[data-theme="dark"] .block-wrapper.category-page {
  border: 1px solid var(--border);
}

[data-theme="dark"] .topbar {
  background: transparent;
  border: none;
}

[data-theme="dark"] .topbar.topbar--visible {
  background: rgba(20,24,36,0.85);
  backdrop-filter: blur(16px);
  border: none;
}

[data-theme="dark"] .article-card {
  background: var(--surface-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .rec-section {
  background: #1C2130;
  border: none;
}

[data-theme="dark"] .badge-accent {
  color: var(--text-primary);
  background: linear-gradient(to right, rgba(100, 116, 139, 0.45) 0%, rgba(148, 163, 184, 0.3) 40%, rgba(51, 65, 85, 0.95) 85%, rgba(30, 41, 59, 0.98) 100%);
  border-color: var(--border);
}

[data-theme="dark"] .sidebar-block {
  background: #1C2130;
  border-color: var(--border);
}

[data-theme="dark"] .sidebar-search {
  background: rgba(20,24,36,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(20,24,36,0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 2px 8px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .topbar__burger {
  background: transparent !important;
  box-shadow: none !important;
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-floating-soft);
}

[data-theme="dark"] .nav-pill {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .nav-pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating-soft);
}

[data-theme="dark"] .nav-pill--active {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

[data-theme="dark"] body {
  background:
    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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(to top right, #0A0D14 0%, #121620 55%, #1B202C 100%);
  background-size: 180px 180px, 100% 100%;
}

[data-theme="dark"] .footer {
  background: #0B0E15;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background:
    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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"),
    linear-gradient(to top right, #CDCDCD 0%, #DEDEDE 55%, #EDEDED 100%);
  background-size: 180px 180px, 100% 100%;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Ambient Glows (disabled) --- */
.ambient-glow {
  display: none;
}

/* ============================================================
   PAGE LAYOUT — two columns (main + sidebar)
   ============================================================ */
.page-layout {
  max-width: 1520px;
  margin: 0 auto;
  padding: 100px 40px 0;
  position: relative;
  z-index: 1;
}

.page-layout__main {
  min-width: 0;
}

.page-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

/* ============================================================
   TOPBAR (navbar in left column)
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 20px;
  margin-bottom: 28px;
  background: transparent;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1460px;
  padding: 0 10px;
  z-index: 9999;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.topbar--visible {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: none;
  box-shadow: var(--shadow-card);
}



.topbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  height: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: background var(--transition);
}

.topbar__logo:hover {
  opacity: 0.8;
}

.topbar__logo--footer {
  border: none;
  padding: 0;
  height: 32px;
  background: transparent;
}

.topbar__logo--footer:hover {
  background: transparent;
  border-color: transparent;
}

.topbar__logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

[data-theme="dark"] .topbar__logo-img {
  filter: invert(1) hue-rotate(180deg);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  padding: 6px;
  margin: -6px;
}

.topbar__nav::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(15,23,42,0.04);
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.4s ease-out, color 0.4s ease-out, box-shadow 0.4s ease-out;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.nav-pill:hover {
  background: rgba(15,23,42,0.08);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating-soft);
}

.nav-pill--active {
  background: rgba(15,23,42,0.08);
  color: var(--text-primary);
  box-shadow: none;
}

.nav-pill__chevron {
  display: none;
}

.nav-pill__chevron {
  opacity: 0.5;
  flex-shrink: 0;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.4s ease-out, transform 0.35s ease-out, box-shadow 0.4s ease-out;
  flex-shrink: 0;
  box-shadow: none;
}

.theme-toggle:hover {
  background: rgba(15,23,42,0.08);
  box-shadow: var(--shadow-floating-soft);
  transform: scale(1.08);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__sun,
.theme-toggle__moon {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-toggle__sun {
  opacity: 1;
}

.theme-toggle__moon {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
}

[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
}

.topbar__burger {
  display: flex;
  order: -1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 12px 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.topbar__burger:hover {
  background: rgba(100, 116, 139,0.12);
}

/* Mobile sub-bar (section + search, below header) */
.mobile-subbar {
  display: none;
}

.mobile-subbar__section {
  font-size: 16px;
  font-weight: 700;
  color: #1E2340;
  white-space: nowrap;
}

[data-theme="dark"] .mobile-subbar__section {
  color: #CBD5E1;
}

[data-theme="dark"] .mobile-subbar__search {
  background: var(--surface);
}

.mobile-subbar__search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 220px;
  height: 38px;
  padding: 0 3px 0 14px;
  gap: 6px;
  border-radius: 8px;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.mobile-subbar__search:focus-within {
  background: var(--surface);
  border-color: var(--border);
}

.mobile-subbar__search-icon {
  display: none;
}

.mobile-subbar__search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.mobile-subbar__search-input::placeholder {
  color: var(--text-muted);
}

.mobile-subbar__search-input:focus-visible,
.mobile-subbar__search-btn:focus-visible,
.mobile-subbar__search:focus-visible {
  outline: none;
}

.mobile-subbar__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: color var(--transition);
}

.mobile-subbar__search-btn:hover {
  color: var(--accent);
}

.topbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.topbar__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 55%;
  max-width: 300px;
  height: 100vh;
  height: 100dvh;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  padding: 80px 24px 32px;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.topbar__mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

.topbar__mobile-close {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.04);
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}

.topbar__mobile-close:hover {
  background: rgba(100, 116, 139,0.12);
}

[data-theme="dark"] .topbar__mobile-close {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .topbar__mobile-close:hover {
  background: rgba(255,255,255,0.12);
}

.topbar__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.topbar__mobile-overlay.is-open {
  display: block;
  opacity: 1;
}

[data-theme="dark"] .topbar__mobile {
  background: rgba(20,24,36,0.7);
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.topbar__mobile-pills {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topbar__mobile-pills .nav-pill {
  width: 100%;
  justify-content: flex-start;
  height: auto;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  padding: 12px 0;
  background: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.topbar__mobile-pills .nav-pill:last-child {
  border-bottom: none;
}

.topbar__mobile-pills .nav-pill:hover {
  background: none;
  color: var(--accent);
  box-shadow: none;
}

.topbar__mobile-pills .nav-pill--active {
  color: var(--accent);
  background: none;
}

.topbar__mobile-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 16px;
  border-bottom: 1px solid var(--border);
}

.topbar__mobile-sub a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 8px 0;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================================
   MAIN WRAPPER (общий контейнер)
   ============================================================ */
.main-wrapper {
  background: #EEEEEE;
  border: none;
  border-radius: var(--radius-xl);
  padding: 36px 32px 40px;
  box-shadow: var(--shadow-card);
  min-height: 515px;
  transition: box-shadow 0.3s ease;
}

.main-wrapper:hover {
  box-shadow: var(--shadow-floating-soft);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.main-wrapper__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

.main-wrapper__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.main-wrapper__right {
  min-width: 0;
}

.main-wrapper__right .rec-section {
  border: none;
  padding: 20px;
  margin-top: 0;
  background: #F3F3F3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.main-wrapper__right .rec-section:hover {
  box-shadow: var(--shadow-floating-soft);
}

[data-theme="dark"] .main-wrapper__right .rec-section {
  background: #1C2130;
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
  display: flex;
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 16px 20px 0;
  overflow: visible;
  min-height: 478px;
}

.hero-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 55%;
  justify-content: flex-start;
  padding: 8px 0 8px 28px;
}

/* Центр по высоте: мета, заголовок, теги */
.hero-card__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 0;
}

/* Badge with left accent border — фиксированная высота, чтобы категории не прыгали */
.hero-card__badge {
  display: flex;
  align-items: center;
  min-height: 28px;
  height: 28px;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  padding: 1px 12px 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Meta: source + time — фиксированная высота строки */
.hero-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  min-height: 20px;
}

.hero-card__source {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero-card__sep {
  color: rgba(255,255,255,0.7);
}

.hero-card__time {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero-card__meta {
  color: rgba(255,255,255,0.85);
}

.hero-card__title {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.hero-card__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card__tags .htag {
  font-size: 13px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.22);
}

.hero-card__body .read-btn {
  margin-top: auto;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  width: fit-content;
  margin-top: 6px;
}

.read-btn:hover {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 8px 24px rgba(237, 30, 77, 0.35);
  transform: translateY(-1px);
}

.read-btn svg {
  transition: transform var(--transition);
}

.read-btn:hover svg {
  transform: translateX(3px);
}

/* Hero photo visual */
.hero-card__visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: none;
  background: none;
  z-index: 0;
}

.hero-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .hero-card__visual {
  background: none;
}


.hero-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ============================================================
   BOTTOM CARDS (3 cards under hero)
   ============================================================ */
.bottom-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  position: relative;
}

.mini-card {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: none;
  overflow: hidden;
  isolation: isolate;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  background-color: #1a1d24;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-floating-soft);
}

.mini-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.35) 45%, rgba(15,23,42,0.85) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mini-card:hover .mini-card__overlay {
  opacity: 0.92;
}

.mini-card__content {
  position: relative;
  z-index: 2;
  padding: 14px;
  width: 100%;
}

.mini-card--active {
  box-shadow: 0 0 0 2px rgba(180, 70, 90, 0.85), var(--shadow-floating-soft);
}

[data-theme="dark"] .mini-card--active {
  box-shadow: 0 0 0 2px rgba(180, 70, 90, 0.85), var(--shadow-floating-soft);
}

.mini-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.mini-card__source {
  color: #fff;
  font-weight: 600;
}

.mini-card__sep {
  color: rgba(255,255,255,0.6);
}

.mini-card__time {
  color: rgba(255,255,255,0.75);
}

.mini-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR SEARCH
   ============================================================ */
.sidebar-search {
  display: flex;
  align-items: center;
  height: 36px;
  box-sizing: border-box;
  padding: 0 4px 0 14px;
  border-radius: 8px;
  background: var(--surface-secondary);
  border: none;
  gap: 8px;
  transition: all var(--transition);
}

.sidebar-search:focus-within {
  background: var(--surface);
  border-color: var(--border);
}

.sidebar-search__input {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
  border: none;
  outline: none;
}

.sidebar-search__input:focus,
.sidebar-search__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.sidebar-search__input::placeholder {
  color: var(--text-muted);
}

.sidebar-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  transition: color var(--transition);
}

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

.sidebar-search__btn:focus,
.sidebar-search__btn:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ============================================================
   RECOMMENDED SECTION (sidebar)
   ============================================================ */
.rec-section {
  background: #F3F3F3;
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 32px;
}

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

.rec-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.rec-section__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.rec-section__link:hover {
  color: var(--accent);
}

/* Область с прокруткой: высота фиксирована, размер контейнера не меняется */
.rec-section__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  height: 574px;
  padding-right: 8px;
  margin-right: -8px;
}

.rec-section__scroll::-webkit-scrollbar {
  width: 6px;
}

.rec-section__scroll::-webkit-scrollbar-track {
  background: var(--surface-secondary);
  border-radius: 3px;
}

.rec-section__scroll::-webkit-scrollbar-thumb {
  background: #C4C9D6;
  border-radius: 3px;
}

.rec-section__scroll::-webkit-scrollbar-thumb:hover {
  background: #A8AEBE;
}

/* Featured recommended card */
.rec-featured {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  margin-bottom: 16px;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.rec-featured:hover {
  transform: none;
  box-shadow: none;
}

.rec-featured__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #475569 0%, #64748B 40%, #334155 100%);
  z-index: 0;
}

/* Угловой градиент как у 4 основных новостей — усилен */
.rec-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(100, 116, 139,0.55) 0%, rgba(148, 163, 184,0.35) 35%, rgba(148, 163, 184,0.12) 60%, transparent 85%);
  z-index: 1;
  pointer-events: none;
}

.rec-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,23,42,0.55) 100%);
  z-index: 2;
}

.rec-featured__content {
  position: relative;
  z-index: 2;
  padding: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-featured__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.rec-featured__source {
  font-weight: 600;
  opacity: 0.9;
}

.rec-featured__sep,
.rec-featured__time {
  opacity: 0.7;
}

.rec-featured__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  transition: color var(--transition);
}

.rec-featured:hover .rec-featured__title {
  color: #CBD5E1;
}

/* Recommended list */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: opacity var(--transition);
}

.rec-list__item:hover {
  opacity: 0.75;
}

.rec-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-list__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.rec-list__source {
  color: var(--accent);
  font-weight: 500;
}

.rec-list__sep {
  color: var(--text-muted);
}

.rec-list__time {
  color: var(--text-muted);
}

.rec-list__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-list__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

/* ============================================================
   SECTIONS (below the fold)
   ============================================================ */
.section {
  padding: 40px 0;
  position: relative;
}

main .section:first-of-type {
  padding-top: 24px;
}

/* ============================================================
   POPULAR WRAPPER
   ============================================================ */
.popular-wrapper {
  background: #EEEEEE;
  border: none;
  border-radius: var(--radius-xl);
  padding: 28px 32px 20px;
  box-shadow: var(--shadow-card);
  max-width: 1440px;
  margin: 24px auto 0;
  width: calc(100% - 80px);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.popular-wrapper:hover {
  box-shadow: var(--shadow-floating-soft);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Общий контейнер для блоков той же ширины (Последние новости, Избранное) */
.block-wrapper {
  background: #EEEEEE;
  border: none;
  border-radius: var(--radius-xl);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-card);
  max-width: 1440px;
  margin: 24px auto 0;
  width: calc(100% - 80px);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.block-wrapper:hover {
  box-shadow: var(--shadow-floating-soft);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.block-wrapper:first-of-type {
  margin-top: 24px;
}

.block-wrapper .section {
  padding-top: 0;
  padding-bottom: 24px;
}


.block-wrapper .section--video {
  padding-bottom: 0;
}

.section--video .container {
  padding: 0;
}

/* Video Grid: horizontal carousel, 3.5 cards visible */
.video-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.video-grid::-webkit-scrollbar {
  display: none;
}

.video-grid > .video-card {
  flex: 0 0 calc((100% - 50px) / 3.5);
  min-width: 0;
  scroll-snap-align: start;
}


.video-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-secondary);
  border: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  isolation: isolate;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
  background: #FFFFFF;
}

[data-theme="dark"] .video-card:hover {
  background: #1E2336;
}

.video-card__thumb {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.video-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.5) 100%);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(100, 116, 139,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 16px rgba(100, 116, 139,0.3);
}

.video-card__play svg {
  margin-left: 2px;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(100, 116, 139,1);
}

.video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15,23,42,0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.video-card__body {
  padding: 16px 20px 20px;
}

.video-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

[data-theme="dark"] .video-card {
  background: var(--surface-secondary);
  border-color: var(--border);
}

/* Отступ от контейнера до названия раздела как в Популярное (28px сверху, 20px снизу от заголовка) */
.block-wrapper .section__header {
  margin-top: 0;
  margin-bottom: 20px;
}

main .block-wrapper .section:first-of-type {
  padding-top: 0;
}

.popular-wrapper .section__header {
  margin-bottom: 20px;
}

.popular-wrapper .article-card {
  border: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-wrapper .article-card__body {
  background: var(--surface-secondary);
  padding: 13px;
  gap: 5px;
}

.popular-wrapper .article-card__title {
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-wrapper .article-card__meta {
  font-size: 12px;
}

.popular-wrapper .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.section__title .badge-accent,
.rec-section__title .badge-accent,
.sidebar-block__title .badge-accent {
  height: 34px;
  min-height: 34px;
  padding: 1px 18px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.popular-wrapper .news-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ============================================================
   LINE NEWS (text-only grid)
   ============================================================ */
.line-news {
  margin-top: 36px;
}

.line-news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.line-news__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
}

.line-news__item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.line-news__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.line-news__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-news__date {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="dark"] .line-news__item:hover {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1200px) {
  .popular-wrapper .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .line-news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .line-news__grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--surface-secondary);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
}

.article-card:hover .article-card__body {
  background: #FFFFFF;
}

[data-theme="dark"] .article-card:hover .article-card__body {
  background: #1E2336;
}

.article-card__img {
  height: 150px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.article-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-secondary);
  flex: 1;
  transition: background 0.3s ease;
}

.article-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.article-card__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.article-card__date,
.article-card__read-time {
  font-size: 13px;
  color: var(--text-muted);
}

.article-card__read-time::before {
  content: '·';
  margin-right: 16px;
}

.article-card--horizontal {
  display: flex;
  flex-direction: row;
}

.article-card--horizontal .article-card__img {
  width: 200px;
  min-width: 200px;
  height: auto;
  min-height: 160px;
}

.article-card--horizontal .article-card__body {
  flex: 1;
}

/* ============================================================
   CONTENT + SIDEBAR LAYOUT (below the fold)
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Сетка: строка 1 — заголовок; строка 2 — сайдбар слева, 4 новости справа */
.content-layout--header-span {
  grid-template-columns: 340px 1fr;
  grid-template-areas: 'header header' 'sidebar main-top';
  grid-template-rows: auto 800px;
  gap: 0 12px;
  align-items: stretch;
}

.content-layout--header-span .content-layout__sidebar--combined {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  position: relative;
  left: -40px;
  top: 0;
}

.content-layout--header-span .content-layout__header {
  grid-area: header;
  margin-left: -40px;
  padding-left: 0;
}

/* 4 новости справа: 32px до блока справа, 24px до «Читают сейчас» слева */
.content-layout--header-span .content-layout__main-top {
  grid-area: main-top;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 20px;
  margin-right: -40px;
  margin-left: -28px;
}

.content-layout--header-span .content-layout__main-top .article-card {
  min-height: 0;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-card);
  background: var(--surface-secondary);
}

.content-layout--header-span .content-layout__main-top .article-card--horizontal {
  flex-direction: row;
}

.content-layout--header-span .content-layout__main-top .article-card--horizontal .article-card__img {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  height: auto;
  min-height: 130px;
}

.content-layout--header-span .content-layout__main-top .article-card__body {
  padding: 14px 16px;
  gap: 6px;
}

.content-layout--header-span .content-layout__main-top .article-card__title {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-layout--header-span .content-layout__main-top .article-card__meta {
  font-size: 11px;
  margin-top: auto;
}

.content-layout--header-span .content-layout__main-top .article-card__body {
  background: var(--surface-secondary);
}

.content-layout--header-span .content-layout__main-top .article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
}

.content-layout--header-span .content-layout__main-top .article-card:hover .article-card__body {
  background: #FFFFFF;
}

[data-theme="dark"] .content-layout--header-span .content-layout__main-top .article-card:hover .article-card__body {
  background: #1E2336;
}

.content-layout--header-span .content-layout__sidebar-top {
  flex: 0 0 594px;
  height: 594px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* «Читают сейчас» — ширина 340px, отступ слева 32px до block-wrapper */
.content-layout--header-span .content-layout__sidebar-top .sidebar-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  background: #F3F3F3;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

[data-theme="dark"] .content-layout--header-span .content-layout__sidebar-top .sidebar-block {
  background: #1C2130;
}

.content-layout--header-span .content-layout__sidebar-top .sidebar-block:hover {
  box-shadow: var(--shadow-floating-soft);
}

.content-layout--header-span .content-layout__sidebar-top .news-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  padding-left: 8px;
  margin-left: -8px;
}

.content-layout--header-span .content-layout__sidebar-top .news-list > * {
  direction: ltr;
}

.content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar {
  width: 6px;
}

.content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-track {
  background: var(--surface-secondary);
  border-radius: 3px;
}

.content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-thumb {
  background: #C4C9D6;
  border-radius: 3px;
}

.content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-thumb:hover {
  background: #A8AEBE;
}

.content-layout--header-span .content-layout__sidebar-bottom {
  position: absolute;
  top: 618px;
  left: 0;
  right: 0;
  flex: none;
}

.content-layout--header-span .content-layout__sidebar-bottom .sidebar-block--accent {
  flex: none;
  height: 182px;
  min-height: 182px;
  padding: 16px 20px 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.content-layout--header-span .content-layout__sidebar-bottom .archive-block {
  flex: none;
  height: 182px;
  min-height: 182px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  background: #F3F3F3;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .content-layout--header-span .content-layout__sidebar-bottom .archive-block {
  background: #242A3A;
}

.content-layout--header-span .content-layout__sidebar-bottom .sidebar-block__title {
  margin-bottom: 10px;
}

.content-layout--header-span .content-layout__sidebar-bottom .sidebar-block__text {
  margin-bottom: 12px;
}

.content-layout--header-span .content-layout__sidebar-bottom .subscribe-form {
  min-width: 0;
}

.content-layout--header-span .content-layout__sidebar-bottom .subscribe-form__input {
  min-width: 0;
  padding: 0 12px;
  font-size: 13px;
}

.content-layout--header-span .content-layout__sidebar-bottom .subscribe-form__btn {
  padding: 0 12px;
  font-size: 13px;
  flex-shrink: 0;
}

.content-layout__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

/* Sidebar Blocks */
.sidebar-block {
  background: var(--surface);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.3s ease;
}

.sidebar-block:hover {
  box-shadow: var(--shadow-floating-soft);
}

.sidebar-block--accent {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.08) 0%, rgba(148, 163, 184,0.05) 100%);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   ARCHIVE CALENDAR
   ============================================================ */
.archive-block .sidebar-block__title {
  margin: 0 0 4px;
  font-size: 14px;
}

.archive-calendar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}

.archive-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}

.archive-calendar__month {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.archive-calendar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.archive-calendar__nav svg {
  width: 12px;
  height: 12px;
}

.archive-calendar__nav:hover {
  background: rgba(15,23,42,0.06);
  color: var(--text-primary);
}

[data-theme="dark"] .archive-calendar__nav:hover {
  background: rgba(255,255,255,0.08);
}

.archive-calendar__weekdays,
.archive-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.archive-calendar__grid {
  flex: 1;
  min-height: 0;
  grid-auto-rows: 1fr;
}

.archive-calendar__weekdays span {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 1px 0;
}

.archive-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 4px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  min-height: 0;
}

a.archive-calendar__day:hover {
  background: rgba(15,23,42,0.06);
}

[data-theme="dark"] a.archive-calendar__day:hover {
  background: rgba(255,255,255,0.08);
}

.archive-calendar__day--muted {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.archive-calendar__day--future {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: default;
}

.archive-calendar__day--today {
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
}

a.archive-calendar__day--today:hover {
  background: var(--brand-red-hover);
  color: #fff;
}

.sidebar-block__glow {
  display: none;
}

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

.sidebar-block__header .sidebar-block__title {
  margin-bottom: 0;
}

.sidebar-block__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.sidebar-block__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.sidebar-block__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* News List (below-the-fold sidebar) */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-list__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity var(--transition);
}

.news-list__item:hover {
  opacity: 0.8;
}

.news-list__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.news-list__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.news-list__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  gap: 8px;
}

.subscribe-form__input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-secondary);
  border: none;
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
}

.subscribe-form__input::placeholder {
  color: var(--text-muted);
}

.subscribe-form__input:focus {
  outline: none;
}

.subscribe-form__btn {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.subscribe-form__btn:hover {
  box-shadow: var(--shadow-floating-soft);
  transform: translateY(-1px);
}


/* ============================================================
   SUBSCRIBE STANDALONE
   ============================================================ */
.subscribe-standalone {
  display: none;
  margin-top: 16px;
  border-radius: var(--radius-xl);
}

.subscribe-standalone .sidebar-block--accent {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
}

.subscribe-standalone .subscribe-form {
  flex-direction: column;
  gap: 10px;
}

.subscribe-standalone .subscribe-form__input,
.subscribe-standalone .subscribe-form__btn {
  width: 100%;
  height: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-top: 24px;
  padding: 28px 0 0;
  background: #EEEEEE;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  align-items: start;
}

.footer__brand {
  max-width: none;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 360px;
}

.footer__links {
  display: contents;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links .footer__link {
  font-size: 13px;
}

/* ============================================================
   FOCUS STYLES
   ============================================================ */
*:focus-visible {
  outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  .page-layout {
    grid-template-columns: 1fr 320px;
    gap: 20px;
    padding: 20px 24px 0;
  }

  .hero-card__title {
    font-size: 30px;
  }

  .hero-card__body {
    max-width: 55%;
  }

  .content-layout {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 24px 0;
  }

  .main-wrapper__grid {
    grid-template-columns: 1fr 280px;
  }

  .hero-card__body {
    max-width: 65%;
  }

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

  .content-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-layout--header-span {
    grid-template-areas: 'header' 'main-top' 'sidebar';
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
  }

  .content-layout--header-span .content-layout__header {
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 0;
  }

  .content-layout--header-span .content-layout__main-top {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    margin-left: 0;
    margin-right: 0;
    gap: 16px;
  }

  .content-layout--header-span .content-layout__sidebar--combined {
    left: 0;
    position: relative;
  }

  .content-layout--header-span .content-layout__sidebar-top {
    flex: none;
    height: auto;
  }

  .content-layout--header-span .content-layout__sidebar-top .sidebar-block {
    flex: none;
    min-height: 0;
    max-height: 400px;
    padding-left: 20px;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list {
    overflow: visible;
    max-height: none;
    direction: ltr;
    padding-left: 0;
    margin-left: 0;
  }

  .content-layout--header-span .content-layout__sidebar-bottom {
    position: static;
    top: auto;
  }

  .content-layout--header-span .content-layout__sidebar-bottom .sidebar-block--accent,
  .content-layout--header-span .content-layout__sidebar-bottom .archive-block {
    padding: 24px;
  }

  .content-layout--header-span .content-layout__sidebar-bottom .sidebar-block--accent {
    height: auto;
    min-height: auto;
  }

  .content-layout__sidebar {
    position: static;
  }

}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  .block-wrapper .container {
    padding: 0;
  }

  .block-wrapper {
    overflow: visible;
  }

  .popular-wrapper {
    overflow: visible;
  }

  .page-layout {
    padding: 64px 0 0;
  }

  .topbar {
    width: calc(100% - 32px);
    top: 10px;
    height: 50px;
    gap: 12px;
    padding: 0 12px;
    justify-content: space-between;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .topbar.topbar--visible {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
  }

  .topbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .topbar__nav {
    display: none;
  }

  .mobile-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    margin-bottom: 8px;
  }

  main > .mobile-subbar {
    margin-top: 68px;
  }

  main > .mobile-subbar + .block-wrapper,
  main > .mobile-subbar + .article-page,
  main > .mobile-subbar + div {
    margin-top: 12px !important;
  }

  .category-page__title,
  .video-page__title,
  .about-page__title,
  .contacts-page__title {
    display: none;
  }

  .category-page__breadcrumb,
  .video-page__breadcrumb,
  .about-page__breadcrumb,
  .contacts-page__breadcrumb {
    display: none !important;
  }

  .topbar__right {
    order: 1;
  }

  .sidebar-search {
    display: none;
  }

  .main-wrapper {
    padding: 12px;
    min-height: auto;
    border-radius: var(--radius-xl);
    box-shadow: none;
  }

  .main-wrapper__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-card {
    flex-direction: column;
    padding: 0;
    min-height: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .hero-card__visual {
    position: relative;
    width: 100%;
    height: 220px;
    right: auto;
    top: auto;
    bottom: auto;
    opacity: 1;
    border-radius: 0;
    overflow: hidden;
  }

  .hero-card__visual img {
    mask-image: none;
    -webkit-mask-image: none;
    object-fit: cover;
  }

  .hero-card__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
    filter: none;
    pointer-events: none;
  }

  [data-theme="dark"] .hero-card__visual::before {
    background: linear-gradient(to top, rgba(22,27,40,0.95) 0%, rgba(22,27,40,0.7) 30%, rgba(22,27,40,0.4) 55%, rgba(22,27,40,0.15) 75%, transparent 100%);
    filter: none;
  }

  .hero-card__body {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    max-width: 100%;
    padding: 16px 16px 32px;
    justify-content: space-between;
  }

  .hero-card__center {
    gap: 10px;
  }

  .hero-card__title {
    font-size: 22px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }

  .hero-card__badge .badge-accent {
    background: var(--accent);
    color: #fff;
    border: none;
  }

  .hero-card__source {
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }

  .hero-card__sep,
  .hero-card__time {
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }

  .hero-card__tags .htag {
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  }

  .hero-card .read-btn {
    display: none;
  }

  .main-wrapper__left {
    position: relative;
  }

  .bottom-cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 0;
    margin: 0;
    grid-template-columns: none;
  }

  .bottom-cards .mini-card {
    all: unset;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
  }

  .bottom-cards .mini-card::before {
    display: none;
  }

  .bottom-cards .mini-card--active {
    background: #fff;
    transform: scale(1.3);
  }

  .bottom-cards .mini-card * {
    display: none;
  }

  .glass-sphere {
    width: 180px;
    height: 180px;
  }

  .glass-sphere__highlight {
    width: 70px;
    height: 50px;
    top: 20px;
    left: 25px;
  }

  .mini-card {
    padding: 14px 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .popular-wrapper .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
    margin-right: -12px;
    scrollbar-width: none;
  }

  .popular-wrapper .news-grid::-webkit-scrollbar {
    display: none;
  }

  .popular-wrapper .news-grid .article-card {
    flex: 0 0 calc(83.33% - 6px);
    scroll-snap-align: start;
  }

  .popular-wrapper .news-grid .article-card:last-child {
    margin-right: 12px;
  }

  .article-related .news-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 4px;
    margin-right: -12px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .article-related .news-grid::-webkit-scrollbar {
    display: none;
  }

  .article-related .news-grid .article-card {
    flex: 0 0 calc(46% - 5px);
    scroll-snap-align: start;
    min-width: 0;
  }

  .article-related .news-grid .article-card .article-card__body {
    padding: 6px 8px;
    gap: 2px;
  }

  .article-related .news-grid .article-card .article-card__title {
    font-size: 12.5px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .article-related .news-grid .article-card .article-card__category {
    font-size: 10px;
  }

  .article-related .news-grid .article-card .article-card__meta {
    font-size: 10px;
    gap: 6px;
    margin-top: 2px;
  }

  .article-related .news-grid .article-card .article-card__img {
    height: 90px;
  }

  .article-card__img {
    height: 120px;
  }

  .article-card__body {
    padding: 14px;
    gap: 6px;
  }

  .article-card__excerpt {
    -webkit-line-clamp: 2;
  }

  .article-card__title {
    font-size: 15px;
  }

  .article-card--horizontal {
    flex-direction: column;
  }

  .article-card--horizontal .article-card__img {
    width: 100%;
    min-width: auto;
    height: 130px;
    min-height: auto;
  }

  .video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-right: -12px;
    scrollbar-width: none;
  }

  .video-grid::-webkit-scrollbar {
    display: none;
  }

  .video-grid .video-card {
    flex: 0 0 calc(83.33% - 6px);
    scroll-snap-align: start;
  }

  .video-grid .video-card:last-child {
    margin-right: 12px;
  }

  .video-card__thumb {
    height: 120px;
  }

  .video-card__body {
    padding: 12px 14px 14px;
  }

  .rec-section__scroll {
    height: 280px;
  }

  .content-layout--header-span .content-layout__main-top {
    height: auto;
    margin-left: 0;
    margin-right: -12px;
    gap: 12px;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .content-layout--header-span .content-layout__main-top::-webkit-scrollbar {
    display: none;
  }

  .content-layout--header-span .content-layout__main-top .article-card {
    flex: 0 0 calc(83.33% - 6px);
    scroll-snap-align: start;
  }

  .content-layout--header-span .content-layout__main-top .article-card:last-child {
    margin-right: 12px;
  }

  .content-layout--header-span .content-layout__main-top .article-card.article-card--horizontal {
    flex-direction: column;
  }

  .content-layout--header-span .content-layout__main-top .article-card--horizontal .article-card__img {
    width: 100%;
    min-width: auto;
    height: 140px;
  }

  .content-layout--header-span .content-layout__sidebar-top {
    flex: none;
    height: auto;
  }

  .content-layout--header-span .content-layout__sidebar-top .sidebar-block {
    flex: none;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list {
    flex: none;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 330px;
    direction: ltr;
    padding-left: 0;
    margin-left: 0;
    padding-right: 8px;
    margin-right: -8px;
    padding-bottom: 8px;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar {
    width: 6px;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-track {
    background: var(--surface-secondary);
    border-radius: 3px;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-thumb {
    background: #C4C9D6;
    border-radius: 3px;
  }

  .content-layout--header-span .content-layout__sidebar-top .news-list::-webkit-scrollbar-thumb:hover {
    background: #A8AEBE;
  }

  .popular-wrapper {
    width: 100%;
    padding: 16px 12px 12px;
    margin-top: 16px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    box-shadow: none;
  }

  .block-wrapper {
    width: 100%;
    padding: 16px 12px 12px;
    margin-top: 16px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    box-shadow: none;
  }

  .block-wrapper.subscribe-standalone {
    display: none;
  }

  .subscribe-desktop {
    display: none;
  }

  .content-layout--header-span .content-layout__sidebar-top .sidebar-block {
    padding-bottom: 4px;
  }

  .block-wrapper .section {
    padding-bottom: 0;
  }

  .block-wrapper[style*="margin-top"] {
    margin-top: 60px !important;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 16px;
  }

  .footer {
    margin-top: 16px;
    padding-top: 20px;
  }

  .footer__brand {
    text-align: center;
    margin-bottom: 8px;
  }

  .footer__brand .topbar__logo {
    position: static;
    transform: none;
    justify-content: center;
    display: flex;
    margin-bottom: 16px;
  }

  .footer__desc {
    max-width: none;
    text-align: center;
    margin-top: 0;
  }

  .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    width: 100%;
  }

  .footer__col {
    text-align: left;
    align-items: flex-start;
  }

  .footer__link {
    justify-content: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-list {
    gap: 16px;
  }

  .sidebar-block {
    padding: 16px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form__input {
    flex: none;
    height: 40px;
    width: 100%;
  }

  .subscribe-form__btn {
    height: 40px;
    width: 100%;
  }

  .rec-section {
    border-radius: var(--radius-md);
    margin-top: 0;
    padding: 16px;
  }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page {
  padding: 40px 48px;
}

.article-full__header {
  max-width: 100%;
}

.article-full__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-full__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.article-full__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.article-full__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-full__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.article-full__cover {
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.article-full__body {
  max-width: 100%;
}

.article-full__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.article-full__body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-full__quote {
  position: relative;
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.08) 0%, rgba(148, 163, 184,0.04) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-primary);
}

.article-full__quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-secondary);
}

.article-full__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-full__gallery-item {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.article-full__gallery-item:hover {
  transform: scale(1.02);
}

.article-full__gallery-item--wide {
  grid-column: 1 / -1;
  height: 340px;
}

.article-full__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.htag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(100, 116, 139,0.08);
  padding: 6px 14px;
  border-radius: 4px;
  transition: background var(--transition);
}

.htag:hover {
  background: rgba(100, 116, 139,0.16);
}

.article-full__share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 0;
  padding-top: 0;
  border-top: none;
}

.article-full__share-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.article-full__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
}

.article-full__share-btn:hover {
  background: var(--surface);
  box-shadow: var(--shadow-floating-soft);
}

.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-related .section__title {
  margin-bottom: 0;
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-page {
  padding: 32px 48px 40px;
}

.category-page__content {
  display: block;
}

.category-page__main {
  min-width: 0;
}

.cat-feed {
  display: flex;
  flex-direction: column;
  overflow: visible;
  margin-top: 0;
  align-self: start;
}

/* Контейнер ленты как в Рекомендуемое */
.cat-feed .rec-section {
  margin-top: 0;
  border: none;
  padding: 20px;
  background: #F3F3F3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.cat-feed .rec-section:hover {
  box-shadow: var(--shadow-floating-soft);
}

[data-theme="dark"] .cat-feed .rec-section {
  background: #1C2130;
}

.cat-feed .rec-section__header {
  margin-bottom: 16px;
}

.cat-feed .rec-section__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  direction: rtl;
  padding-left: 8px;
  margin-left: -8px;
}

.cat-feed .rec-list {
  direction: ltr;
}

.cat-feed .rec-section__scroll > * {
  direction: ltr;
  padding-left: 9px;
}

.cat-feed .rec-section__scroll::-webkit-scrollbar {
  width: 6px;
}

.cat-feed .rec-section__scroll::-webkit-scrollbar-track {
  background: var(--surface-secondary);
  border-radius: 3px;
}

.cat-feed .rec-section__scroll::-webkit-scrollbar-thumb {
  background: #C4C9D6;
  border-radius: 3px;
}

.cat-feed .rec-section__scroll::-webkit-scrollbar-thumb:hover {
  background: #A8AEBE;
}

.cat-feed__title,
.cat-feed .rec-section__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cat-feed .rec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-feed .rec-list__item {
  border-top: 1px solid var(--border);
}
.cat-feed .rec-list__item:first-child {
  border-top: none;
}



.cat-feed .rec-list__title a {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-feed .rec-list__title a:hover {
  color: var(--accent);
}

.category-page__header {
  margin-bottom: 40px;
}

.video-page__header {
  margin-bottom: 32px;
}

.category-page__breadcrumb,
.video-page__breadcrumb,
.about-page__breadcrumb,
.contacts-page__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.category-page__breadcrumb a,
.video-page__breadcrumb a,
.about-page__breadcrumb a,
.contacts-page__breadcrumb a,
.article-full__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.category-page__breadcrumb a:hover,
.video-page__breadcrumb a:hover,
.about-page__breadcrumb a:hover,
.contacts-page__breadcrumb a:hover {
  color: var(--accent);
}

.category-page__title,
.video-page__title,
.about-page__title,
.contacts-page__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.category-page__filters,
.video-page__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.home-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 20px;
  overflow: visible;
}

.home-filters .category-pill {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  font-size: 13px;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 1024px) {
  .home-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .home-filters::-webkit-scrollbar {
    display: none;
  }

  .home-filters .category-pill {
    flex: 0 0 auto;
  }
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 6px;
  background: rgba(15,23,42,0.04);
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.4s ease-out, color 0.4s ease-out, box-shadow 0.4s ease-out;
  font-family: var(--font);
  text-decoration: none;
}

.category-pill:hover {
  color: var(--text-primary);
  background: rgba(15,23,42,0.08);
  box-shadow: var(--shadow-floating-soft);
}

.category-pill--active {
  background: rgba(15,23,42,0.08);
  color: var(--text-primary);
  border-color: transparent;
}

.category-pill--active:hover {
  background: rgba(15,23,42,0.12);
  color: var(--text-primary);
}

[data-theme="dark"] .category-pill {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

[data-theme="dark"] .category-pill:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  box-shadow: var(--shadow-floating-soft);
}

[data-theme="dark"] .category-pill--active {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

[data-theme="dark"] .category-pill--active:hover {
  background: rgba(255,255,255,0.18);
  color: var(--text-primary);
}

.cat-featured-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.cat-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
}

.cat-featured-card__img {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.cat-featured-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.cat-featured-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.cat-featured-card__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.cat-featured-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.category-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-page__grid .article-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.category-page__pagination,
.video-page__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.pagination__btn:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.pagination__btn--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pagination__btn--next {
  gap: 6px;
  padding: 0 20px;
}

.pagination__dots {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page {
  padding: 40px 48px;
}

.about-page__subtitle,
.contacts-page__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.about-page__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 16px;
  margin-bottom: 48px;
}

.about-page__hero-left {
  display: flex;
  flex-direction: column;
}

.about-page__mission {
  margin-top: 24px;
}

.about-mission__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-mission__content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-mission__image {
  width: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

.about-mission__slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 360px;
}

.about-mission__slides {
  display: flex;
  width: 300%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.8s ease-in-out;
}

.about-mission__slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.about-mission__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.about-mission__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.about-mission__dot--active {
  background: #fff;
  transform: scale(1.25);
}

.about-page__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.08) 0%, rgba(148, 163, 184,0.04) 100%);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.about-stat:hover {
  box-shadow: var(--shadow-floating-soft);
}

.about-stat__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.about-stat__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.about-values__title,
.about-team__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-value {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.06) 0%, rgba(148, 163, 184,0.03) 100%);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-value:hover {
  box-shadow: var(--shadow-floating-soft);
  transform: translateY(-2px);
}

.about-value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: #fff;
  flex-shrink: 0;
}

.about-value__icon svg {
  width: 20px;
  height: 20px;
}

.about-value__text {
  flex: 1;
  min-width: 0;
}

.about-value__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-value__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-team-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  background: var(--surface-secondary);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-team-card:hover {
  box-shadow: var(--shadow-floating-soft);
  transform: translateY(-2px);
}

.about-team-card__avatar {
  width: 120px;
  min-height: 120px;
  align-self: stretch;
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}

.about-team-card__info {
  padding: 16px 20px;
  text-align: left;
}

.about-team-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-team-card__role {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-page {
  padding: 40px 48px;
}

.contacts-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.contacts-page__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.06) 0%, rgba(148, 163, 184,0.03) 100%);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-floating-soft);
}

.contact-card__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: #fff;
  padding: 12px;
}

.contact-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-card__content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-card__content a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-card__content a:hover {
  color: var(--accent-secondary);
}

.contact-card__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-card__socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(100, 116, 139,0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}

.contact-social:hover {
  background: rgba(100, 116, 139,0.16);
}

.contacts-page__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-page__form-wrap > .form-submit {
  align-self: flex-end;
}

.contact-form {
  padding: 32px;
  background: linear-gradient(135deg, rgba(100, 116, 139,0.06) 0%, rgba(148, 163, 184,0.03) 100%);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.contact-form .contact-form__form {
  flex: 1;
}

.contact-form__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group:has(.form-textarea) {
  flex: 1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 116, 139,0.12);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 80px;
}

.form-submit {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  align-self: flex-end;
  margin-top: auto;
}

.form-submit:hover {
  box-shadow: var(--shadow-floating);
  transform: translateY(-1px);
}

.contacts-page__map {
  margin-top: 48px;
}

.contacts-map__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contacts-map__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}


.contacts-map__card {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 2;
}

[data-theme="dark"] .contacts-map__card {
  background: rgba(30,32,48,0.75);
}

.contacts-map__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contacts-map__card-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.contacts-map__card-addr {
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.video-page {
  padding: 40px 48px;
}

.video-featured-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--surface-secondary);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.video-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating-soft);
}

.video-featured-card__img {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-featured-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(100, 116, 139,0.85);
  backdrop-filter: blur(6px);
  transition: transform var(--transition), background var(--transition);
}

.video-featured-card:hover .video-featured-card__play {
  transform: scale(1.08);
  background: var(--accent);
}

.video-featured-card__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
}

.video-featured-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  gap: 12px;
}

.video-featured-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  align-self: flex-start;
}

.video-featured-card__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.video-featured-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.video-featured-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.video-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vp-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-secondary);
  border: none;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition), transform var(--transition);
}

.vp-card:hover {
  box-shadow: var(--shadow-floating-soft);
  transform: translateY(-4px);
  background: #FFFFFF;
}

[data-theme="dark"] .vp-card:hover {
  background: #1E2336;
}

.vp-card__img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(100, 116, 139,0.8);
  backdrop-filter: blur(4px);
  transition: transform var(--transition);
}

.vp-card:hover .vp-card__play {
  transform: scale(1.1);
}

.vp-card__duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-xs);
}

.vp-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.vp-card__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.vp-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   INNER PAGES — RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .article-page,
  .category-page,
  .about-page,
  .contacts-page,
  .video-page {
    padding: 24px 20px;
  }

  .article-full__title {
    font-size: 26px;
  }

  .article-full__cover {
    height: 260px;
  }

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

  .article-full__gallery-item {
    height: 200px;
  }

  .article-full__gallery-item--wide {
    height: 240px;
  }

  .article-full__quote {
    padding: 20px 22px;
    font-size: 15px;
  }

  .article-full__share {
    flex-wrap: wrap;
  }

  .article-related {
    margin-top: 20px;
    padding-top: 16px;
  }

  .category-page__content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cat-feed {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
    order: 1;
  }

  .cat-feed .rec-section {
    overflow: visible;
    height: auto;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .cat-feed .rec-section__scroll {
    height: 420px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    direction: ltr;
    padding-left: 0;
    margin-left: 0;
    padding-right: 8px;
    margin-right: -8px;
  }

  .cat-feed .rec-list {
    direction: ltr;
    padding-left: 0;
    margin-left: 0;
  }

  .category-page__filters,
  .video-page__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .category-page__filters::-webkit-scrollbar,
  .video-page__filters::-webkit-scrollbar {
    display: none;
  }

  .category-page__grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: calc(44% - 4px);
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-right: -12px;
    padding-right: 12px;
  }

  .category-page__grid::-webkit-scrollbar {
    display: none;
  }

  .category-page__grid .article-card {
    scroll-snap-align: start;
    min-width: 0;
  }

  .category-page__grid .article-card__body {
    padding: 8px 10px;
    gap: 3px;
  }

  .category-page__grid .article-card__img {
    height: 90px;
  }

  .category-page__grid .article-card__title {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-page__grid .article-card__category {
    font-size: 11px;
  }

  .category-page__grid .article-card__meta {
    font-size: 11px;
    gap: 6px;
  }

  .video-page__grid,
  .about-values__grid,
  .about-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-page__hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-mission__slider {
    min-height: 260px;
  }

  .about-page__mission {
    grid-template-columns: 1fr;
  }

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

  .contacts-page__grid {
    grid-template-columns: 1fr;
  }

  .contacts-map__frame iframe {
    height: 280px !important;
  }

  .video-featured-card {
    grid-template-columns: 1fr;
  }

  .video-featured-card__img {
    height: 220px;
  }

  .cat-featured-card__img {
    height: 260px;
  }

  .cat-featured-card__title {
    font-size: 22px;
  }

  .category-page__header {
    margin-bottom: 24px;
  }

  .pagination__btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pagination__btn--next {
    padding: 0 14px;
  }

  .category-page__pagination {
    display: none;
  }
}

@media (max-width: 600px) {
  .video-page__grid,
  .about-values__grid,
  .about-team__grid {
    grid-template-columns: 1fr;
  }

  .about-page__stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-team-card__avatar {
    width: 90px;
    min-height: 90px;
  }

  .about-team-card__info {
    padding: 12px 14px;
  }

  .article-full__body p {
    font-size: 15px;
  }

  .cat-featured-card__title {
    font-size: 18px;
  }

  .cat-featured-card__img {
    height: 200px;
  }

  .cat-featured-card__overlay {
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  }

  .cat-featured-card__category {
    margin-bottom: auto;
    align-self: flex-start;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .contact-card {
    padding: 18px;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .topbar {
    width: calc(100% - 16px);
    top: 6px;
    height: 46px;
    gap: 8px;
    padding: 0 6px 0 12px;
  }

  .topbar__mobile {
    padding: 70px 20px 24px;
  }

  .topbar__logo {
    height: 22px;
    padding: 0 12px;
  }

  .topbar__logo-img {
    height: 100%;
    width: auto;
  }

  .mobile-subbar {
    padding: 6px 12px;
  }

  main > .mobile-subbar {
    margin-top: 58px;
  }

  .popular-wrapper {
    width: 100%;
    padding: 16px 12px 12px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }

  .block-wrapper {
    width: 100%;
    padding: 16px 12px 12px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  }

  .block-wrapper.subscribe-standalone {
    border-radius: var(--radius-xl);
  }

  .block-wrapper[style*="margin-top"] {
    margin-top: 64px !important;
  }

  .page-layout {
    padding: 62px 0 0;
  }

  .main-wrapper {
    padding: 12px;
    border-radius: var(--radius-xl);
    box-shadow: none;
  }

  .hero-card__visual {
    height: 260px;
  }

  .hero-card__title {
    font-size: 20px;
  }

  .rec-section__scroll {
    height: 300px;
  }

  .section__title {
    font-size: 18px;
  }


  .about-page__stats {
    grid-template-columns: 1fr;
  }

  .about-stat {
    padding: 20px 16px;
  }

  .about-stat__number {
    font-size: 28px;
  }

  .category-page__title,
  .video-page__title,
  .about-page__title,
  .contacts-page__title {
    font-size: 24px;
  }

  .article-full__title {
    font-size: 22px;
  }

  .article-full__cover {
    height: 200px;
    margin-bottom: 24px;
  }

  .article-full__meta {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .contacts-map__frame iframe {
    height: 220px !important;
  }

  .contacts-map__card {
    position: static;
    margin-top: 12px;
    border-radius: var(--radius-md);
  }

  .footer {
    padding: 20px 0 12px;
  }

  .footer__inner {
    padding: 0 16px;
  }

  .footer__top {
    gap: 14px;
  }

  .footer__links {
    gap: 16px;
  }

  .footer__col-title {
    font-size: 14px;
  }

  .footer__copy {
    font-size: 12px;
  }

  .footer__bottom-links .footer__link {
    font-size: 12px;
  }

  .category-pill {
    padding: 6px 14px;
    font-size: 13px;
  }

  .pagination__btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Contacts: Yandex map beside the verified editorial contacts. */
.contacts-page__grid > .contacts-page__map {
  margin-top: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.contacts-page__map .contacts-map__title { margin-bottom: 16px; }
.contacts-page__grid > .contacts-page__map .contacts-map__frame {
  flex: 1;
  min-height: 480px;
}
.contacts-page__grid > .contacts-page__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}
.contacts-map__link {
  align-self: flex-start;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .contacts-page__grid > .contacts-page__map .contacts-map__frame,
  .contacts-page__grid > .contacts-page__map iframe { min-height: 360px; }
}

/* Keep the map flush with the full height of the adjacent contact cards. */
@media (min-width: 901px) {
  .contacts-page__grid > .contacts-page__map { position: relative; min-height: 0; }
  .contacts-page__grid > .contacts-page__map .contacts-map__frame {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
  .contacts-page__grid > .contacts-page__map iframe { height: 100%; min-height: 0; }
}

/* Compact messenger brand icons. */
.messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  color: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}
.messenger-icon--vk { background: #2787F5; }
.messenger-icon--telegram { background: #27A7E7; }
.messenger-icon--ok { background: #F97316; }
.messenger-icon svg { width: 20px; height: 20px; fill: currentColor; }
.messenger-icon--vk svg { width: 28px; height: 28px; }
.messenger-icon:hover { transform: translateY(-2px); opacity: .85; }
.messenger-icon:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
.contact-card__socials:has(.messenger-icon) { gap: 16px; }
.contact-card__socials .messenger-icon { color: #fff; }
.messenger-icon--vk svg { fill: #2787F5; background: #fff; border-radius: 7px; }

.footer__link .footer-social-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--text-secondary);
}
