/* journal.css — журнал ins.is поверх site.css: токены и шрифты лендинга, новых цветов нет. Макет — mocups/blog.html. */
.journal { background: var(--white); }
.journal .sources { padding: 0; }
.journal a { text-decoration: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.top__nav a.is-here { color: #fff; }
.cover { display: block; width: 100%; height: auto; object-fit: cover; background: var(--graphite); }

/* ── Главная журнала ── */
.jhero { background: var(--graphite) var(--dots-dark); color: #F1F1F1; padding: clamp(28px, 3vw, 44px) 0 clamp(24px, 2.6vw, 36px); }
.jhero .mono { color: var(--red-hi); margin-bottom: 10px; }
.jhero h1 { font-size: clamp(38px, 5vw, 80px); line-height: 1; }
.jhero__sub { margin-top: 12px; }
.jhero__sub p { text-wrap: pretty; max-width: 720px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; color: var(--on-dark); }

.jlist { padding-bottom: clamp(56px, 7vw, 104px); }
.card[hidden] { display: none; }
.jchips { display: block; position: sticky; top: var(--top-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--g20); }
.jchips .wrap { display: flex; width: 100%; justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.jchips button { flex: none; display: flex; align-items: baseline; gap: 6px; min-height: 56px; padding: 18px 14px 0; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 15px; font-weight: 500; color: var(--g60); }
.jchips button small { font: 500 12px var(--mono); color: var(--g40); }
.jchips button:hover { color: var(--ink); }
.jchips button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }

.vs { background: var(--ink); color: #F1F1F1; padding: clamp(56px, 7vw, 104px) 0; }
.vs .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.vs h2 { font-size: clamp(34px, 4.4vw, 72px); }
.vs__lead { margin-top: 20px; max-width: 460px; color: var(--on-dark); font-size: 18px; line-height: 1.45; }
.vs ul { border-top: 1px solid var(--g60); }
.vs li { border-bottom: 1px solid var(--g60); }
.vs a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; min-height: 44px; padding: 16px 0; color: inherit; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 30px); line-height: 1.12; letter-spacing: -.03em; }
.vs a em { font: 500 13px var(--mono); font-style: normal; letter-spacing: 0; color: var(--g40); white-space: nowrap; }
.vs a:hover span, .ask a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

.ask { padding: clamp(56px, 7vw, 104px) 0; }
.ask .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.ask h2 { font-size: clamp(34px, 4.4vw, 72px); }
.ask ol { border-top: 1px solid var(--g20); }
.ask li { border-bottom: 1px solid var(--g20); }
.ask a { display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; color: inherit; font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.3; }
.ask a b { font: 500 13px/2 var(--mono); color: var(--g40); }
.prose .h3 { scroll-margin-top: calc(var(--top-h) + 24px); }
.card { display: block; color: inherit; }
.card.lead-story { display: grid; grid-template-columns: 7fr 5fr; align-items: stretch; margin-top: clamp(32px, 4vw, 64px); }
.lead-story .cover { height: 100%; min-height: 340px; }
.lead-story__body { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(24px, 3vw, 48px); background: var(--g05); }
.lead-story h2 { margin-top: 16px; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.06; }
.lead-story p { margin-top: 18px; font-size: 18px; line-height: 1.45; color: var(--g60); }
.lead-story:hover h2, .card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 13px/1.4 var(--mono); color: var(--g40); }
.lead-story .meta { margin-top: 0; font-size: 13px; color: var(--g40); }
.meta b { font-weight: 500; color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.card .cover { aspect-ratio: 16 / 9; }
.card .meta { margin-top: 18px; }
.card h3 { text-wrap: balance; margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.14; letter-spacing: -.03em; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--g60); }

/* ── Статья ── */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.ahead { padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 3vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 13px var(--mono); color: var(--g40); }
.crumbs a { color: var(--red); }
.ahead h1 { max-width: 22ch; margin-top: 20px; font-size: clamp(36px, 5.2vw, 88px); line-height: 1.02; }
.dek { text-wrap: pretty; max-width: 780px; margin-top: 24px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.38; color: var(--g60); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; line-height: 1.35; }
.byline__pic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--graphite); color: #fff; font: 500 14px var(--mono); }
.byline img.byline__pic { object-fit: cover; }
.byline__role { display: block; color: var(--g40); }
.acover .cover { aspect-ratio: 21 / 9; }

.agrid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 680px) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
.toc { position: sticky; top: calc(var(--top-h) + 32px); align-self: start; font-size: 14px; line-height: 1.3; }
.toc p { margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g40); }
.toc a { position: relative; display: block; padding: 7px 0 7px 16px; color: var(--g60); }
.toc a:hover { color: var(--ink); }
.toc a.is-here { color: var(--ink); font-weight: 600; }
.toc a.is-here::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: var(--red); }

.prose { min-width: 0; font-size: 19px; line-height: 1.62; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.4em; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -.035em; scroll-margin-top: calc(var(--top-h) + 24px); }
.prose h2 + * { margin-top: .8em; }
.prose p a, .prose li a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .16em; }
.short { padding: 24px 28px 26px; background: var(--graphite); color: #F1F1F1; font-size: 18px; line-height: 1.5; }
.short .mono { margin-bottom: 12px; color: var(--red-hi); }
.short li { position: relative; padding-left: 18px; }
.short li + li { margin-top: 10px; }
.short li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--red-hi); }

.figs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--g20); }
.figs dl > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--g20); }
.figs dl > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--g20); }
.figs dl > div:nth-child(even) { padding-left: 24px; }
.figs dt { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.figs dd { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--g60); }
.figs__note { margin-top: 10px; font: 500 12px var(--mono); color: var(--g40); }

.flow { border: 1px solid var(--g20); }
.flow__steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.flow__steps button { min-height: 64px; padding: 12px 10px; border: 0; border-right: 1px solid var(--g20); background: var(--g05); text-align: left; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--g60); }
.flow__steps button:last-child { border-right: 0; }
.flow__steps button small { display: block; margin-bottom: 4px; font: 500 12px var(--mono); color: var(--g40); }
.flow__steps button[aria-selected="true"] { background: var(--graphite); color: #fff; }
.flow__panel { padding: 22px 24px 24px; font-size: 17px; line-height: 1.5; }
.flow__panel h3 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.flow__panel p { margin-top: 8px; color: var(--g60); }

.pull { margin: 2em 0; padding-left: 24px; border-left: 4px solid var(--red); }
.pull p { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.pull cite { display: block; margin-top: 14px; font: 500 13px var(--mono); font-style: normal; color: var(--g40); }
.fig { margin: 2em 0; }
.fig img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--g40); }
/* Снимок экрана: тёмная рамка окна со строкой адреса; на широком экране выходит в правое поле статьи. */
.shot { margin: 2.2em 0; }
.shot__frame { overflow: hidden; border-radius: 10px; background: var(--ink); box-shadow: 0 0 0 1px var(--g20), 0 18px 40px -24px rgba(14, 14, 14, .45); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--graphite); font-size: 12px; color: #9A9A9A; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--g60); }
.shot__bar span { margin-left: 10px; }
.shot a { display: block; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--g40); }
.shot figcaption a { display: inline; cursor: pointer; color: inherit; text-decoration: underline; }
.shot--phone { max-width: 380px; margin-left: auto; margin-right: auto; }
.shot--phone .shot__frame { border-radius: 16px; }
@media (min-width: 1280px) { .shot:not(.shot--phone) { margin-right: -200px; } }

.prose .h3 { margin-top: 1.8em; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.prose .h3 + p { margin-top: .5em; }
.tbl { margin: 1.6em 0; }
.tbl__scroll { overflow-x: auto; border: 1px solid var(--g20); }
.tbl table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.tbl caption { caption-side: top; padding: 0 0 10px; text-align: left; font: 500 12px var(--mono); color: var(--g40); }
.tbl th, .tbl td { padding: 12px; border-bottom: 1px solid var(--g20); text-align: left; vertical-align: top; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--g05); font-size: 13px; font-weight: 600; }
.tbl tbody th { width: 30%; font-weight: 600; }
.tbl td:nth-child(2) { width: 18%; color: var(--g60); }
.steps { counter-reset: step; }
.steps li { position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--g20); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--g20); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 500 14px var(--mono); color: var(--red); }
.steps h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.steps p { margin-top: 6px; font-size: 17px; line-height: 1.55; color: var(--g60); }

.faq { border-top: 1px solid var(--g20); }
.faq details { border-bottom: 1px solid var(--g20); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 18px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 500 20px/1.2 var(--mono); color: var(--red); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 18px; font-size: 17px; color: var(--g60); }
.sources { margin-top: 3em; padding-top: 20px; border-top: 1px solid var(--g20); font-size: 15px; line-height: 1.45; color: var(--g60); }
.prose .sources h2 { margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--g40); }
.sources ol { list-style: decimal; padding-left: 20px; }
.sources li + li { margin-top: 6px; }
.sources a { color: var(--g60); text-decoration: underline; text-decoration-color: var(--g20); text-underline-offset: .16em; }

/* ── Читайте также ── */
.more { padding: clamp(56px, 7vw, 104px) 0; background: var(--g05); border-top: 1px solid var(--g20); }
.more h2 { font-size: clamp(30px, 3.4vw, 52px); }
.more .cards { margin-top: clamp(28px, 3.4vw, 48px); }

/* ── Заявка в конце ── */
.endcta { background: var(--graphite) var(--dots-dark); color: #F1F1F1; padding: clamp(56px, 7vw, 104px) 0; }
.endcta .wrap { display: grid; grid-template-columns: 5fr 6fr; align-items: end; gap: 32px clamp(32px, 5vw, 80px); }
.endcta h2 { font-size: clamp(34px, 4.4vw, 72px); }
.endcta p { margin-top: 14px; max-width: 520px; color: var(--on-dark); }

/* ── Подвал журнала ── */
.jfoot { background: var(--ink); color: #C4C4C4; padding: 36px 0 28px; }
.jfoot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.jfoot__home { display: flex; align-items: center; min-height: 44px; }
.jfoot__logo { display: block; width: 84px; height: auto; color: #fff; }
.jfoot__nav { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2vw, 32px); }
.jfoot__nav a { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: #E0E0E0; }
.jfoot__nav a:hover { color: #fff; text-decoration: underline; }
.jfoot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--g80); color: #9A9A9A; }

@media (max-width: 1100px) {
  .agrid { grid-template-columns: minmax(0, 680px); justify-content: center; }
  .toc { display: none; }
  .card.lead-story, .endcta .wrap, .vs .wrap, .ask .wrap { grid-template-columns: 1fr; }
  .lead-story .cover { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more .card:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .jhero h1 { font-size: 10.6vw; line-height: 1.04; }
  .cards { grid-template-columns: 1fr; }
  .more .card:nth-child(3) { display: block; }
  .acover .cover { aspect-ratio: 16 / 10; }
  .ahead h1 { font-size: 9.6vw; line-height: 1.06; }
  .prose { font-size: 18px; }
  .short { padding: 20px; font-size: 17px; }
  /* Таблица на телефоне — стопка карточек: строка — карточка, её первая ячейка — заголовок, у остальных подпись столбца. */
  .tbl__scroll { overflow: visible; border: 0; }
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; min-width: 0; width: auto; }
  .tbl caption { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tbody tr { padding: 14px 16px 16px; border: 1px solid var(--g20); }
  .tbl tbody tr + tr { margin-top: 8px; }
  .tbl tbody th, .tbl tbody td, .tbl tbody tr:last-child > * { padding: 0; border: 0; }
  .tbl tbody th { width: auto; font-size: 17px; line-height: 1.3; }
  .tbl tbody td, .tbl td:nth-child(2) { width: auto; margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink); }
  .tbl td::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--g40); }
  .tbl td[data-l=""]::before { content: none; }
  .tbl--compact tbody td, .tbl--compact td:nth-child(2) { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--g05); text-align: right; }
  .tbl--compact td::before { margin: 0; text-align: left; }
  .figs dl { grid-template-columns: 1fr; }
  .figs dl > div:nth-child(n) { padding: 16px 0; border-right: 0; }
  .flow__steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scrollbar-width: none; }
  .steps li { padding-left: 40px; }
  .vs a { gap: 12px; }
  .vs a em { display: none; }
  .jfoot__nav { gap: 0 20px; }
  .jfoot__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
