/* ═══ «Обучение» → главный блок Read & React ═══ */
.rr-main { margin: 8px 0 44px; }
.rr-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px);
  border-radius: 30px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(96,165,250,.35), transparent 55%), linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  box-shadow: 0 30px 60px -30px rgba(13,47,115,.65); }
.rr-hero::before { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 90px rgba(255,255,255,.025); pointer-events: none; animation: rrSpin 40s linear infinite; }
.rr-hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #60a5fa, #f97316, transparent); }
@keyframes rrSpin { to { transform: rotate(360deg); } }
.rr-kicker { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #93c5fd; }
.rr-hero h3 { font: 900 clamp(2rem, 5vw, 3.2rem)/1 var(--font-display); letter-spacing: -.03em; margin: 10px 0 12px; }
.rr-hero p { color: rgba(255,255,255,.82); line-height: 1.6; max-width: 56ch; font-size: .98rem; }
.rr-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rr-btn-ghost { color: #fff !important; border: 1.5px solid rgba(255,255,255,.4) !important; background: rgba(255,255,255,.08); }
.rr-btn-ghost:hover { background: rgba(255,255,255,.16); }
.rr-hero-stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-hero-stats div { padding: 16px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rr-hero-stats b { display: block; font: 900 2.2rem/1 var(--font-display); letter-spacing: -.03em; }
.rr-hero-stats span { font-size: .78rem; color: rgba(255,255,255,.75); }

.rr-base { margin-top: 22px; }
.rr-how { padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(200,210,230,.6); margin-bottom: 14px; }
.rr-how-h { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.rr-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: rr; }
.rr-how li { position: relative; counter-increment: rr; padding: 12px 12px 12px 48px; border-radius: 16px; background: var(--blue-50); }
.rr-how li::before { content: counter(rr); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); color: #fff; font: 800 .8rem var(--font-body); }
.rr-how li b { display: block; font: 700 .95rem var(--font-display); }
.rr-how li span { font-size: .76rem; color: var(--text-secondary); line-height: 1.35; }
.rr-prog { padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(200,210,230,.6); margin-bottom: 14px; }
.rr-prog-t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; margin-bottom: 8px; }
.rr-prog-t span { color: var(--text-muted); }
.rr-prog-b { height: 10px; border-radius: 99px; background: var(--blue-50); overflow: hidden; }
.rr-prog-b i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #93c5fd, #3b82f6 45%, #1d4ed8); transition: width .6s cubic-bezier(.16,1,.3,1); }
.rr-stages { display: grid; gap: 10px; }
.rr-st { border-radius: 22px; background: #fff; border: 1px solid rgba(200,210,230,.6); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.rr-st[open] { box-shadow: 0 16px 36px -22px rgba(15,23,42,.35); }
.rr-st.is-main { border-color: var(--blue-200); box-shadow: inset 4px 0 0 var(--blue-600); }
.rr-st summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.rr-st summary::-webkit-details-marker { display: none; }
.rr-st-n { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; font: 900 1.1rem var(--font-display); color: var(--blue-700); background: var(--blue-50); transition: all .3s; }
.rr-st[open] .rr-st-n, .rr-st.is-main .rr-st-n { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.rr-st.is-done .rr-st-n { background: #16a34a; color: #fff; }
.rr-st-t { flex: 1; min-width: 0; }
.rr-st-t b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 1.05rem var(--font-display); }
.rr-st-t em { font-style: normal; font: 800 .62rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: #fff7ed; color: #c2410c; }
.rr-st-t small { display: block; font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.rr-st-c { font: 700 .82rem var(--font-body); color: var(--text-muted); padding: 4px 10px; border-radius: 99px; background: var(--bg-soft); }
.rr-st summary::after { content: '⌄'; font-size: 1.2rem; color: var(--text-muted); transition: transform .3s; line-height: 1; }
.rr-st[open] summary::after { transform: rotate(180deg); }
.rr-items { display: grid; gap: 8px; padding: 0 18px 18px 72px; }
.rr-it { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-soft); border: 1px solid transparent; transition: background .2s, border-color .2s; animation: rrItem .4s cubic-bezier(.16,1,.3,1) both; }
.rr-it:hover { background: #fff; border-color: var(--blue-100); }
.rr-it.done { opacity: .7; }
.rr-it.done a { text-decoration: line-through; text-decoration-color: rgba(37,99,235,.4); }
@keyframes rrItem { from { opacity: 0; transform: translateY(6px); } }
.rr-chk { position: relative; flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; cursor: pointer; }
.rr-chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rr-chk i { position: absolute; inset: 0; border-radius: 8px; border: 2px solid var(--blue-200); background: #fff; transition: all .2s; }
.rr-chk input:checked + i { background: #16a34a; border-color: #16a34a; }
.rr-chk input:checked + i::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .8rem; }
.rr-chk input:focus-visible + i { outline: 3px solid var(--blue-300); outline-offset: 2px; }
.rr-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.rr-tag { padding: 2px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .03em; background: #e8eefb; color: #1d4ed8; }
.rr-tag--vid { background: #fee2e2; color: #b91c1c; } .rr-tag--pdf { background: #f1f5f9; color: #475569; } .rr-tag--aud { background: #f3e8ff; color: #7e22ce; }
.rr-tag--off { background: #fff7e0; color: #8a5a00; } .rr-tag--txt { background: #ecfdf5; color: #047857; }
.rr-paid { margin-top: 12px; padding: 16px 18px; border-radius: 20px; border: 1px dashed var(--blue-200); }
.rr-paid > b { display: block; font-size: .88rem; margin-bottom: 10px; }
.rr-paid > div { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-paid a { padding: 8px 14px; border-radius: 14px; background: var(--bg-soft); color: var(--text-primary); text-decoration: none; font-weight: 700; font-size: .84rem; }
.rr-paid a small { display: block; font-weight: 500; color: var(--text-muted); font-size: .72rem; }
.rr-src { margin-top: 10px; font-size: .76rem; color: var(--text-muted); }

.rr-game-wrap { position: relative; margin-top: 28px; scroll-margin-top: 80px; }
.rr-game-h { margin-bottom: 12px; }
.rr-game-h .rr-kicker { color: var(--blue-600); }
.rr-game-h b { display: block; font: 900 clamp(1.4rem, 3vw, 1.9rem) var(--font-display); letter-spacing: -.02em; }
.rr-game-h small { color: var(--text-secondary); font-size: .88rem; }
.rr-game-wrap rr-game { display: block; min-height: 420px; }
.rr-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.rr-chip { position: absolute; left: 50%; top: 70px; z-index: 6; transform: translateX(-50%); padding: 10px 18px; border-radius: 99px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff;
  font: 800 1rem var(--font-display); box-shadow: 0 12px 30px -10px rgba(234,88,12,.7); animation: rrChip 1.8s cubic-bezier(.16,1,.3,1) both; pointer-events: none; }
@keyframes rrChip { 0% { opacity: 0; transform: translate(-50%, 16px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 25% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -20px); } }

@media (max-width: 900px) { .rr-hero { grid-template-columns: 1fr; } .rr-how ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .rr-hero-stats b { font-size: 1.7rem; }
  .rr-how ol { grid-template-columns: 1fr; }
  .rr-items { padding: 0 12px 14px; }
  .rr-st summary { padding: 14px; gap: 10px; }
  .rr-st-n { width: 34px; height: 34px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rr-hero::before, .rr-it, .rr-chip { animation: none; } }
/* переключатель «Read & React ↔ видеоуроки и материалы» */
.kn-tabs { margin: 0 0 26px; }
.kn-tabs .tab-btn { padding: 11px 22px; font-weight: 700; }
.kn-pane[hidden] { display: none !important; }
.kn-in { animation: knIn .5s cubic-bezier(.16,1,.3,1); }
@keyframes knIn { from { opacity: 0; transform: translateY(14px); } }
#knowledge .kn-tabs { scroll-margin-top: 80px; }
@media (max-width: 760px) { .kn-tabs { width: 100%; } .kn-tabs .tab-btn { flex: 1; padding: 10px 8px; font-size: .8rem; } }

/* ═══ R&R v3: под-вкладки, слои, встроенный просмотр ═══ */
.rr-hero { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { .rr-hero { grid-template-columns: 1fr; } }
.rr-sub { position: sticky; top: calc(var(--nav-h, 64px) + 8px); z-index: 30; display: flex; gap: 4px; padding: 5px; margin: 18px 0 16px; border-radius: 18px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(200,210,230,.7); box-shadow: 0 10px 30px -18px rgba(15,23,42,.35); }
.rr-sub-b { flex: 1; padding: 11px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--text-secondary); font: 700 .92rem var(--font-body); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.rr-sub-b:hover { color: var(--blue-700); }
.rr-sub-b.on { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; box-shadow: 0 8px 18px -8px rgba(29,78,216,.7); }
.rr-view[hidden] { display: none !important; }
.rr-game-wrap { margin-top: 0; }

/* выбор слоя */
.rl-nav { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.rl-lv { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid rgba(200,210,230,.6); scroll-snap-align: start; }
.rl-lv-h { font: 800 .62rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); padding-left: 2px; white-space: nowrap; }
.rl-chips { display: flex; gap: 6px; }
.rl-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 46px; height: 50px; padding: 0 8px; border-radius: 14px;
  border: 1.5px solid var(--blue-100); background: var(--blue-50); color: var(--blue-800, #1e3a8a); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.rl-chip b { font: 900 1rem/1 var(--font-display); }
.rl-chip:hover { transform: translateY(-2px); border-color: var(--blue-300); }
.rl-chip.on { background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px rgba(29,78,216,.8); }
.rl-stars { display: flex; gap: 1px; font-size: .55rem; line-height: 1; color: rgba(100,116,139,.35); }
.rl-stars i { font-style: normal; } .rl-stars i.on { color: #f59e0b; }
.rl-chip.on .rl-stars { color: rgba(255,255,255,.35); } .rl-chip.on .rl-stars i.on { color: #fde047; }

/* карточка слоя */
.rl-card { border-radius: 26px; background: #fff; border: 1px solid rgba(200,210,230,.6); box-shadow: 0 24px 50px -30px rgba(15,23,42,.35); overflow: hidden; }
.rl-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #0a1f4d, #1d4ed8); color: #fff; }
.rl-title { flex: 1; min-width: 0; text-align: center; }
.rl-title span { font: 800 .66rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #93c5fd; }
.rl-title h4 { font: 900 clamp(1.25rem, 3vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -.02em; margin: 4px 0 2px; }
.rl-title small { font-size: .78rem; color: rgba(255,255,255,.65); }
.rl-arrow { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.rl-arrow:hover:not(:disabled) { background: rgba(255,255,255,.22); transform: scale(1.05); }
.rl-arrow:disabled { opacity: .3; cursor: default; }
.rl-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "rule scheme" "video scheme"; gap: 18px; padding: 18px; align-items: start; }
.rl-rule { grid-area: rule; } .rl-scheme { grid-area: scheme; } .rl-video { grid-area: video; }
.rl-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font: 800 .95rem var(--font-display); margin-bottom: 10px; }
.rl-h i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font: 900 .8rem var(--font-body); font-style: normal; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.rl-h small { flex-basis: 100%; font: 500 .76rem var(--font-body); color: var(--text-muted); padding-left: 36px; margin-top: -4px; }
.rl-rule ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-rule li { position: relative; padding: 11px 12px 11px 36px; border-radius: 14px; background: var(--blue-50); font-size: .9rem; line-height: 1.45; color: var(--text-primary); }
.rl-rule li::before { content: '→'; position: absolute; left: 13px; top: 10px; font-weight: 900; color: var(--blue-600); }
.rl-game rr-game { display: block; min-height: 300px; }
.rv-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: #0b1a3a center / cover no-repeat; box-shadow: 0 16px 30px -18px rgba(15,23,42,.6); }
.rv-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8,14,32,.85)); }
.rv-play { position: absolute; left: 50%; top: 45%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: rgba(37,99,235,.92); box-shadow: 0 0 0 10px rgba(37,99,235,.25); transition: transform .25s; }
.rv-poster:hover .rv-play { transform: scale(1.1); }
.rv-poster em { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font: 700 .86rem/1.3 var(--font-body); font-style: normal; color: #fff; text-align: left; }
.rl-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rl-more-b { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--blue-100); background: var(--bg-soft); color: var(--text-primary); font: 600 .8rem var(--font-body); cursor: pointer; text-align: left; }
.rl-more-b:hover { border-color: var(--blue-300); color: var(--blue-700); }

/* пункты материалов */
.rr-it { align-items: center; }
.rr-it-b { flex: 1; min-width: 0; display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.rr-it-t { display: block; font-weight: 700; font-size: .93rem; color: var(--text-primary); }
.rr-it-b:hover .rr-it-t { color: var(--blue-600); }
.rr-it-d { display: block; margin: 3px 0 6px; font-size: .82rem; color: var(--text-secondary); line-height: 1.45; }
.rr-it.done .rr-it-t { text-decoration: line-through; text-decoration-color: rgba(37,99,235,.4); }
.rr-open { flex: 0 0 auto; padding: 9px 14px; border-radius: 12px; border: 0; background: var(--blue-600); color: #fff; font: 700 .8rem var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.rr-open:hover { background: var(--blue-700); transform: translateY(-1px); }
.rr-next { border: 0; background: none; padding: 0; color: var(--blue-600); font: 700 .86rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* встроенный просмотр */
/* фон под окном: на компьютере — overflow у корня; на телефоне/планшете фон держит touch-tilt.js без пересчёта всей страницы */
@media (hover: hover) and (pointer: fine) { html.rv-open, html.rv-open body { overflow: hidden !important; } }
.rv { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; }
.rv[hidden] { display: none; }
.rv-bg { position: absolute; inset: 0; background: rgba(8,14,32,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s; }
.rv-sheet { position: relative; display: flex; flex-direction: column; width: min(1000px, 100%); max-height: 94vh; height: 94vh; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .26s; }
.rv.on .rv-bg { opacity: 1; } .rv.on .rv-sheet { transform: none; opacity: 1; }
.rv-top { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 20px; border-bottom: 1px solid rgba(200,210,230,.6); background: #fff; }
.rv-ttl { flex: 1; min-width: 0; }
.rv-ttl b { display: block; font: 800 1rem/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-ttl small { display: block; font-size: .72rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-done { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft); font: 700 .78rem var(--font-body); cursor: pointer; white-space: nowrap; }
.rv-done input { accent-color: #16a34a; width: 16px; height: 16px; margin: 0; }
.rv-done[hidden], .rv-src[hidden] { display: none; }
.rv-src { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--blue-100); color: var(--blue-700); font: 700 .78rem var(--font-body); text-decoration: none; white-space: nowrap; }
.rv-src:hover { background: var(--blue-50); }
.rv-x { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg-soft); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text-primary); }
.rv-x:hover { background: #fee2e2; color: #b91c1c; }
.rv-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px; background: var(--bg-soft, #f4f7fd); }
.rv-video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.rv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.rv-pl-i { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; border: 2px solid transparent; background: #fff; cursor: pointer; text-align: left; font: 600 .78rem/1.3 var(--font-body); color: var(--text-primary); }
.rv-pl-i img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.rv-pl-i.on { border-color: var(--blue-600); }
.rv-frame { position: relative; height: 100%; min-height: 60vh; margin: -18px; }
.rv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.rv-frame-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: .9rem; z-index: 0; }
.rv-frame iframe { z-index: 1; opacity: 0; transition: opacity .3s; } .rv-frame.ok iframe { opacity: 1; }
.rv-brief { max-width: 760px; margin: 0 auto; font-size: .95rem; line-height: 1.6; color: var(--text-primary); }
.rv-brief > p { margin: 0 0 14px; }
.rv-list { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: rvl; display: grid; gap: 8px; }
.rv-list li { counter-increment: rvl; position: relative; padding: 12px 14px 12px 50px; border-radius: 16px; background: #fff; border: 1px solid rgba(200,210,230,.6); }
.rv-list li::before { content: counter(rvl); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-600); color: #fff; font: 800 .8rem var(--font-body); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.rv-layer { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin: 2px 0; border-radius: 10px; border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-700); font: 700 .78rem var(--font-body); cursor: pointer; text-align: left; vertical-align: middle; }
.rv-layer:hover { border-color: var(--blue-300); }
.rv-grid .rv-layer { display: block; padding: 10px 12px; margin: 0; border-radius: 14px; background: #fff; color: var(--text-primary); font-weight: 600; }
.rv-grid .rv-layer b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 6px; border-radius: 8px; background: var(--blue-600); color: #fff; font-size: .74rem; }
.rv-grid .rv-layer small { display: block; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.rv-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }
.pdfv { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.pdfv-load, .pdfv-meta { text-align: center; font-size: .82rem; color: var(--text-muted); }
.pdfv-load { padding: 40px 0; }
.pdfv-page { position: relative; width: 100%; aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px -14px rgba(15,23,42,.4); }
.pdfv-page > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--text-muted); font-size: .8rem; }
.pdfv-page.ok > span { display: none; }
.pdfv-page canvas { display: block; width: 100%; height: auto; }
.pdfv-err { padding: 40px 16px; text-align: center; } .pdfv-err p { color: var(--text-muted); margin: 6px 0 14px; }

@media (max-width: 900px) {
  .rl-body { grid-template-columns: 1fr; grid-template-areas: "rule" "scheme" "video"; }
}
@media (max-width: 760px) {
  .rr-hero { padding: 18px; gap: 14px; border-radius: 24px; }
  .rr-hero p { font-size: .88rem; }
  .rr-hero h3 { margin: 6px 0 8px; }
  .rr-kicker { font-size: .62rem; letter-spacing: .14em; }
  .rr-hero-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rr-hero-stats div { padding: 10px 6px; border-radius: 14px; text-align: center; }
  .rr-hero-stats b { font-size: 1.35rem; }
  .rr-hero-stats span { font-size: .64rem; }
  .rr-sub { top: calc(var(--nav-h, 60px) + 4px); margin: 12px -4px 12px; border-radius: 16px; }
  .rr-sub-b { padding: 10px 4px; font-size: .84rem; }
  .rl-nav { margin: 0 -16px 4px; padding: 2px 16px 10px; scrollbar-width: none; }
  .rl-nav::-webkit-scrollbar { display: none; }
  .rl-card { border-radius: 22px; margin: 0 -4px; }
  .rl-head { padding: 12px; gap: 8px; }
  .rl-arrow { width: 38px; height: 38px; border-radius: 12px; font-size: 1.4rem; }
  .rl-body { padding: 12px; gap: 16px; }
  .rl-rule li { font-size: .86rem; padding: 10px 10px 10px 32px; }
  .rl-rule li::before { left: 11px; }
  .rl-scheme { margin: 0 -6px; }
  .rr-it { flex-wrap: wrap; padding: 12px; }
  .rr-it-b { flex-basis: calc(100% - 36px); }
  .rr-open { margin-left: 36px; padding: 8px 14px; }
  /* просмотр — на весь экран, как родное приложение */
  .rv { padding: 0; align-items: stretch; }
  .rv-sheet { width: 100%; height: 100%; max-height: none; border-radius: 0; transform: translateY(40px); }
  .rv-top { padding: calc(8px + env(safe-area-inset-top)) 8px 8px 14px; flex-wrap: wrap; row-gap: 8px; }
  .rv-ttl { flex-basis: calc(100% - 52px); order: 0; }
  .rv-x { order: 1; }
  .rv-done, .rv-src { order: 2; flex: 1; justify-content: center; text-align: center; padding: 8px; }
  .rv-body { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)); }
  .rv-frame { margin: -12px -12px calc(-16px - env(safe-area-inset-bottom)); }
  .rv-video { border-radius: 14px; margin: 0 -4px; }
  .rv-pl { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rv-brief { font-size: .9rem; }
  .rv-list li { padding: 10px 12px 10px 44px; } .rv-list li::before { left: 10px; top: 10px; }
  .rv-grid { grid-template-columns: 1fr; }
  .pdfv { gap: 8px; } .pdfv-page { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) { .rv-sheet { transition: none; } }
.rv-frame--pdf { min-height: 72vh; margin: 0; border-radius: 12px; overflow: hidden; }
.rv-frame--pdf + .pdfv-err { padding: 12px 0 0; }
/* липкая панель «Слои / Тренажёр / Материалы»: overflow:hidden у предков ломает sticky, clip — нет */
@supports (overflow: clip) {
  html, body { overflow-x: clip !important; }
  #knowledge.section { overflow: clip !important; }
}
