:root {
    --paper: #dcc4a7;
    --paper-light: #e7d2b7;
    --paper-dark: #ceb08b;
    --ink: #1e1712;
    --line: #2d2219;
    --muted: #5b4b3d;
    --card: rgba(235, 218, 196, 0.94);
    --shadow: rgba(25, 18, 12, 0.16);
    --max-width: 1180px;
    --page-white: #f6f4ef;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--ink);
    background: #d9c4a8;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    min-height: 100vh;
    background: var(--paper);
}

.site-bg {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 25vw;
    min-width: 220px;
    background-size: cover;
    background-position: center top;
    opacity: 0.18;
    filter: grayscale(18%) saturate(70%);
    pointer-events: none;
    z-index: 1;
}

.site-bg--left {
    left: 0;
    background-image: url('../images/poz1.jpg');
}

.site-bg--right {
    right: 0;
    background-image: url('../images/poz2.jpg');
}

.site-overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(220, 196, 167, 0.86) 0%,
            rgba(220, 196, 167, 0.45) 22%,
            rgba(220, 196, 167, 0.10) 30%,
            rgba(220, 196, 167, 0.10) 70%,
            rgba(220, 196, 167, 0.45) 78%,
            rgba(220, 196, 167, 0.86) 100%
        );
    z-index: 2;
    pointer-events: none;
}

.page-wrap {
    position: relative;
    z-index: 3;
    width: min(var(--max-width), calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.site-header,
.site-footer,
.content-block {
    background: linear-gradient(to bottom, rgba(246, 239, 227, 0.96), rgba(231, 210, 183, 0.96));
    border: 2px solid var(--line);
    box-shadow:
        0 3px 0 rgba(45, 34, 25, 0.10),
        0 10px 24px rgba(25, 18, 12, 0.10);
}

.site-main {
    background: var(--page-white);
    border: 2px solid var(--line);
    box-shadow: 0 8px 30px var(--shadow);
    padding: 20px;
}

.site-header {
    margin-bottom: 18px;
    position: relative;
    z-index: 40;
}

.site-header__top {
    padding: 16px 22px;
    border-bottom: 2px solid var(--line);
    background: rgba(245, 237, 225, 0.45);
}

.site-header__top--large {
    padding: 22px 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-brand--hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    width: 100%;
}

.site-brand__logo {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.site-brand__logo--large {
    width: 300px;
    max-width: 100%;
}

.site-brand__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-brand__title-main {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4.8vw, 4.6rem);
    line-height: 0.92;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
}

.site-brand__title-sub {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2.2vw, 2rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.site-brand__subtitle {
    display: block;
    margin-top: 8px;
    font-size: 0.98rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.main-nav {
    width: 100%;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    background: var(--paper-light);
    box-shadow: 0 4px 14px rgba(25, 18, 12, 0.12);
}

.main-nav__list::after {
    content: "";
    display: block;
    min-height: 36px;
    border-left: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    background: rgba(255, 248, 237, 0.42);
}

@media (max-width: 760px) {
    .main-nav__list::after {
        display: none;
    }
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    background: rgba(255, 248, 237, 0.42);
    color: var(--ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.nav-toggle__line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--line);
}

.nav-toggle__label {
    margin-left: 4px;
}

.main-nav__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.main-nav__item {
    min-width: 0;
}

.main-nav__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    background: rgba(255, 248, 237, 0.42);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
    transition: background 0.18s ease;
}

.main-nav__item:nth-child(5n) a {
    border-right: 0;
}

.main-nav__item a:hover {
    background: rgba(255, 248, 237, 0.82);
}

.main-nav__mobile-panel {
    display: none;
    border-top: 2px solid var(--line);
    background: rgba(245, 237, 225, 0.55);
}

.main-nav__mobile-panel.is-open {
    display: block;
}

.main-nav__mobile-panel a {
    display: block;
    padding: 12px 16px;
    border-bottom: 2px solid var(--line);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.main-nav__mobile-panel a:hover {
    background: rgba(255, 248, 237, 0.65);
}

.expo-subnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid var(--line);
    background: rgba(245, 237, 225, 0.45);
}

.expo-subnav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-right: 2px solid var(--line);
    background: rgba(255, 248, 237, 0.32);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
}

.expo-subnav a:last-child {
    border-right: 0;
}

.expo-subnav a:hover,
.expo-subnav a.is-active {
    background: rgba(255, 248, 237, 0.78);
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.15;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    color: var(--ink);
}

h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.section {
    margin-bottom: 22px;
    border: 2px solid var(--line);
    background: linear-gradient(to bottom, rgba(245, 238, 227, 0.96), rgba(235, 218, 196, 0.96));
    box-shadow:
        0 3px 0 rgba(45, 34, 25, 0.08),
        0 10px 22px rgba(25, 18, 12, 0.08);
}

.section__inner {
    padding: 26px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cards--four {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    display: block;
    padding: 18px;
    border: 2px solid var(--line);
    background: rgba(255, 247, 235, 0.48);
    transition: background 0.18s ease, transform 0.18s ease;
}

.card:hover {
    background: rgba(255, 247, 235, 0.82);
    transform: translateY(-2px);
}

.content-block {
    margin-bottom: 22px;
    overflow: hidden;
}


.content-block__media--plain {
    border-bottom: none;
    background: transparent;
    padding: 25px;
}



.content-block__image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.content-block__media--plain .content-block__image {
    border: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.content-block__body {
    padding: 26px;
}

.content-block__body--narrow {
    max-width: 920px;
    margin: 0 auto;
}

.content-block,
.section {
    position: relative;
}

.content-block::before,
.section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.photo-note {
    display: block;
    padding: 6px 4px 0;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.photo-note--block {
    padding-left: 0;
    padding-right: 0;
}

.dual-periods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.dual-periods--tight {
    gap: 18px;
}

.dual-periods--people-wide {
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.dual-periods__item {
    margin: 0;
    border: 2px solid var(--line);
    background: rgba(255, 248, 239, 0.58);
    overflow: hidden;
}

.dual-periods__item--plain {
    border: none;
    background: transparent;
    overflow: visible;
}

.dual-periods__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-bottom: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.dual-periods__item--plain .dual-periods__img {
    border: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

.dual-periods__item figcaption {
    padding: 12px 14px;
    text-align: center;
    font-weight: 700;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
}

.dual-periods__item--plain figcaption {
    padding: 6px 4px 0;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.museum-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.museum-section__bottom {
    width: 100%;
}

.museum-photo {
    margin: 0;
    border: none;
    background: transparent;
    overflow: visible;
}
.museum-section__top {
    display: grid;
    grid-template-columns: 1.14fr 1.14fr;
    gap: 18px;
    align-items: start;
}

.museum-section__text {
    min-width: 0;
    line-height: 1.5;
}

.museum-section__text h2 {
    margin-bottom: 14px;
}

.museum-section__text p {
    margin: 0 0 12px;
}

.museum-photo--side,
.museum-photo--wide {
    width: 100%;
}

.museum-photo__image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    border: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.museum-photo--side {
    align-self: stretch;
}

.museum-photo--side .museum-photo__image {
    min-height: 100%;
}

.dual-periods--people-wide .dual-periods__img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.museum-photo figcaption {
    padding: 6px 4px 0;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

.content-block--logo {
    background: var(--paper-light);
}

.logo-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px 24px;
}

.logo-showcase__image {
    width: min(100%, 520px);
    height: auto;
    object-fit: contain;
}

.expo-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.expo-panel {
    padding: 20px;
    border: 2px solid var(--line);
    background: rgba(255, 247, 235, 0.48);
}

.expo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.expo-card {
    border: 2px solid var(--line);
    background: rgba(255, 248, 239, 0.55);
    overflow: hidden;
}

.expo-card__image-wrap {
    border-bottom: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.expo-card__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.expo-card__body {
    padding: 18px;
}

.site-footer {
    margin-top: 18px;
}

.site-footer__inner {
    padding: 20px 24px;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .cards,
    .cards--four {
        grid-template-columns: repeat(2, 1fr);
    }

    .dual-periods,
    .dual-periods--people-wide,
    .museum-section__top,
    .expo-overview,
    .expo-grid {
        grid-template-columns: 1fr;
    }

    .dual-periods--tight {
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .page-wrap {
        width: min(var(--max-width), calc(100% - 24px));
        padding-top: 12px;
    }

    .site-main {
        padding: 12px;
    }

    .section__inner,
    .content-block__body {
        padding: 18px;
    }

    .site-brand--hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .site-brand__logo {
        width: 120px;
    }

    .site-brand__logo--large {
        width: 220px;
    }

    .site-brand__title-main {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .site-brand__title-sub {
        font-size: clamp(1rem, 4.6vw, 1.4rem);
    }

    .site-brand__subtitle {
        font-size: 0.92rem;
    }

    .site-bg {
        width: 18vw;
        min-width: 90px;
        opacity: 0.12;
    }

    .cards,
    .cards--four {
        grid-template-columns: 1fr;
    }

    .main-nav__list {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .expo-subnav {
        grid-template-columns: 1fr;
    }

    .expo-subnav a {
        border-right: 0;
        border-bottom: 2px solid var(--line);
        justify-content: flex-start;
        text-align: left;
    }

    .expo-subnav a:last-child {
        border-bottom: 0;
    }

    .logo-showcase {
        padding: 24px 16px;
    }

    .logo-showcase__image {
        width: min(100%, 320px);
    }
}

.sticky-nav-anchor {
    display: block;
    height: 0;
}

.sticky-nav-wrap {
    position: relative;
    z-index: 45;
}

.sticky-nav-wrap.is-stuck {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--max-width), calc(100% - 64px));
    z-index: 100;
    border-left: 2px solid var(--line);
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    background: var(--paper-light);
    box-shadow: 0 8px 24px rgba(25, 18, 12, 0.18);
}

.sticky-nav-wrap.is-stuck .main-nav {
    box-shadow: none;
}

@media (max-width: 760px) {
    .sticky-nav-wrap.is-stuck {
        width: min(var(--max-width), calc(100% - 24px));
    }
}

.article-listing__date,
.article-detail__date {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.article-listing__perex,
.article-detail__perex {
    font-size: 1.02rem;
    line-height: 1.65;
}

.article-listing__link {
    display: inline-block;
    padding: 8px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-detail__content {
    line-height: 1.8;
}

.article-detail__back {
    margin-top: 28px;
}

.article-listing__gallery,
.article-detail__gallery {
    margin: 0;
}

.article-listing__media-link {
    display: block;
}

.article-listing h2 a,
.article-detail h1 {
    color: var(--ink);
}

.article-listing__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.article-listing__date {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 2px solid var(--line);
    background: rgba(255, 248, 237, 0.82);
    color: var(--ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(45, 34, 25, 0.08);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.action-link:hover {
    background: rgba(255, 248, 237, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(25, 18, 12, 0.10);
}

.action-link--danger {
    background: #f0d7d7;
}

.action-link--danger:hover {
    background: #ebc8c8;
}

.article-detail__back,
.admin-back-row,
.admin-actions-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.article-listing__badge {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 10px;
    border: 2px solid var(--line);
    background: rgba(255, 248, 237, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination__info {
    font-weight: 700;
    color: var(--muted);
}

@media (max-width: 760px) {
    .article-listing__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-listing__date {
        text-align: left;
        white-space: normal;
    }

    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

.article-detail__video {
    margin: 24px 0 28px;
}

.article-detail__video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.article-detail__video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-block__media {
    padding: 25px;
}

.content-block__media .content-block__image {
    border: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.content-block__media--hero {
    padding: 0;
}

.content-block__media--hero .content-block__image {
    border: 0;
    background: transparent;
    border-bottom: 2px black solid;
}

.content-block__media--plain .content-block__image {
    border: 2px solid var(--line);
    background: rgba(255, 250, 242, 0.45);
}

.news-intro {
    display: block;
}

.news-intro__text {
    min-width: 0;
}

.news-intro__image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
}

.news-intro__image {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
}



.news-intro__image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .news-intro__image {
        max-height: 260px;
    }
}

    .news-intro__image-wrap,
    .news-intro__text {
        order: initial;
    }

    .news-intro__image {
        max-height: 260px;
    }


@media (max-width: 900px) {
    .news-intro {
        grid-template-columns: 1fr;
    }

    .news-intro__image {
        max-height: 260px;
    }
}

.logo-showcase__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-showcase__link:hover .logo-showcase__image {
    transform: translateY(-2px);
}

.logo-showcase__image {
    transition: transform 0.18s ease;
}

.article-listing h2 {
    text-align: center;
}

.article-listing h2 a {
    display: inline-block;
}

.article-listing__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.article-listing__date--bottom {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}