:root {
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #F9F9F8;
  --ink: #282828;
  --ink-2: #6f6f72;
  --line: #e5e5e8;
  --violet: #6b52a8;
  --nav-h: 56px;
  --header-h: 56px;
  --max: 1180px;
  --bttn-font: Inter, system-ui, sans-serif;
  --bttn-size: 12px;
  --bttn-leading: 20px;
  --bttn-gap: 6px;
  --bttn-icon: 16px;
  --bttn-radius: 10px;
  --bttn-shadow: 0 0 0.225px 0.225px rgba(0,0,0,.05), 0 2.698px 2.923px -1.349px rgba(0,0,0,.12), 0 0.899px 3.598px 0.899px rgba(0,0,0,.08);
  --bttn-shadow-hover-soft: 0 0 0.5px 0.5px rgba(0,0,0,.05), 0 8px 12px -1.349px rgba(0,0,0,.12);
  --bttn-secondary-fill: #f7f7f7;
  --bttn-secondary-stroke-top: #fff;
  --bttn-secondary-stroke-bottom: #e5e5e5;
  --bttn-secondary-inset: inset 0 -4px 4px rgba(237,237,237,.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.hidden { display: none !important; }
.wrap, .container { width: min(100% - 48px, var(--max)); margin-inline: auto; }
@media (max-width: 720px) {
  .wrap, .container { width: min(100% - 24px, var(--max)); }
}

/* Buttons */
.bttn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bttn-gap);
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--bttn-radius);
  background: transparent;
  color: inherit;
  font-family: var(--bttn-font);
  font-size: var(--bttn-size);
  font-weight: 400;
  line-height: var(--bttn-leading);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.bttn--lg { min-height: 40px; padding: 10px 16px; }
.bttn svg { width: var(--bttn-icon); height: var(--bttn-icon); flex: 0 0 auto; display: block; }
.bttn--primary { background: #333; border-color: #6b6b6b; color: #fff; box-shadow: var(--bttn-shadow); }
.bttn--secondary {
  background: var(--bttn-secondary-fill);
  border-color: var(--bttn-secondary-stroke-bottom);
  border-top-color: var(--bttn-secondary-stroke-top);
  color: #262626;
  box-shadow: var(--bttn-shadow), var(--bttn-secondary-inset);
}
.bttn--secondary:hover { box-shadow: var(--bttn-shadow-hover-soft), var(--bttn-secondary-inset); }
.bttn--text { background: transparent; border-color: #e9e9e9; color: #4c4c4d; box-shadow: none; }
.bttn--text:hover { background: rgba(38,38,38,.06); }

/* Navigation — same pattern as fabrika / shared site header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(40,40,40,.08);
}
.header.is-menu-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #fff;
}
.header__inner {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .header__inner { padding: 0 16px; }
}
.logo { display: inline-flex; align-items: center; flex: none; }
.logo__img { display: block; height: 23px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
@media (min-width: 1180px) { .nav { margin-left: 30px; gap: 8px; } }
.nav__link {
  color: #6f6f72;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header__actions .bttn {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.header__btn-login { color: #fff !important; }
.nav__cta { display: none; }
.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.header__menu-btn:hover { background: rgba(0,0,0,.04); }
.header__menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.header__menu-icon::before,
.header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.header__menu-icon::before { top: -6px; }
.header__menu-icon::after { top: 6px; }
.header.is-menu-open .header__menu-icon { background: transparent; }
.header.is-menu-open .header__menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.header.is-menu-open .header__menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.header__overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 101;
  background: rgba(20,20,20,.22);
}
.header.is-menu-open .header__overlay { display: block; }
.header__overlay[hidden] { display: none !important; }
html.is-menu-open { overflow: hidden; }

.nav__item { position: relative; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #6f6f72;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav__toggle:hover,
.nav__item.is-open > .nav__toggle { color: var(--ink); }
.nav__toggle-icon {
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform .18s ease;
}
.nav__item.is-open .nav__toggle-icon { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 248px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(46,46,46,.08);
  box-shadow: 0 16px 40px rgba(20,16,40,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.nav__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.nav__dropdown a:hover { background: rgba(0,0,0,.04); }

@media (max-width: 1179px) {
  .header__inner { height: 56px; gap: 12px; }
  .header .nav { display: none; }
  .header__menu-btn { display: inline-flex; }
  .header__btn-demo { display: none !important; }
  .header__actions { gap: 4px; }
  .header__btn-login {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .header.is-menu-open .nav {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 102;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: auto;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 10px 8px 14px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow:
      0 18px 40px rgba(0,0,0,.12),
      0 0 0 1px rgba(46,46,46,.06);
  }
  .header.is-menu-open .nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 8px);
    height: 44px;
    margin: 10px 4px 2px;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 10px;
  }
  .header.is-menu-open .nav__item { width: 100%; }
  .header.is-menu-open .nav__toggle,
  .header.is-menu-open .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.3;
  }
  .header.is-menu-open .nav__link:hover,
  .header.is-menu-open .nav__link.is-active,
  .header.is-menu-open .nav__toggle:hover,
  .header.is-menu-open .nav__item.is-open > .nav__toggle {
    color: var(--ink);
    background: rgba(0,0,0,.04);
  }
  .header.is-menu-open .nav__dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 2px 0 0;
    padding: 4px 0;
    border: 0;
    border-radius: 10px;
    background: rgba(0,0,0,.03);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .header.is-menu-open .nav__item.is-open .nav__dropdown { display: block; }
  .header.is-menu-open .nav__dropdown a {
    padding: 10px 12px 10px 24px;
    border-radius: 8px;
  }
}

/* Page hero and filters */
.page-hero { padding: 48px 0 8px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.crumbs a:hover { color: var(--violet); }
.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
}
.toolbar {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 32px;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 0; }
.chip {
  background: transparent;
  border: 0;
  padding: 10px 2px;
  margin-right: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); border-bottom-color: #282828; font-weight: 600; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
  height: 44px;
  padding: 0 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #757575;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(107,82,168,.2); border-color: #6B52A8; }
.search input { border: 0; outline: 0; width: 100%; background: transparent; font-size: 14px; color: var(--ink); }
.search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.search__submit:hover { color: var(--violet); }

/* Banger */
.banger {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin: 36px 0 40px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(20,20,30,.06);
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.banger:hover { box-shadow: 0 12px 36px rgba(20,20,30,.09); }
.banger__media { position: relative; aspect-ratio: 16/9; background: #F0F0EE; overflow: hidden; }
.banger__media img { width: 100%; height: 100%; object-fit: cover; }
.banger__body { padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.j-badge, .card__badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid transparent;
}
.j-badge { background: #EDEDED; color: #5C5C5C; }
.banger h2, .card h3, .article-hero h1, .content h2, .related__head h2, .page-hero h1 { font-family: var(--font); }
.banger h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banger .lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; color: var(--ink-2); }
.meta__views { display: inline-flex; align-items: center; gap: 8px; }
.meta__views svg { width: 16px; height: 16px; flex: 0 0 auto; display: block; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 8px 0 64px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 28px rgba(20,20,30,.06); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 16/9; background: #F0F0EE; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 12px; top: 12px; background: #EDEDED; color: #5C5C5C; }
.card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(43,43,43,.88);
  color: #fff;
  display: grid;
  place-items: center;
}
.card__body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .excerpt {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta { margin-top: auto; padding-top: 4px; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-2);
  padding: 48px 16px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: #fff;
}

/* Covers without a picture */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eceaf3 0%, #f5f4f1 55%, #e7e4ee 100%);
  color: #9b94ae;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.media-placeholder span { opacity: .85; }

/* Article */
.article-page { padding: 36px 0 64px; }
.article-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
  margin: 12px 0 48px;
}
.article-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.article-hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-hero .dek { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 46ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; color: var(--ink-2); }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #525662;
  cursor: pointer;
  line-height: 0;
}
.share-btn:hover { color: var(--ink); }
.share-btn.is-ok { color: var(--violet); }
.share-btn .share-icon { width: 24px; height: 24px; display: block; }
.article-hero__media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #F0F0EE;
  box-shadow: 0 8px 28px rgba(20,20,30,.06);
}
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 220px;
  gap: 56px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.article-layout--full { grid-template-columns: minmax(0,1fr); }
.article-layout:not(:has(.toc)) { grid-template-columns: minmax(0,1fr); }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; border-left: 1px solid #e5e5e8; }
.toc a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #6f6f72;
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.toc a:hover { color: #1c1c22; }
.toc a.is-on { color: #1c1c22; border-left-color: #282828; font-weight: 600; }
.content { max-width: 720px; font-size: 17px; line-height: 1.75; color: #333; }
.content > * + * { margin-top: 1.35em; }
.content h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-top: 2.2em;
  color: var(--ink);
  font-weight: 700;
}
.content a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.content .source-box {
  margin-top: 2.8em;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink-2);
}
.content .source-box a { font-weight: 600; color: var(--violet); }
.content > p.article-lead:first-child {
  padding-bottom: 1.5em;
  margin-bottom: 1.5em !important;
  border-bottom: 1px solid var(--line);
  font-style: italic;
}
.content > p.article-lead strong { font-style: normal; }
.content ul,
.content ol {
  margin: 1.1em 0;
  padding-left: 1.35em;
}
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content ul li,
.content ol li {
  margin: 0.35em 0;
  line-height: 1.6;
}
.content ul li + li,
.content ol li + li { margin-top: 0.25em; }
.content h2 { border-top: none !important; padding-top: 0 !important; margin-top: 2em; }
.content .quote-plank {
  margin-top: 1.35em;
  padding: 18px 22px 18px 20px;
  border-radius: 16px;
  background: #ede9f5;
  color: #3d3d3d;
  border-left: 3px solid #6b52a8;
}
.content .quote-plank + .quote-plank { margin-top: 12px; }
.content .quote-plank p { margin: 0; font-size: 16px; line-height: 1.55; color: #3d3d3d; }
.content .quote-plank p + p { margin-top: .85em; }

/* Share tooltip */
.share-wrap { position: relative; display: inline-flex; align-items: center; }
.share-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: #282828;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 5;
}
.share-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #282828;
}
.share-wrap:hover .share-tip, .share-wrap.is-copied .share-tip { opacity: 1; }

/* Related */
.related { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.related__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 28px;
}
.related__top h2 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 28px;
  letter-spacing: -.02em;
  font-weight: 700;
}
.related__top .related__tabs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 !important;
  border-bottom: none !important;
}
.related__top .related__cta { flex: 0 0 auto; margin-left: auto; }
.related__tabs .chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px !important;
  margin: 0 !important;
  border-radius: 100px !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 20px;
  background: transparent;
  border: 1px solid #e5e5e8 !important;
  color: #4c4c4d;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.related__tabs .chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 6px #e5e5e8;
  opacity: 0;
  pointer-events: none;
}
.related__tabs .chip:hover { background: #e8e8e8; color: #35353f; }
.related__tabs .chip:active { background: #ededed; }
.related__tabs .chip.chip--pulse::after { animation: chip-press-pulse .55s ease-out; }
.related__tabs .chip.chip--active {
  background: #e8e8e8;
  border-color: #e5e5e8 !important;
  color: #35353f;
  font-weight: 600;
}
@keyframes chip-press-pulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .related__tabs .chip.chip--pulse::after { animation: none; }
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related__cta.bttn--lg { font-size: 14px; font-weight: 500; line-height: 20px; }

/* Banger badges */
.banger__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.banger__media > .banger__badges { display: none; }
.banger .j-badge, .banger__badges .j-badge {
  box-sizing: border-box;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 24px;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.3;
}

/* Glass badge on covers */
.card__badge {
  background: rgba(255,255,255,.55) !important;
  color: #2e2e2e !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(20,20,30,.08);
}

/* Pagination — match Mediahub */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 8px 0 56px; }
.pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 64px;
  background: #f3f3f3;
  color: #282828;
  cursor: pointer;
  text-decoration: none;
}
.pager__nav:hover { background: #e7e7ea; }
.pager__nav.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.pager__nav svg { width: 20px; height: 20px; }
.pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #282828;
  font: inherit;
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  cursor: pointer;
  text-decoration: none;
}
.pager__num.is-active { background: #f3f3f3; }
.pager__num:hover:not(.is-active) { background: #f3f3f3; }
.pager__dots { color: #6f6f72; font-size: 20px; padding: 0 4px; }

/* Text wrapping */
.card h3, .card .excerpt, .banger h2, .banger .lead, .article-hero h1, .article-hero .dek {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}
.card h3, .banger h2 { text-wrap: balance; }
.article-hero h1 { font-size: clamp(24px, 3.2vw, 36px) !important; -webkit-line-clamp: 3 !important; }
.banger h2, .card h3 { -webkit-line-clamp: 3 !important; }

/* Footer */
.footer { background: #111; border-top: 1px solid #1E1E1E; padding-top: 64px; margin-top: 48px; }
.footer a { text-decoration: none; }
.footer__main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid #1E1E1E;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.footer__logo img { height: 28px; width: auto; }
.footer__tagline, .footer__dev-site { margin: 0; font-size: 13.5px; line-height: 1.6; color: #5A5A5A; }
.footer__dev-site a { color: #9A9A9A; border-bottom: 1px solid rgba(154,154,154,.35); }
.footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.footer__socials-label { font-size: 13.5px; color: #5A5A5A; }
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
}
.footer__social svg { width: 28px; height: 28px; display: block; }
.footer__social:hover { color: #C9B8F0; }
.footer__nav {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 40px;
  row-gap: 20px;
  justify-content: end;
  align-content: start;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col-title { margin: 0; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .01em; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 13.5px; line-height: 1.5; color: #5A5A5A; transition: color .15s; }
.footer__col a:hover { color: #AAA; }
.footer__bottom { padding: 24px 0; text-align: center; border-top: 1px solid #252525; }
.footer__bottom p { margin: 1em 0; font-size: 14px; color: #8A8A8A; font-weight: 500; letter-spacing: .01em; }

/* Низкие ноутбуки: чуть меньше вертикальных отступов, без сжатия типографики */
@media (min-width: 961px) and (max-height: 900px) {
  .page-hero { padding: 32px 0 4px; }
  .crumbs { margin-bottom: 14px; }
  .toolbar { margin-top: 22px; }
  .banger { margin: 24px 0 32px; }
  .banger__media { aspect-ratio: 16 / 10; }
  .banger__body { padding: 28px 28px; gap: 14px; }
  .banger .lead { -webkit-line-clamp: 3; }
}

/* Responsive */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0,1fr) 180px; gap: 36px; }
}
@media (max-width: 960px) {
  .article-hero, .article-layout, .banger, .footer__main { grid-template-columns: 1fr; }
  .article-hero { gap: 24px; margin-bottom: 32px; }
  .article-hero__copy { gap: 14px; }
  .article-layout { gap: 28px; padding-top: 28px; }
  .grid, .related-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .toc {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid #e5e5e8;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .toc a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; flex: 0 0 auto; }
  .toc a.is-on { border-bottom-color: #282828; }
  .banger__body { padding: 28px 24px; }
  .banger__body > .banger__badges { display: none; }
  .banger__media > .banger__badges {
    display: flex;
    position: absolute;
    left: 12px;
    top: 12px;
    right: 12px;
    z-index: 2;
    gap: 8px;
    pointer-events: none;
  }
  .banger__media > .banger__badges .j-badge {
    background: rgba(255,255,255,.55);
    color: #2e2e2e;
    border: 1px solid rgba(255,255,255,.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(20,20,30,.08);
  }
  .footer__main { gap: 40px; }
}
@media (max-width: 720px) {
  .page-hero { padding: 32px 0 4px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; margin-right: 14px; padding: 10px 2px; font-size: 16px; white-space: nowrap; }
  .search { width: 100%; min-width: 0; margin-bottom: 8px; }
  .banger { margin: 28px 0 28px; border-radius: 20px; }
  .banger__body { padding: 22px 18px; gap: 12px; }
  .banger h2, .card h3 {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.2;
    letter-spacing: -.02em;
    -webkit-line-clamp: 3;
  }
  .banger .lead { -webkit-line-clamp: 3; font-size: 14px; }
  .grid { gap: 16px; padding-bottom: 40px; }
  .card { border-radius: 18px; gap: 12px; }
  .card__body { padding: 2px 14px 16px; gap: 10px; }
  .card .excerpt { font-size: 13px; -webkit-line-clamp: 3; }
  .article-page { padding: 24px 0 48px; }
  .article-hero h1 { font-size: clamp(22px, 6vw, 32px); -webkit-line-clamp: 4; }
  .article-hero .dek { font-size: 15px; max-width: none; }
  .content { font-size: 16px; }
  .content h2 { font-size: 20px; }
  .related { margin-top: 40px; padding-top: 32px; }
  .related__top { flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
  .related__top .related__tabs {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .related__top .related__tabs::-webkit-scrollbar { display: none; }
  .related__tabs .chip { flex: 0 0 auto; }
  .related__top .related__cta { margin-left: 0; width: 100%; justify-content: center; }
  .footer { padding-top: 48px; margin-top: 32px; }
  .footer__main { gap: 32px; padding-bottom: 36px; }
  .footer__brand { max-width: none; }
  .pager { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  .grid, .related-grid { grid-template-columns: 1fr; }
  .meta { gap: 12px; font-size: 12px; }
  .article-meta { gap: 12px; font-size: 13px; }
  .content .quote-plank { padding: 16px 16px 16px 14px; border-radius: 14px; }
  .content .quote-plank p { font-size: 15px; }
}
@media (max-width: 400px) {
  .pager__nav { width: 40px; height: 40px; }
  .pager__num { width: 44px; height: 44px; font-size: 17px; }
}
@media (max-width: 960px) {
  .footer__nav {
    grid-template-columns: max-content max-content;
    column-gap: 24px;
    row-gap: 24px;
    justify-content: start;
  }
}


