/* bymdp.dev — общие стили главной и страниц проектов.
   Без сборки и внешних запросов: шрифты лежат рядом (assets/fonts, лицензия OFL). */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3f0e8; --raised: #faf8f3; --sunk: #eae6da;
  --ink: #1b1a17; --ink-2: #4b473f; --muted: #6e695e; --rule: #d6d0c1;
  --accent: #bb3a22; --accent-ink: #fffaf3; --ok: #2f7a4d;
  --serif: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1160px; --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
}
/* Японская версия: своих шрифтов для неё нет — латиница и цифры берутся из шрифтов сайта, иероглифы и кана из системных. */
:root:lang(ja) {
  --serif: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --sans: "Golos Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", Meiryo, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311; --raised: #1c1b18; --sunk: #0f0e0d;
    --ink: #ece8de; --ink-2: #c5c0b3; --muted: #958f82; --rule: #35322c;
    --accent: #e4694e; --accent-ink: #190b07; --ok: #63c08a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  transition: text-decoration-color .15s, color .15s; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.arrow { display: inline-block; width: 1.05em; height: .7em; margin-left: .45em; vertical-align: baseline;
  transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow.back { margin: 0 .45em 0 0; transform: scaleX(-1); }

/* ───── шапка ───── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 500 14px/1 var(--mono); letter-spacing: .02em; }
.seal { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; flex: none;
  background: var(--accent); color: var(--accent-ink);
  font: 700 10.5px/1 var(--mono); letter-spacing: .02em; }
.top nav { display: flex; gap: clamp(16px, 3vw, 32px); margin-left: auto; }
.lang { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; }
.lang a { padding: 6px 10px; border-radius: 999px; line-height: 1; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.lang a[lang="ja"] { letter-spacing: 0; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a:hover .arrow.back { transform: scaleX(-1) translateX(3px); }

/* ───── главная: вступление ───── */
.hero { padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 5.4vw, 68px); }
.hero h1 { font: 400 clamp(38px, 5.5vw, 74px)/1.04 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 62ch; margin-top: clamp(20px, 2.6vw, 32px); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--ink); }
.section-head h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ───── плашки проектов ───── */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 10px 0 clamp(64px, 9vw, 120px); }
.tile { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: clamp(22px, 2.6vw, 32px);
  background: var(--raised); border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; overflow: hidden;
  transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-meta .num { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.status.live { color: var(--ok); }
.status.live::before { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.tile h3 { margin-top: auto; padding-top: 40px; font: 400 clamp(26px, 2.6vw, 34px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.tile:not(.lead-tile) h3 { padding-top: 112px; }
.tile p { max-width: 44ch; margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tile .glyph { position: absolute; right: clamp(20px, 2.6vw, 32px); top: 64px; width: 84px; height: 84px; color: var(--muted); opacity: .8; }
.glyph * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glyph .fill, .glyph .fill * { fill: currentColor; stroke: none; }
.glyph .hot, .glyph .hot * { stroke: var(--accent); }
.glyph .hot.fill, .glyph .hot.fill * { fill: var(--accent); stroke: none; }

.tile.soon { background: transparent; border-style: dashed; }
.tile.soon h3 { color: var(--ink-2); }
.tile.soon p { color: var(--muted); }

a.tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .35); }
a.tile:hover .arrow { transform: translateX(5px); }
.tile .more { margin-top: 26px; font: 500 14px/1 var(--sans); color: var(--ink); }

/* первая плашка — во всю ширину, с рисунком */
.tile.lead-tile { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px);
  min-height: 440px; padding: 0; }
.lead-tile .text { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); padding-right: 0; }
.lead-tile h3 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.022em; }
.lead-tile p { font-size: 17px; }
.lead-tile .art { position: relative; margin: clamp(24px, 3vw, 40px); margin-left: 0; min-height: 260px; }
.lead-tile .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm rect { fill: var(--sunk); stroke: var(--raised); stroke-width: 3; transition: fill .3s; }
.tm .a { fill: var(--accent); }
.tm .b { fill: var(--ink); }
.tm .c { fill: color-mix(in srgb, var(--ink) 55%, var(--raised)); }
.tm .d { fill: color-mix(in srgb, var(--ink) 26%, var(--raised)); }
.tm .e { fill: color-mix(in srgb, var(--ink) 12%, var(--raised)); }
.tm text { font: 500 11px var(--mono); letter-spacing: .04em; fill: var(--accent-ink); }
.tm text.on-ink { fill: var(--paper); }

/* ───── как устроена площадка ───── */
.platform { padding-bottom: clamp(64px, 9vw, 120px); }
.platform .intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 48px) 0; }
.platform h3.big { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.platform .intro p { color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts li { padding: 22px 22px 6px 0; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.facts h4 { margin: 10px 0 8px; font: 600 16px/1.3 var(--sans); }
.facts p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ───── подвал ───── */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  padding: 26px 0 44px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.foot .brand { color: var(--ink); }
.foot p { max-width: 62ch; }

/* ───── страница проекта ───── */
.p-hero { padding: clamp(32px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.p-hero .kicker { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.p-hero .kicker .num { color: var(--ink); }
.p-hero h1 { max-width: 18ch; margin-top: 22px; font: 400 clamp(42px, 7.4vw, 96px)/1 var(--serif); letter-spacing: -.028em; text-wrap: balance; }
.p-hero .lead { max-width: 54ch; margin-top: clamp(22px, 3vw, 34px); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(28px, 3.6vw, 44px); }
.btn { display: inline-flex; align-items: center; padding: 17px 26px 18px; border-radius: 999px; text-decoration: none;
  background: var(--ink); color: var(--paper); font: 600 16px/1 var(--sans); border: 1px solid var(--ink);
  transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.cta-note { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.ghost { font-weight: 500; font-size: 15px; }

.shot { margin: 0 0 clamp(48px, 7vw, 96px); }
.shot .frame { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -48px rgb(0 0 0 / .45); }
.shot .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--rule); }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.shot .bar span { margin-left: 12px; font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .01em; }
.shot img { width: 100%; height: auto; }
.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); padding-top: 22px; }
.pages img { width: 100%; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 30px 60px -40px rgb(0 0 0 / .5); }
.pages img:nth-child(2) { transform: translateY(-22px); }
.shot.inset { margin: clamp(28px, 4vw, 44px) 0 0; }
.shot.inset .frame { box-shadow: 0 30px 60px -44px rgb(0 0 0 / .45); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.duo .shot.inset { margin-top: 0; }
.shot figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(56px, 8vw, 104px); }
.figures li { padding: 22px 20px 24px 0; }
.figures li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.figures b { display: block; font: 400 clamp(32px, 4vw, 52px)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.figures span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 24ch; }

.block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 104px); border-top: 1px solid var(--ink); }
.block > header h2 { margin-top: 14px; font: 400 clamp(28px, 3.2vw, 42px)/1.1 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.block > header p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 32ch; text-wrap: pretty; }
.block.wide { grid-template-columns: minmax(0, 1fr); }
.block.wide > header { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(20px, 4vw, 56px); align-items: end; margin-bottom: 20px; }
.block.wide > header .mono { grid-column: 1 / -1; }
.block.wide > header p { max-width: 44ch; font-size: 17px; color: var(--ink-2); }
.prose p { max-width: 62ch; font-size: 18px; line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 600; color: var(--ink); }

.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.sheets li { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.sheets li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.sheets h3 { display: flex; align-items: baseline; gap: 12px; font: 600 18px/1.3 var(--sans); }
.sheets h3 span { font: 500 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.sheets p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 56px); margin-top: 34px; }
.sources h3 { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.sources li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.sources li small { display: block; font-size: 13.5px; color: var(--muted); }

.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; margin-bottom: 40px; }
.pipe li { position: relative; padding: 26px 18px 0 0; counter-increment: step; }
.pipe li::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--rule); }
.pipe li::after { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink); }
.pipe li.gate::after { background: var(--accent); border-color: var(--accent); }
.pipe h3 { font: 600 15.5px/1.3 var(--sans); }
.pipe h3::before { content: "0" counter(step); display: block; margin-bottom: 6px; font: 500 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.pipe p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

.pipe.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pipe li.human::after { background: var(--ink); }
.pipe p.who { margin-top: 5px; font-size: 11px; color: var(--muted); }
.pipe li.gate p.who { color: var(--accent); }
.pipe li.human p.who { color: var(--ink); }
.notes { border-top: 1px solid var(--rule); }
.notes > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 8px 28px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.notes dt { font: 600 16px/1.4 var(--sans); }
.notes dd { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }

.block > header .cta-row { margin-top: 26px; }
.gets { max-width: 62ch; margin: 22px 0 clamp(28px, 4vw, 40px); border-top: 1px solid var(--rule); }
.gets li { position: relative; padding: 11px 0 12px 26px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; }
.gets li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.msg { max-width: 560px; }
.msg-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--raised);
  border: 1px solid var(--rule); border-bottom: 0; border-radius: 14px 14px 0 0; }
.msg-head img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.msg-head b { display: block; font: 600 15px/1.3 var(--sans); }
.msg-head .mono { display: block; margin-top: 3px; font-size: 11px; }
.msg-body { padding: 18px 20px 20px; background: var(--raised); border: 1px solid var(--rule); border-radius: 0 0 14px 14px;
  font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.msg-body p + p, .msg-body ul + p, .msg-body p + ul { margin-top: .7em; }
.msg-body strong { font-weight: 600; color: var(--ink); }
.msg-body li { position: relative; padding-left: 1.1em; }
.msg-body li + li { margin-top: .45em; }
.msg-body li::before { content: "•"; position: absolute; left: 0; color: var(--muted); }
.msg figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px;
  margin-bottom: clamp(56px, 8vw, 104px); padding: clamp(28px, 4.4vw, 56px); background: var(--raised); border: 1px solid var(--rule); border-radius: 14px; }
.closing h2 { max-width: 22ch; font: 400 clamp(28px, 3.6vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.closing .cta-row { margin-top: 0; }

/* ───── 404 ───── */
.lost { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.lost h1 { margin-top: 18px; font: 400 clamp(40px, 6vw, 72px)/1.05 var(--serif); letter-spacing: -.02em; }
.lost p { margin-top: 20px; color: var(--ink-2); }

/* ───── японская версия: строка, переносы, размеры заголовков ───── */
:lang(ja) body { font-size: 16px; line-height: 1.8; line-break: strict; }
:lang(ja) :is(h1, h2, h3, h4, dt, .btn, .more) { letter-spacing: 0; word-break: auto-phrase; }
:lang(ja) .hero h1 { font-size: clamp(32px, 4.7vw, 62px); line-height: 1.22; }
:lang(ja) .p-hero h1 { max-width: none; font-size: clamp(34px, 5.4vw, 70px); line-height: 1.18; }
:lang(ja) .tile h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
:lang(ja) .lead-tile h3 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.2; }
:lang(ja) :is(.platform h3.big, .block > header h2, .closing h2) { font-size: clamp(24px, 2.7vw, 36px); line-height: 1.35; }
:lang(ja) .closing h2 { max-width: 16em; }
:lang(ja) :is(.hero .lead, .p-hero .lead, .prose p) { line-height: 1.85; }
:lang(ja) :is(.tile p, .facts p, .sheets p, .pipe p, .notes dd, .figures span, .msg-body, .gets li) { line-height: 1.75; }
:lang(ja) .mono { letter-spacing: .04em; }

/* ───── узкие экраны ───── */
@media (max-width: 900px) {
  .tile.lead-tile, .platform .intro, .block, .block.wide > header { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .lead-tile .text { padding-right: clamp(24px, 3vw, 40px); padding-bottom: 0; }
  .lead-tile .art { margin-left: clamp(24px, 3vw, 40px); margin-top: 0; aspect-ratio: 16 / 10; min-height: 0; }
  .lead-tile h3 { padding-top: 28px; }
  .facts, .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(odd), .figures li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3), .figures li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pipe, .pipe.six { grid-template-columns: minmax(0, 1fr); }
  .pipe li { padding: 0 0 22px 30px; }
  .pipe li::before { left: 5px; right: auto; top: 6px; bottom: -6px; width: 1px; height: auto; }
  .pipe li:last-child::before { display: none; }
  .pipe li::after { top: 4px; }
  .block > header p { max-width: 56ch; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pages { grid-template-columns: repeat(3, 74%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .pages img { scroll-snap-align: start; }
  .pages img:nth-child(2) { transform: none; }
  .tiles, .sheets, .sources { grid-template-columns: minmax(0, 1fr); }
  .sheets li:nth-child(2) { border-top: 1px solid var(--rule); padding-top: 20px; }
  .tile { min-height: 240px; }
  .tile .glyph { width: 64px; height: 64px; top: 58px; }
  .tile:not(.lead-tile) h3 { padding-top: 84px; }
  .notes > div { grid-template-columns: minmax(0, 1fr); }
  .top { padding: 20px 0; }
  .top { gap: 14px; }
  .top .brand { gap: 0; font-size: 0; }
  .lang a { padding: 6px 8px; }
  .btn { width: 100%; justify-content: center; }
  .cta-note { max-width: none; }
  .prose p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .top nav, .lang, .cta-row, .closing { display: none; }
  body { background: #fff; }
}
