/* nōmo — shared styles for blog articles & ЖК pages. Loads after tokens.css. */
@font-face{font-family:'Jost';font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/fonts/jost-nomo.woff2') format('woff2');}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* topbar */
.a-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px 6%; background: rgba(238,232,220,0.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.a-top .wmark { display: inline-block; height: 20px; aspect-ratio: 733 / 229; background-color: currentColor; color: var(--ink); -webkit-mask: url('/assets/brand/nomo-wordmark.svg') left center / contain no-repeat; mask: url('/assets/brand/nomo-wordmark.svg') left center / contain no-repeat; font-size: 0; line-height: 0; text-decoration: none; vertical-align: middle; }
.a-top .wmark > *, .a-top .wmark .o::before { display: none !important; }
.a-top nav { display: flex; gap: 26px; }
.a-top nav a { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; opacity: 0.82; text-decoration: none; }
.a-top nav a:hover { opacity: 1; }
@media (max-width: 680px) { .a-top nav { display: none; } }

/* article shell */
.wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.crumbs { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-bottom: 28px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: var(--mute); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 18px; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 20px; line-height: 1.55; color: #3A352C; margin: 0 0 16px; }
.meta { font-size: 13px; color: var(--mute); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
article h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 52px 0 16px; }
article h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.015em; margin: 34px 0 12px; }
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 20px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 600; }
article a { color: var(--ink); border-bottom: 1px solid var(--brass); text-decoration: none; transition: background 200ms; }
article a:hover { background: rgba(183,154,107,0.12); }

/* fact table */
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15.5px; }
.facts td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.facts td:first-child { color: var(--mute); width: 42%; padding-right: 20px; }
.facts td:last-child { font-weight: 500; }

/* callout / CTA block */
.cta-box { margin: 44px 0; padding: 32px 30px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.cta-box h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 10px; color: var(--paper); }
.cta-box p { color: rgba(238,232,220,0.78); margin: 0 0 22px; font-size: 16px; }
.cta-box .row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 500; font-size: 15px; text-decoration: none; transition: opacity 200ms, transform 200ms; }
.btn--primary { background: var(--paper); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(238,232,220,0.4); color: var(--paper); }
.btn:hover { transform: translateY(-1px); }
.btn--primary:hover { background: var(--brass); }

/* FAQ */
.faq { margin: 44px 0 0; }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { font-family: var(--font-display); font-weight: 500; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 2px; color: #3A352C; }

/* related / index cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card { display: block; padding: 26px 24px; border: 1px solid var(--rule); text-decoration: none; transition: border-color 240ms, transform 320ms; }
.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -0.015em; margin: 10px 0 8px; line-height: 1.2; }
.card p { font-size: 14.5px; color: var(--mute); margin: 0; line-height: 1.5; }

/* footer */
.a-foot { background: var(--ink); color: var(--warm); padding: 40px 6%; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.a-foot a { color: var(--paper); text-decoration: none; }

/* ───── Motion Phase 1 + a11y (audit #8) ───── */
:root { --radius-media: 24px; }
.wrap img, article img, article picture { border-radius: var(--radius-media); }
@media (max-width: 680px) { .wrap img, article img { border-radius: 16px; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cta-box :focus-visible, .a-foot :focus-visible { outline-color: var(--paper); }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* хореография именованных групп — морф hero ЖК → карточка и обратно */
  ::view-transition-group(*) { animation-duration: .62s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  ::view-transition-group(vt-img) { animation-duration: .66s; }

  /* НАПРАВЛЕНИЕ: вперёд (вглубь) — новое въезжает справа, старое уходит влево с параллаксом */
  ::view-transition-old(root) { animation: nomoOldFwd .58s cubic-bezier(.16,1,.3,1) both; }
  ::view-transition-new(root) { animation: nomoNewFwd .58s cubic-bezier(.16,1,.3,1) both; }
  /* назад — зеркально */
  html.vt-back::view-transition-old(root) { animation: nomoOldBack .56s cubic-bezier(.16,1,.3,1) both; }
  html.vt-back::view-transition-new(root) { animation: nomoNewBack .56s cubic-bezier(.16,1,.3,1) both; }
  /* морф named-элемента — корень мягко кросс-фейдит, не уезжает */
  html.vt-morph::view-transition-old(root) { animation: nomoFadeOut .5s ease both; }
  html.vt-morph::view-transition-new(root) { animation: nomoFadeIn .58s ease both; }

  /* БЛОГ — журнальное вертикальное перелистывание: уходящий разворот уплывает вверх,
     входящий поднимается снизу из лёгкого blur в резкость */
  html.vt-journal::view-transition-old(root) { animation: nomoJournalOut .6s cubic-bezier(.5,0,.2,1) both; }
  html.vt-journal::view-transition-new(root) { animation: nomoJournalIn .64s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes nomoOldFwd  { to { transform: translateX(-6%); opacity: .6; filter: brightness(.85); } }
@keyframes nomoNewFwd  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes nomoOldBack { to { transform: translateX(6%); opacity: .6; filter: brightness(.85); } }
@keyframes nomoNewBack { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes nomoFadeOut { to { opacity: 0; } }
@keyframes nomoFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nomoJournalOut { to { transform: translateY(-9%) scale(.985); opacity: 0; } }
@keyframes nomoJournalIn  { from { transform: translateY(12%); opacity: 0; filter: blur(6px); } to { transform: translateY(0); opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ─── Микро-взаимодействия (сдержанно, премиально) ─── */
@media (prefers-reduced-motion: no-preference) {
  /* hairline-подчёркивание ссылок: растёт из левого края */
  article a, .crumbs a, .a-top nav a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size .42s cubic-bezier(.16,1,.3,1);
  }
  article a:hover, .crumbs a:hover, .a-top nav a:hover { background-size: 100% 1px; }
  /* карточки разделов: лёгкий подъём + тень */
  .card { transition: border-color .24s var(--ease), transform .36s cubic-bezier(.16,1,.3,1), box-shadow .36s var(--ease); }
  .card:hover { box-shadow: 0 18px 40px -28px rgba(20,16,8,.55); }
  /* кнопки — мягкий доезд */
  .btn { transition: opacity .2s, transform .32s cubic-bezier(.16,1,.3,1), background .2s; }
}

/* skip-link (audit #15) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; text-decoration: none; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
