@import url("/static/css/base.css");
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 550; font-size: 19px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 550; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { color: var(--text-2); font-weight: 550; padding: 6px 10px; border-radius: 8px; }
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.03em; margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--text-2); max-width: 62ch; }
.lead.narrow { max-width: 72ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art .player { box-shadow: var(--shadow); }
.hero-art p { margin: 8px 0 0; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section.page-head { padding-bottom: 8px; }
.section h2 { font-size: 28px; margin-bottom: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 .card.pad h3 { font-size: 17px; margin-bottom: 6px; }
.grid3 .card.pad p { margin: 0; color: var(--text-2); }
.ex-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ex-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ex-card .card-media img { display: block; width: 100%; aspect-ratio: 1200/630; object-fit: cover; background: var(--surface-2); }
.ex-card .card-body { padding: 16px 18px 20px; }
.ex-card h3 { font-size: 18px; margin: 4px 0 6px; }
.ex-card h3 a { color: var(--text); }
.ex-card p { margin: 0; color: var(--text-2); font-size: 14px; }
.more { font-weight: 550; }
.uc-list { columns: 2; padding-left: 20px; }
.uc-list li { margin-bottom: 6px; }
.stack { display: grid; gap: 20px; }
.uc h2 { font-size: 22px; }
.uc ul { color: var(--text-2); padding-left: 20px; margin-bottom: 0; }
.crumbs { margin: 24px 0 8px; font-size: 13px; color: var(--muted); }
.ex h1 { font-size: clamp(26px, 4vw, 40px); }
.ex h2 { font-size: 22px; margin-top: 28px; }
.ex-cols { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin-bottom: 64px; }
.ex-cols ol, .ex-cols ul { padding-left: 22px; } .ex-cols li { margin-bottom: 6px; }
.aside { position: sticky; top: 84px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; } ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.player-wrap { margin: 18px 0 8px; }
.player { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow); aspect-ratio: 1200/630; }
.player-poster, .player-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.player-canvas[hidden], .player-bar[hidden] { display: none; }
.player-bar { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.player-status { position: absolute; right: 12px; top: 10px; font-size: 12px; background: var(--surface); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.player-status:empty { display: none; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 24px; margin-top: 56px; color: var(--text-2); font-size: 14px; }
.foot { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 40px; }
.foot-brand p { margin: 12px 0 16px; max-width: 34ch; line-height: 1.5; }
.foot-col h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--text-2); } .foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-col address { font-style: normal; display: grid; gap: 6px; line-height: 1.45; }
.foot-name { color: var(--text); font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .hero-grid, .ex-cols { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .aside { position: static; }
  .hero { padding-top: 40px; }
}
@media (max-width: 600px) {
  .grid3 { grid-template-columns: 1fr; }
  .uc-list { columns: 1; }
  .site-header .bar { gap: 8px; }
  .bar-end .btn { padding: 0 12px; }
}

/* экранные клавиши управления машиной в галерее */
.player-hud { position: absolute; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 70%; }
.player-hud .kbd { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px 10px 3px 3px; font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; touch-action: none; box-shadow: var(--shadow); }
.player-hud .kbd b { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 3px; color: var(--text); }
.player-hud .kbd.on b { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.player-hud .kbd i { font-style: normal; }
.player-hud[hidden] { display: none; }

/* галерея: фильтры слева, результаты справа */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.gal-section { padding-top: 24px; }
.gal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.gal-filters { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding-right: 4px; }
.gal-filters > summary { display: none; }
.gal-search { display: flex; gap: 6px; margin-bottom: 18px; }
.gal-search input { flex: 1; min-width: 0; }
.fgroup { margin-bottom: 18px; }
.fgroup h2 { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fgroup h3 { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 12px 0 4px; }
.fpills { display: flex; flex-wrap: wrap; gap: 6px; }
.fpill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12.5px; }
.fpill:hover { border-color: var(--accent); text-decoration: none; }
.fpill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.fpill.zero, .flist a.zero { opacity: .45; }
.fcount { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fpill.on .fcount { color: inherit; opacity: .8; }
.flist { list-style: none; padding: 0; margin: 0; }
.flist a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; margin: 0 -8px; border-radius: 6px; color: var(--text); font-size: 13px; }
.flist a:hover { background: var(--surface-2); text-decoration: none; }
.flist a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.gal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 16px; }
.gal-found { margin: 0 8px 0 0; color: var(--text-2); }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 500; }
.fchip:hover { text-decoration: none; filter: brightness(.97); }
.freset { font-size: 12.5px; color: var(--muted); }
.gal-results .grid3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gal-empty { text-align: center; }
@media (max-width: 900px) {
  .gal-layout { grid-template-columns: 1fr; gap: 16px; }
  .gal-filters { position: static; max-height: none; overflow: visible; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 0 14px; }
  .gal-filters > summary { display: block; padding: 12px 0; font-weight: 600; cursor: pointer; }
  .gal-filters[open] { padding-bottom: 4px; }
}
/* на узком экране навигация сайта — второй строкой с прокруткой, а не скрыта целиком */
@media (max-width: 900px) {
  .site-header .bar { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .site-header .bar-end { margin-left: auto; }
  .site-header .nav { display: flex; order: 3; flex: 1 0 100%; overflow-x: auto; margin: 0 -12px; padding: 2px 4px 6px; }
  .site-header .nav a { white-space: nowrap; }
}

/* ---- юридические страницы: документы, реквизиты, тарифы ---- */
.foot-legal { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; } .foot-legal a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 2px; }
.legal { max-width: 820px; padding-block: 28px 56px; }
.legal h1 { margin-bottom: 4px; } .legal h2 { margin-top: 28px; font-size: 20px; } .legal p, .legal li { line-height: 1.65; } .legal ol, .legal ul { padding-left: 22px; }
.req-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.req-table th, .req-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; } .req-table th { width: 34%; color: var(--muted); font-weight: 550; }
.plan { display: grid; gap: 10px; align-content: start; } .plan h3 { margin: 0; } .plan .desc { margin: 0; color: var(--text-2); }
.plan-price { font-size: 28px; font-weight: 700; letter-spacing: -.01em; } .plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Страница «Редактор»: скриншоты, карта управления, горячие клавиши */
.tour-hero { padding-bottom: 40px; }
.tour-hero-art { margin-top: 36px; }
.tour-shot { margin: 0; }
.tour-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface-2); }
.tour-shot.big img { border-radius: 16px; }
.tour-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-2); text-align: center; }
.tour-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; align-items: center; margin-top: 48px; }
.tour-row.flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }
.tour-row.flip .tour-text { order: 2; }
.tour-text h3 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 10px; }
.tour-text p { color: var(--text-2); margin: 0 0 12px; }
.tour-text ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.tour-text li { margin: 4px 0; }
.tour-legend { margin-top: 44px; }
.tour-legend h3 { font-size: 22px; margin-bottom: 4px; }
.tour-legend > .muted { margin: 0 0 16px; }
.tour-legend-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 10px; }
.tour-ol li { counter-increment: n; position: relative; padding-left: 38px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tour-ol li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.tour-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.tour-keys h3 { font-size: 17px; margin-bottom: 10px; }
.keylist { margin: 0; display: grid; gap: 8px; }
.keylist > div { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 12px; align-items: baseline; }
.keylist dt { white-space: nowrap; }
.keylist dd { margin: 0; color: var(--text-2); font-size: 14px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.5; text-align: center; }
.keylist.stack > div { grid-template-columns: 1fr; gap: 3px; }
.kbd-plus { margin: 0 3px; color: var(--text-3, var(--text-2)); font-size: 12px; }
.tour-final { text-align: center; }
.tour-final .lead { margin-inline: auto; }
@media (max-width: 900px) {
  .tour-row, .tour-row.flip, .tour-legend-grid { grid-template-columns: 1fr; gap: 20px; }
  .tour-row.flip .tour-text { order: 0; }
  .keylist > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Шаблоны и блок «Замена Figma» */
.fig-band { background: var(--surface); border-block: 1px solid var(--border); }
.fig-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.fig-shot { display: block; position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2); transition: transform .15s, border-color .15s; }
.fig-shot:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.fig-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1200/750; object-fit: cover; }
.fig-shot span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.fig-feats { margin-bottom: 8px; }
.tpl-group h2 { margin-bottom: 18px; }
.tpl-detail { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tpl-side { display: grid; gap: 16px; }
.tpl-side h3 { font-size: 17px; margin-bottom: 6px; }
.tpl-side p { margin: 0; color: var(--text-2); }
.tpl-side ul { margin: 0; padding-left: 20px; color: var(--text-2); }
@media (max-width: 900px) { .fig-strip { grid-template-columns: 1fr 1fr; } .tpl-detail { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fig-strip { grid-template-columns: 1fr; } }

/* Разделы галереи */
.gal-sections { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.gal-sub { font-size: 24px; margin: 28px 0 8px; }
.math-list { display: grid; gap: 20px; max-width: 820px; }
.math-card h3 { margin-bottom: 8px; }
.math-card h4 { margin: 16px 0 6px; }
.math-text { font-size: 18px; line-height: 1.55; }
.math-card ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.math-ans { font-size: 18px; margin: 8px 0; }
.math-diagram { width: 100%; height: auto; max-width: 600px; color: var(--text-2); margin: 8px 0; }

/* Анимированные решения задач */
.math-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.math-group { margin: 36px 0 4px; scroll-margin-top: 80px; }
.math-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; margin-right: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; }
.msim { margin-top: 14px; }
.ms-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-speed { margin-left: auto; font-size: 14px; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.ms-speed select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.ms-hud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 12px 0 4px; font-weight: 650; }
.ms-chip { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, #38bdf8 18%, var(--surface)); font-weight: 600; font-size: 14px; }
.ms-scene { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 6px; }
.ms-svg { display: block; width: 100%; height: auto; }
.ms-road { fill: var(--surface-2); }
.ms-water { fill: color-mix(in srgb, #38bdf8 16%, var(--surface-2)); }
.ms-wave { fill: none; stroke: #38bdf8; stroke-opacity: .28; stroke-width: 2; }
.ms-bridge { fill: color-mix(in srgb, #a16207 40%, var(--surface-2)); stroke: #a16207; stroke-width: 2; }
.ms-axis { stroke: var(--text-2); stroke-width: 1.5; }
.ms-tick { fill: var(--text-2); font-size: 13px; }
.ms-lbl { fill: var(--text-2); font-size: 13px; font-weight: 600; }
.ms-lbl.hi, .ms-gaplbl.hi { fill: var(--accent); }
.ms-tl { font-size: 12px; font-weight: 700; }
.ms-trail { stroke-width: 6; stroke-linecap: round; opacity: .6; }
.ms-dash { stroke: var(--text-2); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .6; }
.ms-gap { fill: none; stroke: var(--text-2); stroke-width: 2; }
.ms-gap.hi { stroke: var(--accent); stroke-width: 3; }
.ms-gaplbl { fill: var(--text); font-size: 15px; font-weight: 700; }
.ms-bartxt { fill: #fff; font-size: 13px; font-weight: 700; }
.ms-hint { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.ms-steps { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.ms-steps li { color: var(--text-2); }
.ms-steps li p { margin: 0 0 4px; }
.ms-steps li.ms-cur { color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 10px; padding: 8px 10px; margin-left: -10px; }
.ms-steps b { color: var(--accent); }
.why { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.ms-answer { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 18px; background: color-mix(in srgb, #10b981 16%, var(--surface)); border: 1px solid color-mix(in srgb, #10b981 45%, var(--border)); }

/* ---- карточки опытов с запуском на главной ---- */
.ex-card .card-media.player { border: 0; border-radius: 0; box-shadow: none; aspect-ratio: 1200/630; }
.ex-card .player-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(15, 23, 42, .25); transition: transform .15s; }
.ex-card .player-start:hover { transform: translate(-50%, -50%) scale(1.06); }
.ex-card .player-start[hidden] { display: none; }
.ex-card .player-bar { left: 10px; bottom: 10px; gap: 6px; }

/* ---- «Кому подходит» ---- */
.uc-cards { margin-top: 24px; }
.uc-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.uc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(15, 23, 42, .14); }
.uc-art { display: block; padding: 18px 18px 8px; background: linear-gradient(135deg, var(--uc-a), var(--uc-b)); }
.uc-art svg { display: block; width: 100%; height: auto; max-height: 150px; }
.uc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.uc-body strong { font-size: 17px; line-height: 1.3; }
.uc-body span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.uc-body .uc-go { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; }
.uc-kids { --uc-a: #fb923c; --uc-b: #f59e0b; } .uc-teachers { --uc-a: #3b82f6; --uc-b: #6366f1; } .uc-designers { --uc-a: #a855f7; --uc-b: #ec4899; }
.uc-gamedev { --uc-a: #22c55e; --uc-b: #14b8a6; } .uc-viz { --uc-a: #06b6d4; --uc-b: #3b82f6; } .uc-selfhost { --uc-a: #475569; --uc-b: #1e293b; }

/* ---- тарифы ---- */
.price-head { padding-bottom: 8px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform .18s, box-shadow .18s; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(15, 23, 42, .12); }
.price-card h3 { margin: 0; font-size: 19px; }
.price-desc { margin: -6px 0 0; color: var(--text-2); font-size: 14px; }
.price-card.featured { border: 2px solid var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 55%); box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 22%, transparent); }
.price-ribbon { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: var(--accent-text); }
.price-amount { display: flex; flex-direction: column; gap: 2px; min-height: 74px; justify-content: flex-end; }
.price-old { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.price-old em { font-style: normal; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #15803d; }
.price-now strong { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.price-now small { margin-left: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.price-metrics { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 10px; border-block: 1px dashed var(--border); }
.price-metrics li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.price-metrics li.off { opacity: .55; }
.price-metrics svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.price-metrics b { color: var(--text); font-weight: 650; }
.price-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; align-content: start; font-size: 14px; }
.price-feats li { position: relative; padding-left: 24px; line-height: 1.4; }
.price-feats li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 12px; height: 7px; border-left: 2.5px solid #16a34a; border-bottom: 2.5px solid #16a34a; transform: rotate(-45deg); }
.price-card .btn { justify-content: center; margin-top: 4px; }
.price-note { margin-top: 22px; max-width: 720px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price-old em { background: #14532d; color: #86efac; } }

/* ---------- Страница «Для кого» и блок «Встроенный ИИ» ---------- */
.uc-ai { --uc-a: #8b5cf6; --uc-b: #ec4899; }
.shot-frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 60px -22px rgba(15, 23, 42, .4); }
.shot-frame .bar { display: flex; gap: 6px; align-items: center; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.shot-frame .bar i:nth-child(2) { background: #fbbf24; } .shot-frame .bar i:nth-child(3) { background: #34d399; }
.shot-frame .bar span { margin-left: 10px; font-size: 12px; color: var(--text-2); }
.shot-frame img { display: block; width: 100%; height: auto; }

.ucx-hero { position: relative; overflow: hidden; padding: 64px 0 56px; border-bottom: 1px solid var(--border);
  background: radial-gradient(55% 80% at 92% 0%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(45% 70% at 0% 100%, rgba(6, 182, 212, .18), transparent 70%), radial-gradient(40% 60% at 55% 110%, rgba(245, 158, 11, .14), transparent 70%); }
.ucx-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ucx-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 16px; }
.ucx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ucx-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 650; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.ucx-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .14); text-decoration: none; }
.ucx-pill i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--uc-a), var(--uc-b)); }
.ucx-collage { position: relative; aspect-ratio: 1.15; }
.ucx-collage .shot-frame { position: absolute; width: 74%; }
.ucx-collage .c1 { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.ucx-collage .c2 { right: 0; top: 18%; transform: rotate(2.5deg); z-index: 2; }
.ucx-collage .c3 { left: 8%; bottom: 0; transform: rotate(-1deg); z-index: 3; }

.ai-band { position: relative; overflow: hidden; padding: 84px 0; color: #dbe4f5;
  background: radial-gradient(60% 90% at 92% 8%, rgba(168, 85, 247, .5), transparent 62%), radial-gradient(55% 80% at 0% 100%, rgba(59, 130, 246, .42), transparent 62%), #0b1226; }
.ai-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 650; font-size: 14px; }
.ai-badge svg { width: 18px; height: 18px; fill: #fbbf24; }
.ai-band h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 14px; }
.ai-band .lead { color: #b9c5de; }
.ai-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 6px; }
.ai-kinds span { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 14px; font-weight: 600; }
.ai-points { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.ai-points li { position: relative; padding-left: 30px; color: #c9d4ea; }
.ai-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ai-shots { position: relative; padding-bottom: 64px; }
.ai-res { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .65); }
.ai-res img { display: block; width: 100%; height: auto; }
.ai-dlg { position: absolute; left: -7%; bottom: 0; width: 46%; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .7); }
.ai-dlg img { display: block; width: 100%; height: auto; }

.ucs { padding: 72px 0; }
.ucs:nth-of-type(odd) { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ucs-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ucs.rev .ucs-grid > :first-child { order: 2; }
.ucs-badge { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ucs-badge .art { width: 88px; padding: 6px 8px 2px; border-radius: 14px; background: linear-gradient(135deg, var(--uc-a), var(--uc-b)); }
.ucs-badge .art svg { display: block; width: 100%; height: auto; }
.ucs-badge small { color: var(--uc-a); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.ucs h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.ucs .lead { font-size: 17px; }
.ucs-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.ucs-list li { position: relative; padding-left: 32px; color: var(--text-2); }
.ucs-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--uc-a), var(--uc-b)); }
.ucs .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.shotwrap { position: relative; }
.shotwrap::before { content: ""; position: absolute; inset: 7% -5% -7% 7%; border-radius: 30px; background: linear-gradient(135deg, var(--uc-a), var(--uc-b)); opacity: .24; transform: rotate(-2.2deg); }
.ucs.rev .shotwrap::before { inset: 7% 7% -7% -5%; transform: rotate(2.2deg); }
.ucs-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; position: relative; }
.ucs-thumb { display: block; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ucs-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, .16); border-color: var(--uc-a); text-decoration: none; }
.ucs-thumb img { display: block; width: 100%; aspect-ratio: 1200/630; object-fit: cover; background: var(--surface-2); }
.ucs-thumb span { display: block; padding: 8px 10px 10px; font-size: 13px; font-weight: 650; line-height: 1.3; }
.ucx-band { padding: 72px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #3b5bdb, #7c3aed 55%, #db2777); }
.ucx-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 10px; }
.ucx-band p { color: rgba(255, 255, 255, .88); max-width: 56ch; margin: 0 auto 24px; font-size: 18px; }
.ucx-band .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ucx-band .btn-primary { background: #fff; color: #3b2bb5; border-color: #fff; }
@media (max-width: 900px) {
  .ucx-hero-grid, .ai-grid, .ucs-grid { grid-template-columns: 1fr; gap: 32px; }
  .ucs.rev .ucs-grid > :first-child { order: 0; }
  .ucx-collage { aspect-ratio: 1.3; } .ucx-collage .shot-frame { width: 70%; }
  .ai-dlg { left: 0; width: 52%; } .ai-shots { padding-bottom: 40px; }
  .ucs { padding: 48px 0; } .ai-band { padding: 56px 0; }
}
@media (max-width: 560px) { .ucs-thumbs { grid-template-columns: 1fr 1fr; } .ucs-thumbs > :nth-child(3) { display: none; } .ucx-collage { display: none; } }
body { overflow-x: clip; }

/* Блок «визитка рассыпается» на главной */
.cardband { --uc-a: #f97316; --uc-b: #ea580c; padding: 72px 0; background: linear-gradient(180deg, #fff7ed, #fff 70%); border-block: 1px solid var(--border); }
.cardband-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.cardband-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #ffedd5; color: #c2410c; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.cardband h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; margin: 0 0 12px; }
.cardband .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cardband-play .player { box-shadow: 0 24px 60px -20px rgba(194, 65, 12, .35); }
.cardband-play .player-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 860px) { .cardband { padding: 48px 0; } .cardband-grid { grid-template-columns: 1fr; gap: 28px; } }
:root[data-theme="dark"] .cardband { background: linear-gradient(180deg, #2a1a10, var(--bg) 70%); }
:root[data-theme="dark"] .cardband-badge { background: #431407; color: #fdba74; }
.ucx-pill.uc-bizcard { --uc-a: #f97316; --uc-b: #ea580c; }
.homeplay { padding: 56px 0; }
.homeplay h2 { margin: 0 0 18px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; }
.homeplay .player { max-width: 960px; }

/* вставка проекта на чужой сайт и блок кода вставки */
body.embed { margin: 0; background: var(--surface); display: flex; flex-direction: column; height: 100vh; }
.embed-head { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--surface); min-height: 20px; }
.embed-head b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.embed-head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-brand { margin-left: auto; font-weight: 700; font-size: 13px; text-decoration: none; color: var(--accent); }
body.embed .player-bar .btn[data-act=full] { padding-left: 10px; padding-right: 10px; }
body.embed .player { border-radius: 0; border: 0; box-shadow: none; aspect-ratio: auto; flex: 1; min-height: 200px; height: auto; }
body.embed .taskpanel { margin: 12px; }
.embed-box { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.embed-box summary { cursor: pointer; font-weight: 600; }
.embed-row { display: flex; gap: 8px; }
.embed-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2, var(--surface)); color: inherit; font: 12px ui-monospace, Menlo, monospace; }
.math-sec { font-size: 22px; margin: 32px 0 8px; }
.math-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 6px; padding: 0; }
.math-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.math-steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; }
.math-steps h3 { margin: 0 0 2px; font-size: 16px; }
.math-steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* справка по элементам */
.help-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.help-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); text-decoration: none; }
.help-list a:hover { text-decoration: underline; }
.help-page { max-width: 780px; }
.help-page h2 { margin-top: 28px; }
.help-crumbs { font-size: 14px; opacity: .8; margin: 0 0 8px; }
.help-props { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 20px; margin: 0; }
.help-props dt { font-weight: 600; }
.help-props dd { margin: 0; }
.help-tips li { margin-bottom: 6px; }
@media (max-width: 640px) { .help-props { grid-template-columns: 1fr; gap: 2px; } .help-props dd { margin-bottom: 10px; } }

/* Иллюстрации к справке: цвета как в редакторе, работают в светлой и тёмной теме */
.help-fig { margin: 20px 0 8px; padding: 12px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; background: rgba(127,127,127,.06); max-width: 520px; }
.help-fig svg { display: block; width: 100%; height: auto; color: var(--text, #1b2230); }
.help-fig .s, .help-fig .ln, .help-fig .ar, .help-fig .grd, .help-fig .dim, .help-fig .dim2, .help-fig .edge, .help-fig .beam, .help-fig .ray { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-fig .dim, .help-fig .grd, .help-fig .dim2 { stroke: #6b86c9; stroke-width: 1.2; stroke-dasharray: 4 3; }
.help-fig .ln { stroke: #3b6fe0; stroke-width: 3; }
.help-fig .ar { stroke: #3b6fe0; }
.help-fig .edge { stroke: #e0902b; stroke-width: 3; }
.help-fig .beam { stroke: #e5484d; stroke-width: 2.5; }
.help-fig .ray { stroke: #e0a82b; }
.help-fig .wv { stroke: #3b9fe0; }
.help-fig .belt, .help-fig .chain { stroke-width: 2.5; }
.help-fig .chain { stroke-dasharray: 5 3; }
.help-fig .b { fill: #c7d2fe; stroke: #3b6fe0; stroke-width: 2; }
.help-fig .o { fill: #fcd9a8; stroke: #e0902b; stroke-width: 2; }
.help-fig .g { fill: #bbf7d0; stroke: #2e9e5b; stroke-width: 2; }
.help-fig .w { fill: #9bdcfc; fill-opacity: .9; stroke: #3b9fe0; stroke-width: 1.5; }
.help-fig .yl { fill: #fde68a; stroke: #e0a82b; stroke-width: 2; }
.help-fig .fr { fill: #fff; stroke: #94a3b8; stroke-width: 1.5; }
.help-fig .dk { fill: #475569; stroke: #1e293b; stroke-width: 1.5; }
.help-fig .red { fill: #e5484d; }
.help-fig .mir { fill: none; stroke: #94a3b8; stroke-width: 5; stroke-linecap: round; }
.help-fig .fire { fill: #fb923c; stroke: #e5484d; stroke-width: 1.5; }
.help-fig .hl { fill: #fff; fill-opacity: .55; }
.help-fig .hl2 { fill: #8b5cf6; fill-opacity: .8; }
.help-fig .bg { fill: #fff; stroke: #3b6fe0; stroke-width: 2; }
.help-fig .sel { fill: none; stroke: #3b6fe0; stroke-width: 1.5; }
.help-fig .hd { fill: #fff; stroke: #3b6fe0; stroke-width: 1.5; }
.help-fig .dot { fill: #3b6fe0; }
.help-fig .bd { fill: #3b6fe0; }
.help-fig .tw { fill: #fff; font: 600 10px sans-serif; }
.help-fig .t { fill: currentColor; font: 12px sans-serif; }
.help-fig .big { fill: currentColor; font: 600 34px sans-serif; }
.help-fig .grp { fill: none; stroke: #3b6fe0; stroke-width: 1.5; stroke-dasharray: 5 3; }
.help-fig .cmp { fill: #ede9fe; stroke: #8b5cf6; stroke-width: 2; }
.help-fig .cm, .help-fig .cm2 { fill: #8b5cf6; stroke: none; }
.help-fig .cm2 { fill: none; stroke: #8b5cf6; stroke-width: 1.5; }
.help-fig .cl { fill: #a5b4fc; stroke: #3b6fe0; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .cr { fill: #818cf8; stroke: #3b6fe0; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .ct { fill: #e0e7ff; stroke: #3b6fe0; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .cl2 { fill: #fed7aa; stroke: #e0902b; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .cr2 { fill: #fdba74; stroke: #e0902b; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .ct2 { fill: #ffedd5; stroke: #e0902b; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .sel3 { fill: #fcd9a8; stroke: #e0902b; stroke-width: 1.5; stroke-linejoin: round; }
.help-fig .c1 { stroke: #ef4444; fill: none; stroke-width: 2.5; } .help-fig .c2 { stroke: #eab308; fill: none; stroke-width: 2.5; }
.help-fig .c3 { stroke: #22c55e; fill: none; stroke-width: 2.5; } .help-fig .c4 { stroke: #3b82f6; fill: none; stroke-width: 2.5; }

/* Главная: шесть живых опытов */
.homeplay .lead.narrow { max-width: 720px; margin: 0 0 22px; }
.play-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .play-grid { grid-template-columns: 1fr; } }
.play-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.homeplay .play-card .player { max-width: none; border-radius: 14px; aspect-ratio: 4/3; transition: box-shadow .2s, transform .2s; }
.play-card .player:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 10px 30px rgba(20, 30, 60, .18)); }
.play-card .player-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: pointer; }
.play-card .player-poster { width: 100%; height: 100%; object-fit: cover; }
.play-card .player-bar { opacity: 0; transition: opacity .2s; }
.play-card .player:hover .player-bar, .play-card .player:focus-within .player-bar { opacity: 1; }
.play-hint { position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 12px/1.4 system-ui, sans-serif; pointer-events: none; animation: play-pulse 1.6s ease-in-out infinite; transition: opacity .3s; }
.play-hint.gone { opacity: 0; animation: none; }
@keyframes play-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .play-hint { animation: none; } }
.play-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.play-title { font-weight: 650; text-decoration: none; color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-title:hover { text-decoration: underline; }

.com-search { display: flex; gap: 8px; margin: 0 0 20px; max-width: 520px; }
.com-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.report-box form { display: grid; gap: 10px; margin-top: 8px; }
.report-box label { display: grid; gap: 4px; font-size: .9rem; }
.report-box select, .report-box textarea, .report-box input { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg, #fff); color: inherit; }
.report-box button { justify-self: start; }

/* Шапка: «Галерея» с вложенными разделами */
.nav-dd { position: relative; }
.nav-dd > a { display: inline-block; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); z-index: 30; }
.nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu { display: grid; }
.nav-menu a { display: block; white-space: nowrap; }
@media (max-width: 760px) { .nav-dd .nav-menu { display: none !important; } }

/* Документация */
.doc-card h3 { margin-bottom: 6px; }
.doc-card p { margin: 0; color: var(--text-2); }
.doc-group { margin: 22px 0 8px; font-size: 18px; }
.doc-toc { margin: 8px 0 12px; padding: 14px 18px; background: var(--surface-2); border-radius: 12px; }
.doc-toc ul { margin: 6px 0 0; padding-left: 18px; }
.doc-keys { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.doc-keys th, .doc-keys td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-keys th { width: 38%; font-weight: 600; white-space: nowrap; }
.doc-plain { margin: 0 0 8px; }
