:root {
  --toc-accent: #EDC26C;
  --toc-border: rgba(237, 194, 108, .35);
  --toc-bg: rgba(237, 194, 108, .08);
}

html,
body {
  margin: 0 auto;
  max-width: 1480px;
  background-color: #111;
  color: #fff;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 0 0 16px 16px;
  padding: 12px;
  width: calc(100% - 48px);
  max-width: 1480px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.burger {
  position: relative;
  z-index: 10001;
  font-size: 32px;
  text-align: left;
  height: 32px;
  background: transparent;
  border: 0;
  line-height: 1;
  cursor: pointer;  
}

.burger:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.only-mobile {
  display: inline-block;
}

a {color:#fff;transition:0.3s;}
a:hover {color:#C3001F}

@media (min-width: 1024px) {
  .only-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  #mnav,
  #mnavBackdrop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  header {
    display: none !important;
  }
}

#mnav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 86vw;
  max-width: 360px;
  background: rgba(20, 20, 20, 0.98);
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 16px;
  box-sizing: border-box;
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 10000;
  color: #fff;
  display: none;
}

@media (max-width: 768px) {
  #mnav {
    display: block;
  }
}

#mnav.is-open {
  transform: translateX(0);
}

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

.mnav__title {
  font-size: 18px;
  font-weight: 700;
}

.mnav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px solid rgba(237, 194, 108, .35);
  border-radius: 8px;
  background: rgba(237, 194, 108, .08);
  color: #EDC26C;
  cursor: pointer;
}

.mnav__close:hover {
  background: rgba(237, 194, 108, .18);
}

.mnav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mnav__item {
  margin: 2px 0;
}

.mnav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
}

.mnav__link:hover {
  background: rgba(255, 255, 255, .06);
}

.mnav__link--parent {
  position: relative;
  padding-right: 34px;
}

.mnav__link--parent::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .8;
}

.mnav__sub {
  display: none;
  list-style: none;
  padding: 6px 0 6px 8px;
  margin: 0;
  border-left: 1px dashed rgba(255, 255, 255, .15);
}

.mnav__item.open>.mnav__sub {
  display: block;
}

.mnav__sublink {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  opacity: .9;
}

.mnav__sublink:hover {
  background: rgba(255, 255, 255, .05);
}

#mnavBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}

#mnavBackdrop.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {

  header:has(#site-nav.is-open) {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  header #site-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: 86vw;
    max-width: 360px;
    background: rgba(20, 20, 20, 0.98);
    border-right: 1px solid rgba(255, 255, 255, .06);
    padding: 16px;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 9999;
  }

  header #site-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  header:has(#site-nav.is-open) #navToggle {
    visibility: hidden;
  }

  header:has(#site-nav.is-open) .btn-pill {
    visibility: hidden;
  }

  header #navBackdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
  }

  header:has(#site-nav.is-open) #navBackdrop {
    display: block;
  }

  header li.has-children>ul {
    position: static !important;
    display: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 6px 12px;
  }

  header li.submenu-open>ul {
    display: block;
  }
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  background-color: rgb(252 211 77);
  color: #000;
  font-weight: 600;
  transition: background-color .2s ease;
  cursor: pointer;
  transition: 0.5s;
}

.btn-pill:hover {
  background-color: rgb(251 191 36);
}

header nav a {
  line-height: 1.25;
}

.titlePage{
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: .2px;
}


.page-grid {
  display: grid;
  gap: 24px;
  align-items: start
}

@media (min-width:1024px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 360px
  }
}

.page-grid .prose {
  max-width: none;
}

.page-grid .prose {
  font-size: 16px;
  line-height: 1.7;
}

@media (min-width:1280px) {
  .page-grid .prose {
    font-size: 17px;
  }
}

.page-grid .prose img {
  max-width: 100%;
  height: auto;
}

.prose {
  max-width: none;
}

.layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.layout__content {
  min-width: 0;
}

@media (min-width: 1024px) {
  .layout__sidebar {
    position: sticky;
    top: 112px;
  }
}

.stats-card {
  background: #1c1c1e;
  color: #fff;
  border-radius: 24px;
  padding: 24px;
  margin-top: 24px;
}

.stats-row {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(110px, 1fr));
  gap: 16px 24px;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}








.card {
  color: #fff;
  border-radius: 24px;
  margin-top: 12px;
}


@media (max-width: 480px) {
  .card {
    padding: 0;
    border-radius: 16px;
    margin-top: 8px;
  }

  .text-label {
    font-size: 13px;
  }

  .text-value {
    font-size: 15px;
  }
}


/* 1→2→3→4→5→6 колонок по брейкпоинтам (tailwind-like) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
}

  /* Сетка: 1→6 в ряд, перенос вниз */
  .cards { display:flex; flex-wrap:wrap; margin:-12px; }
  .cards > .card { box-sizing:border-box; padding:12px; width:100%; min-width:0; }
  @media (min-width:640px)  { .cards > .card { width:50%; } }        /* 2 */
  @media (min-width:768px)  { .cards > .card { width:33.333%; } }    /* 3 */
  @media (min-width:1024px) { .cards > .card { width:25%; } }        /* 4 */
  @media (min-width:1480px) { .cards > .card { width:20%; } }        /* 5 */

  /* Минималистичная карточка без фона */
  .vid { display:flex; flex-direction:column; height:100%; }

  /* Превью: больше, скруглённое, красивый hover */
  .thumb {
    position:relative; overflow:hidden; border-radius:16px;
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
  }
  .thumb img { display:block; width:100%; height:100%; object-fit:cover; }
  /* делаем превью «чуть больше» по высоте: 4/3 вместо 16/9 */
  .thumb { aspect-ratio: 16 / 10; }

  .thumb:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 28px rgba(255, 82, 82, .35), 0 6px 18px rgba(0,0,0,.45);
    filter: saturate(1.05);
    cursor: pointer;
  }

  /* Лёгкий градиент при ховере */
  .thumb::after {
    content:""; position:absolute; inset:0; pointer-events:none;
    background: radial-gradient(60% 60% at 70% 80%, rgba(255,80,80,.18), transparent 60%);
    opacity:0; transition:opacity .35s ease;
  }
  .thumb:hover::after { opacity:1; }

  /* Бейдж времени */
  .time-badge {
    position:absolute; right:8px; bottom:8px;
    background: rgba(0,0,0,.72); color:#fff; font-size:12px; font-weight:600;
    padding:4px 8px; border-radius:8px; backdrop-filter: blur(2px);
  }

  /* Текстовые блоки */
  .title {
    color:#fff; font-weight:600; line-height:1.25; margin-top:10px;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .meta { color:#9ca3af; font-size:12px; display:flex; gap:12px; margin-top:6px; white-space:nowrap; overflow:hidden; }
  .meta span, .meta time { text-overflow:ellipsis; overflow:hidden; }
  
  
  /* Лого в хэдере: гарантированная высота и выравнивание */
.header-logo .logo{
  height: 48px;
  width: auto;
  display: block;
}


/* на брейкпоинтах логотип чуть крупнее, но не выше 72px */
@media (min-width: 640px){
  .header-logo .logo { height: 32px; }
}
@media (min-width: 768px){
  .header-logo .logo { height: 32px; }
}

  /* отступ под фиксированный header */
  main {
    padding-top: 86px; /* базовый отступ под меню */
  }

  /* чуть больше на больших экранах, если меню выше */
  @media (min-width: 768px) {
    main {
      padding-top: 96px;
    }
  }

  @media (min-width: 1280px) {
    main {
      padding-top: 128px;
    }
  }
