/* HGP · ОПУБЛИКОВАННЫЕ МАТЕРИАЛЫ (stories v3) — лента карточек + модальное воспроизведение. */
.hgp-stories {
  position: relative;
  background: #141210;
  color: #F5F0EA;
  padding: clamp(40px, 7vh, 84px) 0;
  box-sizing: border-box;
}
.hgp-stories .hgp-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hgp-stories .hgp-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; color: #C62828; text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
.hgp-stories__h2 {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 14px;
}
.hgp-stories__h2 .hgp-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(245,240,234,.75); }
.hgp-stories__sub {
  font-family: 'Roboto Condensed', sans-serif; font-size: 15px; line-height: 1.55;
  color: rgba(245,240,234,.6); max-width: 640px; margin: 0 0 clamp(20px, 3vh, 30px);
}
.hgp-stories__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(245,240,234,.14); padding-top: 14px; margin-bottom: 18px;
}
.hgp-stories__count {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; color: rgba(245,240,234,.55); text-transform: uppercase;
}
.hgp-stories__nav { display: flex; gap: 10px; }
.hgp-stories__arrow {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid rgba(198,40,40,.6); color: #F5F0EA;
  font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease;
}
.hgp-stories__arrow:hover { background: #C62828; color: #FAFAFA; }
.hgp-stories__rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 10px; scrollbar-width: thin;
}
.hgp-stories__rail::-webkit-scrollbar { height: 6px; }
.hgp-stories__rail::-webkit-scrollbar-thumb { background: rgba(198,40,40,.55); }
.hgp-stories__card {
  position: relative; flex: 0 0 auto; width: clamp(150px, 18vw, 210px);
  aspect-ratio: 9/16; background: #201D1A; overflow: hidden; cursor: pointer;
  text-decoration: none; border: 1px solid rgba(245,240,234,.1);
  transition: border-color .3s ease, transform .3s ease;
}
.hgp-stories__card:hover { border-color: #C62828; transform: translateY(-3px); }
.hgp-stories__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgp-stories__num {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: #FAFAFA; background: rgba(20,18,16,.72); padding: 3px 7px;
}
.hgp-stories__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
}
.hgp-stories__play span {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #FAFAFA;
  background: rgba(198,40,40,.85); position: relative;
}
.hgp-stories__play span::after {
  content: ''; position: absolute; left: 52%; top: 50%;
  transform: translate(-50%, -50%); border-left: 12px solid #FAFAFA;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hgp-stories__tagline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(to top, rgba(20,18,16,.92), rgba(20,18,16,0));
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #FAFAFA;
  padding: 22px 8px 8px; text-align: center;
}

/* ── Модальное окно ── */
.hgp-stories__modal {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(10,9,8,.92); backdrop-filter: blur(3px);
}
.hgp-stories__modal.is-open { display: flex; }
.hgp-stories__modal-inner {
  position: relative; width: min(960px, 100%); max-height: 92vh; overflow: auto;
  background: #141210; border: 1px solid rgba(198,40,40,.4); padding: clamp(16px, 2.4vw, 28px);
  box-sizing: border-box; text-align: center;
}
.hgp-stories__modal-close {
  position: absolute; right: 10px; top: 10px; z-index: 3; cursor: pointer;
  background: rgba(20,18,16,.8); border: 1px solid rgba(245,240,234,.25); color: #F5F0EA;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; padding: 8px 12px;
}
.hgp-stories__modal-close:hover { border-color: #C62828; color: #C62828; }
.hgp-stories__modal-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -.01em; color: #FAFAFA; margin: 0 0 14px;
}
.hgp-stories__modal-frame {
  display: block; width: 100%; max-width: 720px; aspect-ratio: 16/9;
  margin: 0 auto; border: 0; background: #000;
}
.hgp-stories__modal-img { display: block; max-width: 100%; max-height: 60vh; margin: 0 auto; }
.hgp-stories__modal-note {
  font-family: 'Roboto Condensed', sans-serif; font-size: 14px; line-height: 1.5;
  color: rgba(245,240,234,.6); margin: 14px 0 12px;
}
.hgp-stories__modal-link {
  display: inline-block; font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #C62828; border: 2px solid #C62828; padding: 12px 24px; text-decoration: none;
  transition: background .3s ease, color .3s ease;
}
.hgp-stories__modal-link:hover { background: #C62828; color: #FAFAFA; }

@media (max-width: 560px) {
  .hgp-stories__card { width: 140px; }
  .hgp-stories__modal-inner { padding: 14px; }
}
