/* Главная Daeva Codex — «полёт через Атрею» (public/homepage.html + src/home.js + public/home.js). Токены — daeva.css.
   Полноэкранные сцены с фрагментами трейлеров, крупная типографика и воздух вместо сетки карточек. Сигнатура — падающие
   перья (белые у элийцев, тёмные с отсветом огня у асмодиан): ими открываются оба трейлера игры. Без стекла и градиентного
   текста; читаемость текста на видео — затемнением со стороны текста. Движение — только transform/opacity, при reduce — нет. */

body.dc-home { overflow-x: clip; }
.dc-home main { max-width: none; margin: 0; padding: 0; }
.dc-home .catalog-footer.dc-footer { margin-top: 0; }

/* ── общие элементы ── */
.dc-kicker { margin: 0 0 18px; color: var(--dc-gold-text); font: 700 12.5px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; }
html[data-faction] .dc-h2, html[data-faction] .dc-scene-copy h2, html[data-faction] .dc-app-head h2, html[data-faction] .dc-chapter-head h2, html[data-faction] .dc-dv-copy h2 { margin: 0 0 20px; font: 400 clamp(38px, 5.2vw, 72px)/1.02 var(--font-display); letter-spacing: 0; color: var(--dc-ink); text-wrap: balance; }
.dc-link-arrow { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--dc-ink); font: 700 16px var(--font-body); text-decoration: none; }
.dc-link-arrow::after { content: ''; width: 34px; height: 1px; background: currentColor; transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.dc-link-arrow:hover::after { width: 56px; }
.dc-link-arrow:hover { color: var(--dc-gold-text); }
.dc-center { text-align: center; }

/* ── сцена: видео во весь экран, текст на затемнении ── */
.dc-scene { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 92svh; overflow: hidden; background: #08050a; color: #f4ecf0; }
.dc-scene-media { position: absolute; inset: 0; z-index: -2; }
.dc-scene-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.dc-scene.is-in .dc-scene-media video { transform: scale(1); }
.dc-scene::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #08050af2 0%, #08050ab8 34%, #08050a33 62%, #08050a00 100%), linear-gradient(0deg, #08050a 0%, #08050a00 28%); }
.dc-scene-right::before { background: linear-gradient(270deg, #08050af2 0%, #08050ab8 34%, #08050a33 62%, #08050a00 100%), linear-gradient(0deg, #08050a 0%, #08050a00 28%); }
.dc-media-credit { position: absolute; right: 20px; bottom: 16px; color: #ffffff70; font: 500 11.5px var(--font-body); }
.dc-scene-inner { width: min(1264px, 100% - 40px); margin: 0 auto; padding: 120px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.dc-scene-right .dc-scene-inner { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.dc-scene-right .dc-scene-copy { max-width: 560px; }
.dc-scene-copy p:not(.dc-kicker) { max-width: 48ch; margin: 0 0 26px; color: #e4d8de; font-size: 18px; line-height: 1.65; }
html[data-faction] .dc-scene-copy h2, html[data-faction] .dc-app-head h2 { color: #fff; }
.dc-scene .dc-kicker { color: #f2c077; }
.dc-scene .dc-link-arrow { color: #fff; }
.dc-scene .dc-link-arrow:hover { color: #f2c077; }

/* ── первый экран ── */
.dc-hero { grid-template-columns: minmax(0, 1fr); min-height: 100svh; align-items: end; }
.dc-hero::before { background: linear-gradient(90deg, #08050ab3 0%, #08050a59 38%, #08050a00 66%), linear-gradient(180deg, #08050a66 0%, #08050a00 30%, #08050a00 52%, #08050ae6 86%, #08050a 100%); }
html[data-faction="elyos"] .dc-hero::before { background: linear-gradient(90deg, #08101eb3 0%, #08101e59 38%, #08101e00 66%), linear-gradient(180deg, #0a1a3366 0%, #0a1a3300 30%, #0a1a3300 50%, #08050ae6 86%, #08050a 100%); }
.dc-feathers { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.dc-hero-inner { position: relative; z-index: 1; width: min(1264px, 100% - 40px); margin: 0 auto; padding: 18svh 0 40px; }
.dc-hero h1 { margin: 0 0 22px; display: grid; gap: 14px; }
.dc-h1-world { display: block; font: 400 clamp(84px, 15vw, 232px)/.86 var(--font-display); letter-spacing: .01em; color: #fff; text-shadow: 0 6px 40px #0008; }
.dc-h1-world .ch { display: inline-block; opacity: 0; transform: translateY(.3em) rotate(4deg); filter: blur(8px); animation: dc-letter 1.1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes dc-letter { to { opacity: 1; transform: none; filter: none; } }
.dc-h1-line { font: 600 clamp(18px, 1.9vw, 24px)/1.3 var(--font-body); color: #f2c077; letter-spacing: .02em; }
.dc-hero .dc-lead { max-width: 56ch; margin: 0 0 30px; color: #eadfe5; font-size: 18.5px; line-height: 1.6; }
.dc-hero-search { display: flex; align-items: center; gap: 14px; width: min(720px, 100%); height: 64px; padding: 0 14px 0 22px; border: 1px solid #ffffff3d;
  border-radius: 14px; background: #0b0710cc; color: #d9cdd4; font: 500 17px var(--font-body); text-align: left; cursor: text;
  transition: border-color .25s, background .25s, transform .25s; }
.dc-hero-search:hover { border-color: #f2c077; background: #0b0710ee; transform: translateY(-1px); }
.dc-hero-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-hero-search kbd { padding: 4px 8px; border: 1px solid #ffffff40; border-radius: 7px; font: 600 12px var(--font-body); color: #ffffffa0; }
.dc-quick { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.dc-quick a { color: #ffffffd0; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #ffffff40; padding-bottom: 2px; }
.dc-quick a:hover { color: #f2c077; border-color: #f2c077; }

/* «Сейчас в Атрее» — тонкая полоса внизу первого экрана */
.dc-now { position: relative; z-index: 1; width: min(1264px, 100% - 40px); margin: 0 auto 28px; padding: 16px 0 0; border-top: 1px solid #ffffff2a; color: #eadfe5; }
.dc-now h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 700 12.5px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #f2c077; }
.dc-now h2 small { letter-spacing: .02em; text-transform: none; color: #ffffff8c; font-weight: 500; font-size: 13px; }
.dc-pulse { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 0 #5ee08a88; animation: dc-pulse 2.2s infinite; align-self: center; }
@keyframes dc-pulse { 70% { box-shadow: 0 0 0 10px #5ee08a00; } 100% { box-shadow: 0 0 0 0 #5ee08a00; } }
.dc-now ul { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0; padding: 0; list-style: none; }
.dc-now li { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.dc-now li span { color: #ffffffa6; }
.dc-now li b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.dc-now-event a { display: flex; gap: 10px; color: inherit; text-decoration: none; }
.dc-now-event a:hover span { color: #fff; text-decoration: underline; }

/* ── главы на фоне страницы ── */
.dc-chapter { width: min(1264px, 100% - 40px); margin: 0 auto; padding: 140px 0; }
.dc-chapter-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.dc-chapter-head p:not(.dc-kicker) { margin: 0 auto; max-width: 56ch; color: var(--dc-muted); font-size: 18px; line-height: 1.65; }

/* оглавление базы: крупные строки, числа золотом, при наведении строка уезжает вправо */
.dc-index { margin: 0; padding: 0; list-style: none; }
.dc-index li { border-top: 1px solid #ffffff22; }
.dc-index li:last-child { border-bottom: 1px solid #ffffff22; }
.dc-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 4px; color: #fff; text-decoration: none;
  font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--font-display); transition: padding .35s cubic-bezier(.2, .7, .2, 1), color .25s; }
.dc-index a b { font: 700 18px var(--font-body); color: #f2c077; font-variant-numeric: tabular-nums; }
.dc-index a:hover { padding-left: 18px; color: #f2c077; }

/* карты веером: раскрываются при появлении, по наведению поднимаются */
.dc-map-fan { display: flex; justify-content: center; margin: 0; padding: 30px 0 60px; list-style: none; }
.dc-map-fan li { width: clamp(140px, calc((100vw - 160px) / var(--n, 4)), 280px); margin: 0 calc(-1 * clamp(18px, 3vw, 46px)); transform: rotate(calc(var(--i) * 4deg));
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), margin .9s cubic-bezier(.2, .7, .2, 1); }
.dc-map-fan.is-in li { margin: 0 10px; transform: rotate(calc(var(--i) * 2.5deg)) translateY(calc(var(--i) * var(--i) * 8px)); }
.dc-map-fan a { display: grid; gap: 12px; justify-items: center; color: var(--dc-ink); font: 400 20px var(--font-display); text-decoration: none; }
.dc-map-fan img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--dc-edge-2); box-shadow: 0 30px 60px #0000005c;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.dc-map-fan a:hover img { transform: translateY(-14px) scale(1.03); box-shadow: 0 40px 80px #00000070; }
.dc-map-fan a:hover { color: var(--dc-gold-text); }

.dc-boss-list { display: grid; margin: 0 0 28px; padding: 0; list-style: none; }
.dc-boss-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #ffffff22; color: #fff; font: 400 22px var(--font-display); text-decoration: none; transition: color .25s, padding .35s; }
.dc-boss-list a:hover { color: #f2c077; padding-left: 10px; }
.dc-boss-list small { flex: none; color: #ffffff8c; font: 500 13px var(--font-body, inherit); font-variant-numeric: tabular-nums; }

/* Даэванион: настоящая раскладка доски; клетки загораются волной от центра */
.dc-dv-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.dc-dv-board { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); gap: 6px; width: min(460px, 100%); aspect-ratio: 1; margin: 0 auto; }
.dc-dv-cell img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.9) brightness(.55); }
.dc-dv-board.is-in .dc-dv-cell img { animation: dc-light 5.5s cubic-bezier(.2, .7, .2, 1) infinite; animation-delay: calc(var(--d) * .28s); }
.dc-dv-cell.is-start img { filter: none; }
@keyframes dc-light { 0%, 100% { filter: grayscale(.9) brightness(.55); transform: none; } 18%, 55% { filter: drop-shadow(0 0 12px #f2c07799); transform: scale(1.06); } }
/* у элийцев клетки на светлом фоне: погасшие — просто бледные, загоревшиеся — с голубым ореолом, не чёрные провалы */
html[data-faction="elyos"] .dc-dv-cell img { filter: grayscale(1) opacity(.35); }
@media (prefers-reduced-motion: no-preference) { html[data-faction="elyos"] .dc-dv-board.is-in .dc-dv-cell img { animation-name: dc-light-elyos; } }
html[data-faction="elyos"] .dc-dv-cell.is-start img { filter: none; }
@keyframes dc-light-elyos { 0%, 100% { filter: grayscale(1) opacity(.35); transform: none; } 18%, 55% { filter: drop-shadow(0 0 10px #5d9cec88); transform: scale(1.06); } }
.dc-dv-copy p:not(.dc-kicker) { max-width: 46ch; color: var(--dc-muted); font-size: 18px; line-height: 1.65; }
.dc-class-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.dc-class-list a { display: inline-block; padding: 10px 16px; border: 1px solid var(--dc-edge-2); border-radius: 999px; color: var(--dc-ink); font-weight: 600; text-decoration: none; transition: border-color .25s, color .25s, transform .25s; }
.dc-class-list a:hover { border-color: var(--dc-gold); color: var(--dc-gold-text); transform: translateY(-2px); }

/* ещё в базе: три широкие ссылки */
.dc-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
.dc-extra { display: grid; align-content: start; gap: 10px; padding: 36px 32px 40px; border-top: 1px solid var(--dc-edge-2); color: var(--dc-ink); text-decoration: none; transition: background .3s; }
.dc-extra + .dc-extra { border-left: 1px solid var(--dc-edge); }
.dc-extra b { font: 400 30px var(--font-display); }
.dc-extra > span:not(.dc-extra-icons) { color: var(--dc-muted); font-size: 16px; line-height: 1.6; }
.dc-extra:hover { background: var(--dc-accent-soft); }
.dc-extra:hover b { color: var(--dc-gold-text); }
.dc-extra-icons { display: flex; gap: 6px; }

/* гайды и новости — горизонтальные ленты с обложками */
.dc-reading { padding-bottom: 60px; }
.dc-rail-wrap + .dc-rail-wrap { margin-top: 90px; }
.dc-rail-wrap .journal-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dc-rail-wrap .journal-section-heading p { margin: 0; color: var(--dc-muted); font-size: 17px; }
.dc-rail-wrap .journal-text-link { color: var(--dc-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.dc-rail-wrap .journal-text-link:hover { color: var(--dc-gold-text); }
.dc-rail-wrap .story-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); grid-template-columns: none; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--dc-edge-2) transparent; }
.dc-rail-wrap .story-grid > * { scroll-snap-align: start; }
/* гайды — постеры: обложка на всю карточку, заголовок поверх затемнения снизу; справа лента уходит в тень — видно, что дальше ещё */
.dc-rail-wrap:not(.dc-news-wrap) .story-grid { grid-auto-columns: minmax(300px, 340px); -webkit-mask-image: linear-gradient(90deg, #000 85%, #0000); mask-image: linear-gradient(90deg, #000 85%, #0000); }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card { grid-column: auto; display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 6px; border: 1px solid var(--dc-edge); background: #08050a; overflow: hidden; transform: none; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card .story-image { position: absolute; inset: 0; height: auto; min-height: 0; }
.dc-rail-wrap:not(.dc-news-wrap) .story-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #08050af7 10%, #08050aa8 46%, #08050a00 78%); }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card .story-image > img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card:hover .story-image > img { transform: scale(1.06); }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .story-image-label { top: 14px; bottom: auto; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card .story-card-body { position: absolute; inset: auto 0 0; z-index: 1; padding: 22px; color: #fff; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card .story-meta { color: #ffffffa6; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card h2 { margin: 10px 0 16px; font: 400 21px/1.2 var(--font-display); letter-spacing: 0; color: #fff; overflow-wrap: normal; text-wrap: balance; }
/* на постере только заголовок — описание есть на странице гайда */
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card p { display: none; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card .story-arrow { color: #f2c077; }
html[data-faction] .dc-rail-wrap:not(.dc-news-wrap) .journal-card:hover { border-color: #f2c07799; }
/* новости — три строки в ряд, без ленты */
html[data-faction] .dc-news-wrap .story-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 0 36px; padding: 0; }
html[data-faction] .dc-news-wrap .journal-card { grid-column: auto; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
html[data-faction] .dc-news-wrap .journal-card .story-image { height: 112px; min-height: 0; }
html[data-faction] .dc-news-wrap .journal-card h2 { font: 400 20px/1.25 var(--font-display); letter-spacing: 0; overflow-wrap: normal; }
@media (max-width: 860px) { html[data-faction] .dc-news-wrap .story-grid { grid-template-columns: 1fr; } }

/* две дорожки */
.dc-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; padding-top: 60px; }
.dc-tracks > h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.dc-track h3 { margin: 0 0 18px; font: 400 30px var(--font-display); color: var(--dc-gold-text); }
.dc-track ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.dc-track li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--dc-edge); }
.dc-track li::before { content: counter(step); color: var(--dc-faint); font: 700 14px var(--font-body); padding-top: 3px; }
.dc-track a { color: var(--dc-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.dc-track a:hover { color: var(--dc-gold-text); text-decoration: underline; }

/* приложение — сцена с боем умениями */
.dc-app { min-height: auto; }
.dc-app::before { background: linear-gradient(180deg, #08050a 0%, #08050acc 30%, #08050ad9 70%, #08050a 100%); }
.dc-app-inner { width: min(1264px, 100% - 40px); margin: 0 auto; padding: 140px 0; }
.dc-app-head { max-width: 720px; margin-bottom: 40px; }
.dc-app-head p:not(.dc-kicker) { color: #e4d8de; font-size: 18.5px; line-height: 1.6; }
.dc-app-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid #ffffff26; }
.dc-app-tabs button { height: 46px; padding: 0 18px; border: 0; background: none; color: #ffffffa6; font: 700 15px var(--font-body); cursor: pointer; }
.dc-app-tabs button[aria-selected="true"] { color: #fff; box-shadow: inset 0 -2px 0 #f2c077; }
.dc-app-tabs button:hover { color: #fff; }
.dc-app-pane { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; animation: dc-pane .5s cubic-bezier(.2, .7, .2, 1); }
.dc-app-pane[hidden] { display: none; }
@keyframes dc-pane { from { opacity: 0; transform: translateY(10px); } }
.dc-app-pane h3 { margin: 0 0 10px; font: 400 32px/1.15 var(--font-display); color: #fff; }
.dc-app-pane p { color: #e4d8de; font-size: 17px; line-height: 1.65; }
.dc-shot { margin: 0; display: grid; place-items: center; }
.dc-shot img { display: block; max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 40px 90px #000000a0, 0 0 0 1px #ffffff1c; }
.dc-shot-tall img { max-height: 560px; width: auto; }
.dc-app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 54px; }
.dc-app-cta .primary { display: inline-flex; align-items: center; height: 54px; padding: 0 28px; border-radius: 12px; font: 800 16px var(--font-body); text-decoration: none; background: #f0577c; color: #120a0f;
  transition: transform .25s, box-shadow .25s; }
.dc-app-cta .primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px #f0577c55; }
.dc-app-cta p { flex: 1 1 320px; max-width: 64ch; margin: 0; color: #e4d8de; font-size: 15.5px; }
.dc-app-cta b { color: #fff; }

/* вопросы */
/* вопросы: заголовок слева, список справа — по той же сетке, что и остальные главы */
.dc-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 60px; align-items: start; }
.dc-faq > h2 { grid-row: 1 / span 20; position: sticky; top: 110px; }
.dc-faq details { grid-column: 2; }
@media (max-width: 860px) { .dc-faq { grid-template-columns: 1fr; } .dc-faq > h2 { grid-row: auto; position: static; } .dc-faq details { grid-column: 1; } }
.dc-faq details { border-top: 1px solid var(--dc-edge); }
.dc-faq details:last-of-type { border-bottom: 1px solid var(--dc-edge); }
.dc-faq summary { position: relative; padding: 22px 44px 22px 0; color: var(--dc-ink); font: 400 24px var(--font-display); cursor: pointer; list-style: none; }
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; border: solid var(--dc-gold); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.dc-faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.dc-faq p { margin: 0 0 24px; max-width: 70ch; color: var(--dc-muted); font-size: 17px; line-height: 1.7; }
.dc-faq a { color: var(--dc-link); }

/* ── проявление при прокрутке (только с JS: класс dc-js ставит home.js) ── */
.dc-js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.dc-js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── узкие экраны ── */
@media (max-width: 980px) {
  .dc-scene-inner, .dc-dv-chapter { grid-template-columns: 1fr; gap: 48px; }
  .dc-scene-right .dc-scene-inner { justify-items: start; }
  .dc-scene::before, .dc-scene-right::before { background: linear-gradient(0deg, #08050a 0%, #08050ad9 45%, #08050a66 100%); }
  .dc-extras { grid-template-columns: 1fr; }
  .dc-extra + .dc-extra { border-left: 0; }
  .dc-app-pane { grid-template-columns: 1fr; }
  .dc-tracks { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .dc-chapter { padding: 90px 0; }
  .dc-scene-inner, .dc-app-inner { padding: 90px 0; }
  .dc-hero-inner { padding-top: 22svh; }
  .dc-hero-search { height: 56px; font-size: 15.5px; }
  .dc-hero-search kbd { display: none; }
  .dc-map-fan { flex-wrap: wrap; gap: 14px; }
  .dc-map-fan li, .dc-map-fan.is-in li { width: calc(50% - 10px); margin: 0; transform: none; }
  .dc-now ul { gap: 8px 22px; }
  .dc-rail-wrap .journal-section-heading { flex-direction: column; align-items: start; }
  .dc-media-credit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dc-h1-world .ch { opacity: 1; transform: none; filter: none; animation: none; }
  .dc-scene-media video { transform: none; transition: none; }
  .dc-dv-board.is-in .dc-dv-cell img { animation: none; filter: none; }
  .dc-map-fan li { transition: none; }
}

/* ── страница /app ── */
.dc-app-page main { width: min(1264px, 100% - 40px); margin: 0 auto; padding: 32px 0 60px; }
.dc-app-page .dc-app { min-height: auto; background: none; color: var(--dc-ink); }
.dc-app-page .dc-app::before { display: none; }
.dc-app-page .dc-app-head h1 { margin: 0 0 14px; font: 400 clamp(40px, 5vw, 64px)/1.05 var(--font-display); color: var(--dc-ink); }
.dc-app-page .dc-app-head p:not(.dc-kicker) { color: var(--dc-muted); }
.dc-app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.dc-app-features h2 { margin: 0 0 16px; font: 400 30px var(--font-display); color: var(--dc-ink); }
.dc-app-features ul { margin: 0; padding: 0; list-style: none; display: grid; }
.dc-app-features li { padding: 16px 0; border-top: 1px solid var(--dc-edge); color: var(--dc-muted); line-height: 1.6; font-size: 16.5px; }
.dc-app-features b { color: var(--dc-ink); }
.dc-app-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 60px; }
.dc-shot figcaption { margin-top: 12px; color: var(--dc-faint); font-size: 14px; text-align: center; }
.dc-app-note { padding: 20px 22px; border-left: 3px solid var(--dc-gold); background: var(--dc-accent-soft); color: var(--dc-ink); font-size: 17px; line-height: 1.65; }
.dc-app-note a { color: var(--dc-link); font-weight: 700; }
.dc-app-page .breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; color: var(--dc-faint); font-size: 14px; }
.dc-app-page .breadcrumbs a { color: var(--dc-muted); text-decoration: none; }
.dc-app-page .breadcrumbs a::after { content: '/'; margin-left: 8px; color: var(--dc-faint); }
@media (max-width: 860px) { .dc-app-grid, .dc-app-gallery { grid-template-columns: 1fr; } }

/* шапка на главной: прозрачная поверх видео, при прокрутке — сплошная (класс is-solid ставит home.js);
   на прозрачной — светлый текст в обеих сторонах, иначе у элийцев тёмные ссылки теряются на ночном кадре */
html[data-faction] body.dc-home .topbar.dc-top { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background .35s, border-color .35s; }
html[data-faction] body.dc-home .topbar.dc-top::after { opacity: 0; transition: opacity .35s; }
html[data-faction] body.dc-home .topbar.dc-top.is-solid { background: var(--dc-header); border-bottom-color: var(--dc-edge); }
html[data-faction] body.dc-home .topbar.dc-top.is-solid::after { opacity: .45; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-brand,
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-nav > a,
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-menu > summary { color: #ffffffe0; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-brand em { color: #ffffff99; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-search-open { background: #0b0710aa; border-color: #ffffff38; color: #ffffffc0; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .kb-lang summary { color: #fff; border-color: #ffffff38; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-side { background: #0b0710aa; border-color: #ffffff38; }
html[data-faction] body.dc-home .dc-top:not(.is-solid) .dc-side button:not([aria-pressed="true"]) { color: #ffffffc0; }
@media (max-width: 860px) { .dc-hero .dc-now { margin-bottom: 84px; } } /* над нижней панелью быстрых разделов */

/* база: оглавление справа лежит на светлом участке видео — затемнение на всю ширину, сильнее слева */
.dc-scene-base::before { background: linear-gradient(90deg, #08050af2 0%, #08050ab0 45%, #08050a99 100%), linear-gradient(0deg, #08050a 0%, #08050a00 28%); }
/* вкладки приложения на телефоне — одной строкой с прокруткой, без переноса «Таймеров» на вторую */
@media (max-width: 640px) { .dc-app-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .dc-app-tabs button { flex: none; padding: 0 14px; } }
