/* =========================================================
   База Контента — стили сайта
   ========================================================= */

:root {
  --bg: #07070a;
  --bg-soft: #0b0b10;
  --card: #101015;
  --card-2: #15151c;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f6;
  --muted: #9696a8;
  --muted-2: #6e6e80;
  --accent: #ff5b36;
  --accent-2: #ff2f6d;
  --violet: #a06bff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --grad: linear-gradient(100deg, #ff8a3d 0%, #ff4d4d 45%, #ff2f8a 100%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, video, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }

p { margin: 0; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -5%, rgba(255, 91, 54, 0.16), transparent 70%),
    radial-gradient(45% 40% at 92% 12%, rgba(160, 107, 255, 0.13), transparent 70%),
    radial-gradient(50% 45% at 4% 45%, rgba(255, 47, 109, 0.08), transparent 70%);
}

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 91, 54, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 91, 54, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 91, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 91, 54, 0); }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad);
  color: #14060a;
  box-shadow: 0 10px 30px -10px rgba(255, 76, 90, 0.6);
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 7, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16.5px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad);
  color: #14060a;
  box-shadow: 0 8px 22px -10px rgba(255, 76, 90, 0.9);
}

.brand-text b { font-weight: 700; }
.brand-text { color: var(--text); opacity: 0.92; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav a { transition: color 0.16s ease; }
.nav a:hover { color: var(--text); }

.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 70px;
}

.hero-copy { max-width: 780px; min-width: 0; }

.hero h1 {
  margin: 22px 0 26px;
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero-sub {
  max-width: 640px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 58px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.hero-stats > div {
  flex: 0 1 auto;
  padding-right: 48px;
  margin-right: 48px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero-stats dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.hero-stats dd {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- коллекция ---------- */

.collection { padding-top: 30px; padding-bottom: 40px; }

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.collection-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 8px;
}

.collection-head .muted { font-size: 14.5px; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 300px;
  flex: 0 1 340px;
  padding: 0 16px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.search:focus-within { border-color: var(--line-strong); background: var(--card-2); color: var(--text); }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
}

.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover { color: var(--text); border-color: var(--line-strong); }

.chip.is-active {
  color: #14060a;
  background: var(--text);
  border-color: var(--text);
  font-weight: 600;
}

.chip-count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.chip.is-active .chip-count { opacity: 0.65; }

.sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 38px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%239696a8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.sort select:focus { border-color: var(--line-strong); }

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

/* ---------- карточка ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  content-visibility: auto;
  contain-intrinsic-size: 224px 360px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 9 / 13;
  background: #0a0a0e;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
  opacity: 1;
}

.js .card-media img { opacity: 0; }
.js .card-media img.is-loaded { opacity: 1; }
.card:hover .card-media img { transform: scale(1.055); }

.card-media .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(70% 60% at 50% 30%, rgba(160, 107, 255, 0.16), transparent 70%),
    radial-gradient(60% 50% at 30% 90%, rgba(255, 91, 54, 0.14), transparent 70%),
    #101016;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

.card-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(160, 107, 255, 0.8);
}

.badge--ig::before { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); box-shadow: 0 0 10px rgba(238, 42, 123, 0.7); }
.badge--yt::before { background: #ff3030; box-shadow: 0 0 10px rgba(255, 48, 48, 0.7); }

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(6, 6, 9, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 11, 0.6);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(8px);
}

.card:hover .fav-btn, .fav-btn.is-active { opacity: 1; transform: none; }
.fav-btn:hover { background: rgba(255, 47, 109, 0.9); border-color: transparent; }
.fav-btn.is-active { color: #ff2f6d; background: rgba(255, 47, 109, 0.14); border-color: rgba(255, 47, 109, 0.4); }

.card-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(4, 4, 7, 0.5), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .card-play { opacity: 1; }

.card-play span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #10060a;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
}

.card:hover .card-play span { transform: scale(1); }

.card-body { padding: 14px 16px 17px; }

.card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.68em;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
}

.card-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- скелетоны ---------- */

.skeletons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.skeletons[hidden] { display: none; }

.sk-card {
  aspect-ratio: 9 / 13.9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #0e0e13 20%, #16161d 40%, #0e0e13 60%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* ---------- пусто / ещё ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 76px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  margin-top: 18px;
}

.empty-mark {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 18px;
}

.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; margin-bottom: 22px; }

.load-more { display: flex; justify-content: center; padding: 34px 0 10px; }

/* ---------- как добавить ---------- */

.how { padding-top: 84px; padding-bottom: 30px; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%), var(--card);
  overflow: hidden;
}

.step-num {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 26px;
}

.step h3 { font-size: 21px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14.8px; line-height: 1.6; }
.step p a { color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.step p a:hover { border-color: var(--text); }

.bot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 32px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(100deg, rgba(255, 138, 61, 0.55), rgba(255, 47, 138, 0.4), rgba(160, 107, 255, 0.45)) border-box;
}

.bot-card h3 { font-size: 24px; margin-bottom: 6px; letter-spacing: -0.02em; }
.bot-card p { color: var(--muted); font-size: 14.8px; max-width: 560px; }

/* ---------- о проекте ---------- */

.about { padding-top: 90px; padding-bottom: 100px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.about-grid h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 14px; }

.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

/* ---------- подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.brand--footer { font-size: 14.5px; }
.brand--footer .brand-mark { width: 28px; height: 28px; border-radius: 9px; }

.footer-inner .muted a { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer-inner .muted a:hover { color: var(--text); }

.footer-admin { margin-left: auto; opacity: 0.5; transition: opacity 0.2s ease; }
.footer-admin:hover { opacity: 1; }

/* ---------- модальное окно ---------- */

.modal {
  width: min(1060px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-soft);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

.modal::backdrop {
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal[open] { animation: modalIn 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  max-height: calc(100vh - 42px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 12, 0.7);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.modal-close:hover { background: rgba(255, 255, 255, 0.14); }

.modal-media {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 42px);
}

.modal-media.is-landscape { aspect-ratio: 16 / 9; }
.modal-media.is-portrait { aspect-ratio: 9 / 16; }

.modal-media video,
.modal-media iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}

.modal-info {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 24px;
  overflow: hidden;
  max-height: calc(100vh - 42px);
  border-left: 1px solid var(--line);
}

.modal-info > * { flex: 0 0 auto; }

.modal-topline { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; }

.modal-info h3 { font-size: clamp(22px, 2.4vw, 29px); line-height: 1.16; margin-bottom: 8px; }

.modal-author { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }

.modal-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 14px;
  max-height: 3.2em;
  overflow: hidden;
}

.modal-desc:empty { display: none; }

.modal-desc.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc-more {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 20px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.desc-more:hover { border-color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }

.tag {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.tag:hover { color: var(--text); border-color: var(--line-strong); }

.modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.modal-actions .btn { font-size: 13.5px; padding: 10px 16px; }

.modal-views { font-size: 12.5px; }

/* ---------- коллаж в hero ---------- */

.hero-collage {
  position: relative;
  height: 500px;
}

.hero-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 62%, var(--bg) 100%);
  pointer-events: none;
  z-index: 4;
}

.hero-collage .collage-card {
  position: absolute;
  margin: 0;
  width: 186px;
  aspect-ratio: 9 / 13.4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--card-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
}

.hero-collage .collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(1.06) contrast(1.02);
}

.hero-collage .collage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 9, 0.8), transparent 58%);
  pointer-events: none;
}

.hero-collage .mini-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #14060a;
  font-size: 10px;
}

.hero-collage .collage-card:nth-child(1) {
  left: 0;
  top: 74px;
  transform: rotate(-9deg);
  z-index: 1;
  animation: float1 9s ease-in-out infinite;
}

.hero-collage .collage-card:nth-child(2) {
  left: 112px;
  top: 6px;
  transform: rotate(2deg) scale(1.06);
  z-index: 3;
  animation: float2 11s ease-in-out infinite;
}

.hero-collage .collage-card:nth-child(3) {
  left: 228px;
  top: 86px;
  transform: rotate(10deg);
  z-index: 2;
  animation: float1 10s ease-in-out 1s infinite;
}

@keyframes float1 {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes float2 {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 12px; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1160px) {
  .modal-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
}

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media { max-height: 62vh; aspect-ratio: 9 / 14; }
  .modal-media.is-landscape { aspect-ratio: 16 / 9; }
  .modal-info { max-height: none; overflow: visible; border-left: 0; border-top: 1px solid var(--line); padding: 24px; }
  .modal-article { flex: none; max-height: 60vh; }
  .modal { max-height: calc(100vh - 24px); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .header-inner { height: 64px; gap: 16px; }
  .header-actions .btn { padding: 10px 16px; font-size: 13.5px; }
  .header-actions .btn svg { width: 14px; height: 14px; }
  .hero { padding-top: 56px; padding-bottom: 46px; }
  .hero-stats { margin-top: 40px; }
  .hero-stats > div { padding-right: 26px; margin-right: 26px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .skeletons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 11px 12px 14px; }
  .card-body h3 { font-size: 13.5px; }
  .card-meta { font-size: 11.5px; }
  .badge { font-size: 10.5px; padding: 5px 8px; }
  .badge::before { width: 6px; height: 6px; }
  .duration { font-size: 10.5px; padding: 3px 7px; right: 8px; bottom: 8px; }
  .fav-btn { width: 30px; height: 30px; top: 8px; right: 8px; opacity: 1; transform: none; }
  .search { flex: 1 1 100%; order: 3; min-width: 0; }
  .collection-head { align-items: flex-start; }
  .bot-card { padding: 24px; }
  .about { padding-top: 60px; padding-bottom: 70px; }
  .how { padding-top: 56px; padding-bottom: 20px; }
  .modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }
  .modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal-media {
    width: 100%;
    height: min(calc(100vw * 16 / 9), 76dvh);
    max-height: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
  }
  .modal-media.is-landscape { height: auto; aspect-ratio: 16 / 9; }
  .modal-media video,
  .modal-media iframe { width: 100%; height: 100%; object-fit: contain; }
  .modal-info {
    flex: 0 0 auto;
    padding: 18px 18px 26px;
  }
  .modal-info h3 { font-size: 21px; }
  .modal-actions { gap: 8px; }
  .modal-actions .btn { font-size: 13px; padding: 9px 14px; }
  .modal-article {
    max-height: 55vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .topics { display: block; margin: -4px -18px 22px; }
  .topics-label { display: none; }
  .chips--topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 18px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips--topics::-webkit-scrollbar { display: none; }
  .chip--topic { flex: 0 0 auto; }

  .toolbar { gap: 10px; }
  .toolbar > .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 2px 18px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .toolbar > .chips::-webkit-scrollbar { display: none; }
  .toolbar .chip { flex: 0 0 auto; }
  .sort { display: block; }
  .sort select { width: 100%; }
}

@media (max-width: 420px) {
  .grid { gap: 10px; }
  .hero-stats > div { padding-right: 18px; margin-right: 18px; }
  .hero-stats dd { font-size: 24px; }
  .hero-stats dt { font-size: 10.5px; }
}

@media (hover: none) {
  .card-play { opacity: 1; background: linear-gradient(to top, rgba(4, 4, 7, 0.45), transparent 40%); }
  .card-play span { width: 42px; height: 42px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ---------- статья ---------- */

.article-wrap { max-width: 900px; padding-top: 44px; padding-bottom: 90px; }

.article { position: relative; }

.article-head { margin-bottom: 30px; }

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 20px;
}

.article-head h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.article-sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-lead {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text);
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  margin-bottom: 26px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted-2);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-byline a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }

.article-cover {
  margin: 30px 0;
  max-height: 560px;
  display: flex;
  justify-content: center;
  background: transparent;
}

.article-cover img {
  max-height: 560px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
}

.article-body { font-size: 17.5px; line-height: 1.75; color: #dcdce4; }
.article-body p { margin-bottom: 22px; }
.article-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 40px 0 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.article-body h3 { font-size: 20px; margin: 28px 0 12px; }
.article-body blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.03);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 18px;
}
.article-body ul { margin: 0 0 22px 22px; padding: 0; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.35); }

.article-sources {
  margin: 46px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article-sources h2 { font-size: 18px; margin-bottom: 12px; }
.article-sources ul { margin: 0 0 0 20px; padding: 0; font-size: 14px; color: var(--muted); }
.article-sources li { margin-bottom: 6px; word-break: break-word; }
.article-sources a { color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.2); }

.article-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.article-pending {
  max-width: 620px;
  margin: 40px auto;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  text-align: center;
}
.article-pending h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 14px; }
.article-pending p { margin-bottom: 10px; font-size: 15px; }
.article-pending .article-actions { justify-content: center; margin-top: 26px; }

/* бейдж статьи на карточке */
.card-article {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 91, 54, 0.92);
  color: #14060a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.modal-article {
  flex: 1 1 auto;
  min-height: 90px;
  margin: 16px -6px 0 0;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.modal-article::-webkit-scrollbar { width: 6px; }
.modal-article::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

.modal-article .m-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-article .m-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-article .m-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }

.modal-article .m-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 16px;
}

.modal-article .m-body p { font-size: 14px; line-height: 1.66; color: #c9c9d4; margin-bottom: 13px; }
.modal-article .m-body h2 {
  font-size: 15.5px;
  margin: 20px 0 9px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.modal-article .m-body blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(255,255,255,.03);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--text);
}
.modal-article .m-body ul { margin: 0 0 13px 18px; padding: 0; }
.modal-article .m-body li { font-size: 13.5px; margin-bottom: 6px; color: #c9c9d4; }
.modal-article .m-body a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }

.modal-article .m-src {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  word-break: break-word;
}
.modal-article .m-src strong { color: var(--muted); }

.modal-article .m-open {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.35);
}

.modal-article .m-loading { color: var(--muted); font-size: 13.5px; line-height: 1.6; }


/* ---------- темы / категории ---------- */

.topics {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: -4px 0 26px;
  flex-wrap: wrap;
}

.topics-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 11px;
  white-space: nowrap;
  font-weight: 600;
}

.chips--topics { flex: 1; }

.chip--topic { font-size: 13px; padding: 7px 13px; }

.chip--topic.is-active {
  background: rgba(255, 91, 54, 0.16);
  border-color: rgba(255, 91, 54, 0.55);
  color: var(--text);
}

.chip--topic.is-active .chip-count { opacity: 0.8; }

.card-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

.card-cat {
  font-size: 10.5px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}

.modal-cats { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 16px; }
.modal-cats:empty { display: none; }
.modal-cats .chip { font-size: 12px; padding: 6px 12px; }

.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.article-cats a {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.article-cats a:hover { color: var(--text); border-color: var(--line-strong); }

.v-title .cats-inline { color: var(--accent); opacity: .8; }
