/* Блок «Блог · Полезно знать» на главной (16.11.2026): 5 вариантов — Blog::homeBlock, поведение — home-blog.js */
.hb { --hb-r: 18px; }
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hb-head h2 { margin: 4px 0 6px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.hb-head p { margin: 0; color: var(--muted); max-width: 620px; line-height: 1.5; }
.hb-head .more { white-space: nowrap; }
.hb-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.hb-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(20,20,24,.55); backdrop-filter: blur(4px); transition: background .2s, transform .2s, opacity .2s; pointer-events: none; }
.hb-play::after { content: ""; position: absolute; left: 22px; top: 18px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.hb-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }

/* общая карточка видео */
.hb-v { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.hb-v__ph { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #ece8e8; }
.hb-v__ph img, .hb-v__ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-v__ph video { opacity: 0; transition: opacity .3s; }
.hb-v.is-live .hb-v__ph video { opacity: 1; }
.hb-v.is-live .hb-play { opacity: 0; }
.hb-v:hover .hb-play { background: var(--pink); transform: scale(1.08); }
.hb-v__t { font-weight: 600; font-size: 15px; line-height: 1.3; color: #1b1b1f; }
.hb-v__p { font-weight: 700; color: var(--pink); font-size: 15px; }

/* общая карточка статьи */
.hb-a { display: flex; flex-direction: column; background: #fff; border-radius: var(--hb-r); overflow: hidden; text-decoration: none; color: inherit; height: 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.hb-a:hover { box-shadow: 0 10px 28px rgba(41,44,50,.12); transform: translateY(-2px); }
.hb-a__ph { position: relative; aspect-ratio: 16 / 9; display: block; background: #ece8e8; }
.hb-a__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-a__b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.hb-a__b small { color: var(--muted); font-size: 12px; }
.hb-a__b b { font-size: 16px; line-height: 1.3; color: #1b1b1f; }
.hb-a__b span { color: #4a4c52; font-size: 14.5px; line-height: 1.5; }

/* 1 — видеолента */
.hb1-row-wrap { position: relative; }
.hb1-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; }
.hb1-row::-webkit-scrollbar { display: none; }
.hb1-row > * { scroll-snap-align: start; }
.hb-arr { position: absolute; top: calc((100% - 50px) / 2 - 22px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.15); font-size: 24px; cursor: pointer; }
.hb-arr--l { left: -14px; } .hb-arr--r { right: -14px; }

/* 1 — статьи под роликами: мини-карточки с квадратным фото (Иван 16.11, вариант 5) */
.hb-arts { margin-top: 24px; padding-top: 20px; border-top: 1px solid #ebe6e7; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 20px; align-items: center; }
.hb-arts__it { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-width: 0; }
.hb-arts__it img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: #ece8e8; transition: transform .25s; }
.hb-arts__it b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.3; color: #1b1b1f; transition: color .2s; }
.hb-arts__it small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.hb-arts__it:hover b { color: var(--pink); }
.hb-arts__it:hover img { transform: scale(1.05); }
.hb-arts__all { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; color: var(--pink); text-decoration: none; padding: 10px 16px; border-radius: 999px; background: #fbeef3; }
.hb-arts__all:hover { background: var(--pink); color: #fff; }
.hb-arts__all i { font-style: normal; }

/* 2 — витрина */
.hb2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; background: #fff; border-radius: var(--hb-r); padding: 18px; }
.hb2-pl { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.hb2-pl video { width: 100%; height: 100%; display: block; object-fit: contain; }
.hb2-cap { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 14px; }
.hb2-cap b { font-size: 18px; flex: 1 1 260px; }
.hb2-cap span { font-size: 20px; font-weight: 700; color: var(--pink); }
.hb2-cap .btn { border-radius: 999px; }
.hb2-list { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.hb2-it { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.hb2-it:hover { background: #F6F4F4; }
.hb2-it.is-on { background: #fbeef3; }
.hb2-it img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; }
.hb2-it b { display: block; font-size: 14.5px; line-height: 1.3; }
.hb2-it small { color: var(--muted); font-size: 13px; }

/* 3 — журнал */
.hb3-tabs { display: flex; gap: 8px; margin: -6px 0 18px; }
.hb3-tabs button { border: 0; padding: 8px 18px; border-radius: 999px; background: #F2EFEF; font: inherit; font-weight: 500; cursor: pointer; }
.hb3-tabs button.is-on { background: #292C32; color: #fff; }
.hb3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.hb-a--big .hb-a__ph { aspect-ratio: 4 / 3; }
.hb-a--big .hb-a__b b { font-size: 22px; }
.hb3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hb3-c[hidden] { display: none; }
.hb3-c .hb-v { background: #fff; border-radius: var(--hb-r); padding: 10px 10px 14px; height: 100%; }
.hb3-c .hb-v__t, .hb3-c .hb-v__p { padding: 0 6px; }

/* 4 — кинозал */
.hb--4 { background: #1f2126; color: #fff; padding: 56px 0; }
.hb4-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.hb4-head h2 { color: #fff; margin: 6px 0 8px; font-size: clamp(26px, 3vw, 38px); }
.hb4-head p { color: #c9c3c5; margin: 0; max-width: 640px; line-height: 1.5; }
.hb--4 .hb-kicker { color: #ff7aa8; }
.hb4-stat { text-align: right; }
.hb4-stat b { display: block; font-size: 56px; line-height: 1; color: #fff; }
.hb4-stat span { color: #c9c3c5; }
.hb4-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hb4-c { text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.hb4-pl { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #000; }
.hb4-pl video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hb4-c:hover .hb4-pl video { transform: scale(1.04); }
.hb4-t { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; }
.hb4-t span { color: #ff7aa8; font-weight: 700; white-space: nowrap; }
.hb4-more { text-align: center; margin-top: 26px; }
.hb4-more .btn { border-radius: 999px; padding: 14px 28px; background: var(--pink); color: #fff; }
.hb5-cap .btn { background: var(--pink); color: #fff; }

/* 5 — сторис */
.hb5-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.hb5-row::-webkit-scrollbar { display: none; }
.hb5-s { flex: none; width: 96px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; }
.hb5-ring { width: 88px; height: 88px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #A42654, #ff7aa8, #f3a45b, #A42654); display: block; transition: transform .2s; }
.hb5-s:hover .hb5-ring { transform: scale(1.06); }
.hb5-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; display: block; }
.hb5-s small { font-size: 12.5px; line-height: 1.25; text-align: center; color: #2a2c31; max-width: 96px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hb5-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.hb5-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10,10,12,.92); display: flex; align-items: center; justify-content: center; }
.hb5-box { position: relative; width: min(84vw, calc(72vh * 16 / 9)); }
@media (max-width: 760px) { .hb5-box { width: 94vw; } }
.hb5-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.hb5-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.hb5-bars i.done { background: #fff; }
.hb5-bars i.cur span { display: block; height: 100%; width: 0; background: #fff; }
.hb5-box video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; display: block; }
.hb5-cap { display: flex; align-items: center; gap: 12px 18px; margin-top: 12px; color: #fff; flex-wrap: wrap; }
.hb5-cap b { flex: 1 1 240px; font-size: 17px; }
.hb5-cap span { color: #ff7aa8; font-weight: 700; font-size: 18px; }
.hb5-cap .btn { border-radius: 999px; }
.hb5-x, .hb5-nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 24px; cursor: pointer; }
.hb5-x { right: 0; top: -58px; }
.hb5-nav--l { left: -60px; top: 45%; } .hb5-nav--r { right: -60px; top: 45%; }

@media (max-width: 1100px) {
  .hb1-row { grid-auto-columns: calc((100% - 2 * 18px) / 2.6); }
  .hb2 { grid-template-columns: minmax(0, 1fr); }
  .hb2-list { flex-direction: row; overflow-x: auto; max-height: none; }
  .hb2-it { flex-direction: column; align-items: flex-start; width: 160px; flex: none; }
  .hb2-it img { width: 100%; }
  .hb3 { grid-template-columns: minmax(0, 1fr); }
  .hb-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-arts__all { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .hb1-row { grid-auto-columns: 78%; gap: 12px; }
  .hb-arr { display: none; }
  .hb-arts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hb-arts__it:nth-child(4) { display: none; }   /* на телефоне 3 статьи, чтобы блок не тянулся вниз */
  .hb-arts__it img { width: 64px; height: 64px; }
  .hb2 { padding: 10px; }
  .hb3-grid { grid-template-columns: minmax(0, 1fr); }
  .hb--4 { padding: 40px 0; }
  .hb4-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hb4-c { scroll-snap-align: start; }
  .hb4-stat { text-align: left; }
  .hb5-arts { grid-template-columns: minmax(0, 1fr); }
  .hb5-s { width: 76px; } .hb5-ring { width: 70px; height: 70px; } .hb5-s small { max-width: 76px; }
  .hb5-nav { display: none; }
  .hb5-x { top: -54px; }
}
