/* Журнал DedyaevAI (3.9.0, 03.11.2026): блок на главной и страницы /journal/.
   Страницы собирает scripts/journal-pages.py. Обложка и страницы номера –
   кремовые картинки из PDF, вокруг них рамок и карточек нет: номер и так
   выглядит отдельным предметом на тёмном сайте. vw – только через --z
   (увеличение на больших экранах, rd.css). */

.jr-cover { display: block; width: 100%; height: auto; aspect-ratio: 900 / 1263; border-radius: 6px; background: #efe6d8; }
.jr-meta { font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jr-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.jr-acts .btn { min-height: 50px; padding: 0 26px; font-size: 16.5px; }
.jr-link { font-size: 16.5px; font-weight: 300; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(159, 192, 255, .45); text-underline-offset: .28em; transition: text-decoration-color .2s; }
.jr-link:hover { text-decoration-color: currentColor; }
.jr-lead { max-width: 34em; margin-top: 18px; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: var(--soft); }
.jr-in { max-width: 36em; margin-top: 22px; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--soft); }
.jr-in b { font-weight: 400; color: var(--ink); }
.jr-h2 { font-size: clamp(26px, calc(2.4vw / var(--z, 1)), 36px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.jr-h2-tight { margin-top: 12px; }

/* главная (3.9.4, вариант A): сетка ленты блога – карточка (100% - 32px) / 3,
   зазор 16px; обложка в одну карточку, текст в две, от верха обложки до низа */
.jr-title-link { color: inherit; text-decoration: none; }
.jr-title-link:hover { color: #fff; }
.jh-head { align-items: flex-end; }
.jh-all { margin-bottom: 6px; font-size: 16px; white-space: nowrap; }
.jh-all-m { display: none; }
.jh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; align-items: stretch; }
.jh-cover { display: block; }
.jh-cover:hover .jr-cover, .jh-cover:focus-visible .jr-cover { outline: 2px solid rgba(159, 192, 255, .6); outline-offset: 4px; }
.jh-body { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.jh-title { margin-top: 12px; font-size: clamp(28px, calc(2.6vw / var(--z, 1)), 38px); font-weight: 400; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.jh-title a { color: var(--ink); text-decoration: none; }
.jh-title a:hover { color: #fff; }
.jh-intro { max-width: 34em; margin-top: 16px; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--soft); }
.jh-acts { margin-top: 0; }
.jh-list { max-width: 560px; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(127, 176, 255, .16); }
.jh-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(127, 176, 255, .16); }
.jh-list em { font: 300 18px/1 var(--f-num); font-style: normal; color: #7fa8ff; }
.jh-list span { font-size: 16.5px; line-height: 1.4; color: var(--ink); }

/* страницы журнала */
.jr .jr-top { padding-top: clamp(40px, calc(5vw / var(--z, 1)), 80px); padding-bottom: clamp(64px, calc(7vw / var(--z, 1)), 112px); }
.jr-crumbs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.jr-crumbs a { color: var(--muted); text-decoration: none; }
.jr-crumbs a:hover { color: var(--ink); }
.jr-h1 { margin-top: 18px; font-size: clamp(34px, calc(3.6vw / var(--z, 1)), 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.jr-latest { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(127, 176, 255, .16); }
.jr-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; margin-top: 72px; }
.jr-about p { margin-top: 18px; font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--soft); }
.jr-about p + p { margin-top: 14px; }
.jr-about a, .jr-method a { color: var(--ink); }
.jr-press { margin-top: 56px; font-size: 15.5px; font-weight: 300; color: var(--muted); }
.jr-press a { color: var(--soft); }

/* подписка */
.jr-subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: start; margin-top: 56px; padding-top: 48px; border-top: 1px solid rgba(127, 176, 255, .16); }
.jr-subscribe .jr-in { margin-top: 14px; }
.jr-subscribe > .jr-alt { align-self: center; font-size: 17px; }
.jr-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.jr-row { position: relative; display: flex; gap: 10px; }
.jr-email { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 18px; border: 1px solid rgba(127, 176, 255, .35); border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--ink); font: 400 17px var(--f-text); outline: none; transition: border-color .2s; }
.jr-email::placeholder { color: rgba(220, 230, 255, .45); }
.jr-email:focus { border-color: #9fc0ff; }
.jr-email[aria-invalid="true"] { border-color: #ff9ea4; }
.jr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jr-row .btn { flex: none; min-height: 52px; padding: 0 24px; font-size: 16.5px; }
.jr-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--soft); cursor: pointer; }
.jr-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #7fb0ff; }
.jr-check a { color: var(--ink-2); }
.jr-err { font-size: 14.5px; color: #ff9ea4; }
.jr-done { font-size: 17px; font-weight: 300; line-height: 1.55; color: var(--ink); }
.jr-alt { font-size: 15px; font-weight: 300; line-height: 1.55; color: var(--muted); }
.jr-alt a { color: var(--soft); }

/* все номера */
.jr-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin: 40px 0 0; padding: 0; list-style: none; }
.jr-shelf a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.jr-shelf a:hover .jr-cover, .jr-shelf a:focus-visible .jr-cover { outline: 2px solid rgba(159, 192, 255, .6); outline-offset: 4px; }
.jr-shelf b { font-size: 18px; font-weight: 400; color: var(--ink); }
.jr-shelf span { font-size: 15px; font-weight: 300; line-height: 1.45; color: var(--soft); }

/* номер */
.jr-issue { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 32px; }
.jr-issue-side { position: sticky; top: 110px; }
.jr-issue-main > .jr-h1 { margin-top: 10px; }
.jr-sub { margin-top: 14px; font-size: 22px; font-weight: 300; line-height: 1.35; color: var(--soft); }
.jr-size { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.jr-part { margin-top: 64px; }
.jr-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.jr-pages a { display: block; color: inherit; text-decoration: none; }
.jr-pages img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 730; border-radius: 4px; background: #efe6d8; transition: outline-color .2s; outline: 2px solid transparent; outline-offset: 3px; }
.jr-pages a:hover img, .jr-pages a:focus-visible img { outline-color: rgba(159, 192, 255, .6); }
.jr-pages span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* прогнозы */
.jr-score { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 28px; font-size: 17px; font-weight: 300; color: var(--soft); }
.jr-score b { margin-right: 8px; font: 400 28px/1 var(--f-num); color: var(--ink); }
.jr-res-wait { color: #ffd98f; }
.jr-res-yes { color: #8ff0bd; }
.jr-res-part { color: #cfe0ff; }
.jr-res-no { color: #ff9ea4; }
.jr-method { max-width: 44em; margin-top: 24px; font-size: 15.5px; font-weight: 300; line-height: 1.6; color: var(--muted); }

@media (max-width: 1000px) {
  .jr-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jr-issue { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .jr-latest, .jr-issue, .jr-about, .jr-subscribe { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .jr-latest > a { max-width: 240px; }
  .jh-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .jh-body { grid-column: auto; }
  .jh-cover { max-width: 220px; }
  .jh-title { font-size: 26px; }
  .jh-all { display: none; }
  .jh-all-m { display: inline; }
  .jr-section .jh-head { align-items: flex-start; }
  .jr-issue-side { position: static; max-width: 260px; }
  .jr-about { margin-top: 48px; }
  .jr-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .jr-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-sub { font-size: 19px; }
  .jr-row { flex-direction: column; }
  .jr-part { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-link, .jr-pages img { transition: none; }
}
.jr-tg { align-self: center; margin-top: 0; }

/* ссылки из писем (3.9.1) */
.jr-link-page { min-height: calc(46vh / var(--z, 1)); }
.jr-link-page .jr-lead a { color: var(--ink); }

/* Знак журнала (3.9.2, гайдлайн DedyaevAI): шапка – на /journal/ вместо
   текстового заголовка; на странице номера – только короткий знак DAI в конце (3.9.7).
   Охранное поле – высота буквы D: вокруг шапки отступы не меньше неё. */
.jr-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jr-mast-h1 { margin-top: 40px; }
.jr-mast { display: block; width: min(560px, 100%); height: auto; }
.jr-mast-h1 + .jr-lead { margin-top: 36px; }
@media (max-width: 760px) {
  .jr-mast-h1 { margin-top: 28px; }
  .jr-mast-h1 + .jr-lead { margin-top: 26px; }
}

/* hidden сильнее display у строк формы: после подписки поле и отметка прячутся (3.9.3) */
.jr-form [hidden], [data-jr-link] [hidden] { display: none !important; }

/* Адаптив журнала (3.9.5): планшет до 1000 px и телефон до 760 px.
   Компьютер (от 1001 px) не меняется. */
@media (max-width: 1000px) {
  /* форма подписки под текстом: в половине ширины поле и кнопка не помещались (768 px) */
  .jr-subscribe { grid-template-columns: minmax(0, 1fr); }
  .jr-subscribe .jr-form { max-width: 560px; }
  /* рядом с обложкой колонка узкая: превью страниц по две */
  .jr-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* обложка номера не занимает весь первый экран */
  .jr-issue-side { max-width: 220px; }
  /* цели для пальца не меньше ~40 px без изменения вида: поле нажатия шире текста */
  .jr-crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .jr-acts .jr-link { display: inline-block; padding: 11px 0; margin: -11px 0; }
  .jr-check { padding: 6px 0; }
  .jr-score { gap: 6px 28px; }
}

/* Низ /journal/ (3.9.6): как собирается номер, прогнозы, подписка, автор и СМИ.
   Две равные колонки во всех блоках – правые колонки стоят на одной линии. */
.jp-flow, .jp-forecast, .jr-subscribe.jp-sub, .jp-author { margin-top: clamp(64px, calc(7vw / var(--z, 1)), 104px); }
.jp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.jp-note { font-size: 15px; color: var(--muted); }
.jp-text { max-width: 36em; margin-top: 14px; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--soft); }
/* четыре шага: цифры уменьшаются – это и есть отбор */
.jp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(127, 176, 255, .22); }
.jp-steps li { padding-top: 24px; }
.jp-steps b { display: block; font: 300 clamp(40px, calc(3.6vw / var(--z, 1)), 56px)/1 var(--f-num); letter-spacing: -.02em; color: var(--ink); }
.jp-k { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #7fa8ff; }
.jp-steps p { margin-top: 14px; font-size: 15.5px; font-weight: 300; line-height: 1.55; color: var(--soft); }
.jp-steps a { color: var(--ink); }
/* прогнозы – единственная панель на странице */
.jp-forecast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding: clamp(28px, calc(3.4vw / var(--z, 1)), 52px); border: 1px solid rgba(127, 176, 255, .22); border-radius: 24px; background: linear-gradient(160deg, rgba(45, 99, 211, .16), rgba(255, 255, 255, .02) 60%); }
.jp-forecast .jr-score { margin-top: 24px; }
.jp-next { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(127, 176, 255, .22); }
.jp-next li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid rgba(127, 176, 255, .16); }
.jp-when { font-size: 13.5px; letter-spacing: .04em; color: #7fa8ff; }
.jp-next b { font-size: 18px; font-weight: 400; line-height: 1.35; color: var(--ink); }
.jp-conf { font-size: 14.5px; color: var(--muted); }
.jr-subscribe.jp-sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 0; border-top: 0; }
/* автор и СМИ */
.jp-author { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding-top: 48px; border-top: 1px solid rgba(127, 176, 255, .16); }
.jp-person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; }
.jp-photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.jp-name { margin-top: 8px; font-size: 26px; font-weight: 400; line-height: 1.15; color: var(--ink); }
.jp-person .jp-text { margin-top: 10px; font-size: 16px; }
.jp-contacts { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(127, 176, 255, .16); }
.jp-contacts li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(127, 176, 255, .16); }
.jp-contacts span { font-size: 14px; color: var(--muted); }
.jp-contacts a { justify-self: start; font-size: 18px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(159, 192, 255, .4); text-underline-offset: .25em; overflow-wrap: anywhere; }
.jp-cite { display: block; width: 100%; padding: 0; border: 0; background: none; font: 300 15px/1.6 var(--f-text); color: var(--soft); text-align: left; overflow-wrap: anywhere; cursor: copy; transition: color .2s; }
.jp-cite:hover { color: var(--ink); }
.jp-cite:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.jp-cite-hint { margin-top: 8px; font-size: 13.5px; color: #7fa8ff; }
@media (max-width: 1000px) {
  .jp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .jp-forecast, .jp-author, .jr-subscribe.jp-sub { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .jp-head { flex-direction: column; gap: 6px; }
  .jp-steps { gap: 24px 20px; }
  .jp-steps b { font-size: 38px; }
  .jp-steps p { font-size: 14.5px; }
  .jp-forecast { padding: 24px 18px; border-radius: 20px; }
  .jp-person { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .jp-photo { width: 72px; height: 72px; }
  .jp-contacts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .jp-contacts a { font-size: 16px; display: inline-block; padding: 6px 0; margin: -6px 0; }
}
@media (prefers-reduced-motion: reduce) { .jp-cite { transition: none; } }

/* Страница номера (3.9.7): «В номере» – сюжеты крупно с одной строкой-зацепкой,
   рубрики одними названиями; внизу запись по ГОСТ и короткая подписка рядом,
   в конце – знак DAI. */
.ji-label { margin-top: 28px; }
.jr-h2 + .ji-label { margin-top: 22px; }
.ji-stories, .ji-rubrics { margin: 12px 0 0; padding: 0; list-style: none; }
.ji-stories { border-top: 1px solid rgba(127, 176, 255, .16); }
.ji-stories a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid rgba(127, 176, 255, .16); color: inherit; text-decoration: none; }
.ji-stories em, .ji-rubrics em { font: 400 15px/1.5 var(--f-num); font-style: normal; color: #7fa8ff; }
.ji-stories em { padding-top: 3px; }
.ji-stories b { font-size: 19px; font-weight: 400; line-height: 1.35; color: var(--ink); }
.ji-stories span { grid-column: 2; font-size: 15.5px; font-weight: 300; line-height: 1.5; color: var(--muted); }
.ji-stories a:hover b, .ji-rubrics a:hover b, .ji-stories a:focus-visible b, .ji-rubrics a:focus-visible b { text-decoration: underline; text-decoration-color: rgba(159, 192, 255, .5); text-underline-offset: .25em; }
.ji-rubrics { columns: 2; column-gap: 40px; border-top: 1px solid rgba(127, 176, 255, .16); }
.ji-rubrics li { break-inside: avoid; }
.ji-rubrics a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 10px 0; color: inherit; text-decoration: none; }
.ji-rubrics b { font-size: 16.5px; font-weight: 400; line-height: 1.4; color: var(--soft); }
.ji-pages span { display: flex; gap: 10px; }
.ji-pages span em { font: 400 14px var(--f-num); font-style: normal; color: #7fa8ff; }
.ji-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding-top: 36px; border-top: 1px solid rgba(127, 176, 255, .16); }
.ji-cite { margin-top: 14px; }
.ji-foot .jr-form { margin-top: 14px; }
/* поле почты сжимается: иначе на 1280 кнопка «Подписаться» уходила за край (3.10.1).
   Только там, где поле и кнопка в строку: на телефоне они столбиком, и нулевая
   ширина схлопывала поле в квадратик (3.10.6). */
@media (min-width: 761px) {
  .ji-foot .jr-email { flex: 1 1 0; width: 0; min-width: 0; }
}
.ji-end { display: block; width: 58px; height: auto; margin-top: 72px; opacity: .9; }
@media (max-width: 1100px) {
  .ji-foot { grid-template-columns: minmax(0, 1fr); }
  .ji-foot .jr-form { max-width: 560px; }
}
@media (max-width: 1000px) {
  .ji-rubrics { columns: 1; }
}
@media (max-width: 760px) {
  .ji-stories a, .ji-rubrics a { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
  .ji-stories b { font-size: 17.5px; }
  .ji-stories span { font-size: 15px; }
  .ji-rubrics a { padding: 11px 0; }
  .ji-end { width: 52px; margin-top: 56px; }
}

/* Прогнозы журнала (3.10.0): группы по номеру проверки, голос, «Ваш прогноз».
   Вкладки и выбор срока – текст с чертой снизу, без плашек. */
.jf-lead { max-width: 30em; }
/* список прогнозов – колонкой для чтения: на широком экране голос не уезжает от текста (3.10.1) */
.jf-tabs, .jf-panel { max-width: 960px; }
.jf-status { margin-top: 14px; font-size: 16px; font-weight: 300; line-height: 1.55; color: var(--muted); }
.jf-status a { color: var(--ink-2); }
.jf-tabs { display: flex; gap: 32px; margin-top: 44px; border-bottom: 1px solid rgba(127, 176, 255, .16); }
.jf-tabs button { position: relative; padding: 0 0 14px; border: 0; background: none; font: 400 18px var(--f-text); color: var(--muted); cursor: pointer; }
.jf-tabs button:hover { color: var(--soft); }
.jf-tabs button[aria-selected="true"] { color: var(--ink); }
.jf-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #7fb0ff; }
.jf-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.jf-group { margin-top: 44px; }
.jf-ghead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.jf-ghead h2 { font-size: 22px; font-weight: 400; color: var(--ink); }
.jf-ghead p { font-size: 15px; color: var(--muted); }
.jf-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(127, 176, 255, .22); }
.jf-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px 32px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(127, 176, 255, .14); }
.jf-text b { display: block; font-size: 18px; font-weight: 400; line-height: 1.35; color: var(--ink); }
.jf-text span { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 300; color: var(--muted); }
.jf-vote { display: flex; justify-content: flex-end; gap: 8px; }
.jf-vote button { min-height: 40px; padding: 0 16px; border: 1px solid rgba(127, 176, 255, .3); border-radius: 999px; background: none; font: 400 15px var(--f-text); color: var(--soft); cursor: pointer; transition: border-color .2s, color .2s; }
.jf-vote button:hover { border-color: rgba(159, 192, 255, .7); color: var(--ink); }
.jf-vote button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.jf-vote button:disabled { opacity: .6; cursor: default; }
.jf-res, .jf-final { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; font-size: 15px; line-height: 1.45; color: var(--soft); }
.jf-res b { font-weight: 400; color: var(--ink); }
.jf-res small { display: block; font-size: 13.5px; color: var(--muted); }
.jf-row.is-voted .jf-vote { display: none; }
.jf-err { margin-top: 16px; font-size: 15px; color: #ff9ea4; }
.jf-panel > .jr-size { margin-top: 28px; }
.jf-own { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 44px; }
.jf-form { display: grid; gap: 22px; }
.jf-field { display: grid; gap: 8px; }
.jf-field > span, .jf-opts legend { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jf-field textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(127, 176, 255, .3); border-radius: 14px; background: rgba(1, 15, 35, .5); font: 300 16px/1.5 var(--f-text); color: var(--ink); resize: vertical; }
.jf-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.jf-field textarea[aria-invalid="true"] { border-color: #ff9ea4; }
.jf-field small { justify-self: end; font-size: 13px; color: var(--muted); }
.jf-field small b { font-weight: 400; }
.jf-opts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; border: 0; }
.jf-opts legend { width: 100%; margin-bottom: 6px; padding: 0; }
.jf-opts label { position: relative; cursor: pointer; }
.jf-opts input { position: absolute; opacity: 0; }
.jf-opts span { display: inline-block; padding: 8px 0; font-size: 16.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.jf-opts input:checked + span { color: var(--ink); border-bottom-color: #7fb0ff; }
.jf-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.jf-form .jr-acts { margin-top: 0; }
.jf-form .jf-err { margin-top: 0; }
.jf-form [hidden] { display: none !important; }
.jf-done { font-size: 16px; color: var(--soft); }
@media (max-width: 1000px) {
  .jf-own { grid-template-columns: minmax(0, 1fr); }
  .jf-form { max-width: 560px; }
}
@media (max-width: 760px) {
  .jf-tabs { gap: 24px; margin-top: 32px; }
  .jf-tabs button { padding: 8px 0 14px; font-size: 17px; }
  .jf-group { margin-top: 36px; }
  .jf-ghead { flex-direction: column; gap: 4px; }
  .jf-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .jf-text b { font-size: 17px; }
  /* кнопки голоса – по тексту, а не во всю ширину: 15 строк подряд не давят (3.10.1) */
  .jf-vote { justify-content: flex-start; }
  .jf-vote button { flex: none; min-height: 44px; padding: 0 18px; }
  .jf-status a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
  .jf-res, .jf-final { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .jf-field textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .jf-vote button { transition: none; } }

/* Телефон (3.10.6): поле почты во всю ширину; галочка согласия в цветах сайта –
   iPhone рисовал её чёрным квадратом. Компьютер не меняется. */
@media (max-width: 760px) {
  .jr-row .jr-email { width: 100%; flex: none; font-size: 16px; }
  .jr-check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid rgba(159, 192, 255, .55); border-radius: 6px; background: rgba(255, 255, 255, .04); }
  .jr-check input:checked { border-color: #7fb0ff; background: #7fb0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23071226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
  .jr-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}
