/* Мини-приложение «Кто твой Господь?» — рабочий образец, три облика в одном приложении
   (№ 1908, Дизайнер, 27.10.2026). Облики из макетов № 1904: А «Вопрос во весь экран», Б «Нить пути»,
   В «Полоса горизонта». Облик — html[data-oblik], тема — html[data-tema]; всё переключается без перезагрузки.
   Шрифты — свои файлы (Literata, Onest; SIL OFL 1.1), значки — Lucide (ISC). Внешних адресов нет. */


/* ——— цвета: облик × тема (значения — из макетов № 1904) ——— */
html {
  /* шрифты — как на сайте (№ 1914): связку меняет html[data-shrift] из tekst-sayta.css; --serif — заголовки, --sans — кнопки и подписи */
  --f-ui: "Onest", "Salyam", system-ui, -apple-system, sans-serif; --f-tekst: "Literata", "Salyam", Georgia, serif; --f-zag: var(--f-tekst);
  --serif: var(--f-zag); --sans: var(--f-ui);
  --sery: #cecece; --metka: rgba(0, 179, 255, .2); --sh-h: 56px;
  font-size: calc(16px * var(--razmer));   /* текст статьи на сайте — в rem: размер «Мельче/Крупнее» меняет только его */
  --razmer: 1; --verh: env(safe-area-inset-top, 0px); --niz-bez: env(safe-area-inset-bottom, 0px);
  --vne: #d9e0e7;
}
html[data-oblik="a"][data-tema="svet"] { --fon: #edf1f5; --fon-2: #f8fafc; --fon-3: #dfe6ee; --zag: #0a1a33; --tekst: #27313d; --tekst-2: #566577; --tekst-3: #75879a; --akcent: #00b3ff; --akcent-t: #0077ad; --akcent-knopka: #0079b0; --knopka-tekst: #fff; --nit: #b5d3e8; --metka-fon: #d7ecf8; --vne: #d6dee6; }
html[data-oblik="a"][data-tema="tyom"] { --fon: #071226; --fon-2: #0e1c33; --fon-3: #172a47; --zag: #eef3f8; --tekst: #d3dbe4; --tekst-2: #9fb0c4; --tekst-3: #7d90a8; --akcent: #00b3ff; --akcent-t: #5ccfff; --akcent-knopka: #00b3ff; --knopka-tekst: #0a1a33; --nit: #2c5277; --metka-fon: #123457; --vne: #030a17; }
html[data-oblik="b"][data-tema="svet"] { --fon: #f2f5f8; --fon-2: #fbfcfd; --fon-3: #e2e9f0; --zag: #0a1a33; --tekst: #2a3441; --tekst-2: #566577; --tekst-3: #75879a; --akcent: #0090cf; --akcent-t: #0077ad; --akcent-knopka: #0079b0; --knopka-tekst: #fff; --nit: #b5d3e8; --metka-fon: #dcebf6; --vne: #dbe2e9; }
html[data-oblik="b"][data-tema="tyom"] { --fon: #0c1729; --fon-2: #13223a; --fon-3: #1c3050; --zag: #eef3f8; --tekst: #d3dbe4; --tekst-2: #a3b2c3; --tekst-3: #8193a8; --akcent: #00b3ff; --akcent-t: #5ccfff; --akcent-knopka: #00b3ff; --knopka-tekst: #0a1a33; --nit: #2c5277; --metka-fon: #173a5c; --vne: #060e1b; }
html[data-oblik="v"][data-tema="svet"] { --fon: #f1f4f7; --fon-2: #e3e9ef; --fon-3: #d5dee8; --zag: #0a1a33; --tekst: #26303c; --tekst-2: #566577; --tekst-3: #6c7e91; --akcent: #00b3ff; --akcent-t: #0077ad; --akcent-knopka: #0079b0; --knopka-tekst: #fff; --nit: #b5d3e8; --metka-fon: #d9e7f2; --vne: #dce3ea; }
html[data-oblik="v"][data-tema="tyom"] { --fon: #0a1a33; --fon-2: #13284a; --fon-3: #1c355e; --zag: #f1f5f9; --tekst: #d6dee8; --tekst-2: #9cb0c8; --tekst-3: #7f96b4; --akcent: #00b3ff; --akcent-t: #5ccfff; --akcent-knopka: #00b3ff; --knopka-tekst: #0a1a33; --nit: #2c5277; --metka-fon: #1a3a64; --vne: #061124; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; background: var(--vne); }
body { margin: 0; font-family: var(--sans); color: var(--tekst); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--akcent); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zn { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.zn-zalit { fill: currentColor; stroke: none; }

/* ——— каркас: колонка телефонной ширины ——— */
.app {
  position: relative; height: 100%; height: 100dvh; width: 100%; max-width: 430px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--fon); overflow: hidden; isolation: isolate;
}
.ekran { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ekran::-webkit-scrollbar { display: none; }
.ekran:focus { outline: none; }
#niz:empty { display: none; }
#niz { flex: none; background: var(--fon); }
@media (min-width: 600px) {
  .app { height: calc(100dvh - 48px); margin-top: 24px; border-radius: 28px; }
}

/* общие кнопки */
.krug { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--fon-3); color: var(--zag); flex: none; }
.krug .zn { width: 22px; height: 22px; }
.krug.steklo { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.krug.prozr { background: none; }
.krug[aria-pressed="true"] .zn { fill: currentColor; }
button { cursor: pointer; }
.knopki { display: flex; gap: 6px; align-items: center; }
.nazad { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 0 10px 0 2px; font: 500 16px/1 var(--sans); color: var(--akcent-t); }
.nazad .zn { width: 24px; height: 24px; }

/* ——— нижние вкладки ——— */
.vkladki { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(8px + var(--niz-bez)); background: var(--fon-2); }
.vkladki[hidden] { display: none; }
.vkladki a { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--tekst-2); font: 500 12px/1 var(--sans); position: relative; }
.vkladki .ik { display: grid; place-items: center; width: 60px; height: 32px; border-radius: 16px; }
.vkladki a[aria-current="page"] { color: var(--zag); font-weight: 600; }
html[data-oblik="a"] .vkladki a[aria-current="page"] { color: var(--akcent-t); }
html[data-oblik="a"] .vkladki a[aria-current="page"] .zn { stroke-width: 2.2; }
html[data-oblik="b"] .vkladki a[aria-current="page"] .ik { background: var(--metka-fon); color: var(--akcent-t); }
html[data-oblik="v"] .vkladki a[aria-current="page"] .zn { color: var(--akcent-t); stroke-width: 2.2; }
html[data-oblik="v"] .vkladki a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 20px; height: 3px; border-radius: 2px; background: var(--akcent); }

/* ——— общий верх экрана (Книги, Сохранённое, Поиск) ——— */
.verh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--verh)) 12px 4px 20px; }
.verh h1 { margin: 0; font: 600 28px/1.1 var(--serif); letter-spacing: -.02em; color: var(--zag); }
html[data-oblik="b"] .verh h1 { font: 600 24px/1.15 var(--sans); letter-spacing: -.01em; }
.verh-nazad { display: flex; align-items: center; gap: 4px; padding: calc(6px + var(--verh)) 12px 0 8px; }
.poyasnenie { margin: 2px 20px 8px; font-size: 15px; line-height: 1.45; color: var(--tekst-2); max-width: 36ch; }

/* строки статей (список) */
.spisok { list-style: none; margin: 0; padding: 0 16px; }
.spisok a { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 8px 0; min-height: 92px; }
.spisok img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--fon-3); }
.spisok .r { font-size: 13px; color: var(--akcent-t); font-weight: 500; }
.spisok h3 { margin: 3px 0 4px; font: 600 17px/1.25 var(--serif); color: var(--zag); letter-spacing: -.005em; text-wrap: pretty; }
.spisok .m { font-size: 13px; color: var(--tekst-2); }
html[data-oblik="v"] .spisok img { width: 96px; height: 56px; border-radius: 6px; }
html[data-oblik="v"] .spisok a { grid-template-columns: 96px 1fr; min-height: 76px; }
html[data-oblik="v"] .spisok h3 { font-weight: 500; }

.pusto { margin: 40px 24px; text-align: left; }
.pusto .zn { width: 40px; height: 40px; color: var(--akcent-t); stroke-width: 1.5; }
.pusto h2 { margin: 14px 0 6px; font: 600 22px/1.2 var(--serif); color: var(--zag); }
.pusto p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--tekst-2); max-width: 32ch; }
.pilyulya { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 0;
  background: var(--akcent-knopka); color: var(--knopka-tekst); font: 600 15px/1 var(--sans); }
.pilyulya.tihaya { background: var(--fon-3); color: var(--zag); font-weight: 500; }
.pilyulya .zn { width: 20px; height: 20px; }

/* ═════════ ОБЛИК А «Вопрос во весь экран» ═════════ */
.a-geroy { position: relative; min-height: calc(456px + var(--verh)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px 26px; isolation: isolate; }
.a-geroy > img, .s-geroy > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.a-geroy::before, .s-geroy::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 10, 22, .55) 0, rgba(4, 10, 22, 0) 26%, rgba(4, 10, 22, 0) 38%, rgba(4, 10, 22, .86) 100%); }
.a-verh { position: absolute; top: calc(14px + var(--verh)); left: 22px; right: 12px; display: flex; align-items: center; justify-content: space-between; }
.marka { display: flex; align-items: center; gap: 8px; min-width: 0; }
.marka .znak-m { flex: none; width: 26px; height: 26px; }
.a-verh .logo { width: 132px; height: 26px; color: #fff; }
.a-rubrika-m { font-size: 14px; font-weight: 500; color: #8fdcff; margin: 0 0 10px; }
.a-geroy h1 { margin: 0; font: 600 44px/1.0 var(--serif); letter-spacing: -.025em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.a-geroy .vvod { margin: 12px 0 0; font: 400 17px/1.45 var(--serif); color: rgba(255, 255, 255, .88); max-width: 32ch; }
.a-niz { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.a-chitat { height: 48px; padding: 0 22px 0 20px; border-radius: 24px; background: #fff; color: #0a1a33; font: 600 16px/1 var(--sans); display: inline-flex; align-items: center; gap: 10px; }
.a-chitat small { font-weight: 400; color: #4a5a6e; font-size: 14px; }
.a-geroy .a-niz .krug { width: 48px; height: 48px; }
.a-rubriki { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 2px; scrollbar-width: none; }
.a-rubriki::-webkit-scrollbar { display: none; }
.a-rubriki button { flex: none; height: 44px; padding: 0 10px; border: 0; background: none; position: relative; font: 500 16px/1 var(--sans); color: var(--tekst-2); white-space: nowrap; }
.a-rubriki button[aria-pressed="true"] { color: var(--zag); font-weight: 600; }
.a-rubriki button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--akcent); }
.a-lenta { padding: 8px 12px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-v { position: relative; border-radius: 22px; overflow: hidden; color: #fff; min-height: 236px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; background: #0e1c33; }
.a-v.shir { grid-column: 1 / -1; min-height: 214px; padding: 18px 20px; }
.a-v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.a-v::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 10, 22, 0) 30%, rgba(4, 10, 22, .84) 100%); }
.a-v:active img { transform: scale(1.03); }
.a-v .r { font-size: 13px; color: #8fdcff; margin-bottom: 6px; }
.a-v h3 { margin: 0; font: 600 19px/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.a-v.shir h3 { font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.a-v .m { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 8px; }

/* статья А */
.s-geroy { position: relative; min-height: calc(400px + var(--verh)); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px 22px; isolation: isolate; }
.s-geroy::before { background: linear-gradient(180deg, rgba(4, 10, 22, .5) 0, rgba(4, 10, 22, 0) 30%, rgba(4, 10, 22, .1) 50%, rgba(4, 10, 22, .9) 100%); }
.s-geroy .a-verh { left: 12px; }
.s-geroy h1 { margin: 0; font: 600 40px/1.02 var(--serif); letter-spacing: -.025em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.s-meta { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.s-deystviya { display: flex; gap: 8px; padding: 16px 16px 4px; }
.s-deystviya button { height: 44px; padding: 0 14px; border-radius: 22px; border: 0; background: var(--fon-3); color: var(--zag); font: 500 15px/1 var(--sans); display: inline-flex; align-items: center; gap: 8px; }
.s-deystviya button .zn { width: 20px; height: 20px; }
.s-deystviya button[aria-pressed="true"] .zn { fill: currentColor; }
.s-deystviya .aa { margin-left: auto; padding: 0; width: 44px; justify-content: center; font: 600 16px/1 var(--serif); }

/* ═════════ ОБЛИК Б «Нить пути» ═════════ */
.b-shapka { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + var(--verh)) 12px 6px 20px; }
.b-shapka .logo { width: 150px; height: 29px; color: var(--zag); }
.b-shapka .marka .znak-m { width: 28px; height: 28px; }
.b-poisk { margin: 4px 16px 0; height: 48px; border-radius: 14px; background: var(--fon-3); color: var(--tekst-2); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 16px; }
.b-poisk .zn { width: 20px; height: 20px; }
.b-put { margin: 12px 16px 0; padding: 16px 18px 12px; border-radius: 22px; background: var(--fon-2); }
.b-put-verh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.b-put-verh .kniga { font: 600 15px/1.3 var(--sans); color: var(--zag); }
.b-put-verh .skolko { font-size: 14px; color: var(--tekst-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-shkala { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 12px 0 10px; }
.b-shkala i { height: 6px; border-radius: 3px; background: var(--fon-3); }
.b-shkala i.da { background: var(--nit); }
.b-shkala i.seychas { background: var(--akcent); }
.nit { list-style: none; margin: 0; padding: 0; position: relative; }
.nit::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--nit); border-radius: 1px; }
.nit li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 5px 0; }
.nit .tochka { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--fon-2); box-shadow: inset 0 0 0 2px var(--nit); font: 600 12.5px/1 var(--sans); color: var(--tekst-2); font-variant-numeric: tabular-nums; }
.nit .da .tochka { background: var(--nit); box-shadow: none; color: var(--zag); }
.nit .da .tochka .zn { width: 15px; height: 15px; stroke-width: 2.6; }
.nit .seychas .tochka { background: var(--akcent-knopka); box-shadow: 0 0 0 5px var(--metka-fon); color: var(--knopka-tekst); }
.nit .nazv { font: 400 15px/1.35 var(--serif); color: var(--tekst-2); padding-top: 4px; }
.nit .seychas .nazv { font: 600 18px/1.25 var(--serif); color: var(--zag); letter-spacing: -.005em; }
.b-prodolzhit { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.b-prodolzhit span { font-size: 14px; color: var(--tekst-2); }
.b-blok { padding: 16px 16px 0; }
.b-blok-verh { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.b-blok-verh h2 { font: 600 21px/1.2 var(--sans); color: var(--zag); letter-spacing: -.01em; margin: 0; }
.b-blok-verh a, .b-blok-verh button { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--akcent-t); font-weight: 500; border: 0; background: none; padding: 0; }
.b-temy { display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 0; padding: 0 16px; scrollbar-width: none; }
.b-temy::-webkit-scrollbar { display: none; }
.b-temy button { flex: none; height: 44px; padding: 0 14px 0 6px; border-radius: 22px; border: 0; background: var(--fon-2); color: var(--zag); font: 500 15px/1 var(--sans); display: inline-flex; align-items: center; gap: 10px; }
.b-temy button[aria-pressed="true"] { background: var(--metka-fon); box-shadow: inset 0 0 0 2px var(--akcent); }
.b-temy img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.b-temy b { font-weight: 500; color: var(--tekst-2); font-variant-numeric: tabular-nums; }
.b-blok .spisok { padding: 0; margin-top: 4px; }

/* статья Б */
.st-shapka { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: calc(4px + var(--verh)) 8px 4px 6px; background: var(--fon); }
.st-shapka .aa { font: 600 16px/1 var(--serif); }
.b-st-zag { padding: 6px 20px 0; }
.b-st-zag .r { margin: 0; font-size: 14px; font-weight: 500; color: var(--akcent-t); }
.b-st-zag h1 { margin: 6px 0 8px; font: 600 30px/1.12 var(--serif); letter-spacing: -.02em; color: var(--zag); text-wrap: balance; }
.b-st-zag .m { margin: 0; font-size: 14px; color: var(--tekst-2); }
.b-st-kart { margin: 16px 16px 4px; width: calc(100% - 32px); aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 22px; background: var(--fon-3); }

/* ═════════ ОБЛИК В «Полоса горизонта» ═════════ */
.v-verh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--verh)) 10px 0 20px; }
.v-verh .marka { flex: 1; gap: 10px; }
.v-verh .marka .znak-m { width: 44px; height: 44px; }
.v-verh .logo { flex: 0 1 260px; min-width: 0; width: 260px; height: auto; aspect-ratio: 869 / 169; color: var(--zag); }
.v-sprosi { margin: 18px 16px 0; height: 56px; border-radius: 18px; background: var(--fon-2); display: grid;
  grid-template-columns: 32px 1fr 40px; gap: 12px; align-items: center; padding: 0 8px 0 12px; font: 400 16.5px/1.2 var(--serif); color: var(--tekst-2); }
.v-sprosi svg.z { width: 32px; height: 32px; }
.v-sprosi .str { width: 40px; height: 40px; border-radius: 50%; background: var(--akcent-knopka); color: var(--knopka-tekst); display: grid; place-items: center; }
.v-sprosi .str .zn { width: 20px; height: 20px; stroke-width: 2.2; }
.v-rubriki { display: flex; gap: 22px; overflow-x: auto; padding: 18px 20px 4px; scrollbar-width: none; }
.v-rubriki::-webkit-scrollbar { display: none; }
.v-rubriki button { flex: none; min-height: 44px; border: 0; background: none; padding: 0; font: 500 24px/1.1 var(--serif); letter-spacing: -.015em; color: var(--tekst-3); white-space: nowrap; }
.v-rubriki button[aria-pressed="true"] { color: var(--zag); }
.v-lenta { list-style: none; margin: 10px 0 0; padding: 0 0 22px; }
.v-lenta li + li { margin-top: 24px; }
.v-lenta img { width: 100%; height: 112px; object-fit: cover; background: var(--fon-3); }
.v-lenta .t { padding: 12px 20px 0; }
.v-lenta h3 { margin: 0; font: 500 23px/1.16 var(--serif); letter-spacing: -.015em; color: var(--zag); text-wrap: balance; }
.v-lenta .m { margin-top: 6px; font-size: 14px; color: var(--tekst-2); }
.v-lenta .m b { font-weight: 500; color: var(--akcent-t); }

/* статья В */
.v-st-polosa { width: 100%; height: 136px; object-fit: cover; margin-top: 2px; background: var(--fon-3); }
.v-st-zag { padding: 18px 20px 4px; }
.v-st-zag h1 { margin: 0; font: 500 32px/1.12 var(--serif); letter-spacing: -.02em; color: var(--zag); text-wrap: balance; font-variation-settings: "opsz" 60; }
.v-st-zag .m { margin: 10px 0 0; font-size: 14px; color: var(--tekst-2); }
.v-st-zag .m b { font-weight: 500; color: var(--akcent-t); }

/* ——— текст статьи: оформление — с сайта (tekst-sayta.css, № 1914); здесь только поля колонки приложения ——— */
html[data-tema="tyom"] { --sery: #3a4d68; --metka: rgba(0, 179, 255, .3); }
.tekst { padding: 10px 22px 28px; }
html[data-oblik="v"] .tekst { padding: 14px 20px 32px; }
.tekst blockquote:not(.tg-citata) { font-size: 1.375rem; }   /* у сайта размер растёт с шириной окна; колонка приложения — всегда телефонная */
.zagruzka { padding: 24px 22px; font: 400 16px/1.5 var(--sans); color: var(--tekst-2); }

/* низ статьи: сколько осталось + «Спросить об этой статье» */
.s-niz { padding: 8px 16px calc(10px + var(--niz-bez)); display: flex; flex-direction: column; gap: 8px; background: var(--fon); }
.s-ostalos { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--tekst-2); padding: 0 6px; font-variant-numeric: tabular-nums; }
.s-ostalos .shkala { flex: 1; height: 4px; border-radius: 2px; background: var(--fon-3); overflow: hidden; }
.s-ostalos .shkala i { display: block; width: 100%; height: 100%; background: var(--akcent); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.s-sprosit { height: 50px; border-radius: 14px; background: var(--akcent-knopka); color: var(--knopka-tekst); font: 600 17px/1 var(--sans); display: flex; align-items: center; justify-content: center; gap: 8px; }
.s-sprosit .zn { width: 20px; height: 20px; }
html[data-oblik="b"] .s-niz, html[data-oblik="v"] .s-niz { flex-direction: row; align-items: center; padding-top: 6px; }
html[data-oblik="b"] .s-ostalos, html[data-oblik="v"] .s-ostalos { flex: 1; padding: 0; }
html[data-oblik="b"] .s-sprosit, html[data-oblik="v"] .s-sprosit { height: 44px; padding: 0 16px; border-radius: 22px; font-size: 15px; }
html[data-oblik="v"] .s-sprosit { background: var(--fon-2); color: var(--akcent-t); }

/* ——— «Спросить» ——— */
.c-lenta { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 14px; }
.c-vstupl { display: grid; grid-template-columns: 44px 1fr 44px; gap: 12px; align-items: center; padding: calc(8px + var(--verh)) 0 6px; }
.c-vstupl > svg { width: 44px; height: 44px; }
.c-vstupl h1 { margin: 0; font: 600 21px/1.2 var(--sans); color: var(--zag); }
html[data-oblik="a"] .c-vstupl h1 { font: 600 24px/1.1 var(--serif); letter-spacing: -.015em; }
.c-vstupl p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--tekst-2); }
.c-ya { align-self: flex-end; max-width: 84%; padding: 12px 16px; border-radius: 20px 20px 6px 20px; background: var(--akcent-knopka); color: var(--knopka-tekst); font: 400 16px/1.4 var(--sans); }
.c-on { align-self: flex-start; max-width: 92%; padding: 14px 16px 10px; border-radius: 20px 20px 20px 6px; background: var(--fon-2); }
.c-on p { margin: 0 0 .7em; font: 400 16.5px/1.55 var(--serif); color: var(--tekst); }
.c-on .dalee { font: 500 13px/1.3 var(--sans); color: var(--tekst-2); margin: 4px 0 6px; }
.c-on .primech { font: 400 14px/1.45 var(--sans); color: var(--tekst-2); }
.c-ssylka { display: grid; grid-template-columns: 48px 1fr 20px; gap: 12px; align-items: center; min-height: 60px; padding: 6px 0; color: var(--zag); }
.c-ssylka img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.c-ssylka b { display: block; font: 600 15.5px/1.25 var(--serif); }
.c-ssylka small { font: 400 13px/1.3 var(--sans); color: var(--tekst-2); }
.c-ssylka .zn { width: 20px; height: 20px; color: var(--tekst-2); }
.c-deystv { display: flex; gap: 4px; margin: -4px 0 0 4px; }
.c-deystv .krug { background: none; color: var(--tekst-2); }
.c-deystv .zn { width: 20px; height: 20px; }
.c-niz { padding: 4px 0 8px; }
.c-podskazki { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.c-podskazki::-webkit-scrollbar { display: none; }
.c-podskazki button { flex: none; height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--metka-fon); color: var(--zag); font: 500 14.5px/1 var(--sans); }
.c-pole { display: flex; gap: 8px; padding: 0 12px 0 16px; align-items: center; }
.c-pole label { flex: 1; }
.c-pole input { width: 100%; height: 48px; border-radius: 24px; border: 0; padding: 0 18px; background: var(--fon-2); font: 400 16px/1 var(--sans); color: var(--zag); }
html[data-oblik="v"] .c-pole input { font-family: var(--serif); font-size: 16.5px; height: 50px; }
.c-pole input::placeholder { color: var(--tekst-2); }
.c-pole button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--akcent-knopka); color: var(--knopka-tekst); display: grid; place-items: center; }
.c-pole .zn { width: 22px; height: 22px; stroke-width: 2.2; }

/* «Спросить» в облике В — разговор как страница книги */
.r-str { padding: calc(4px + var(--verh)) 20px 12px; }
.r-novyy { display: flex; justify-content: space-between; align-items: center; margin: 0 -8px 2px; }
.r-novyy .zag-mal { padding: 0 8px; font: 500 15px/1 var(--sans); color: var(--tekst-2); }
.r-razdel + .r-razdel { margin-top: 28px; padding-top: 22px; box-shadow: 0 -2px 0 var(--fon-2); }
.r-vopros { margin: 6px 0 0; font: 600 28px/1.1 var(--serif); letter-spacing: -.02em; color: var(--zag); text-wrap: balance; font-variation-settings: "opsz" 60; }
.r-kto { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 14px; color: var(--tekst-2); }
.r-kto svg { width: 26px; height: 26px; }
.r-otvet p { margin: 0 0 .75em; font: 400 18px/1.6 var(--serif); color: var(--tekst); }
.r-otvet .primech { font: 400 15px/1.5 var(--sans); color: var(--tekst-2); }
.r-podzag { margin: 12px 0 2px; font: 600 15px/1.2 var(--sans); color: var(--zag); }
.r-chitat a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; min-height: 60px; padding: 4px 0; }
.r-chitat img { width: 96px; height: 52px; border-radius: 8px; object-fit: cover; }
.r-chitat b { display: block; font: 500 17px/1.2 var(--serif); color: var(--zag); }
.r-chitat small { font-size: 13px; color: var(--tekst-2); }
.r-dalshe button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: none; padding: 6px 0; text-align: left; font: 400 17px/1.3 var(--serif); color: var(--akcent-t); }
.r-dalshe button + button { box-shadow: 0 -1px 0 var(--fon-2); }
.r-dalshe .zn { width: 20px; height: 20px; }

/* ——— Книги ——— */
.knigi { list-style: none; margin: 4px 0 0; padding: 0 16px 20px; display: grid; gap: 10px; }
.knigi a { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--fon-2); }
.knigi img { width: 64px; height: 84px; border-radius: 8px; object-fit: cover; }
.knigi h2 { margin: 0 0 4px; font: 600 18px/1.2 var(--serif); color: var(--zag); }
.knigi .m { font-size: 13.5px; color: var(--tekst-2); font-variant-numeric: tabular-nums; }
.knigi .polosa { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--fon-3); overflow: hidden; }
.knigi .polosa i { display: block; height: 100%; background: var(--akcent); border-radius: 2px; }
html[data-oblik="a"] .knigi a { min-height: 120px; position: relative; overflow: hidden; color: #fff; grid-template-columns: 1fr; isolation: isolate; background: #0e1c33; }
html[data-oblik="a"] .knigi a img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: -2; }
html[data-oblik="a"] .knigi a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 10, 22, .86) 0, rgba(4, 10, 22, .55) 70%, rgba(4, 10, 22, .3) 100%); }
html[data-oblik="a"] .knigi h2 { color: #fff; font-size: 22px; }
html[data-oblik="a"] .knigi .m { color: rgba(255, 255, 255, .82); }
html[data-oblik="a"] .knigi .polosa { background: rgba(255, 255, 255, .25); }
html[data-oblik="v"] .knigi { gap: 0; padding: 0 0 20px; }
html[data-oblik="v"] .knigi a { grid-template-columns: 1fr; border-radius: 0; background: none; padding: 0 0 18px; }
html[data-oblik="v"] .knigi img { width: 100%; height: 84px; border-radius: 0; }
html[data-oblik="v"] .knigi .t { padding: 0 20px; }
html[data-oblik="v"] .knigi h2 { font-weight: 500; font-size: 22px; }
.kniga-glavy { margin: 4px 16px 24px; padding: 14px 16px; border-radius: 22px; background: var(--fon-2); }
html[data-oblik="v"] .kniga-glavy { background: none; margin: 4px 4px 24px; }
.kniga-glavy .nit li { padding: 6px 0; min-height: 44px; }
.kniga-glavy .nit .gotovo .nazv { color: var(--zag); }
.kniga-glavy .nit .skoro .nazv { color: var(--tekst-3); }
.kniga-glavy .nit .skoro .nazv::after { content: " · скоро"; font: 500 12px/1 var(--sans); color: var(--tekst-3); }
.kniga-glavy .nit li:has(> a, > button) { display: block; }
.kniga-glavy .nit li > a, .kniga-glavy .nit li > button { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; width: 100%;
  border: 0; background: none; padding: 0; margin: 0; text-align: left; font: inherit; color: inherit; border-radius: 10px; }

/* ——— шторка «Облик и тема», сноска ——— */
.shtorka-fon { position: fixed; inset: 0; z-index: 50; background: rgba(4, 10, 22, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.shtorka-fon.otkr { opacity: 1; pointer-events: auto; }
.shtorka { position: fixed; z-index: 51; left: 50%; bottom: 0; width: min(100%, 430px); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  transform: translate(-50%, 104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
  background: var(--fon-2); color: var(--tekst); border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + var(--niz-bez)); }
.shtorka.otkr { transform: translate(-50%, 0); visibility: visible; }
.shtorka::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--fon-3); margin: 0 auto 6px; }
.sh-verh { display: flex; align-items: center; justify-content: space-between; }
.sh-verh h2 { margin: 0; font: 600 21px/1.2 var(--sans); color: var(--zag); }
.sh-razdel { margin: 14px 0 6px; font: 600 15px/1.2 var(--sans); color: var(--zag); }
.obliki { display: grid; gap: 8px; }
.vybor { display: grid; grid-template-columns: 46px 1fr 24px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--fon); cursor: pointer; min-height: 76px; }
.vybor:has(input:checked) { box-shadow: inset 0 0 0 2px var(--akcent); background: var(--metka-fon); }
.vybor:has(input:focus-visible) { outline: 3px solid var(--akcent); outline-offset: 2px; }
.vybor b { display: block; font: 600 16px/1.25 var(--sans); color: var(--zag); }
.vybor small { display: block; margin-top: 3px; font: 400 14px/1.35 var(--sans); color: var(--tekst-2); }
.vybor .sejchas { display: block; margin-top: 5px; font: 500 13px/1.35 var(--sans); color: var(--akcent-t); }
.vybor .galka { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--fon-3); display: grid; place-items: center; color: var(--knopka-tekst); }
.vybor .galka .zn { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.vybor:has(input:checked) .galka { background: var(--akcent-knopka); box-shadow: none; }
.vybor:has(input:checked) .galka .zn { opacity: 1; }
/* схемы обликов — маленькие наброски экрана */
.shema { width: 46px; height: 62px; border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 4px; background: var(--fon-2); box-shadow: inset 0 0 0 1.5px var(--fon-3); }
.shema i { display: block; border-radius: 2px; background: var(--fon-3); }
.shema-a { padding: 0; gap: 3px; }
.shema-a .kart { height: 34px; border-radius: 0; background: #1d3d63; position: relative; }
.shema-a .kart::after { content: ""; position: absolute; left: 4px; bottom: 5px; width: 26px; height: 6px; border-radius: 2px; background: #fff; }
.shema-a .ryad { display: flex; gap: 3px; padding: 0 4px; height: 20px; }
.shema-a .ryad i { flex: 1; background: #2b5683; border-radius: 4px; }
.shema-b .str { height: 5px; }
.shema-b .put { flex: 1; border-radius: 5px; background: var(--fon); position: relative; }
.shema-b .put::before { content: ""; position: absolute; left: 6px; top: 5px; bottom: 5px; width: 2px; background: var(--nit); }
.shema-b .put::after { content: ""; position: absolute; left: 3px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--akcent-knopka); }
.shema-b .str2 { height: 4px; width: 70%; }
.shema-v { padding: 4px 0; gap: 2px; }
.shema-v .pol { height: 9px; border-radius: 0; background: #2b5683; }
.shema-v .sl { height: 3px; width: 70%; margin: 0 4px 3px; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fon); }
.segment label { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; font: 500 14.5px/1.1 var(--sans); color: var(--tekst-2); cursor: pointer; text-align: center; padding: 0 4px; }
.segment label:has(input:checked) { background: var(--fon-2); color: var(--zag); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--fon-3); }
.segment label:has(input:focus-visible) { outline: 3px solid var(--akcent); outline-offset: 1px; }
.segment .zn { width: 18px; height: 18px; }
.sh-proverka { margin-top: 18px; padding-top: 12px; box-shadow: 0 -2px 0 var(--fon-3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-proverka p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--tekst-2); }
.sh-proverka button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 0; background: var(--fon-3); color: var(--zag); font: 500 14px/1.1 var(--sans); }
/* сноска — как карточка сноски на сайте (.sn-kartochka, № 1914) */
.shtorka .n { font: 600 .8125rem/1 var(--f-ui); color: var(--akcent-t); }
.snoska-sh p { margin: 6px 0 0; font: 400 .9688rem/1.6 var(--f-ui); color: var(--tekst); }
.sn-k-spisku { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font: 600 .875rem/1 var(--f-ui); color: var(--akcent-t); }
/* выбор шрифта — те же 7 связок, что в меню «Аа» сайта (№ 1914) */
.shrifty { display: grid; gap: 2px; padding: 4px; border-radius: 16px; background: var(--fon); }
.shrift-v { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.shrift-v:has(input:checked) { border-color: var(--akcent-t); background: var(--metka-fon); }
.shrift-v:has(input:focus-visible) { outline: 3px solid var(--akcent); outline-offset: 1px; }
.shrift-v .shrift-obr { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--fon-3); font-size: 15px; }
.shrift-v .shrift-obr[data-obr="d"] { font-size: 12px; }
.shrift-v b { display: block; font: 500 15.5px/1.2 var(--sans); color: var(--zag); }
.shrift-v:has(input:checked) b { font-weight: 600; }
.shrift-v small { display: block; margin-top: 2px; font: 400 13px/1.3 var(--sans); color: var(--tekst-2); }

/* ——— короткое сообщение ——— */
.tost { position: absolute; left: 12px; right: 12px; bottom: calc(84px + var(--niz-bez)); z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 12px 16px; border-radius: 16px; background: var(--zag); color: var(--fon); font: 400 14.5px/1.4 var(--sans);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.tost.vidno { opacity: 1; transform: none; pointer-events: auto; }
.tost span { flex: 1; }
.tost button { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--fon); font: 600 14.5px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; }

/* появление экрана — одно спокойное движение при переходе */
.ekran > .vhod { animation: vhod .22s ease-out both; }
@keyframes vhod { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .krug.steklo { background: rgba(10, 26, 51, .7); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ═══ Приложение на живых данных (№ 1911): добавлено к образцу № 1908, облики не менялись ═══ */

/* конец статьи: «Дальше» и «Поделиться» */
.s-konec { display: grid; gap: 10px; padding: 4px 22px 28px; }
/* № 1918: «Далее» — синяя кнопка, как «Далее: …» под статьёй на сайте (.nachnem) */
.dalee-st { display: flex; flex-direction: column; align-items: center; padding: 22px 24px 20px; border-radius: 20px; background: var(--akcent-knopka); color: var(--knopka-tekst); text-align: center; text-decoration: none; transition: filter .15s; }
.dalee-st:active { filter: brightness(.92); }
.dalee-st .n-dalee { max-width: 34ch; font: var(--ves-tekst, 400) 18px/1.4 var(--f-tekst); text-wrap: balance; }
.dalee-st .n-dalee b { font-weight: 700; }
/* № 1918: подложка цифр сносок («1», «↑ 1») — не светлее фона, а чуть темнее, как на сайте (#f1f6fa на белом):
   прозрачная тень заголовочного цвета ложится и на серый фон, и на голубую цитату; в тёмной теме — светлее фона */
.tekst sup.snoska a, .tekst .snoska-tekst a.sn-nazad { background: color-mix(in srgb, var(--zag) 7%, transparent); }
.tekst sup.snoska a:hover, .tekst sup.snoska a[aria-expanded="true"], .tekst .snoska-tekst a.sn-nazad:hover, .tekst .snoska-tekst a.sn-nazad:focus-visible { background: var(--akcent-t); color: var(--fon); }
/* № 1918: черты длиннее и тоньше, чем на сайте (на телефоне 2 px выглядят жирно) */
.tekst hr { width: 40%; height: 1.5px; }
.tekst hr.snoski-cherta { width: 50%; }
.podel-konec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; background: var(--fon-3); color: var(--zag); font: 500 15px/1 var(--sans); }
.podel-konec .zn { width: 20px; height: 20px; }

/* Спросить: кнопки в шапке, ожидание ответа, остаток вопросов */
.c-kn { display: inline-flex; align-items: center; gap: 2px; }
.c-vstupl { grid-template-columns: 44px 1fr auto; }
.c-on blockquote { margin: .2em 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--akcent); color: var(--zag); }
.c-on blockquote p { margin: 0; }
.c-on ul, .c-on ol { margin: 0 0 .8em; padding-left: 1.2em; font: 400 16.5px/1.55 var(--serif); }
.c-on a, .r-otvet a { color: var(--akcent-t); text-decoration: underline; text-underline-offset: 3px; }
.c-on a.c-ssylka { color: var(--zag); text-decoration: none; }
.dumaet { display: flex; align-items: center; gap: 10px; font: 400 15px/1.4 var(--sans) !important; color: var(--tekst-2) !important; }
.tochki { display: inline-flex; gap: 4px; }
.tochki b { width: 7px; height: 7px; border-radius: 50%; background: var(--akcent); animation: tochka 1.1s ease-in-out infinite; }
.tochki b:nth-child(2) { animation-delay: .18s; }
.tochki b:nth-child(3) { animation-delay: .36s; }
@keyframes tochka { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.c-ost { margin: 6px 16px 0; font: 400 12.5px/1.35 var(--sans); color: var(--tekst-2); }
.c-ost .ost-chislo { display: block; margin-top: 2px; color: var(--zag); }
.c-ost:empty { display: none; }
.r-otvet .c-deystv, .r-razdel .c-deystv { margin: 4px 0 0 -8px; }
.r-chitat a[target="_blank"] { min-height: 52px; }

/* установка на экран «Домой» — в шторке «Облик и тема» */
.sh-ustanovka { display: grid; gap: 10px; justify-items: start; }
.sh-ustanovka p { margin: 0; font: 400 14px/1.45 var(--sans); color: var(--tekst-2); }
.sh-ustanovka .zn { width: 20px; height: 20px; vertical-align: -4px; }
.vybor input:disabled + span, .pilyulya[aria-disabled="true"] { opacity: .6; }
.c-ssylka--bez { grid-template-columns: 1fr 20px; }
