/* 28.11: первый экран страницы темы — копия первого экрана тимбилдинга (Hero26, css/card81-hero.css прода) под .t81.
   Отличия от эталона: панель белая — страница сиреневая, остальные блоки белые (у карточки 81 страница белая, панель #F5F5F7);
   сверху без отступа под прозрачную шапку (126 px) — шапка макета стоит в потоке; блоков сайта под экраном (баннер, «Топ блок»)
   здесь нет — их правила не переносили. Остальное — как в эталоне: рамка 16:9 по высоте, без сжатия и чёрных полос. */
.t81 .c81-hero { position: relative; padding-top: 16px; margin-bottom: 0; color: #121212; }   /* отступ до блока ниже даёт сам блок */

/* крошки-пилюли (nav.kr, стили — src/itog/hero2.css) — в карточке над названием, отступ до него — промежуток карточки */
.t81 .kr { margin: 0; }
.t81 .kr-home { color: #705ABF; }   /* домик фиолетовый — как в образце */

.t81 .c81-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px; border-radius: 30px; background: #fff; }

/* высота рамки — как в эталоне: 7/12 ширины панели, ниже окна — не меньше 87% */
@supports (height: 1cqw) {
  .t81 .c81-cq { container-type: inline-size; }
  .t81 .c81-panel { --c81-hmax: calc((100cqw - 72px) * 0.328125); --c81-h0: clamp(calc(var(--c81-hmax) * 0.87), calc(100vh - 369px), var(--c81-hmax)); }
}

.t81 .c81-card { --c81-hc: var(--c81-h0, 392px); --c81-gap: clamp(14px, calc(var(--c81-hc) / 2 - 152px), 18px);
  display: flex; flex-direction: column; justify-content: center; gap: var(--c81-gap); min-width: 0; min-height: var(--c81-hc);
  padding: clamp(12px, calc(var(--c81-hc) - 316px), 24px) 8px clamp(12px, calc(var(--c81-hc) - 316px), 24px) 32px; }
.t81 .c81-card__top, .t81 .c81-card__bottom { display: flex; flex-direction: column; gap: var(--c81-gap, 18px); }

/* название градиентом по буквам: тёмный → светлый фиолетовый */
.t81 .c81-title { width: fit-content; max-width: 100%; margin: 0; font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #2A1A63, #8C78D8); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.t81 .c81-sub { margin: 0; font-size: 15px; line-height: 1.45; color: #55555c; }
.t81 .c81-pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.t81 .c81-price { font-size: 26px; font-weight: 700; line-height: 1.1; color: #121212; }
.t81 .c81-price span { font: inherit; }
.t81 .c81-art { display: flex; align-items: center; gap: 2px; font-size: 13px; line-height: 20px; color: #6e6e73; }
.t81 .c81-actions { display: flex; align-items: center; gap: 10px; }
.t81 .c81-btn { display: flex; align-items: center; justify-content: center; flex: 0 1 250px; height: 46px; padding: 0 22px; border: 0; border-radius: 100px; background: #705ABF; color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s; }
.t81 .c81-ico { display: block; flex: none; width: 44px; height: 44px; color: #705ABF; }
.t81 .c81-ico svg { display: block; width: 100%; height: 100%; }
.t81 .c81-pdf { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 14px; font-weight: 500; color: #705ABF; text-decoration: none; }
.t81 .c81-pdf svg { flex: none; width: 18px; height: 18px; }

/* рамка 16:9 по высоте */
.t81 .c81-media { position: relative; display: block; overflow: hidden; height: var(--c81-h0, 392px); aspect-ratio: 16 / 9; border-radius: 20px; background: #ececf0; }
.t81 .c81-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t81 .c81-media--v img { object-position: 50% 18%; }   /* 30.11: вертикальная обложка в рамке 16:9 — по верху кадра */
.t81 .c81-bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.t81 .c81-bgv.is-on { opacity: 1; }
.t81 .c81-play { position: absolute; left: 50%; top: 50%; display: block; width: 64px; height: 64px; transform: translate(-50%, -50%); transition: transform .2s ease; }
.t81 .c81-play svg { display: block; width: 100%; height: 100%; }

@media (hover: hover) {
  .t81 .c81-btn:hover { background: #5b47a6; color: #fff; }
  .t81 .c81-pdf:hover { text-decoration: underline; }
  .t81 .c81-media:hover .c81-play { transform: translate(-50%, -50%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) { .t81 .c81-bgv { transition: none; } }

@media (max-width: 1199px) {
  .t81 .c81-card { padding-left: 24px; }
  .t81 .c81-title { font-size: 32px; }
  .t81 .c81-price { font-size: 24px; }
}

/* до 1023 px — столбиком: рамка 16:9 во всю ширину панели сверху, под ней текст */
@media (max-width: 1023px) {
  .t81 .c81-panel { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border-radius: 24px; }
  .t81 .c81-media { order: -1; width: 100%; max-width: calc((100vh - 200px) * 16 / 9); height: auto; margin: 0 auto; border-radius: 16px; }
  .t81 .c81-card { --c81-gap: 18px; min-height: 0; justify-content: flex-start; padding: 24px 8px 8px; }
}

/* телефон: плотнее, название 28px, кнопка тянется рядом со значками, «плей» 56px; крошки — строкой со скроллом,
   текущая страница не выводится — как у карточки 81 */
@media (max-width: 768px) {
  .t81 .c81-hero { padding-top: 8px; margin-bottom: 0; }
  .t81 .c81-panel { padding: 12px; }
  .t81 .c81-card { --c81-gap: 14px; padding: 18px 4px 4px; }
  .t81 .c81-title { font-size: 28px; line-height: 1.1; }
  .t81 .c81-price { font-size: 24px; }
  .t81 .c81-actions { flex-wrap: wrap; gap: 8px; }
  .t81 .c81-btn { flex: 1 0 auto; max-width: 320px; height: 48px; padding: 0 16px; }
  .t81 .c81-play { width: 56px; height: 56px; }
}
@media (max-width: 374px) { .t81 .c81-btn { padding: 0 14px; font-size: 14px; } }
@media (max-width: 347px) { .t81 .c81-btn { flex-basis: 100%; } }
