/*! AVE Design Studio — «Музей работ» (museum/). Опирается на blog.css (шапка, чипы, пагинация) и case.css (CTA). */

.mu-page { --mu-ink: #17181d; --mu-muted: #6f7380; --mu-line: #e3e5ea; --mu-soft: #f5f6f8; --mu-red: #c80000; --mu-bezel: #d8d3c4; --mu-top: 84px; }
.mu-main { overflow-x: clip; }
.mu-hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mu-btn--ghost { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.mu-btn--ghost:hover, .mu-btn--ghost:focus { border-color: #fff; color: #fff; }

/* ---------- вводный блок и легенда ---------- */
.mu-intro { padding: 38px 0 6px; }
.mu-intro__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 44px; align-items: start; }
.mu-intro__text p { margin: 0 0 12px; color: #3b3e47; font-size: 16px; line-height: 1.7; }
.mu-legend { margin: 0; padding: 18px 20px; border: 1px solid var(--mu-line); border-radius: 14px; background: var(--mu-soft); list-style: none; }
.mu-legend li { position: relative; margin: 0 0 10px; padding-left: 22px; color: #3b3e47; font-size: 14px; line-height: 1.5; }
.mu-legend li:last-child { margin-bottom: 0; }
.mu-legend li .mu-dot { position: absolute; left: 0; top: 6px; }
.mu-legend b { color: var(--mu-ink); }
.mu-dot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #9aa0aa; vertical-align: 0; }
.mu-dot--high { background: #1f9d55; }
.mu-dot--medium { background: #d9a400; }
.mu-dot--low { background: #9aa0aa; }

/* ---------- навигация по годам ---------- */
.mu-list { padding-top: 30px; }
.mu-years { position: sticky; top: var(--mu-top); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 16px -4px 8px; padding: 10px 4px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--mu-line); }
.mu-years__label { flex: none; color: var(--mu-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mu-years__list { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0; }
.mu-years__list::-webkit-scrollbar { display: none; }
.mu-yr { flex: none; position: relative; padding: 5px 8px; border: 1px solid var(--mu-line); border-radius: 999px; background: #fff; color: var(--mu-ink); font: 700 12px/1.2 'Open Sans', Arial, sans-serif; text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.mu-yr sup { margin-left: 3px; color: var(--mu-muted); font-size: 10px; font-weight: 700; }
.mu-yr:hover { border-color: rgba(200, 0, 0, .4); color: var(--mu-ink); text-decoration: none; }
.mu-yr.is-cur { border-color: var(--mu-ink); background: var(--mu-ink); color: #fff; }
.mu-yr.is-cur sup { color: rgba(255, 255, 255, .6); }

/* ---------- заголовки лет (таймлайн) ---------- */
.mu-main h2.mu-year { display: flex; align-items: baseline; gap: 16px; margin: 40px 0 18px; padding: 0 0 12px; border-bottom: 2px solid var(--mu-ink); color: var(--mu-ink); font: 800 34px/1 'Open Sans', Arial, sans-serif; letter-spacing: -.02em; text-transform: none; scroll-margin-top: 150px; }
.mu-year__n { font-variant-numeric: tabular-nums; }
.mu-year__c { color: var(--mu-muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }

/* ---------- карточки ---------- */
.mu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.mu-card { display: flex; min-width: 0; margin: 0; padding: 0; }
.mu-card::before { content: none !important; }
.mu-card__a { display: flex; flex: 1; flex-direction: column; min-width: 0; border: 1px solid var(--mu-line); border-radius: 14px; background: #fff; color: #3b3e47; text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mu-card__a:hover, .mu-card__a:focus { border-color: rgba(200, 0, 0, .35); box-shadow: 0 18px 44px rgba(23, 24, 29, .1); transform: translateY(-3px); color: #3b3e47; text-decoration: none; }
.mu-card__a:focus-visible { outline: 2px solid var(--mu-red); outline-offset: 3px; }
.mu-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e5db; border-bottom: 1px solid var(--mu-line); }
.mu-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.mu-card--print .mu-card__img img, .mu-card--photo .mu-card__img img, .mu-card--visual .mu-card__img img, .mu-card--mock .mu-card__img img { object-position: center; }
.mu-card__a:hover .mu-card__img img { transform: scale(1.03); }
.mu-badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 6px; background: #17181d; color: #fff; font: 700 12px/1.2 'Open Sans', Arial, sans-serif; font-style: normal; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mu-type { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--mu-ink); font: 700 11px/1.2 'Open Sans', Arial, sans-serif; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.mu-card__b { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.mu-card__t { display: block; margin-bottom: 6px; color: var(--mu-ink); font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.mu-card__x { display: -webkit-box; margin-bottom: 10px; color: #3b3e47; font-size: 13.5px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mu-card__f { display: flex; align-items: center; margin-top: auto; color: var(--mu-muted); font-size: 12px; font-weight: 600; line-height: 1.4; }

/* ---------- страница работы: «экран» ---------- */
.mu-stage-sec { padding: 42px 0 8px; background: linear-gradient(180deg, #ecebe6 0, #f6f5f1 100%); }
.mu-stage { max-width: 800px; margin: 0 auto; }
.mu-stage a { display: block; }
.mu-stage img { display: block; width: 100%; height: auto; }
.mu-crt { padding: 20px 20px 12px; border-radius: 22px 22px 16px 16px; background: linear-gradient(180deg, #e6e1d3 0, var(--mu-bezel) 55%, #cbc5b3 100%); box-shadow: 0 34px 60px -24px rgba(40, 36, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(0, 0, 0, .12); }
.mu-crt__screen { padding: 12px; border-radius: 14px; background: #0c0d10; box-shadow: inset 0 0 0 2px #2b2e35, inset 0 0 36px rgba(0, 0, 0, .8); }
.mu-crt__glass { position: relative; max-height: 560px; overflow: hidden; border-radius: 6px; background: #fff; }
.mu-crt__glass::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .045) 2px 3px), radial-gradient(120% 90% at 50% 40%, rgba(255, 255, 255, .06), rgba(0, 0, 0, .1) 100%); }
.mu-crt__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 8px; color: #8b8470; font: 700 11px/1 'Open Sans', Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.mu-crt__led { width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 8px #3ecf6e; }
.mu-crt__foot span:last-child { margin-left: auto; }
.mu-paper { padding: 22px; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -26px rgba(23, 24, 29, .45), 0 0 0 1px rgba(23, 24, 29, .06); }
.mu-paper img { max-height: 620px; width: auto; max-width: 100%; margin: 0 auto; }
.mu-photo { margin: 0 auto; padding: 14px 14px 12px; border-radius: 4px; background: #fff; box-shadow: 0 30px 60px -26px rgba(23, 24, 29, .5), 0 0 0 1px rgba(23, 24, 29, .06); }
.mu-photo img { max-height: 620px; width: auto; max-width: 100%; margin: 0 auto; }
.mu-photo figcaption { padding-top: 10px; color: #6f7380; font-size: 13px; text-align: center; }
.mu-yearbadge { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--mu-red); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- тело страницы работы ---------- */
.mu-body { padding: 54px 0 46px; }
.mu-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.mu-main h2.mu-h2 { margin: 28px 0 10px; padding: 0; color: var(--mu-ink); font: 800 22px/1.25 'Open Sans', Arial, sans-serif; letter-spacing: -.01em; text-transform: none; }
.mu-main h2.mu-h2:first-child { margin-top: 0; }
.mu-main h2.mu-h2 small { margin-left: 8px; color: var(--mu-muted); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.mu-body__text p { margin: 0 0 12px; color: #3b3e47; font-size: 16px; line-height: 1.7; }
.mu-list-ul { margin: 0 0 12px; padding: 0; list-style: none; }
.mu-list-ul li { position: relative; margin: 0 0 8px; padding-left: 22px; color: #3b3e47; font-size: 16px; line-height: 1.6; }
.mu-list-ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mu-red); }
.mu-facts { position: sticky; top: 110px; padding: 20px 22px; border: 1px solid var(--mu-line); border-radius: 14px; background: var(--mu-soft); }
.mu-facts dl { margin: 0; }
.mu-facts dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--mu-line); font-size: 14px; line-height: 1.45; }
.mu-facts dl div:last-child { border-bottom: 0; }
.mu-facts dt { flex: none; color: var(--mu-muted); font-weight: 600; }
.mu-facts dd { margin: 0; color: var(--mu-ink); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.mu-facts__note { margin: 12px 0 0; color: var(--mu-muted); font-size: 12.5px; line-height: 1.5; }
.mu-url { font-family: Consolas, 'Courier New', monospace; font-size: 13px; }

/* ---------- галерея ---------- */
.mu-gallery { padding: 46px 0 54px; }
.mu-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mu-gal li { margin: 0; padding: 0; }
.mu-gal li::before { content: none !important; }
.mu-gal a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--mu-line); border-radius: 10px; background: #e8e5db; transition: border-color .2s, box-shadow .2s; }
.mu-gal a:hover { border-color: rgba(200, 0, 0, .4); box-shadow: 0 12px 28px rgba(23, 24, 29, .12); }
.mu-gal img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mu-stage-sec--print ~ .mu-gallery img, .mu-stage-sec--photo ~ .mu-gallery img, .mu-stage-sec--visual ~ .mu-gallery img, .mu-stage-sec--mock ~ .mu-gallery img { object-position: center; }

/* ---------- связанные ---------- */
.mu-rel { padding: 40px 0 8px; }
.mu-rel__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mu-rel__list li { margin: 0; padding: 0; }
.mu-rel__list li::before { content: none !important; }
.mu-rel__list a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--mu-line); border-radius: 12px; background: #fff; color: #3b3e47; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.mu-rel__list a:hover { border-color: rgba(200, 0, 0, .4); box-shadow: 0 12px 28px rgba(23, 24, 29, .1); color: #3b3e47; }
.mu-rel__list b { display: block; margin-bottom: 4px; color: var(--mu-ink); font-size: 15px; line-height: 1.35; }
.mu-rel__list span { color: var(--mu-muted); font-size: 12.5px; }

/* ---------- лайтбокс ---------- */
.mu-mfp .mfp-title { color: #fff; font-size: 14px; }

@media (max-width: 991px) {
    .mu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mu-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mu-body__grid { grid-template-columns: 1fr; }
    .mu-facts { position: static; }
    .mu-intro__grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
    .mu-page { --mu-top: 64px; }
    .mu-grid { grid-template-columns: 1fr; gap: 16px; }
    .mu-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mu-main h2.mu-year { margin: 30px 0 14px; font-size: 28px; scroll-margin-top: 130px; }
    .mu-years { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; }
    .mu-years__label { display: none; }
    .mu-crt { padding: 12px 12px 8px; border-radius: 16px 16px 12px 12px; }
    .mu-crt__screen { padding: 7px; border-radius: 10px; }
    .mu-crt__glass { max-height: 420px; }
    .mu-crt__foot { margin-top: 8px; font-size: 9px; letter-spacing: .14em; }
    .mu-paper { padding: 10px; }
    .mu-photo { padding: 8px 8px 8px; }
    .mu-stage-sec { padding: 28px 0 4px; }
    .mu-body { padding: 36px 0 30px; }
    .mu-hero-links .bl-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .mu-card__a, .mu-card__img img { transition: none; }
    .mu-card__a:hover { transform: none; }
}
