/* ===== Раздел «Видео Веты»: каталог /videos.html и страницы /video/<slug>.html =====
   Только токены elaya.css: Manrope, вес ≤ 700, без курсива и градиентов в фонах, один акцент var(--accent),
   карточки — фон без рамки и тени, радиусы 8/12/16/24, отступы 4/8/12/16/24/32/48/64/80/96,
   шрифты 12/14/16/18/20/24/30/36/48/60, переходы var(--ease) 300–500 мс. */

.vd-card[hidden], .vd-short[hidden], .vd-more[hidden], .vd-empty[hidden] { display: none !important; }
.vd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- общие секции ---------- */
.vd-sec { padding: 80px 0 96px; }
.vd-sec--alt { background: var(--surface); }
.vd-sec--tight { padding: 48px 0 80px; }
.vd-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 680px; }
.vd-head h2 { margin: 0; font-size: 48px; line-height: 48px; letter-spacing: -.035em; }
.vd-head__sub { margin: 0; font: 400 18px/28px var(--font); color: var(--ash); }
.vd-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.vd-head--row h2 { font-size: 30px; line-height: 36px; letter-spacing: -.02em; }
.vd-link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px var(--font); color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: var(--r-md); transition: background-color .3s var(--ease); }
.vd-link:hover { background: var(--bg); }
.vd-link svg { transition: transform .5s var(--ease); }
.vd-link:hover svg { transform: translateX(4px); }

.vd-crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 8px 12px 8px 8px; border-radius: var(--r-md);
  font: 500 14px/20px var(--font); color: var(--ash); text-decoration: none; background: var(--surface);
  transition: background-color .3s var(--ease), color .3s var(--ease); }
.vd-crumb svg { transform: rotate(180deg); transition: transform .5s var(--ease); }
.vd-crumb:hover { background: var(--surface-2); color: var(--ink); }
.vd-crumb:hover svg { transform: rotate(180deg) translateX(4px); }
.vd-crumb:active { transform: scale(.98); }

/* ---------- первый экран каталога ---------- */
.vd-hero { padding: 48px 0 32px; }
#catalog { padding-top: 48px; }
.vd-hero .eyebrow { display: block; }
.vd-hero h1 { margin: 0 0 24px; }
.vd-hero .lead { margin: 0; }
.vd-stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 160px)); gap: 12px; }
.vd-stats li { background: var(--surface); border-radius: var(--r-xl); padding: 16px; display: grid; gap: 4px; }
.vd-stats b { font: 600 30px/36px var(--font); letter-spacing: -.03em; color: var(--ink); }
.vd-stats span { font: 500 14px/20px var(--font); color: var(--ash); }
.vd-hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; }
.vd-hero__btns .btn svg { flex: none; }

/* ---------- поиск и чипы ---------- */
.vd-tools { display: grid; gap: 16px; margin-bottom: 16px; }
.vd-search { position: relative; display: block; max-width: 480px; }
.vd-search__ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ash); display: flex; pointer-events: none; }
.vd-search input { width: 100%; box-sizing: border-box; font: 400 16px/24px var(--font); color: var(--ink); padding: 12px 16px 12px 48px;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); -webkit-appearance: none; appearance: none;
  transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.vd-search input::placeholder { color: var(--ash); }
.vd-search input:hover { background: var(--surface-2); }
.vd-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--bg); border-color: var(--accent); }
.vd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font); color: var(--stone); background: var(--surface);
  border: 0; border-radius: var(--r-full); padding: 8px 12px; cursor: pointer; min-height: 36px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease); }
.vd-chip span { font: 600 12px/16px var(--font); color: var(--ash); transition: color .3s var(--ease); }
.vd-chip:hover { background: var(--surface-2); color: var(--ink); }
.vd-chip:active { transform: scale(.98); }
.vd-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-chip.on { background: var(--ink); color: #fff; }
.vd-chip.on span { color: var(--mute); }
.vd-chip--ex svg { color: var(--accent); }
.vd-chip--ex.on svg { color: #fff; }
.vd-count { margin: 0 0 24px; font: 500 14px/20px var(--font); color: var(--ash); }

/* ---------- сетка карточек ---------- */
.vd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.vd-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; border-radius: var(--r-xl); }
.vd-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vd-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-xl); background: var(--surface-2); }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.vd-card:hover .vd-card__media img { transform: scale(1.03); }
.vd-card:active .vd-card__media { transform: scale(.98); }
.vd-card__media { transition: transform .3s var(--ease); }
.vd-card__play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92); color: var(--ink); transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.vd-card__play::before, .vd-player__play i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 14px; transform: translate(-35%, -50%);
  background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.vd-card:hover .vd-card__play, .vd-short__btn:hover .vd-card__play { background: var(--accent); color: #fff; transform: scale(1.06); }
.vd-card__dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: var(--r-md); background: rgba(12, 10, 9, .78); color: #fff;
  font: 600 12px/16px var(--font); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.vd-card__body { display: grid; gap: 8px; }
.vd-card__theme { font: 600 12px/16px var(--font); color: var(--accent); letter-spacing: .02em; }
.vd-card__t { font: 500 18px/28px var(--font); color: var(--ink); text-wrap: pretty; transition: color .3s var(--ease); }
.vd-card:hover .vd-card__t { color: var(--accent); }
.vd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 400 14px/20px var(--font); color: var(--ash); }
.vd-card__ex { display: inline-flex; align-items: center; gap: 4px; color: var(--stone); }
.vd-card__ex svg { color: var(--accent); }
.vd-sec--alt .vd-card__media { background: var(--surface-2); }

/* пустое состояние */
.vd-empty { display: grid; justify-items: start; gap: 12px; max-width: 560px; padding: 32px; border-radius: var(--r-3xl); background: var(--surface); }
.vd-empty__ic { width: 48px; height: 48px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--bg); color: var(--accent); }
.vd-empty h3 { margin: 0; font: 600 24px/32px var(--font); letter-spacing: -.02em; }
.vd-empty p { margin: 0; font: 400 16px/24px var(--font); color: var(--ash); }
.vd-empty .btn { margin-top: 12px; }
.vd-empty--sm { background: var(--bg); padding: 24px; }
.vd-more { display: flex; justify-content: center; margin-top: 48px; }
.vd-more .btn { min-width: 200px; }

/* ---------- короткие видео ---------- */
.vd-shorts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.vd-short { display: grid; gap: 8px; align-content: start; }
.vd-short__btn { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--r-xl); background: var(--surface-2); transition: transform .3s var(--ease); }
.vd-short__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.vd-short__btn:hover img { transform: scale(1.04); }
.vd-short__btn:active { transform: scale(.98); }
.vd-short__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.vd-short__frame { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: var(--r-xl); background: var(--ink); display: block; }
.vd-short__t { margin: 0; font: 500 14px/20px var(--font); color: var(--ink); text-wrap: pretty; }
.vd-short__theme { font: 400 12px/16px var(--font); color: var(--ash); }

/* ---------- призыв ---------- */
.vd-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 48px; border-radius: var(--r-3xl); background: var(--surface); }
.vd-cta h2 { margin: 0 0 16px; font-size: 36px; line-height: 40px; letter-spacing: -.03em; }
.vd-cta .lead { margin: 0; }
.vd-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- страница ролика ---------- */
.vd-page { padding: 48px 0 80px; }
.vd-page__head { max-width: 880px; margin-bottom: 32px; }
.vd-page__theme { display: inline-block; margin-bottom: 16px; font: 600 12px/16px var(--font); letter-spacing: .02em; color: var(--accent); text-decoration: none;
  padding: 4px 8px; border-radius: var(--r-md); background: var(--accent-soft); transition: background-color .3s var(--ease); }
.vd-page__theme:hover { background: var(--surface-2); }
main > section:first-of-type .vd-page__head h1, .vd-page__head h1 { margin: 0 0 16px; font-size: 48px; line-height: 48px; letter-spacing: -.035em; max-width: 880px; }
.vd-page__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font: 500 14px/20px var(--font); color: var(--ash); }
.vd-page__meta span { display: inline-flex; align-items: center; gap: 4px; }

.vd-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-3xl); overflow: hidden; background: var(--ink); }
.vd-player__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); display: block; }
.vd-player__btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.vd-player__btn:hover img { transform: scale(1.02); opacity: 1; }
.vd-player__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 16px; border-radius: var(--r-full); background: #fff; color: var(--ink); font: 600 18px/28px var(--font); white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.vd-player__play i { position: relative; flex: none; width: 32px; height: 32px; border-radius: var(--r-full); background: var(--accent); color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease); }
.vd-player__btn:hover .vd-player__play { background: var(--accent); color: #fff; transform: translate(-50%, -50%) scale(1.04); }
.vd-player__btn:hover .vd-player__play i { background: #fff; color: var(--accent); }
.vd-player__btn:active .vd-player__play { transform: translate(-50%, -50%) scale(.98); }
.vd-player__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.vd-player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-player__nojs { position: absolute; left: 16px; bottom: 16px; color: #fff; }

.vd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 48px; align-items: start; }
.vd-main { display: grid; gap: 32px; min-width: 0; }
.vd-desc { margin: 0; font: 400 20px/28px var(--font); color: var(--stone); max-width: 65ch; text-wrap: pretty; }
.vd-block { display: grid; gap: 16px; }
.vd-block__h { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 24px/32px var(--font); letter-spacing: -.02em; color: var(--ink); }
.vd-block__ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.vd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vd-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--r-xl); background: var(--surface);
  font: 400 16px/24px var(--font); color: var(--stone); }
.vd-steps__n { flex: none; width: 24px; height: 24px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--bg); color: var(--ink); font: 600 12px/16px var(--font); }
.vd-diary { padding: 24px; border-radius: var(--r-3xl); background: var(--surface); }
.vd-diary .vd-block__ic { background: var(--bg); }
.vd-diary__q { margin: 0; font: 600 20px/28px var(--font); color: var(--ink); text-wrap: pretty; }
.vd-diary__note { width: 100%; box-sizing: border-box; font: 400 16px/24px var(--font); color: var(--ink); padding: 12px 16px; resize: vertical; min-height: 120px;
  background: var(--bg); border: 1px solid var(--surface-2); border-radius: var(--r-lg); transition: border-color .3s var(--ease); }
.vd-diary__note:hover { border-color: var(--mute); }
.vd-diary__note:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.vd-diary__saved { margin: 0; min-height: 16px; font: 400 12px/16px var(--font); color: var(--ash); }

.vd-aside { position: sticky; top: 96px; display: grid; gap: 12px; }
.vd-prog { display: grid; gap: 12px; padding: 24px; border-radius: var(--r-3xl); background: var(--surface); }
.vd-prog__ey { font: 600 12px/16px var(--font); letter-spacing: .02em; color: var(--accent); }
.vd-prog__t { margin: 0; font: 600 24px/32px var(--font); letter-spacing: -.02em; color: var(--ink); }
.vd-prog__p { margin: 0; font: 400 16px/24px var(--font); color: var(--stone); }
.vd-prog__btn { margin-top: 12px; justify-self: start; }
.vd-prog__btn svg { transition: transform .5s var(--ease); }
.vd-prog__btn:hover svg { transform: translateX(4px); }
.vd-yt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-lg);
  font: 600 14px/20px var(--font); color: var(--stone); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease); }
.vd-yt:hover { background: var(--surface); color: var(--ink); }

.vd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-back { display: flex; justify-content: center; }
.vd-back .btn svg { transform: rotate(180deg); }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .vd-shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vd-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 900px) {
  .vd-grid, .vd-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-layout { grid-template-columns: minmax(0, 1fr); }
  .vd-aside { position: static; }
  .vd-cta { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) {
  .vd-sec { padding: 64px 0 80px; }
  .vd-hero { padding: 32px 0 24px; }
  #catalog { padding-top: 32px; }
  .vd-head h2 { font-size: 30px; line-height: 36px; }
  .vd-head__sub { font-size: 16px; line-height: 24px; }
  .vd-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .vd-head--row h2 { font-size: 24px; line-height: 32px; }
  .vd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-stats b { font-size: 24px; line-height: 32px; }
  .vd-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .vd-page { padding: 32px 0 64px; }
  main > section:first-of-type .vd-page__head h1, .vd-page__head h1 { font-size: 30px; line-height: 36px; letter-spacing: -.02em; }
  .vd-player { border-radius: var(--r-xl); }
  .vd-player__play { font-size: 16px; line-height: 24px; padding: 8px 16px 8px 12px; }
  .vd-layout { margin-top: 32px; }
  .vd-desc { font-size: 18px; line-height: 28px; }
  .vd-block__h { font-size: 20px; line-height: 28px; }
  .vd-cta { padding: 24px; }
  .vd-cta h2 { font-size: 30px; line-height: 36px; }
  .vd-cta .btns .btn { width: 100%; }
}
@media (max-width: 560px) {
  .vd-grid, .vd-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vd-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .vd-chips::-webkit-scrollbar { display: none; }
  .vd-chip { flex: none; scroll-snap-align: start; }
  .vd-hero__btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .vd-card__media img, .vd-short__btn img, .vd-player__btn img, .vd-card__play, .vd-player__play, .vd-chip, .vd-crumb svg { transition: opacity .3s linear !important; }
  .vd-card:hover .vd-card__media img, .vd-short__btn:hover img, .vd-player__btn:hover img { transform: none; }
}
