/*
 * NBCRS3.MuseumInfoCenter — дизайн-система «Афиша» (task1065, фаза 6).
 * Тёмная ночная тема на весь сайт. Источник макета: infocenter-site/design/afisha.html
 * (там шрифты/фото — base64 ради автономности файла превью; здесь шрифты — Google Fonts
 * <link> в _Layout.cshtml, фото — static.nbcrs.org). Все стили сайта — только в этом файле.
 *
 * Палитра и токены — task1065-plan.md, фаза 6.1:
 *   --night   фон страницы
 *   --panel / --panel-2   карточки и полосы (обычная / hover-состояние)
 *   --fog / --fog-soft    текст (основной / вторичный)
 *   --amber / --amber-deep   акцент/CTA (обычный / hover)
 *   --ice     холодный акцент (вторые по значимости числа/ссылки)
 *   --line    тонкие разделители
 */

:root {
    --night: #0E131C;
    --panel: #151C29;
    --panel-2: #1B2434;
    --fog: #F2EEE3;
    --fog-soft: #A9AFB9;
    --line: #28324455;
    --amber: #FFAA3B;
    --amber-deep: #E08A18;
    --ice: #8FB8D8;
    --danger: #E4664A;

    --font-disp: 'Unbounded', 'Arial Black', sans-serif;
    --font-text: 'IBM Plex Sans', Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-text);
    background: var(--night);
    color: var(--fog);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.disp {
    font-family: var(--font-disp);
    font-weight: 700;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-main {
    padding-bottom: 40px;
    min-height: 60vh;
}

/* ---------- появление секций (уважает prefers-reduced-motion) ---------- */

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.rise {
    animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}

.d1 { animation-delay: .12s; }
.d2 { animation-delay: .24s; }
.d3 { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    .rise {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ================================================================
   Шапка (top)
   ================================================================ */

header.top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #0E131CF0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 16px 0;
}

.top__brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top__brand-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: var(--amber);
    display: grid;
    place-items: center;
    font-family: var(--font-disp);
    font-weight: 700;
    color: var(--night);
    font-size: 15px;
}

.top__brand-text {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: .04em;
    line-height: 1.25;
}

.top__brand-text small {
    display: block;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 10.5px;
    color: var(--fog-soft);
    letter-spacing: .08em;
}

.top__nav {
    margin-left: auto;
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}

.top__nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--fog-soft);
    transition: color .2s;
}

.top__nav a:hover,
.top__nav a[aria-current="page"] {
    color: var(--amber);
}

.top__cta {
    color: var(--night) !important;
    background: var(--amber);
    padding: 10px 18px;
    font-weight: 700 !important;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.top__cta:hover {
    background: var(--fog);
    color: var(--night) !important;
}

/* ================================================================
   Кнопки
   ================================================================ */

.bt {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    padding: 15px 30px;
    transition: all .25s;
    border: 1.5px solid transparent;
}

.bt.amber,
.hero__cta--primary,
.kids__cta,
.app-b__cta--primary {
    background: var(--amber);
    color: var(--night);
}

.bt.amber:hover,
.hero__cta--primary:hover,
.kids__cta:hover,
.app-b__cta--primary:hover {
    background: var(--fog);
}

.bt.out,
.hero__cta--secondary,
.app-b__cta--secondary {
    border-color: #3A4658;
    color: var(--fog);
    background: transparent;
}

.bt.out:hover,
.hero__cta--secondary:hover,
.app-b__cta--secondary:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* ================================================================
   hero (главная — билборд)
   ================================================================ */

.hero {
    padding: 72px 0 0;
    position: relative;
    overflow: hidden;
}

.hero__kick {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ice);
    margin-bottom: 26px;
}

.hero__kick::before {
    content: '';
    width: 44px;
    height: 2px;
    background: var(--amber);
}

.hero__title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(34px, 7vw, 88px);
    line-height: 1.04;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.hero__title .l2 {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--fog);
    display: block;
}

.hero__title .l3 {
    color: var(--amber);
    display: block;
}

.hero__subtitle {
    margin-top: 26px;
    font-size: 17px;
    color: var(--fog-soft);
    max-width: 58ch;
}

.hero__actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__cta {
    padding: 15px 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    text-decoration: none;
    transition: all .25s;
    border: 1.5px solid transparent;
}

/* ================================================================
   marquee (бегущая строка — только на главной)
   ================================================================ */

.marquee {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background: var(--panel);
}

.marquee__track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: mq 38s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes mq {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        animation: none;
    }
}

.marquee__track span {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 16px 26px 16px 0;
    color: var(--fog-soft);
    white-space: nowrap;
}

/* ================================================================
   Общие «блочные» секции (progs / bill / geo / kids / app-b)
   ================================================================ */

.progs, .bill, .geo, .kids, .app-b {
    padding: 88px 0 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 26px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.section-head__idx {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 15px;
    color: var(--amber);
}

.section-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(22px, 3.4vw, 40px);
    text-transform: uppercase;
    letter-spacing: .01em;
}

.section-lead {
    color: var(--fog-soft);
    margin: 0 0 38px;
    max-width: 62ch;
    font-size: 15.5px;
}

.section-more {
    margin-left: auto;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ice);
    border-bottom: 1.5px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}

.section-more:hover {
    color: var(--amber);
    border-color: var(--amber);
}

.empty-state {
    color: var(--fog-soft);
    font-style: italic;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
}

/* ---------- progs / article-card («идеи поездок») ---------- */

.progs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .3s, border-color .3s, background .3s;
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber);
    background: var(--panel-2);
}

.article-card__image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--panel-2);
}

.article-card__body {
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__title {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4;
}

.article-card__annotation {
    margin-top: 12px;
    font-size: 14.5px;
    color: var(--fog-soft);
    flex: 1;
}

/* ---------- bill / news-card («сейчас в музеях») ---------- */

.bill__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .3s, border-color .3s, background .3s;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber);
    background: var(--panel-2);
}

.news-card__image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--panel-2);
}

.news-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__date {
    display: inline-block;
    align-self: flex-start;
    background: var(--amber);
    color: var(--night);
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.news-card__title {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.35;
}

.news-card__intro {
    margin-top: 10px;
    font-size: 14px;
    color: var(--fog-soft);
    flex: 1;
}

.news-card__org {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ice);
}

/* ---------- главная: афишная сетка (bill-featured — main + side) ---------- */

.bill-featured {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
}

.bill-main {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: var(--panel-2);
}

.bill-main__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75);
    transition: transform .6s;
}

.bill-main:hover .bill-main__image {
    transform: scale(1.03);
}

.bill-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, #0E131CF2 100%);
}

.bill-main__cap {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 26px;
    z-index: 2;
}

.bill-main__date {
    display: inline-block;
    background: var(--amber);
    color: var(--night);
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
}

.bill-main__title {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: clamp(19px, 2.2vw, 26px);
    line-height: 1.3;
    margin-top: 14px;
}

.bill-main__org {
    margin-top: 8px;
    color: var(--fog-soft);
    font-size: 14px;
}

.bill-side {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
}

.bill-side__item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--line);
    transition: background .2s;
    flex: 1;
    align-items: center;
}

.bill-side__item:last-child {
    border-bottom: none;
}

.bill-side__item:hover {
    background: var(--panel-2);
}

.bill-side__date {
    text-align: center;
    border: 1.5px solid var(--amber);
    padding: 8px 4px;
}

.bill-side__date b {
    display: block;
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 19px;
    color: var(--amber);
    line-height: 1.1;
}

.bill-side__date span {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
}

.bill-side__title {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

/* ---------- geo (география) ---------- */

.geo__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}

.geo__item {
    text-decoration: none;
    color: inherit;
    padding: 34px 30px;
    border-right: 1px solid var(--line);
    border-bottom: none;
    transition: background .25s;
    display: block;
}

.geo__item:nth-child(4n) {
    border-right: none;
}

.geo__item:hover {
    background: var(--panel);
}

.geo__count {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(36px, 4.6vw, 58px);
    line-height: 1;
    color: var(--amber);
    display: block;
}

.geo__item:nth-child(4n+2) .geo__count { color: var(--ice); }
.geo__item:nth-child(4n+3) .geo__count { color: var(--fog); }
.geo__item:nth-child(4n+4) .geo__count { color: transparent; -webkit-text-stroke: 1.5px var(--amber); }

.geo__name {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 15px;
}

.geo-foot {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.geo-foot p {
    color: var(--fog-soft);
    font-size: 14.5px;
}

.geo-foot a {
    color: var(--ice);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1.5px solid var(--ice);
}

.geo-foot a:hover {
    color: var(--amber);
    border-color: var(--amber);
}

/* ---------- kids (Музейная бродилка) ---------- */

.kids {
    margin-top: 88px !important;
    padding: 0 !important;
}

.kids__inner {
    background: var(--amber);
    color: var(--night);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
}

.kids__text {
    padding: 56px 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kids__kick {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.kids .section-title,
.kids__title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.12;
    text-transform: uppercase;
}

.kids .section-lead,
.kids__text p {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 16px;
    max-width: 46ch;
    color: #4A3308;
    max-width: none;
}

.kids__cta {
    margin-top: 28px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .06em;
    padding: 15px 30px;
}

.kids__image {
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

/* ---------- app-b (Впечатления / RTC) ---------- */

.app-b {
    margin-top: 0 !important;
}

.app-b__panel {
    border: 1.5px solid var(--amber);
    position: relative;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
    background: var(--panel);
}

.app-b__panel::before {
    content: 'RUSSIATRAVEL.CLUB';
    position: absolute;
    top: -11px;
    left: 44px;
    background: var(--night);
    padding: 0 14px;
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .3em;
    color: var(--amber);
}

.app-b .section-title,
.app-b__title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
    text-transform: uppercase;
}

.app-b .section-title i,
.app-b__title i {
    font-style: normal;
    color: var(--amber);
}

.app-b .section-lead,
.app-b__text {
    margin-top: 16px;
    color: var(--fog-soft);
    max-width: 50ch;
}

.app-b__cta {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.app-b__score {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.app-b__score div {
    background: var(--night);
    padding: 26px 24px;
}

.app-b__score b {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 30px;
    color: var(--amber);
    display: block;
    line-height: 1;
}

.app-b__score span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--fog-soft);
}

/* ================================================================
   Общие элементы внутренних страниц
   ================================================================ */

.page-title {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(28px, 4.4vw, 48px);
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 18px;
}

.page-intro {
    font-size: 18px;
    color: var(--fog-soft);
    max-width: 70ch;
    margin-bottom: 8px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--fog-soft);
    margin: 32px 0 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--fog-soft);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--amber);
}

.not-found {
    text-align: center;
    padding: 100px 20px;
}

.not-found h1 {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.not-found p {
    color: var(--fog-soft);
    margin-bottom: 8px;
}

.not-found__links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 24px !important;
}

.not-found__links a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1.5px solid var(--amber);
}

/* ---------- Каталог музеев ---------- */

.catalog-hero {
    padding-top: 40px;
}

.catalog-filters {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 32px 0 8px;
}

.catalog-filters__field {
    display: flex;
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fog-soft);
}

.catalog-filters__field select {
    font-family: var(--font-text);
    font-size: 14px;
    padding: 10px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--fog);
    min-width: min(220px, 100%);
    max-width: 100%;
}

.catalog-filters__field select:focus {
    outline: none;
    border-color: var(--amber);
}

.catalog-filters noscript button {
    font-family: var(--font-text);
    background: var(--amber);
    color: var(--night);
    border: none;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
}

.catalog-meta {
    color: var(--fog-soft);
    margin: 16px 0 24px;
    font-size: 14px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.museum-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s, border-color .3s, background .3s;
}

.museum-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber);
    background: var(--panel-2);
}

.museum-card__image,
.museum-card__image--placeholder {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--panel-2);
}

.museum-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.museum-card__name {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
}

.museum-card__region {
    font-size: 12.5px;
    color: var(--ice);
}

.museum-card__category {
    font-size: 12.5px;
    color: var(--fog-soft);
}

.pager {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pager a, .pager__current {
    padding: 8px 14px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--fog);
    font-size: 14px;
}

.pager a:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.pager__current {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--night);
    font-weight: 700;
}

/* ---------- Деталь музея / статьи / новости ---------- */

.museum-detail__region {
    color: var(--ice);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Медиа-рамка героя (_MediaFrame.cshtml): фото целиком поверх размытой копии того же фото —
   вертикальные снимки не кадрируются (не «уходят головы и ноги»), пустые поля заполняет блюр. */
.media-frame {
    position: relative;
    overflow: hidden;
    margin: 8px 0 28px;
    background: var(--night);
}

.media-frame__blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(26px) brightness(.5);
    transform: scale(1.12);
}

.media-frame__main {
    position: relative;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 460px;
    width: auto;
}

.media-frame__caption {
    position: relative;
    text-align: right;
    color: var(--fog-soft);
    font-size: 12.5px;
    letter-spacing: .03em;
    padding: 6px 10px 8px;
}

/* Разметка дайджестов (digest-*) — пришла из MODX вместе с контентом статей, используется и в новых текстах */
.article-detail__body .digest-subject {
    margin-top: 40px;
    font-family: var(--font-disp);
    font-size: 20px;
}

.article-detail__body .digest {
    margin-top: 18px;
}

.article-detail__body .digest-museum-shortname {
    font-weight: 700;
    color: var(--ice);
}

.article-detail__body .digest-date {
    font-size: 15px;
    color: var(--fog-soft);
}

.article-detail__body .digest-text {
    margin-top: 8px;
}

/* Примечание об источнике фотографий под телом статьи (инлайн-фото в контенте) */
.photo-note {
    max-width: 70ch;
    margin-top: 28px;
    color: var(--fog-soft);
    font-size: 13px;
    font-style: italic;
}

.museum-detail__tags {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0 0 28px;
    flex-wrap: wrap;
}

.museum-detail__tags li {
    padding: 6px 14px;
    border: 1px solid var(--line);
    color: var(--ice);
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.museum-detail__description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 70ch;
    color: var(--fog);
    margin-bottom: 8px;
}

.museum-detail__section {
    margin: 40px 0;
    max-width: 70ch;
}

.museum-detail__section h2 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--amber);
}

.museum-detail__section p {
    font-size: 18px;
    line-height: 1.7;
}

.museum-detail__info {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    max-width: 70ch;
}

.museum-detail__info h2 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--amber);
}

.museum-detail__info-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 20px;
}

.museum-detail__info-list dt {
    color: var(--fog-soft);
    font-size: 14px;
}

.museum-detail__info-list dd {
    font-size: 15px;
}

.museum-detail__info-list dd a {
    color: var(--ice);
}

.news-detail__date {
    display: inline-block;
    background: var(--amber);
    color: var(--night);
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    margin-bottom: 8px;
}

.news-detail__org {
    color: var(--fog-soft);
    font-size: 14px;
    margin-bottom: 8px;
}

/* ---------- Тело длинного текста (статьи / новости / статичные страницы) ---------- */

.article-detail__body,
.news-detail__body,
.page-body {
    max-width: 70ch;
    font-size: 18px;
    line-height: 1.75;
    color: var(--fog);
}

.article-detail__body > * + *,
.news-detail__body > * + *,
.page-body > * + * {
    margin-top: 20px;
}

.article-detail__body h2,
.news-detail__body h2,
.page-body h2 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--amber);
    margin-top: 44px;
}

.article-detail__body h3,
.news-detail__body h3,
.page-body h3 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 20px;
    margin-top: 36px;
}

.article-detail__body ul,
.article-detail__body ol,
.news-detail__body ul,
.news-detail__body ol,
.page-body ul,
.page-body ol {
    padding-left: 26px;
}

.article-detail__body li,
.news-detail__body li,
.page-body li {
    margin-top: 10px;
}

.article-detail__body a,
.news-detail__body a,
.page-body a,
.about-page a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-detail__body a:hover,
.news-detail__body a:hover,
.page-body a:hover,
.about-page a:hover {
    color: var(--fog);
}

.article-detail__body img,
.news-detail__body img,
.page-body img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.article-detail__body blockquote,
.news-detail__body blockquote,
.page-body blockquote {
    border-left: 3px solid var(--amber);
    padding-left: 22px;
    color: var(--fog-soft);
    font-style: italic;
}

.article-detail__body table,
.news-detail__body table,
.page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article-detail__body th,
.article-detail__body td,
.news-detail__body th,
.news-detail__body td,
.page-body th,
.page-body td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}

/* ---------- О проекте ---------- */

.about-page {
    padding-top: 40px;
    max-width: 70ch;
}

.about-lead {
    font-size: 18px;
    color: var(--fog-soft);
    margin-bottom: 32px;
}

.about-page h2 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--amber);
    margin: 36px 0 18px;
}

.about-page p {
    font-size: 17px;
    line-height: 1.75;
    margin-top: 18px;
}

.about-benefits {
    padding-left: 22px;
}

.about-benefits li {
    font-size: 17px;
    line-height: 1.75;
    margin-top: 12px;
}

.about-benefits strong {
    color: var(--fog);
    font-weight: 700;
}

.grant-support {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--night);
}

.grant-support__logo {
    display: block;
    width: min(100%, 400px);
    height: auto;
}

.grant-results {
    overflow-x: auto;
}

.grant-results table {
    width: 100%;
    border-collapse: collapse;
}

.grant-results caption {
    text-align: left;
    margin-bottom: 12px;
    color: var(--fog-soft);
}

.grant-results th, .grant-results td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.grant-results td {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.grant-results th[scope="row"] {
    font-weight: 400;
}

/* ---------- Статичные страницы (SitePage) ---------- */

.site-page {
    padding-top: 8px;
}

/* ================================================================
   Футер
   ================================================================ */

.site-footer {
    margin-top: 96px;
    border-top: 1px solid var(--line);
    background: var(--night);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.footer__brand {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 12px;
}

.footer__col p {
    font-size: 14px;
    color: var(--fog-soft);
    max-width: 34ch;
}

.footer__title {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 18px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer__col a {
    text-decoration: none;
    color: var(--fog-soft);
    transition: color .2s;
}

.footer__col a:hover {
    color: var(--amber);
}

.footer__legal {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12.5px;
    color: #5E6672;
    flex-wrap: wrap;
    text-align: left;
}

/* ================================================================
   StyleGuide — служебные утилиты (используются только на /styleguide)
   ================================================================ */

.sg-block {
    margin-top: 70px;
}

.sg-block:first-of-type {
    margin-top: 40px;
}

.sg-block h2 {
    font-family: var(--font-disp);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ice);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 28px;
}

.sg-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.sg-swatch {
    border: 1px solid var(--line);
    overflow: hidden;
    font-size: 13px;
}

.sg-swatch__color {
    height: 70px;
}

.sg-swatch__label {
    padding: 10px 12px;
    background: var(--panel);
}

.sg-swatch__label code {
    display: block;
    color: var(--fog-soft);
    font-size: 12px;
    margin-top: 2px;
}

.sg-type-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.sg-type-row .lbl {
    width: 160px;
    font-size: 12.5px;
    color: var(--fog-soft);
    flex-shrink: 0;
}

.sg-buttons,
.sg-plates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ================================================================
   Адаптивность (по образцу afisha.html)
   ================================================================ */

@media (max-width: 960px) {
    .progs__grid,
    .bill__grid {
        grid-template-columns: 1fr 1fr;
    }
    .bill-featured {
        grid-template-columns: 1fr;
    }
    .geo__grid {
        grid-template-columns: 1fr 1fr;
    }
    .geo__item:nth-child(4n) {
        border-right: 1px solid var(--line);
    }
    .geo__item:nth-child(2n) {
        border-right: none;
    }
    .geo__item:nth-child(1),
    .geo__item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }
    .kids__inner {
        grid-template-columns: 1fr;
    }
    .kids__image {
        order: -1;
        min-height: 220px;
    }
    .app-b__panel {
        grid-template-columns: 1fr;
        padding: 44px 34px;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    .museum-detail__info-list {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }
    .top__nav a:not(.top__cta) {
        display: none;
    }
    .progs__grid,
    .bill__grid,
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .geo__grid {
        grid-template-columns: 1fr;
    }
    .geo__item {
        border-right: none !important;
        border-bottom: 1px solid var(--line);
    }
    .geo__item:last-child {
        border-bottom: none;
    }
    .kids__text {
        padding: 38px 28px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .progs, .bill, .geo, .kids, .app-b {
        padding-top: 56px;
    }
}
