

:root {
  
  --bg: #ffffff;
  --bg-2: #f6f8fb;          
  --surface: #ffffff;
  --surface-2: #f3f5f9;     

  
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);

  
  --fg: #0b1220;            
  --fg-dim: #475569;        
  --fg-mute: #8a96aa;       

  
  --accent: #0ea5e9;        
  --accent-strong: #0284c7; 
  --accent-2: #6366f1;      
  --warn: #d97706;
  --danger: #dc2626;
  --ok: #059669;

  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --header-h: 64px;
  --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(99, 102, 241, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(14, 165, 233, 0.18); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--fg);
}
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  position: relative;
  padding-left: 14px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 4px; height: 70%;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-head .more {
  color: var(--fg-mute);
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__top {
  border-bottom: 1px solid var(--border);
}
.site-header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg);
  flex-shrink: 0;
  transition: opacity .15s;
}
.brand:hover { text-decoration: none; opacity: .88; }
.brand__logo {
  display: block;
  height: 46px;
  width: auto;
  
  margin: -4px 0;
}
.brand__tag {
  color: var(--fg-mute);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 1px solid var(--border-strong);
  padding-left: 14px;
  line-height: 1.3;
}

.search-form {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
}
.search-form input {
  width: 100%;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--fg);
  padding: 0 44px 0 40px;
  outline: none;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-form input::placeholder { color: var(--fg-mute); }
.search-form input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.search-form__icon {
  position: absolute;
  left: 13px;
  color: var(--fg-mute);
  pointer-events: none;
}
.search-form input:focus + .search-form__kbd,
.search-form input:not(:placeholder-shown) + .search-form__kbd { display: none; }
.search-form__kbd {
  position: absolute;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-mute);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .15s, border-color .15s, background .15s;
}
.header-action:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
  text-decoration: none;
}
.header-action svg { color: currentColor; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--border-strong); }
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .15s;
}
.menu-toggle__bars { top: 50%; margin-top: -1px; }
.menu-toggle__bars::before { content: ''; top: -6px; }
.menu-toggle__bars::after  { content: ''; top:  6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

.site-nav__inner {
  height: 48px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}
.site-nav__inner::-webkit-scrollbar { display: none; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: var(--fg-dim);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav__link:hover {
  color: var(--accent-strong);
  text-decoration: none;
}
.site-nav__link.is-active {
  color: var(--accent-strong);
  font-weight: 600;
}
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px 2px 0 0;
}

@media (max-width: 980px) {
  .brand__tag { display: none; }
  .header-action span { display: none; }
  .header-action { padding: 0 10px; width: 36px; justify-content: center; }
  .search-form { max-width: 320px; }
}
@media (max-width: 720px) {
  .site-header__row { gap: 12px; }
  .search-form,
  .header-actions,
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.drawer.is-open { pointer-events: auto; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg);
  box-shadow: -20px 0 40px rgba(15, 23, 42, 0.2);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer__title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-dim);
  display: inline-grid;
  place-items: center;
  transition: background .15s, border-color .15s, color .15s;
}
.drawer__close:hover { color: var(--fg); background: var(--surface-2); }

.drawer__search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer__search svg { position: absolute; left: 33px; color: var(--fg-mute); }
.drawer__search input {
  flex: 1;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  padding: 0 14px 0 40px;
  font-size: 15px;
  outline: none;
}
.drawer__search input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.drawer__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
}
.drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 10px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.drawer__link:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.drawer__link-title { flex: 1; }
.drawer__link-arrow { color: var(--fg-mute); flex-shrink: 0; }
.drawer__link.is-active {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-strong);
  font-weight: 600;
}
.drawer__link.is-active .drawer__link-arrow { color: var(--accent-strong); }

.drawer__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.drawer__footer a { color: var(--fg-dim); }
.drawer__footer a:hover { color: var(--accent-strong); }

body.drawer-open { overflow: hidden; }

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
}
.cookie-banner__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(14, 165, 233, 0.15), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.cookie-banner__body { min-width: 0; }
.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--fg);
}
.cookie-banner__text {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.cookie-banner__text a { color: var(--accent-strong); }
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.cookie-banner__actions .btn { height: 38px; padding: 0 14px; font-size: 13px; }

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column-reverse;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── PWA install banner ──────────────────────────────────────────────── */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 50px -22px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
  flex-wrap: wrap;
}
.pwa-install.is-visible { opacity: 1; transform: translateY(0); }
.pwa-install[hidden] { display: none; }

.pwa-install__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  flex: none;
}
.pwa-install__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 200px;
}
.pwa-install__title { font-size: 14px; font-weight: 700; color: var(--fg); }
.pwa-install__text  { font-size: 12.5px; color: var(--fg-mute); line-height: 1.4; }
.pwa-install__actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pwa-install__actions .btn { height: 34px; padding: 0 14px; font-size: 13px; }

@media (min-width: 720px) {
  .pwa-install {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 460px;
  }
}

[data-theme="dark"] .pwa-install {
  background: var(--surface);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.6);
}

.hero {
  padding: 40px 0 24px;
}
.hero__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background:
    radial-gradient(800px 300px at -10% -20%, rgba(14, 165, 233, 0.10), transparent 60%),
    radial-gradient(700px 300px at 110% 120%, rgba(99, 102, 241, 0.08), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 44px;
  box-shadow: var(--shadow);
}
.hero__poster {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
  position: relative;
  border: 1px solid var(--border);
}
.hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.hero__poster--empty {
  background:
    repeating-linear-gradient(45deg, rgba(15, 23, 42, 0.025) 0 8px, transparent 8px 16px),
    var(--surface-2);
  display: grid; place-items: center;
  color: var(--fg-mute);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__body { display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.03em;
}
.hero h1 a { color: inherit; }
.hero h1 a:hover { text-decoration: none; color: var(--accent-strong); }
.hero p { color: var(--fg-dim); font-size: 17px; }
.hero__cta { margin-top: 18px; display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }

@media (max-width: 880px) {
  .hero__card { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--muted {
  background: var(--surface-2);
  color: var(--fg-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.btn--primary:hover { box-shadow: 0 8px 20px rgba(14, 165, 233, 0.30); }
.btn--ghost {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn--danger {
  background: rgba(220, 38, 38, 0.06);
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.2);
}
.btn--danger:hover { background: rgba(220, 38, 38, 0.10); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.card__poster {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__poster img { transform: scale(1.04); }

.card__poster--empty {
  background:
    radial-gradient(600px 200px at 50% 50%, rgba(14, 165, 233, 0.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.025) 0 8px, transparent 8px 16px),
    var(--surface-2);
  display: grid; place-items: center;
  color: var(--fg-mute);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

.card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card__cat {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); font-weight: 600;
}
.card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.card a.card__title-link { color: inherit; }
.card a.card__title-link:hover { text-decoration: none; color: var(--accent-strong); }
.card__announce {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-mute);
  font-size: 12px;
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-mute); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.cat-card {
  --hue: 200;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 26px 28px 22px;
  min-height: 220px;
  border-radius: 18px;
  background:
    linear-gradient(135deg,
      hsl(var(--hue) 85% 97%) 0%,
      hsl(var(--hue) 62% 92%) 100%);
  border: 1px solid hsl(var(--hue) 50% 86%);
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px hsla(var(--hue) 60% 50% / 0.20);
  border-color: hsl(var(--hue) 60% 70%);
  text-decoration: none;
}
.cat-card__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.cat-card__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fg);
  line-height: 1.18;
}
.cat-card__count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--hue) 60% 32%);
}
.cat-card__desc {
  margin: 0;
  position: relative;
  z-index: 1;
  color: hsl(var(--hue) 30% 25%);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.92;
}
.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: hsl(var(--hue) 70% 30%);
  position: relative;
  z-index: 1;
  transition: gap .2s ease, color .2s ease;
}
.cat-card__cta svg { transition: transform .25s ease; }
.cat-card:hover .cat-card__cta { gap: 12px; color: hsl(var(--hue) 80% 22%); }
.cat-card:hover .cat-card__cta svg { transform: translateX(4px); }
.cat-card__deco {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  color: hsl(var(--hue) 70% 65%);
  opacity: 0.30;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, color .35s;
  z-index: 0;
}
.cat-card__deco svg { width: 130px; height: 130px; stroke-width: 1.4; }
.cat-card:hover .cat-card__deco {
  transform: scale(1.12) rotate(-6deg);
  opacity: 0.5;
  color: hsl(var(--hue) 80% 50%);
}

.cat-card[data-cat="zashchita-dannyh"]        { --hue: 200; }
.cat-card[data-cat="parolyu-i-2fa"]           { --hue: 265; }
.cat-card[data-cat="antifishing"]             { --hue: 350; }
.cat-card[data-cat="bezopasnye-platezhi"]     { --hue: 160; }
.cat-card[data-cat="deti-onlajn"]             { --hue: 35;  }
.cat-card[data-cat="brauzery-i-rasshireniya"] { --hue: 285; }
.cat-card[data-cat="socseti-i-messendzhery"]  { --hue: 220; }
.cat-card[data-cat="zakonodatelstvo"]         { --hue: 240; }

@media (max-width: 520px) {
  .cat-card { padding: 22px 22px 20px; min-height: 200px; }
  .cat-card__title { font-size: 19px; }
  .cat-card__deco { width: 120px; height: 120px; right: -14px; bottom: -14px; }
  .cat-card__deco svg { width: 110px; height: 110px; }
}

[data-theme="dark"] .cat-card {
  background:
    linear-gradient(135deg,
      hsl(var(--hue) 50% 14%) 0%,
      hsl(var(--hue) 38% 9%) 100%);
  border-color: hsl(var(--hue) 38% 26%);
}
[data-theme="dark"] .cat-card:hover {
  border-color: hsl(var(--hue) 60% 50%);
  box-shadow: 0 18px 40px hsla(var(--hue) 70% 30% / 0.45);
}
[data-theme="dark"] .cat-card__title { color: #ecf2fa; }
[data-theme="dark"] .cat-card__count { color: hsl(var(--hue) 75% 75%); }
[data-theme="dark"] .cat-card__desc { color: hsl(var(--hue) 35% 75%); }
[data-theme="dark"] .cat-card__cta { color: hsl(var(--hue) 80% 75%); }
[data-theme="dark"] .cat-card:hover .cat-card__cta { color: hsl(var(--hue) 90% 85%); }
[data-theme="dark"] .cat-card__deco {
  color: hsl(var(--hue) 70% 60%);
  opacity: 0.22;
}
[data-theme="dark"] .cat-card:hover .cat-card__deco {
  color: hsl(var(--hue) 80% 70%);
  opacity: 0.45;
}

.article-page { padding: 24px 0 80px; }
.article-page__crumbs {
  font-size: 13px; color: var(--fg-mute);
  margin-bottom: 18px;
}
.article-page__crumbs a { color: var(--fg-dim); }
.article-page__crumbs a:hover { color: var(--accent-strong); }

.article-hero {
  --hue: 200;
  margin-bottom: 36px;
  position: relative;
  padding-top: 4px;
}
.article-hero[data-cat="zashchita-dannyh"]        { --hue: 200; }
.article-hero[data-cat="parolyu-i-2fa"]           { --hue: 265; }
.article-hero[data-cat="antifishing"]             { --hue: 350; }
.article-hero[data-cat="bezopasnye-platezhi"]     { --hue: 160; }
.article-hero[data-cat="deti-onlajn"]             { --hue: 35;  }
.article-hero[data-cat="brauzery-i-rasshireniya"] { --hue: 285; }
.article-hero[data-cat="socseti-i-messendzhery"]  { --hue: 220; }
.article-hero[data-cat="zakonodatelstvo"]         { --hue: 240; }


.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: hsl(var(--hue) 85% 96%);
  border: 1px solid hsl(var(--hue) 60% 86%);
  color: hsl(var(--hue) 70% 28%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  margin-bottom: 18px;
}
.cat-tag:hover {
  background: hsl(var(--hue) 80% 92%);
  border-color: hsl(var(--hue) 60% 70%);
  transform: translateY(-1px);
  text-decoration: none;
}
.cat-tag__icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, hsl(var(--hue) 75% 55%), hsl(var(--hue) 65% 40%));
  color: #fff;
  flex-shrink: 0;
}
.cat-tag__icon svg { width: 16px; height: 16px; stroke-width: 2; }


.article-hero__title {
  font-size: clamp(30px, 4.4vw, 50px);
  margin: 0 0 22px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--fg);
  max-width: 22ch;
}


.article-hero__lead {
  position: relative;
  margin: 0 0 24px;
  padding: 6px 0 6px 22px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: 70ch;
  font-style: italic;
  font-weight: 400;
}
.article-hero__lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, hsl(var(--hue) 70% 55%), hsl(var(--hue) 60% 40%));
}


.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 13px;
  font-weight: 500;
}
.meta-item svg {
  color: hsl(var(--hue) 70% 50%);
  flex-shrink: 0;
}
.meta-item time { font-feature-settings: 'tnum'; }
.meta-item--live {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--ok);
  font-weight: 600;
}
.meta-item--live .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}


.article-hero__poster {
  position: relative;
  margin-top: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 21 / 9;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.10),
    0 0 0 1px hsl(var(--hue) 50% 80% / 0.4);
}
.article-hero__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero__poster--empty {
  display: grid; place-items: center;
  color: var(--fg-mute); letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  font-weight: 600;
  background:
    radial-gradient(800px 300px at 30% 50%, hsl(var(--hue) 70% 60% / 0.18), transparent 60%),
    radial-gradient(700px 300px at 80% 70%, hsl(var(--hue) 60% 55% / 0.14), transparent 60%),
    var(--surface-2);
}
.article-hero__caption {
  margin-top: 12px;
  padding: 0 4px;
  color: var(--fg-mute);
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}


[data-theme="dark"] .cat-tag {
  background: hsl(var(--hue) 35% 14%);
  border-color: hsl(var(--hue) 40% 28%);
  color: hsl(var(--hue) 80% 80%);
}
[data-theme="dark"] .cat-tag:hover {
  background: hsl(var(--hue) 38% 18%);
  border-color: hsl(var(--hue) 60% 50%);
}
[data-theme="dark"] .article-hero__lead { color: #e5edf6; }
[data-theme="dark"] .meta-item {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-dim);
}
[data-theme="dark"] .meta-item svg { color: hsl(var(--hue) 75% 65%); }
[data-theme="dark"] .meta-item--live {
  background: rgba(52, 211, 153, 0.10);
  border-color: rgba(52, 211, 153, 0.32);
  color: var(--ok);
}
[data-theme="dark"] .article-hero__poster {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px hsl(var(--hue) 50% 35% / 0.5);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
}
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; gap: 40px; } }

.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
  max-width: 72ch;
}
.article-body h2 {
  margin-top: 1.6em;
  font-size: 28px;
  letter-spacing: -.02em;
}
.article-body h3 { margin-top: 1.4em; font-size: 22px; letter-spacing: -.015em; }
.article-body p { margin: 0 0 1.05em; }
.article-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote {
  margin: 1.4em 0;
  padding: 14px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 8px;
  color: var(--fg);
  font-size: 17px;
}
.article-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.article-body pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
.article-body pre code { background: transparent; border: 0; padding: 0; }
.article-body img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1em 0;
}
.article-body ul.task-list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
  display: grid;
  gap: 8px;
}
.article-body .task-list-item {
  list-style: none;
  position: relative;
  padding: 14px 18px 14px 56px;     
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.article-body .task-list-item:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}
.article-body .task-list-item:has(input[type="checkbox"]:checked) {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.25);
  color: var(--fg-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(5, 150, 105, 0.45);
  text-decoration-thickness: 1.5px;
}
.article-body .task-list-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;         
  left: 18px;
  top: 16px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.article-body .task-list-item input[type="checkbox"]:hover { border-color: var(--accent); }
.article-body .task-list-item input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}
.article-body .task-list-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: transparent;
}
.article-body .task-list-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  animation: taskCheckPop .25s ease;
}
@keyframes taskCheckPop {
  0%   { transform: rotate(45deg) scale(0); opacity: 0; }
  60%  { transform: rotate(45deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(45deg) scale(1); }
}

.article-body .task-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-mute);
}
.article-body .task-progress__bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.article-body .task-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  width: 0;
  transition: width .35s ease;
}
.article-body .task-progress__count {
  font-feature-settings: 'tnum';
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

/* ─── Meta-сноска ─────────────────────────────────────────────────────────
   Юридическая пометка по 114-ФЗ. «*» рядом с Meta/Facebook/Instagram/Threads
   ведёт к развёрнутой сноске в конце статьи. */
.article-body .meta-mark {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.78em;
  line-height: 1;
  vertical-align: super;
  color: #b45309;
}
.article-body .meta-mark a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  background: transparent;
  padding: 0;
  transition: color .15s ease;
}
.article-body .meta-mark a:hover { color: #92400e; text-decoration: none; }

.article-body .meta-notice {
  margin-top: 32px;
  padding: 14px 14px 14px 16px;
  border-left: 3px solid #b45309;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b3a14;
  scroll-margin-top: 90px;
}
@media (min-width: 720px) {
  .article-body .meta-notice {
    margin-top: 36px;
    padding: 16px 18px 16px 20px;
    font-size: 13.5px;
  }
}
.article-body .meta-notice p { margin: 0; }
.article-body .meta-notice__star {
  display: inline-block;
  margin-right: 4px;
  font-weight: 800;
  color: #b45309;
}
.article-body .meta-notice a {
  color: #92400e;
  border-bottom: 1px solid rgba(180, 83, 9, 0.4);
  text-decoration: none;
  font-weight: 600;
}
.article-body .meta-notice a:hover { border-bottom-color: #92400e; }
.article-body .meta-notice:target {
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.18);
  animation: metaNoticeFlash 1.2s ease;
}
@keyframes metaNoticeFlash {
  0%, 100% { background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%); }
  30%      { background: linear-gradient(180deg, #fde68a 0%, #fcd34d 100%); }
}

[data-theme="dark"] .article-body .meta-mark { color: #fbbf24; }
[data-theme="dark"] .article-body .meta-mark a:hover { color: #fcd34d; }
[data-theme="dark"] .article-body .meta-notice {
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.10) 0%, rgba(180, 83, 9, 0.05) 100%);
  border-left-color: #fbbf24;
  color: #fde68a;
}
[data-theme="dark"] .article-body .meta-notice__star { color: #fbbf24; }
[data-theme="dark"] .article-body .meta-notice a {
  color: #fcd34d;
  border-bottom-color: rgba(252, 211, 77, 0.4);
}
[data-theme="dark"] .article-body .meta-notice a:hover { border-bottom-color: #fcd34d; }

.article-body .task-progress.is-complete {
  color: var(--ok);
  border-color: rgba(5, 150, 105, 0.3);
  background: rgba(5, 150, 105, 0.05);
}

.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.article-side .side-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.article-side h4 {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.article-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.article-side ul a { color: var(--fg); display: block; line-height: 1.4; }
.article-side ul a:hover { color: var(--accent-strong); }
.article-side small { color: var(--fg-mute); font-size: 12px; display: block; margin-top: 4px; }

#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-accent);
  z-index: 100;
  transition: width .08s linear;
  box-shadow: 0 0 6px rgba(14, 165, 233, 0.35);
}

.comments {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.comments__head { margin-bottom: 24px; }
.comments__head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.02em;
}
.comments__count { color: var(--fg-mute); font-weight: 500; font-size: 0.7em; vertical-align: middle; }
.comments__hint { margin: 0; color: var(--fg-mute); font-size: 13px; }

.comments__empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--fg-mute);
  font-size: 14px;
  margin-bottom: 28px;
  background: var(--bg-2);
}
.comments__empty p { margin: 0; }
.comments__empty-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-grid; place-items: center;
  color: var(--accent-strong);
  flex-shrink: 0;
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: comment-in .35s ease;
  transition: border-color .15s, box-shadow .15s;
}
.comment:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
@keyframes comment-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.comment__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--av-color, var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: inline-grid;
  place-items: center;
  user-select: none;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.comment__content { min-width: 0; }
.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-bottom: 6px;
}
.comment__author {
  font-weight: 700;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -.005em;
}
.comment__date { color: var(--fg-mute); font-size: 12px; }
.comment__body {
  color: var(--fg-dim);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.55;
}

.comment-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.comment-form__title { display: grid; gap: 4px; }
.comment-form__title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.015em;
}
.comment-form__title .muted { font-size: 13px; }

.comment-form__field { display: grid; gap: 6px; position: relative; }
.comment-form__label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
}
.comment-form input[type="text"],
.comment-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--fg-mute); }
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  background: #fff;
}
.comment-form__counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  color: var(--fg-mute);
  font-feature-settings: "tnum";
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
}
.comment-form__counter.is-warn { color: var(--warn); }
.comment-form__counter.is-over { color: var(--danger); }

.comment-form__bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.comment-form__error {
  flex: 1;
  color: var(--danger);
  font-size: 13px;
}

.comment-form .honeypot {
  position: absolute;
  left: -10000px; top: -10000px;
  width: 1px; height: 1px;
}

.consent-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.consent-box:hover { border-color: var(--border-strong); }
.consent-box:has(input:checked) {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.05);
}

.consent-box input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.consent-box__mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  margin-top: 1px;
  color: transparent;
  flex-shrink: 0;
}
.consent-box__mark svg { transform: scale(0.6); transition: transform .2s ease; }

.consent-box input:checked + .consent-box__mark {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
}
.consent-box input:checked + .consent-box__mark svg {
  transform: scale(1);
}

.consent-box input:focus-visible + .consent-box__mark {
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
  border-color: var(--accent);
}

.consent-box__text {
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.consent-box__text a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.comment-form .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

@media (max-width: 520px) {
  .comment { grid-template-columns: 36px 1fr; padding: 14px 16px; }
  .comment__avatar { width: 36px; height: 36px; font-size: 15px; }
  .comments__head h2 { font-size: 22px; }
}

.more {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.more__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.more__title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -.02em;
  position: relative;
  padding-left: 14px;
}
.more__title::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 4px; height: 70%;
  background: var(--gradient-accent);
  border-radius: 2px;
}
.more__nav { display: flex; gap: 8px; }
.more__btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.more__btn:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-1px);
}
.more__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.more__viewport {
  position: relative;
  overflow: hidden;
  
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.more__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}
.more__track::-webkit-scrollbar { display: none; }

.more-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: inherit;
}
.more-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.more-card__poster {
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.more-card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.more-card:hover .more-card__poster img { transform: scale(1.04); }
.more-card__poster--empty {
  display: grid; place-items: center;
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  background:
    radial-gradient(500px 200px at 50% 50%, rgba(14, 165, 233, 0.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.025) 0 8px, transparent 8px 16px),
    var(--surface-2);
}
.more-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.more-card__cat {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}
.more-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  letter-spacing: -.01em;
}
.more-card__announce {
  margin: 0;
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
  font-size: 12px;
}
.more-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-mute); }

@media (max-width: 720px) {
  .more__track { grid-auto-columns: 78%; }
  .more__nav { display: none; }
}

.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
  justify-content: center;
}
.pagination a, .pagination span {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 14px;
}
.pagination a:hover { color: var(--fg); border-color: var(--border-strong); text-decoration: none; }
.pagination .is-current {
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

/* ─── Newsletter (mobile-first) ───────────────────────────────────────── */
/* Базовые стили — для смартфона (≤719px). Дальше @media min-width — планшет и десктоп. */

.newsletter {
  padding: 40px 0 56px;
}

.newsletter__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 22px;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
    radial-gradient(110% 80% at 100% 100%, rgba(168, 85, 247, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, #1e293b 0%, #312e81 55%, #4c1d95 100%);
  background-size: 180% 180%, 180% 180%, 200% 200%;
  animation: newsletterDrift 24s ease-in-out infinite;
  color: #f8fafc;
  box-shadow:
    0 24px 50px -32px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  isolation: isolate;
}
@keyframes newsletterDrift {
  0%   { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50%  { background-position: 30% 20%, 70% 80%, 100% 50%; }
  100% { background-position: 0% 0%, 100% 100%, 0% 50%; }
}

/* Декоративные слои фона */
.newsletter__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.newsletter__glow--a {
  inset: -70px auto auto -50px;
  width: 220px; height: 220px;
  background: rgba(99, 102, 241, 0.28);
  animation: glowFloat 14s ease-in-out infinite;
}
.newsletter__glow--b {
  inset: auto -60px -90px auto;
  width: 240px; height: 240px;
  background: rgba(168, 85, 247, 0.22);
  animation: glowFloat 16s ease-in-out -3s infinite reverse;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(16px, -12px) scale(1.05); }
}
.newsletter__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 35%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Колонки поверх декораций */
.newsletter__intro,
.newsletter__form {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* Eyebrow — служебная плашка */
.newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
}
.newsletter__eyebrow svg { color: #c4b5fd; }

/* Заголовок — явный белый цвет, иначе глобальный h2 { color: var(--fg) } делает текст тёмным */
.newsletter__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #f8fafc;
}
.newsletter__title-accent {
  background: linear-gradient(90deg, #c4b5fd 0%, #818cf8 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.newsletter__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.newsletter__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.newsletter__perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}
.newsletter__perks svg {
  flex: none;
  color: #86efac;
  display: grid;
  place-items: center;
}

/* Форма */
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Pill-капсула (на мобиле — стек, на десктопе — горизонталь) */
.newsletter__pill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 12px 24px -12px rgba(15, 23, 42, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: box-shadow .2s ease, transform .2s ease;
}
.newsletter__pill:focus-within {
  box-shadow:
    0 16px 30px -12px rgba(15, 23, 42, 0.6),
    0 0 0 3px rgba(196, 181, 253, 0.55);
}
.newsletter__icon {
  position: absolute;
  left: 22px;
  top: 22px;
  color: #6366f1;
  display: grid;
  place-items: center;
}
.newsletter__pill input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 36px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  border-radius: 10px;
  min-width: 0;
}
.newsletter__pill input[type="email"]::placeholder { color: #94a3b8; }

/* CTA — белая, тёмный текст для максимального контраста на тёмном фоне карточки */
.newsletter__submit {
  width: 100%;
  height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(15, 23, 42, 0.5);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.newsletter__submit:hover:not(:disabled) {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -8px rgba(15, 23, 42, 0.55);
}
.newsletter__submit:active:not(:disabled) { transform: translateY(0); }
.newsletter__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.6);
}
.newsletter__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Согласие */
.newsletter__consent {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  user-select: none;
}
.newsletter__consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.newsletter__consent-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  color: transparent;
  margin-top: 1px;
  transition: background .15s, border-color .15s, color .15s;
}
.newsletter__consent input:checked + .newsletter__consent-mark {
  background: #fff;
  border-color: #fff;
  color: #6366f1;
}
.newsletter__consent input:focus-visible + .newsletter__consent-mark {
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.55);
}
.newsletter__consent-text a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.newsletter__consent-text a:hover { text-decoration-color: #fff; }

.newsletter__status {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
.newsletter__status.is-ok    { color: #bbf7d0; }
.newsletter__status.is-error { color: #fecaca; }

.newsletter__form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.newsletter__form.is-success { opacity: 0.85; }

/* ── Планшет: ≥720px ── */
@media (min-width: 720px) {
  .newsletter { padding: 48px 0 64px; }
  .newsletter__card {
    gap: 26px;
    padding: 32px 28px;
    border-radius: 20px;
  }
  .newsletter__title { font-size: 24px; }
  .newsletter__text  { font-size: 14.5px; }

  /* Pill раскрывается в горизонтальную капсулу */
  .newsletter__pill {
    flex-direction: row;
    align-items: center;
    gap: 0;
    height: 56px;
    padding: 6px 6px 6px 44px;
    border-radius: 16px;
  }
  .newsletter__icon {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
  }
  .newsletter__pill input[type="email"] {
    flex: 1;
    height: 100%;
    padding: 0 12px 0 0;
    border-radius: 0;
    font-size: 14.5px;
  }
  .newsletter__submit {
    width: auto;
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
  }
}

/* ── Десктоп: ≥980px ── */
@media (min-width: 980px) {
  .newsletter { padding: 56px 0 72px; }
  .newsletter__card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 44px 48px;
    border-radius: 24px;
  }
  .newsletter__glow--a { inset: -90px auto auto -60px; width: 280px; height: 280px; }
  .newsletter__glow--b { inset: auto -80px -120px auto; width: 320px; height: 320px; }
  .newsletter__title { font-size: 28px; max-width: 22ch; }
  .newsletter__text  { max-width: 48ch; margin-bottom: 18px; }
  .newsletter__form { width: 100%; }
}

/* ── Тёмная тема ── */
[data-theme="dark"] .newsletter__card {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.32) 0%, transparent 55%),
    radial-gradient(110% 80% at 100% 100%, rgba(236, 72, 153, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #0c4a6e 0%, #4338ca 50%, #6d28d9 100%);
  box-shadow:
    0 30px 60px -28px rgba(67, 56, 202, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
[data-theme="dark"] .newsletter__pill {
  background: rgba(15, 23, 42, 0.94);
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
[data-theme="dark"] .newsletter__pill input[type="email"] { color: #f1f5f9; }
[data-theme="dark"] .newsletter__pill input[type="email"]::placeholder { color: #64748b; }
[data-theme="dark"] .newsletter__icon { color: #a5b4fc; }
[data-theme="dark"] .newsletter__submit:hover:not(:disabled) { background: #fff; }
[data-theme="dark"] .newsletter__consent input:checked + .newsletter__consent-mark { color: #4338ca; }

/* ── Уважение к prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .newsletter__card,
  .newsletter__glow--a,
  .newsletter__glow--b { animation: none; }
}

/* ─── Страница отписки ─────────────────────────────────────────────── */
.unsubscribe {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.unsubscribe__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.10);
  color: var(--accent-strong);
}
.unsubscribe__icon--ok   { background: rgba(16, 185, 129, 0.12); color: #059669; }
.unsubscribe__icon--warn { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.unsubscribe__title {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.unsubscribe__text {
  margin: 0 auto 24px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-mute);
}
.unsubscribe__form {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-footer {
  margin-top: auto;
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--fg-mute);
  font-size: 14px;
  position: relative;
}
.site-footer__hairline {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(14, 165, 233, 0.45) 25%,
    rgba(99, 102, 241, 0.5) 75%,
    transparent 100%);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
}
.site-footer__logo {
  display: inline-block;
  width: max-content;
}
.site-footer__logo img {
  height: 56px;
  width: auto;
  display: block;
}
.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-mute);
}
.site-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.site-footer__social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  display: inline-grid;
  place-items: center;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.site-footer__social-btn:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.site-footer__col h5 {
  color: var(--fg-mute);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 700;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col ul a {
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: color .15s, transform .15s;
}
.site-footer__col ul a:hover {
  color: var(--accent-strong);
  transform: translateX(2px);
}
.site-footer__col-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-strong);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.site-footer__col-icon svg { width: 14px; height: 14px; }
.site-footer__col ul a:hover .site-footer__col-icon {
  background: rgba(14, 165, 233, 0.15);
}

/* Юр-футер — mobile-first */
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__legal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.site-footer__legal-org {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}
.site-footer__legal-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 12px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.site-footer__legal-mail:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.06);
}
.site-footer__legal-mail svg { color: currentColor; }

.site-footer__legal-line {
  position: relative;
  margin: 0;
  padding-left: 26px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--fg-dim);
}

@media (min-width: 720px) {
  .site-footer__legal { padding-top: 24px; margin-bottom: 20px; gap: 14px; }
  .site-footer__legal-head { gap: 10px 14px; }
  .site-footer__legal-org { font-size: 13px; }
  .site-footer__legal-mail { margin-left: auto; }
  .site-footer__legal-line { padding-left: 28px; font-size: 12px; }
}
.site-footer__legal-line a {
  color: var(--accent-strong);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  text-decoration: none;
  transition: border-color .15s ease;
}
.site-footer__legal-line a:hover { border-bottom-color: var(--accent-strong); }
.site-footer__legal-icon {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--fg-mute);
  display: grid;
  place-items: center;
  flex: none;
}
.site-footer__legal-icon--warn {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}
.site-footer__legal-star {
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

/* «16+» — заметная плашка с лёгким градиентом */
.site-footer__age {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.10) 0%, rgba(99, 102, 241, 0.10) 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-feature-settings: 'tnum';
}
.site-footer__age sup {
  font-size: 9px;
  margin-left: 1px;
  position: relative;
  top: -2px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  font-size: 12.5px;
  color: var(--fg-mute);
}
.site-footer__bottom-sep { opacity: 0.5; }
.site-footer__bottom-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.site-footer__bottom-tag svg { color: #f59e0b; }

[data-theme="dark"] .site-footer__legal-org { color: var(--fg); }
[data-theme="dark"] .site-footer__legal-icon { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .site-footer__legal-icon--warn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(180, 83, 9, 0.22) 100%);
  color: #fcd34d;
}
[data-theme="dark"] .site-footer__age {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(167, 139, 250, 0.12) 100%);
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}

.site-footer__totop {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.site-footer__totop:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .site-footer { padding: 40px 0 22px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__brand { max-width: none; }
  .site-footer__logo img { height: 48px; }
  .site-footer__bottom { gap: 6px; }
  .site-footer__totop { margin-left: 0; margin-top: 8px; }
  .site-footer__bottom-sep:last-of-type { display: none; }
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, var(--bg-2) 0%, #060914 100%);
}
[data-theme="dark"] .site-footer__hairline {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 211, 238, 0.5) 25%,
    rgba(167, 139, 250, 0.55) 75%,
    transparent 100%);
}
[data-theme="dark"] .site-footer__col-icon {
  background: rgba(34, 211, 238, 0.10);
}
[data-theme="dark"] .site-footer__col ul a:hover .site-footer__col-icon {
  background: rgba(34, 211, 238, 0.18);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast__title { font-weight: 700; color: var(--fg); margin-bottom: 4px; font-size: 14px; }
.toast__body { color: var(--fg-dim); font-size: 13px; line-height: 1.4; }
.toast a { color: var(--accent-strong); }
.toast__close {
  margin-left: auto;
  background: transparent; border: 0;
  color: var(--fg-mute); font-size: 18px; line-height: 1; padding: 0 4px;
}
.toast__close:hover { color: var(--fg); }

.flash {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.flash--ok { background: rgba(5, 150, 105, 0.06); border-color: rgba(5, 150, 105, 0.2); color: var(--ok); }
.flash--err { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.2); color: var(--danger); }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-mute);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty h3 { color: var(--fg); margin-bottom: 8px; }

.admin-shell { padding: 30px 0 60px; }
.admin-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.admin-bar__title { font-weight: 700; color: var(--fg); }
.admin-bar form { display: inline-flex; }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table th {
  background: var(--bg-2);
  color: var(--fg-mute);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.admin-table tr:hover td { background: var(--bg-2); }
.admin-table td { vertical-align: middle; }
.admin-table td:last-child { white-space: nowrap; text-align: right; }
.admin-table .actions { display: inline-flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.admin-table .actions .btn {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 7px;
}
.admin-table .actions .btn--danger { width: 30px; padding: 0; line-height: 1; font-size: 16px; }

/* ─── Rowlist (плотный список) для статей ─────────────────────────────── */
.rowlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rowlist__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "meta  actions";
  gap: 4px 14px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background .12s ease;
}
.rowlist__item:last-child { border-bottom: 0; }
.rowlist__item:hover { background: var(--bg-2); }
.rowlist__title {
  grid-area: title;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  /* Максимум 2 строки, иначе многоточие */
  display: -webkit-box;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 0;
}
.rowlist__title:hover { color: var(--accent-strong); }
.rowlist__meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12.5px;
  color: var(--fg-mute);
  min-width: 0;
}
.rowlist__cat {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg-dim);
  font-size: 11.5px;
  font-weight: 500;
}
.rowlist__sep { opacity: 0.4; }
.rowlist__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-feature-settings: 'tnum';
}
.rowlist__date { font-feature-settings: 'tnum'; }

.rowlist__actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.icon-btn-form { display: inline; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-mute);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  transition: color .12s, background .12s, border-color .12s;
}
.icon-btn:hover {
  color: var(--accent-strong);
  background: var(--surface);
  border-color: var(--border);
}
.icon-btn--danger:hover { color: var(--danger); border-color: rgba(220, 38, 38, 0.3); background: rgba(220, 38, 38, 0.06); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }

/* На узких мобилках actions переезжают под мету */
@media (max-width: 540px) {
  .rowlist__item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "meta" "actions";
    gap: 6px;
  }
  .rowlist__actions { justify-content: flex-end; }
}
.admin-status { font-size: 12px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.admin-status--draft { background: rgba(217, 119, 6, 0.10); color: var(--warn); }
.admin-status--published { background: rgba(5, 150, 105, 0.10); color: var(--ok); }

.admin-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-form .row-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .admin-form .row-2 { grid-template-columns: 1fr; } }
.admin-form label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-dim); }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  padding: 11px 13px;
  font: inherit;
}
.admin-form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.admin-form .field-row { display: flex; align-items: center; gap: 10px; }
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
.admin-form .actions { display: flex; gap: 10px; justify-content: flex-end; }
.admin-form fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.admin-form legend { padding: 0 8px; color: var(--fg-mute); font-size: 13px; font-weight: 500; }
.admin-form--inline { padding-top: 12px; }

/* ─── Admin Topbar — собственная шапка для админки (без публичного навбара) ─── */
.admin-body { background: var(--bg-2); }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(8px);
}
.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  min-width: 0;
}
.admin-topbar__brand img { width: 28px; height: 28px; border-radius: 7px; }
.admin-topbar__label { color: var(--fg-mute); font-weight: 500; }
.admin-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-topbar__link:hover { color: var(--accent-strong); border-color: rgba(14, 165, 233, 0.4); }
.admin-topbar__icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-dim);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.admin-topbar__icon-btn:hover { color: var(--accent-strong); border-color: rgba(14, 165, 233, 0.4); }
.admin-topbar__icon-btn .theme-toggle__sun { display: none; }
.admin-topbar__icon-btn .theme-toggle__moon { display: block; }
[data-theme="dark"] .admin-topbar__icon-btn .theme-toggle__sun { display: block; }
[data-theme="dark"] .admin-topbar__icon-btn .theme-toggle__moon { display: none; }

/* ─── Admin Shell с сайдбаром (mobile-first) ───────────────────────────── */
.admin-shell--sidebar { padding: 16px 0 48px; }

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* Сайдбар */
.admin-side {
  position: sticky;
  top: 72px; /* admin-topbar (56px) + 16px воздуха */
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.admin-side__brand {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.admin-side__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.admin-side__brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.admin-side__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.admin-side__brand-title { font-size: 13.5px; font-weight: 700; }
.admin-side__brand-sub { font-size: 11.5px; color: var(--fg-mute); }

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}
.admin-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: background .15s, color .15s;
}
.admin-nav__item:hover { color: var(--fg); background: var(--bg-2); }
.admin-nav__item.is-active {
  color: var(--accent-strong);
  background: rgba(14, 165, 233, 0.08);
  font-weight: 600;
}
.admin-nav__item.is-active svg { color: var(--accent-strong); }
.admin-nav__pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 600;
}
.admin-nav__pill--warn { background: rgba(217, 119, 6, 0.14); color: var(--warn); }

.admin-side__foot {
  border-top: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-side__foot .admin-nav__item--ghost { font-size: 13px; color: var(--fg-mute); }
.admin-side__logout { margin: 0; }
.admin-side__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px 4px;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
}
.admin-side__user-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--fg-dim);
  font-weight: 700;
  font-size: 12px;
}
.admin-side__user-email {
  font-size: 12px;
  color: var(--fg-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Основной контент */
.admin-main { min-width: 0; }
.admin-page__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.admin-page__title { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.admin-page__sub { margin: 0; font-size: 13px; color: var(--fg-mute); }
.admin-page__sub strong { color: var(--fg); }
.admin-page__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-page__back {
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-mute);
  text-decoration: none;
}
.admin-page__back:hover { color: var(--fg); }

/* Фильтры */
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.admin-filters__search {
  position: relative;
  flex: 1 1 220px;
  display: flex;
  align-items: center;
}
.admin-filters__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  pointer-events: none;
}
.admin-filters__search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}
.admin-filters__search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.admin-filters__select {
  height: 38px;
  padding: 0 30px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  flex: 0 0 auto;
}

/* KPI-карточки */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--fg);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #0ea5e9 0%, #6366f1 100%);
}
.kpi--views::before    { background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%); }
.kpi--comments::before { background: linear-gradient(180deg, #f59e0b 0%, #ec4899 100%); }
.kpi--subs::before     { background: linear-gradient(180deg, #10b981 0%, #14b8a6 100%); }
.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.18);
}
.kpi__label { font-size: 12px; font-weight: 600; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi__value { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-feature-settings: 'tnum'; }
.kpi__sub   { font-size: 12.5px; color: var(--fg-dim); }
.kpi__sub strong { color: var(--fg); }
.kpi__delta {
  margin-top: 4px;
  display: inline-block;
  width: max-content;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(5, 150, 105, 0.10);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Карточки дашборда */
/* График просмотров за 30 дней — inline SVG */
.dash-chart {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 14px;
  color: var(--fg);
}
.dash-chart__head { margin-bottom: 12px; }
.dash-chart__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.dash-chart__sub { margin: 0; font-size: 12.5px; color: var(--fg-mute); line-height: 1.5; }
.dash-chart__sub strong { color: var(--fg); font-weight: 600; }
.dash-chart__empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--fg-mute);
  font-size: 13px;
}
.dash-chart__empty p { margin: 0; }
.dash-chart__wrap {
  width: 100%;
  overflow: hidden;
}
.dash-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
}
.dash-chart__bar {
  fill: var(--accent-strong);
  fill-opacity: 0.85;
  transition: fill-opacity .12s ease;
}
.dash-chart__bar:hover { fill-opacity: 1; }
.dash-chart__bar--today { fill: #6366f1; fill-opacity: 0.95; }
.dash-chart__bar--peak  { fill: #10b981; fill-opacity: 0.95; }

[data-theme="dark"] .dash-chart__bar { fill: #38bdf8; fill-opacity: 0.85; }
[data-theme="dark"] .dash-chart__bar--today { fill: #818cf8; }
[data-theme="dark"] .dash-chart__bar--peak  { fill: #34d399; }

.dash-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.dash-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
}
.dash-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.dash-card__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.dash-card__more { font-size: 12.5px; color: var(--fg-mute); text-decoration: none; }
.dash-card__more:hover { color: var(--accent-strong); }
.dash-card__empty { margin: 0; color: var(--fg-mute); font-size: 13px; }

.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-list__item { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.dash-list__item:last-child { padding-bottom: 0; border-bottom: 0; }
.dash-list__title { font-size: 14px; font-weight: 600; color: var(--fg); text-decoration: none; }
.dash-list__title:hover { color: var(--accent-strong); }
.dash-list__meta  { font-size: 12px; color: var(--fg-mute); line-height: 1.45; }
.dash-list__link  { font-size: 12px; color: var(--accent-strong); text-decoration: none; }
.dash-list__link:hover { text-decoration: underline; }
.dash-list--ranked .dash-list__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.dash-list__rank {
  font-feature-settings: 'tnum';
  font-weight: 800;
  font-size: 16px;
  color: var(--accent-strong);
  line-height: 1.4;
}
.dash-list__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Скрытый/неактивный статус */
.admin-status--hidden { background: rgba(100, 116, 139, 0.12); color: var(--fg-mute); }

/* Модерация комментариев */
.comment-mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comment-mod {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}
.comment-mod--hidden { background: var(--bg-2); opacity: 0.85; }
.comment-mod__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-mod__author { font-size: 14px; font-weight: 700; }
.comment-mod__date { font-size: 12px; color: var(--fg-mute); }
.comment-mod__body { font-size: 14px; line-height: 1.55; color: var(--fg); white-space: pre-wrap; word-break: break-word; }
.comment-mod__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.comment-mod__article { font-size: 12.5px; color: var(--accent-strong); text-decoration: none; }
.comment-mod__article:hover { text-decoration: underline; }
.comment-mod .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Категории */
.admin-collapsible {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.admin-collapsible[open] { padding-bottom: 16px; }
.admin-collapsible summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  list-style: none;
  user-select: none;
}
.admin-collapsible summary::-webkit-details-marker { display: none; }
.admin-collapsible summary::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid var(--fg-mute);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 8px;
  transition: transform .15s ease;
  transform: translateY(-1px);
}
.admin-collapsible[open] summary::before { transform: rotate(90deg) translateX(-1px); }

/* ─── Профиль / смена пароля ─────────────────────────────────────────── */
.account-card {
  max-width: 560px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 22px 18px;
}
.account-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.account-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff;
}
.account-card__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.account-card__sub   { margin: 0; font-size: 12.5px; color: var(--fg-mute); line-height: 1.5; }

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-form .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.account-field { display: flex; flex-direction: column; gap: 6px; }
.account-field__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}
.account-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.account-field__wrap input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 14.5px;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.account-field__wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.account-field__toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-mute);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.account-field__toggle:hover { color: var(--fg); background: var(--bg-2); }
.account-field__toggle .eye-hide { display: none; }
.account-field__toggle.is-shown .eye-show { display: none; }
.account-field__toggle.is-shown .eye-hide { display: block; }

.account-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.account-strength__bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.account-strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #e2e8f0;
  transition: width .2s ease, background .2s ease;
}
.account-strength__label {
  font-size: 11.5px;
  color: var(--fg-mute);
  font-feature-settings: 'tnum';
  min-width: 90px;
  text-align: right;
}

.account-mismatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--danger);
}
.account-mismatch::before { content: '⚠'; }

[data-theme="dark"] .account-field__wrap input { background: var(--bg-2); }

.cat-mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-mod {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
}
.cat-mod__form { display: flex; flex-direction: column; gap: 10px; }
.cat-mod__row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cat-mod__field { display: grid; gap: 4px; font-size: 13px; color: var(--fg-dim); }
.cat-mod__field input,
.cat-mod__field textarea {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font: inherit;
  font-size: 14px;
  color: var(--fg);
}
.cat-mod__field input:disabled { color: var(--fg-mute); background: var(--surface-2); }
.cat-mod__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cat-mod__stats { font-size: 12.5px; color: var(--fg-mute); }
.cat-mod__stats strong { color: var(--fg); }
.cat-mod__delete { position: absolute; top: 12px; right: 12px; }
.cat-mod__delete .btn--danger { width: 30px; height: 30px; padding: 0; line-height: 1; }

/* Пагинация */
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.admin-pager__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-pager__btn:hover { color: var(--accent-strong); border-color: rgba(14, 165, 233, 0.4); }
.admin-pager__btn--disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.admin-pager__info { font-size: 13px; color: var(--fg-mute); }
.admin-pager__info strong { color: var(--fg); }

/* ── Планшет ≥720 ── */
@media (min-width: 720px) {
  .admin-shell--sidebar { padding: 24px 0 56px; }
  .admin-page__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .admin-page__title { font-size: 28px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-cols { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cat-mod__row { grid-template-columns: 2fr 1fr 100px; gap: 12px; }
}

/* ── Десктоп ≥980 ── */
@media (min-width: 980px) {
  .admin-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Тёмная тема ── */
[data-theme="dark"] .admin-side,
[data-theme="dark"] .kpi,
[data-theme="dark"] .dash-card,
[data-theme="dark"] .comment-mod,
[data-theme="dark"] .cat-mod,
[data-theme="dark"] .admin-collapsible {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .admin-nav__item.is-active { background: rgba(34, 211, 238, 0.10); color: #67e8f9; }
[data-theme="dark"] .admin-nav__item.is-active svg { color: #67e8f9; }
[data-theme="dark"] .admin-filters__search input,
[data-theme="dark"] .admin-filters__select,
[data-theme="dark"] .cat-mod__field input,
[data-theme="dark"] .cat-mod__field textarea { background: var(--bg-2); color: var(--fg); }
[data-theme="dark"] .kpi__delta { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* ─── Логин в редакцию (mobile-first) ──────────────────────────────────── */
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.10) 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(168, 85, 247, 0.10) 0%, transparent 55%),
    var(--bg);
}
.login-back {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.login-back:hover { color: var(--accent-strong); border-color: rgba(14, 165, 233, 0.4); }

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255,255,255,0.4) inset;
}
.login-card__head { text-align: center; margin-bottom: 20px; }
.login-card__lock {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 12px 22px -10px rgba(99, 102, 241, 0.55);
}
.login-card__title { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.015em; }
.login-card__sub   { margin: 0; font-size: 13px; color: var(--fg-mute); }

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  animation: loginShake 0.35s ease;
}
.login-error svg { flex: none; }
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-field { display: block; }
.login-field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-dim);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.login-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.login-field__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.login-field__wrap input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 14.5px;
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.login-field__wrap input::placeholder { color: var(--fg-mute); opacity: 0.7; }
.login-field__wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.login-field input[type="password"] { padding-right: 44px; }
.login-field input[type="text"]     { padding-right: 44px; } /* когда виден пароль */

.login-field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-mute);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.login-field__toggle:hover { color: var(--fg); background: var(--bg-2); }
.login-field__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.login-field__eye-hide { display: none; }
.login-field__toggle.is-shown .login-field__eye-show { display: none; }
.login-field__toggle.is-shown .login-field__eye-hide { display: block; }

.login-caps {
  display: none;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--warn);
}
.login-caps[hidden] { display: none; }
.login-caps:not([hidden]) { display: inline-flex; }

.login-submit {
  position: relative;
  height: 46px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px -12px rgba(99, 102, 241, 0.5);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.login-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -12px rgba(99, 102, 241, 0.6);
}
.login-submit:active { transform: translateY(0); }
.login-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.3);
}
.login-submit:disabled { opacity: 0.7; cursor: progress; }
.login-submit__spinner {
  display: none;
  animation: loginSpin 0.7s linear infinite;
}
.login-submit.is-loading .login-submit__label { opacity: 0.6; }
.login-submit.is-loading .login-submit__spinner { display: inline-block; }
@keyframes loginSpin { to { transform: rotate(360deg); } }

@media (min-width: 540px) {
  .login-shell { padding: 40px 24px; }
  .login-card { padding: 36px 32px; }
  .login-card__title { font-size: 22px; }
}

[data-theme="dark"] .login-shell {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.08) 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(167, 139, 250, 0.08) 0%, transparent 55%),
    var(--bg);
}
[data-theme="dark"] .login-card {
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
[data-theme="dark"] .login-field__wrap input { background: var(--bg-2); }

.muted { color: var(--fg-mute); }
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }

.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 13px;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
}
.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--fg-mute);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
}
.ticker__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .12em;
}
.ticker__live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  animation: tickerDot 1.4s ease-in-out infinite;
}
@keyframes tickerDot {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.3; }
}
.ticker__viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__group { display: inline-flex; align-items: center; gap: 16px; padding-right: 16px; }
.ticker__item {
  color: var(--fg);
  font-weight: 500;
}
.ticker__item:hover { color: var(--accent-strong); text-decoration: none; }
.ticker__sep { color: var(--fg-mute); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .ticker__label { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: start;     
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 22px; } }

.hero-main {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-main:hover { transform: none; }
.hero-main__poster {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.hero-main__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.hero-main__poster:hover img { transform: scale(1.03); }
.hero-main__poster--empty {
  display: grid; place-items: center;
  color: var(--fg-mute);
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  background:
    radial-gradient(800px 300px at 30% 50%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(700px 300px at 80% 70%, rgba(99, 102, 241, 0.10), transparent 60%),
    var(--surface-2);
}
.hero-main__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.hero-main__body {
  padding: 24px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.hero-main__cat {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}
.hero-main__title {
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main__title a { color: var(--fg); }
.hero-main__title a:hover { color: var(--accent-strong); text-decoration: none; }
.hero-main__announce {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--fg-mute);
  font-size: 13px;
  margin-top: auto;
}
.hero-main__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-mute); }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  
}
.hero-side > .hero-side__item {
  flex: 0 0 auto;
}
@media (max-width: 980px) {
  .hero-side { flex-direction: row; }
  .hero-side > .hero-side__item { flex: 1 1 0; }
}
@media (max-width: 640px) {
  .hero-side { flex-direction: column; }
}

.hero-grid--solo { grid-template-columns: 1fr; }
.hero-main--solo {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr;
  min-height: 380px;
}
.hero-main--solo .hero-main__poster {
  aspect-ratio: auto;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--border);
}
.hero-main--solo .hero-main__body {
  padding: 40px;
  justify-content: center;
}
.hero-main--solo .hero-main__title { font-size: clamp(28px, 3.2vw, 40px); }
@media (max-width: 880px) {
  .hero-main--solo {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .hero-main--solo .hero-main__poster {
    aspect-ratio: 16 / 9;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .hero-main--solo .hero-main__body { padding: 24px; }
}

.hero-side__item {
  display: grid;
  grid-template-rows: auto 1fr;          
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.hero-side__item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.hero-side__poster {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--surface-2);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-side__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-side__item:hover .hero-side__poster img { transform: scale(1.04); }
.hero-side__poster--empty {
  display: grid; place-items: center;
  color: var(--fg-mute);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  background:
    radial-gradient(500px 200px at 50% 50%, rgba(14, 165, 233, 0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.025) 0 8px, transparent 8px 16px),
    var(--surface-2);
}
.hero-side__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  min-height: 0;
}
.hero-side__cat {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}
.hero-side__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-side__meta {
  margin-top: auto;                       
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--fg-mute);
}
.hero-side__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-mute); }

@media (max-width: 640px) {
  .hero-side__body { padding: 14px 16px 16px; }
  .hero-side__title { font-size: 16px; }
}

.trending { padding: 28px 0 8px; }
.trending__head { margin-bottom: 14px; }
.trending__label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
}
.trending__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: transform .12s, border-color .15s, background .15s;
  box-shadow: var(--shadow-sm);
}
.chip:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
  text-decoration: none;
  transform: translateY(-1px);
}
.chip__title { color: inherit; }
.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 700;
}
.chip:hover .chip__count { background: rgba(14, 165, 233, 0.12); color: var(--accent-strong); }

.article-page__crumbs .sep { margin: 0 6px; opacity: .6; }
.article-page__crumbs .is-current { color: var(--fg); }

.article-hero__caption {
  padding: 12px 4px 0;
  color: var(--fg-mute);
  font-size: 13px;
  font-style: italic;
}

.side-toc { padding: 18px 18px 12px; }
.toc__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
  counter-reset: toc;
}
.toc__list li {
  counter-increment: toc;
  position: relative;
}
.toc__list a {
  display: block;
  padding: 8px 10px 8px 30px;
  border-radius: 8px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.4;
  transition: background .15s, color .15s;
  border-left: 2px solid transparent;
}
.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px; top: 8px;
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.toc__list a:hover {
  background: var(--bg-2);
  color: var(--fg);
  text-decoration: none;
}
.toc__list a.is-active {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-strong);
  border-left-color: var(--accent);
}
.toc__list .toc-h3 a { padding-left: 42px; font-size: 13px; }
.toc__list .toc-h3 a::before { left: 22px; }

@media (min-width: 981px) {
  .article-side .side-block { position: sticky; top: calc(var(--header-h) + 18px); }
  .article-side .side-block + .side-block { position: static; }
}

.article-share {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.article-share__label { color: var(--fg-mute); font-size: 14px; margin-right: 4px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
  position: relative;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.article-body .share-btn,
.article-body .share-btn:hover { text-decoration: none; }

.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.share-btn__icon { flex-shrink: 0; transition: transform .25s ease, opacity .15s; }
.share-btn__label { line-height: 1; }

.share-btn--tg:hover {
  border-color: rgba(34, 158, 217, 0.45);
  background: rgba(34, 158, 217, 0.06);
  color: #229ED9;
}

.share-btn--vk:hover {
  border-color: rgba(0, 119, 255, 0.45);
  background: rgba(0, 119, 255, 0.05);
  color: #0077FF;
}

.share-btn--copy:hover {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.05);
  color: var(--accent-strong);
}
.share-btn--copy .share-btn__icon--check { display: none; }
.share-btn--copy.is-copied {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(5, 150, 105, 0.06);
  color: var(--ok);
  transform: translateY(-1px);
}
.share-btn--copy.is-copied .share-btn__icon--copy { display: none; }
.share-btn--copy.is-copied .share-btn__icon--check {
  display: block;
  animation: checkPop .35s ease both;
}
@keyframes checkPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.captcha__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-dim);
  font-size: 14px;
}
.captcha__question {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  letter-spacing: .04em;
  user-select: none;
}
.captcha__eq { color: var(--fg-mute); font-weight: 700; }
.captcha #captcha-answer {
  width: 70px;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
}
.captcha__refresh {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  font-size: 16px;
  display: inline-grid;
  place-items: center;
  transition: transform .3s ease, color .15s, border-color .15s;
}
.captcha__refresh:hover { color: var(--accent-strong); border-color: var(--accent); }
.captcha__refresh.is-spinning { transform: rotate(360deg); }


@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 36px 0; }
  .section-head { gap: 8px; margin-bottom: 18px; }
  .section-head h2 { font-size: 20px; padding-left: 12px; }
  .section-head h2::before { top: 6px; }

  .hero { padding: 22px 0 8px; }

  .article-page { padding: 16px 0 56px; }

  .article-page__crumbs {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .article-page__crumbs > * { display: inline; }

  .article-hero { margin-bottom: 22px; }
  .article-hero__title {
    font-size: 26px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 12px 0 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .article-hero__lead {
    font-size: 17px;
    line-height: 1.5;
    padding-left: 16px;
    margin-bottom: 20px;
  }
  .article-hero__poster {
    margin-top: 18px;
    border-radius: var(--radius);
  }

  .article-meta {
    gap: 8px 12px;
    font-size: 13px;
  }
  .article-meta time { white-space: nowrap; }

  .article-body {
    font-size: 16.5px;
    line-height: 1.7;
  }
  .article-body h2 { font-size: 22px; margin-top: 1.4em; }
  .article-body h3 { font-size: 19px; margin-top: 1.2em; }

  .article-grid { gap: 28px; }
  .article-side .side-block { padding: 14px 16px; }

  .article-share {
    margin-top: 28px;
    padding-top: 18px;
    gap: 8px;
  }
  .share-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 10px 12px;
    min-height: 40px;
  }

  .comments { margin-top: 44px; padding-top: 24px; }
  .comments__head h2 { font-size: 22px; }

  .comment {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 14px 16px;
  }
  .comment__avatar {
    width: 38px; height: 38px;
    font-size: 15px;
  }
  .comment__author { font-size: 14.5px; }
  .comment__body { font-size: 14.5px; }

  .comment-form { padding: 18px 16px; gap: 14px; }
  .comment-form input[type="text"],
  .comment-form textarea {
    font-size: 16px;
    padding: 13px 14px;
    min-height: 44px;
  }
  .comment-form textarea { min-height: 110px; }
  .comment-form__counter { font-size: 11px; padding: 2px 5px; }

  .captcha {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .captcha__label {
    flex: 1 1 100%;
    font-size: 13.5px;
  }
  .captcha__question {
    font-size: 16px;
    padding: 4px 10px;
  }
  .captcha #captcha-answer {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    width: auto;
    font-size: 17px;
  }
  .captcha__refresh {
    width: 44px;
    height: 44px;
    margin-left: 0;
    flex: 0 0 44px;
  }

  .consent-box {
    padding: 12px 14px;
    grid-template-columns: 22px 1fr;
    gap: 10px;
  }
  .consent-box__text { font-size: 13px; }

  .comment-form__bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  .comment-form__bottom .btn {
    flex: 1 1 100%;
    justify-content: center;
    height: 48px;
    font-size: 15px;
  }
  .comment-form__error { flex: 1 1 100%; order: -1; }

  .more { margin-top: 48px; padding-top: 22px; }
  .more__title { font-size: 20px; }
  .more__btn { width: 38px; height: 38px; }

  .pagination a, .pagination span {
    min-width: 42px;
    height: 42px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px;
  }
}


@media (max-width: 520px) {
  .article-hero__title { font-size: 24px; }
  .article-hero__lead { font-size: 16px; }
  .cat-tag { font-size: 11px; padding: 5px 12px 5px 5px; }
  .cat-tag__icon { width: 24px; height: 24px; }
  .cat-tag__icon svg { width: 14px; height: 14px; }
  .meta-item { font-size: 12px; padding: 5px 10px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 20px; }

  .article-share { flex-direction: column; }
  .share-btn { flex: 1 1 100%; width: 100%; }

  .more__head { flex-wrap: wrap; }
  .more__nav { display: none; }
  .more__track { grid-auto-columns: 88%; }

  .hero-side__item { grid-template-columns: 1fr; }
  .hero-side__poster { aspect-ratio: 16 / 10; }

  .cookie-banner__actions .btn { font-size: 14px; }
}



.search-hero { padding: 56px 0 32px; }
.search-hero__title {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 0 0 12px;
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--fg) 0%, color-mix(in srgb, var(--fg) 50%, var(--accent-strong)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.search-hero__subtitle {
  margin: 0 0 28px;
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
}
.search-hero__subtitle em { color: var(--accent-strong); font-style: normal; font-weight: 600; }


.search-form-page {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 0;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.search-form-page:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), var(--shadow);
}
.search-form-page__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  pointer-events: none;
}
.search-form-page input {
  flex: 1;
  height: 52px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  padding: 0 12px 0 50px;
  box-shadow: none;
}
.search-form-page input::placeholder { color: var(--fg-mute); font-weight: 400; }
.search-form-page__clear {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg-mute);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.search-form-page__clear:hover { background: var(--border); color: var(--fg); text-decoration: none; }
.search-form-page .btn { height: 44px; padding: 0 22px; flex-shrink: 0; }


.search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--fg-mute);
}
.search-meta__main strong { color: var(--fg); font-weight: 700; }
.search-meta__hint {
  font-size: 12.5px;
  color: var(--fg-mute);
  opacity: 0.85;
}


.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-result {
  --hue: 200;
  list-style: none;
  position: relative;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color .2s, box-shadow .25s, transform .2s, background .2s;
}
.search-result::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,
    hsl(var(--hue) 75% 55%) 0%,
    hsl(var(--hue) 65% 45%) 100%);
  opacity: 0.5;
  transition: opacity .25s, width .25s;
}
.search-result:hover {
  border-color: hsl(var(--hue) 50% 70%);
  box-shadow: 0 12px 28px hsla(var(--hue) 60% 50% / 0.14);
  transform: translateY(-2px);
}
.search-result:hover::before { opacity: 1; width: 5px; }

.search-result[data-cat="zashchita-dannyh"]        { --hue: 200; }
.search-result[data-cat="parolyu-i-2fa"]           { --hue: 265; }
.search-result[data-cat="antifishing"]             { --hue: 350; }
.search-result[data-cat="bezopasnye-platezhi"]     { --hue: 160; }
.search-result[data-cat="deti-onlajn"]             { --hue: 35;  }
.search-result[data-cat="brauzery-i-rasshireniya"] { --hue: 285; }
.search-result[data-cat="socseti-i-messendzhery"]  { --hue: 220; }
.search-result[data-cat="zakonodatelstvo"]         { --hue: 240; }

.search-result__link {
  display: grid;
  grid-template-columns: 60px 1fr 132px;
  gap: 22px;
  padding: 22px 24px 22px 28px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.search-result__link:hover { text-decoration: none; }

.search-result__num {
  font: 700 28px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: hsl(var(--hue) 50% 50%);
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  opacity: 0.55;
  text-align: center;
  transition: opacity .25s, transform .25s;
}
.search-result:hover .search-result__num {
  opacity: 1;
  transform: scale(1.05);
}

.search-result__body { min-width: 0; }
.search-result__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--fg-mute);
}
.search-result__cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: hsl(var(--hue) 80% 96%);
  color: hsl(var(--hue) 70% 30%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.search-result__cat-icon {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--hue) 75% 55%), hsl(var(--hue) 65% 40%));
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.search-result__cat-icon svg { width: 12px; height: 12px; stroke-width: 2.2; }
.search-result__date,
.search-result__time { font-feature-settings: 'tnum'; font-size: 12.5px; }
.search-result__date::before,
.search-result__time::before { content: '·'; margin-right: 8px; opacity: 0.4; }

.search-result__title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.015em;
}
.search-result:hover .search-result__title { color: hsl(var(--hue) 70% 35%); }

.search-result__snippet {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result__snippet mark {
  background: hsl(var(--hue) 90% 92%);
  color: hsl(var(--hue) 80% 22%);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.search-result__poster {
  width: 132px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  position: relative;
}
.search-result__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px hsl(var(--hue) 50% 80% / 0.5) inset;
  pointer-events: none;
}
.search-result__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.search-result:hover .search-result__poster img { transform: scale(1.05); }


.search-empty__examples {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.search-empty__examples a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.search-empty__examples a:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
  text-decoration: none;
}


[data-theme="dark"] .search-result__cat-pill {
  background: hsl(var(--hue) 35% 18%);
  color: hsl(var(--hue) 80% 78%);
}
[data-theme="dark"] .search-result__num {
  color: hsl(var(--hue) 70% 65%);
  opacity: 0.4;
}
[data-theme="dark"] .search-result:hover .search-result__num { opacity: 1; }
[data-theme="dark"] .search-result__snippet mark {
  background: hsl(var(--hue) 50% 22%);
  color: hsl(var(--hue) 90% 88%);
}
[data-theme="dark"] .search-result:hover {
  border-color: hsl(var(--hue) 50% 45%);
  box-shadow: 0 12px 28px hsla(var(--hue) 70% 30% / 0.4);
}
[data-theme="dark"] .search-result__poster::after {
  box-shadow: 0 0 0 1px hsl(var(--hue) 50% 35% / 0.6) inset;
}
[data-theme="dark"] .search-empty__examples a:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}


@media (max-width: 720px) {
  .search-hero { padding: 28px 0 18px; }
  .search-form-page input { font-size: 16px; height: 48px; padding-left: 44px; }
  .search-form-page__icon { left: 14px; }
  .search-form-page .btn { height: 40px; padding: 0 16px; font-size: 13px; }

  .search-result__link {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 18px 18px 18px 22px;
  }
  .search-result__num { font-size: 20px; text-align: left; padding-top: 2px; }
  .search-result__poster { display: none; }
  .search-result__title { font-size: 17px; }
  .search-result__snippet { font-size: 14px; -webkit-line-clamp: 4; line-clamp: 4; }
  .search-result__date::before,
  .search-result__time::before { display: none; }
  .search-result::before { width: 3px; }
}



:root {
  --serif: 'Charter', 'Iowan Old Style', 'Cambria', 'Georgia', 'PT Serif', 'Times New Roman', serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.06), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(99, 102, 241, 0.05), transparent 60%),
    var(--grain),
    var(--bg);
  background-attachment: fixed;
  background-size: auto, auto, 160px 160px, auto;
}


.article-hero__title {
  background: linear-gradient(180deg, #0b1220 0%, #2a3956 75%, #0ea5e9 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.045em;
}
.article-hero__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 18px;
  background: var(--gradient-accent);
  border-radius: 2px;
}


.article-body p,
.article-body li,
.article-body blockquote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  font-feature-settings: 'kern', 'liga', 'onum';
}
.article-body h2,
.article-body h3,
.article-body h4 {
  letter-spacing: -0.025em;
}


.article-body > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.6em;
  line-height: 0.85;
  font-weight: 700;
  float: left;
  margin: 0.06em 0.14em 0 -0.04em;
  padding: 0.08em 0.05em 0 0;
  color: var(--accent-strong);
  font-feature-settings: 'lnum';
}


.article-body blockquote {
  position: relative;
  margin: 1.8em 0;
  padding: 28px 30px 24px 50px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--surface) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 4px 14px 14px 4px;
  font-style: italic;
  color: var(--fg);
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.04);
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute;
  left: 12px;
  top: -12px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.article-body blockquote p:first-child { margin-top: 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }


.section .cards {
  counter-reset: card;
}
.section .cards > .card {
  counter-increment: card;
}
.section .cards > .card::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font: 700 11px/1 -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  letter-spacing: 0.12em;
  padding: 6px 9px;
  border-radius: 999px;
  color: #04111a;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-feature-settings: 'tnum';
  box-shadow: var(--shadow-sm);
}


.section-head h2 {
  padding-left: 20px;
}
.section-head h2::before {
  width: 6px;
  top: 4px;
  height: calc(100% - 8px);
  border-radius: 3px;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.06);
}


/* (декоративный полосатый паттерн в углу cat-card удалён — его роль теперь играет .cat-card__deco) */


.card,
.cat-card,
.more-card,
.hero-side__item {
  position: relative;
}
.card::after,
.cat-card::before,
.more-card::after,
.hero-side__item::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0), rgba(99, 102, 241, 0));
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
          mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, background .25s ease;
}
.card:hover::after,
.cat-card:hover::before,
.more-card:hover::after,
.hero-side__item:hover::after {
  opacity: 1;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.7), rgba(99, 102, 241, 0.7));
}


.tag {
  position: relative;
  padding-left: 22px;
}
.tag::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}


.brand__logo {
  filter: drop-shadow(0 1px 0 rgba(15, 23, 42, 0.04));
}


@media (max-width: 720px) {
  .article-body p,
  .article-body li,
  .article-body blockquote { font-size: 17px; line-height: 1.7; }
  .article-body > p:first-of-type::first-letter { font-size: 3.8em; }
  .article-body blockquote { padding: 22px 22px 18px 38px; font-size: 18px; }
  .article-body blockquote::before { font-size: 64px; left: 8px; top: -8px; }
  .article-hero__title::after { width: 42px; height: 3px; margin-top: 14px; }
  .section .cards > .card::before { top: 10px; left: 10px; font-size: 10px; padding: 5px 8px; }
}



:root {
  color-scheme: light;
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-badge-bg: rgba(255, 255, 255, 0.92);
}

html { transition: background-color .35s ease; }
.site-header,
.card, .cat-card, .more-card, .hero-side__item, .hero-main,
.comment, .comment-form, .toast, .cookie-banner, .drawer__panel,
.search-result, .ticker, .article-body, .article-body blockquote,
input, textarea, select, .btn--ghost {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}

.site-header { background: var(--header-bg); }
.hero-main__badge { background: var(--hero-badge-bg); }


[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e1a;
  --bg-2: #0f1424;
  --surface: #111827;
  --surface-2: #161f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #e6edf6;
  --fg-dim: #b6c2d6;
  --fg-mute: #7d8aa3;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --accent-2: #a78bfa;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow:    0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --header-bg: rgba(10, 14, 26, 0.78);
  --hero-badge-bg: rgba(10, 14, 26, 0.78);
}


[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(167, 139, 250, 0.08), transparent 60%),
    var(--grain),
    var(--bg);
}

[data-theme="dark"] .article-body { color: #cdd5e2; }
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li,
[data-theme="dark"] .article-body blockquote { color: #cdd5e2; }
[data-theme="dark"] .article-body code,
[data-theme="dark"] .article-body pre {
  background: var(--surface-2);
  border-color: var(--border);
}
[data-theme="dark"] .article-body blockquote {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

[data-theme="dark"] .article-hero__title {
  background: linear-gradient(180deg, #ffffff 0%, #b6c2d6 75%, #67e8f9 130%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="dark"] .search-form input,
[data-theme="dark"] .search-form--page input,
[data-theme="dark"] .drawer__search input,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form textarea,
[data-theme="dark"] .admin-form input,
[data-theme="dark"] .admin-form select,
[data-theme="dark"] .admin-form textarea {
  background: var(--bg-2);
  color: var(--fg);
}
[data-theme="dark"] .search-form input:focus,
[data-theme="dark"] .search-form--page input:focus,
[data-theme="dark"] .comment-form input:focus,
[data-theme="dark"] .comment-form textarea:focus { background: var(--surface); }

[data-theme="dark"] .search-form__kbd {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--fg-mute);
}

[data-theme="dark"] .article-body .task-list-item:has(input[type="checkbox"]:checked) {
  background: rgba(52, 211, 153, 0.10);
  border-color: rgba(52, 211, 153, 0.32);
}
[data-theme="dark"] .article-body .task-list-item input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

[data-theme="dark"] .search-result__snippet mark {
  background: rgba(251, 191, 36, 0.22);
  color: #fef3c7;
  box-shadow: 0 -1px 0 rgba(251, 191, 36, 0.5) inset;
}

[data-theme="dark"] .ticker__live {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

[data-theme="dark"] .article-body > p:first-of-type::first-letter { color: var(--accent-strong); }

[data-theme="dark"] .menu-toggle__bars,
[data-theme="dark"] .menu-toggle__bars::before,
[data-theme="dark"] .menu-toggle__bars::after { background: var(--fg); }

[data-theme="dark"] .article-meta .live { color: var(--ok); }
[data-theme="dark"] .article-meta .live .pulse {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
}

[data-theme="dark"] .toast,
[data-theme="dark"] .cookie-banner,
[data-theme="dark"] .drawer__panel { box-shadow: 0 30px 80px rgba(0,0,0,0.5); }


.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover {
  color: var(--accent-strong);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.05);
}
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}
@media (max-width: 980px) {
  .theme-toggle { width: 36px; }
}
