@charset "utf-8";
/* Школьное радио и ТВ: shkolnoe-televidenie.html, oborudovanie-mediacentra.html, shkolnoe-radio-i-tv.html.
   Подключать после site.css (ri.css сборка ставит сама). Телефон ≤ 767: длинные блоки свёрнуты (.tv-fold),
   вторичный текст скрыт (.tv-no-m), разделы плотнее. */

/* раздел со свёрткой: на компьютере открыт и без заголовка-переключателя, на телефоне свёрнут (page-mfold.js) */
.tv-fold > summary { display: none; }
.tv-fold { margin: 0; }

/* сетка эфира: таблица дня */
.tv-grid th:first-child, .tv-grid td:first-child { white-space: nowrap; }
.tv-grid tbody th { font-weight: 600; color: var(--ink); }
.tv-grid .tv-lesson > * { background: var(--bg-2); color: var(--ink-2); }
.tv-grid small { display: block; font-weight: 600; color: var(--ink-3); font-size: 14px; }
.tv-rules { margin-top: 20px; }
.tv-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.tv-week li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); }
.tv-week b { display: block; color: var(--ink); }

/* схема: медиацентр → программа → экраны (HTML, а не картинка: читается и на телефоне) */
.tv-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; }
.tv-flow > li.tv-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px 20px; }
.tv-flow > li.tv-node b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.tv-flow > li.tv-node span { color: var(--ink-2); font-size: 15px; }
.tv-flow > li.tv-node.tv-prog { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); }
.tv-flow > li.tv-arr { display: grid; place-items: center; color: var(--ink-3); font-size: 22px; font-weight: 400; }
.tv-flow > li.tv-arr::before { content: "→"; }

/* комплекты: карточки с кнопкой внизу */
.tv-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tv-kit { display: flex; flex-direction: column; align-items: flex-start; }
.tv-kit ul.lines { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.tv-kit .btn { margin-top: auto; }
.tv-kit .tv-code { font-size: 14px; color: var(--ink-3); margin: -2px 0 8px; }

/* группы оборудования */
.tv-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tv-eq .card h3 { font-size: 19px; }
.tv-eq ul.lines { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; }
.tv-eq .card p:last-child { margin-bottom: 0; }

/* страницы модуля: ссылки-карточки */
.tv-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tv-pages a.card h3 { color: var(--ink); font-size: 18px; }
.tv-pages a.card p { font-size: 15px; margin: 0; }

.tv-kp { white-space: nowrap; font-weight: 600; }
.tv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.tv-lead-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.tv-mt { margin-top: 20px; }

@media (max-width: 1023.98px) {
  .tv-pages { grid-template-columns: 1fr 1fr; }
  .tv-week { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .tv-no-m { display: none !important; }
  section.ri, main > section { padding: 36px 0; }
  main > section.page-hero { padding: 24px 0 28px; }
  .section-head { margin-bottom: 18px; }
  .section-head .lead { font-size: 16px; }
  .page-hero .lead { font-size: 17px; margin-bottom: 14px; }
  .page-hero .buy-strip { margin-top: 12px; font-size: 14px; gap: 4px 14px; }
  .tv-fold > summary { display: block; cursor: pointer; font-weight: 600; color: var(--accent); padding: 12px 0 4px; list-style: none; }
  .tv-fold > summary::-webkit-details-marker { display: none; }
  .tv-fold > summary::after { content: " ▾"; }
  .tv-fold[open] > summary { margin-bottom: 12px; }
  .tv-fold[open] > summary::after { content: " ▴"; }
  .tv-flow { grid-template-columns: 1fr; gap: 4px; margin-bottom: 14px; }
  .tv-flow > li.tv-node { padding: 10px 14px; }
  .tv-flow > li.tv-arr { font-size: 20px; line-height: 1; }
  .tv-flow > li.tv-arr::before { content: "↓"; }
  .tv-week { display: none; }
  .tv-grid { font-size: 14px; }
  .tv-grid th, .tv-grid td { padding: 8px 10px; }
  .tv-grid small { font-size: 13px; }
  .tv-kits { gap: 10px; }
  .tv-kit { padding: 14px 16px; }
  .tv-kit ul.lines { margin-bottom: 10px; }
  .tv-kit ul.lines > li { margin: 2px 0; }
  .tv-eq { grid-template-columns: 1fr; gap: 10px; }
  .tv-eq .card { padding: 14px 16px; }
  .tv-eq ul.lines { font-size: 15px; }
  .tv-eq ul.lines > li { margin: 2px 0; }
  .tv-pages { grid-template-columns: 1fr; gap: 8px; }
  .tv-pages a.card { padding: 12px 16px; }
  .tv-pages a.card h3 { margin: 0; font-size: 17px; }
  .tv-pages a.card p { display: none; }
  .tv-two, .tv-lead-box { grid-template-columns: 1fr; gap: 16px; }
  .effects { gap: 8px; }
  .effect { padding: 12px 16px; }
  .effect b { font-size: 17px; margin: 0; }
  .cards { gap: 10px; }
  .card { padding: 14px 16px; }
  .faq details { margin-bottom: 6px; }
  .flow li { padding: 12px 14px; }
  .steps > li { padding-bottom: 16px; }
}
.tv-eq h2.h3 { font-size: 21px; margin-bottom: 10px; }
@media (max-width: 767.98px) { .tv-eq h2.h3 { font-size: 19px; } }
@media (min-width: 1024px) { .effects.tv-eff5 { grid-template-columns: repeat(5, 1fr); } }
