:root {
    --mp-red: #b90f2e;
    --mp-red-dark: #7c0b22;
    --mp-blue: #075b87;
    --mp-turquoise: #08a8ab;
    --mp-yellow: #f2b600;
    --mp-cream: #fff8ec;
    --mp-ink: #142b27;
    --mp-green: #0a3d2e;
    --mp-line: rgba(20, 43, 39, 0.16);
}

html { scroll-behavior: smooth; }
body.mes-polones-page { background: #fffdf9; color: var(--mp-ink); }
body.mes-polones-page.no-scroll { overflow: hidden; }

.mes-polones-page main { overflow: hidden; }
.mes-polones-page h1,
.mes-polones-page h2,
.mes-polones-page h3 { font-family: "Cormorant Garamond", serif; line-height: 1.05; }
.mes-polones-page p { line-height: 1.75; }

.mp-breadcrumb {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
}
.mp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.mp-breadcrumb li + li::before { content: "/"; margin-right: 0.45rem; color: #817b72; }
.mp-breadcrumb a { color: var(--mp-green); font-weight: 700; }

.mp-hero {
    max-width: 1240px;
    margin: 0 auto;
    background: linear-gradient(145deg, #fffaf2, #fff 65%);
    border: 1px solid rgba(185, 15, 46, 0.16);
    border-radius: 0 0 36px 36px;
    box-shadow: 0 18px 54px rgba(75, 31, 21, 0.1);
    overflow: hidden;
}
.mp-hero-art { display: block; background: #ef1027; }
.mp-hero-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.mp-hero-copy { padding: clamp(2rem, 5vw, 4.5rem); text-align: center; }
.mp-eyebrow,
.mp-kicker {
    color: var(--mp-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.mp-hero h1 { color: var(--mp-red-dark); font-size: clamp(3.1rem, 8vw, 6.8rem); margin: 0.15rem 0 0; }
.mp-subtitle { color: var(--mp-blue); font-family: "Cormorant Garamond", serif; font-size: clamp(1.55rem, 3vw, 2.4rem); font-weight: 700; }
.mp-lead { max-width: 880px; margin: 1.25rem auto 0; font-size: clamp(1rem, 2vw, 1.22rem); }

.mp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin: 1.7rem auto; list-style: none; }
.mp-chips li { background: #fff; border: 1px solid rgba(185, 15, 46, 0.24); border-radius: 99px; color: var(--mp-red-dark); font-size: 0.84rem; font-weight: 700; padding: 0.52rem 0.85rem; }
.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.mp-hero .mp-actions { justify-content: center; }
.mp-button {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0.76rem 1.05rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mp-button:hover { transform: translateY(-2px); }
.mp-button--primary { background: var(--mp-red); color: #fff; }
.mp-button--primary:hover { background: var(--mp-red-dark); }
.mp-button--light { background: #fff; border-color: rgba(7, 91, 135, 0.28); color: var(--mp-blue); }
.mp-button--ghost { border-color: rgba(10, 61, 46, 0.28); color: var(--mp-green); }
.mp-button--yellow { background: var(--mp-yellow); color: #1d2f2b; }
.mp-text-link { color: var(--mp-red-dark); font-weight: 800; padding: 0.65rem 0; }

.mp-section { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 1.5rem; }
.mp-section-heading { max-width: 720px; }
.mp-section-heading--center { margin: 0 auto 3rem; text-align: center; }
.mp-section-heading h2,
.mp-poster-copy h2,
.mp-actions-month h2,
.mp-social h2 { color: var(--mp-green); font-size: clamp(2.35rem, 5vw, 4.1rem); margin: 0.45rem 0 1rem; }
.mp-section-heading > p:last-child { color: #4e5c58; }

.mp-intro { align-items: start; display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.mp-intro-copy { border-left: 4px solid var(--mp-red); padding-left: clamp(1.2rem, 3vw, 2.5rem); }
.mp-intro-copy p + p { margin-top: 1.25rem; }

.mp-gallery { background: #f7f2e9; padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100vw - 1180px) / 2)); }
.mp-gallery .mp-section-heading > p:last-child { color: #4e5c58; }
.mp-gallery-group + .mp-gallery-group { margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.mp-gallery-group h3 { color: var(--mp-red-dark); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }
.mp-gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.mp-gallery-card {
    aspect-ratio: 4 / 3;
    background: #e9e0d2;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 25, 18, 0.12);
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}
.mp-gallery-card img { display: block; height: 100%; object-fit: cover; object-position: center; transition: transform 0.25s ease; width: 100%; }
.mp-gallery-card:hover img { transform: scale(1.025); }
.mp-gallery-card:focus-visible { outline: 4px solid var(--mp-blue); outline-offset: 4px; }

.mp-program { max-width: none; background: #f7f2e9; }
.mp-program > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.mp-status-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1rem; margin-top: 1.4rem; }
.mp-status-legend span { align-items: center; display: inline-flex; font-size: 0.76rem; font-weight: 700; gap: 0.35rem; }
.mp-status-legend i { border-radius: 50%; display: inline-block; height: 0.7rem; width: 0.7rem; }
.mp-status-legend .is-done { background: #66716e; }
.mp-status-legend .is-today { background: var(--mp-red); }
.mp-status-legend .is-next { background: var(--mp-turquoise); }
.mp-status-legend .is-planned { background: var(--mp-blue); }

.mp-timeline { position: relative; }
.mp-timeline::before { background: linear-gradient(var(--mp-red), var(--mp-turquoise)); content: ""; left: 56px; position: absolute; top: 1rem; bottom: 1rem; width: 3px; }
.mp-event { align-items: start; display: grid; gap: 1.35rem; grid-template-columns: 112px minmax(0, 1fr); margin-bottom: 1rem; position: relative; }
.mp-event-date { align-items: center; background: #fff; border: 3px solid var(--mp-red); border-radius: 50%; display: flex; flex-direction: column; height: 88px; justify-content: center; position: relative; width: 88px; z-index: 1; }
.mp-event-date span { color: var(--mp-red-dark); font-family: "Cormorant Garamond", serif; font-size: 2.3rem; font-weight: 700; line-height: 0.8; }
.mp-event-date small { color: var(--mp-blue); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; margin-top: 0.5rem; }
.mp-event-body { background: #fff; border: 1px solid var(--mp-line); border-radius: 18px; min-height: 88px; padding: 1.25rem 1.4rem; }
.mp-event-title-row { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.mp-event h3 { color: var(--mp-ink); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.mp-event p { font-size: 0.92rem; line-height: 1.55; margin-top: 0.4rem; }
.mp-event-place { color: var(--mp-blue); font-weight: 800; }
.mp-event-status { background: #e8eef0; border-radius: 99px; color: #43514e; flex: 0 0 auto; font-size: 0.68rem; font-weight: 800; padding: 0.4rem 0.65rem; text-transform: uppercase; }
.mp-event[data-event-status="done"] { opacity: 0.76; }
.mp-event[data-event-status="done"] .mp-event-status { background: #e2e3e3; color: #4f5a58; }
.mp-event[data-event-status="today"] .mp-event-body { border-color: var(--mp-red); box-shadow: 0 0 0 3px rgba(185, 15, 46, 0.1); }
.mp-event[data-event-status="today"] .mp-event-status { background: var(--mp-red); color: #fff; }
.mp-event[data-event-status="next"] .mp-event-body { border-color: var(--mp-turquoise); box-shadow: 0 0 0 3px rgba(8, 168, 171, 0.12); }
.mp-event[data-event-status="next"] .mp-event-status { background: var(--mp-turquoise); color: #032f31; }
.mp-event[data-event-status="planned"] .mp-event-status { background: #dcecf4; color: #064b6e; }

.mp-poster { align-items: center; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr); }
.mp-poster-copy > p:not(.mp-kicker) { margin-bottom: 1.4rem; }
.mp-poster-thumb { background: #fff; border: 1px solid var(--mp-line); border-radius: 20px; box-shadow: 0 18px 46px rgba(30, 29, 26, 0.14); display: block; padding: 0.8rem; }
.mp-poster-thumb img { border-radius: 13px; display: block; height: auto; width: 100%; }

.mp-polskie { background: var(--mp-blue); color: #fff; margin-top: 1rem; overflow: hidden; }
.mp-polskie-cover { background: #075b87; }
.mp-polskie-cover img { display: block; height: auto; object-fit: contain; width: 100%; }
.mp-polskie-grid { align-items: center; display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); margin: 0 auto; max-width: 1180px; padding: clamp(3rem, 7vw, 6rem) 1.5rem; }
.mp-polskie-logo { background: #fff; border: 5px solid var(--mp-turquoise); border-radius: 28px; display: block; overflow: hidden; }
.mp-polskie-logo img { display: block; height: auto; object-fit: contain; width: 100%; }
.mp-polskie .mp-kicker { color: var(--mp-yellow); }
.mp-polskie h2 { font-size: clamp(3.2rem, 7vw, 6rem); margin: 0.25rem 0; }
.mp-polskie-callout { color: #fff; font-family: "Cormorant Garamond", serif; font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 700; max-width: 700px; }
.mp-service-list { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.mp-service-list div { align-items: baseline; border-bottom: 1px solid rgba(255,255,255,0.22); display: grid; gap: 0.8rem; grid-template-columns: 80px 1fr; padding-bottom: 0.6rem; }
.mp-service-list dt { color: var(--mp-yellow); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.mp-service-list dd { font-weight: 700; }
.mp-check-list { columns: 2; gap: 1.4rem; list-style: none; margin: 1.5rem 0 2rem; }
.mp-check-list li { break-inside: avoid; margin: 0 0 0.75rem; padding-left: 1.4rem; position: relative; }
.mp-check-list li::before { color: var(--mp-yellow); content: "✦"; left: 0; position: absolute; }

.mp-exhibition { align-items: center; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.1fr); }
.mp-exhibition-media picture { display: block; }
.mp-exhibition-media img { border-radius: 22px; box-shadow: 0 18px 48px rgba(30, 25, 18, 0.18); display: block; height: auto; width: 100%; }
.mp-exhibition-copy h2 { color: var(--mp-red-dark); font-size: clamp(2.8rem, 6vw, 5rem); margin: 0.35rem 0; }
.mp-subheading { color: var(--mp-blue); font-family: "Cormorant Garamond", serif; font-size: clamp(1.4rem, 3vw, 2.05rem); font-weight: 700; }
.mp-exhibition-copy > p { margin-bottom: 1rem; }
.mp-video-wrap { margin-top: 2rem; max-width: 340px; }
.mp-video-wrap video { background: #ece4d7; border-radius: 18px; display: block; height: auto; max-height: 540px; max-width: 100%; width: 100%; }

.mp-actions-month { align-items: stretch; background: #f2eadc; display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); }
.mp-actions-month-media { align-items: center; background: #f2eadc; display: flex; min-height: 100%; }
.mp-actions-month-media picture { display: block; width: 100%; }
.mp-actions-month-media img { display: block; height: auto; object-fit: contain; width: 100%; }
.mp-actions-month-content { padding: clamp(3rem, 7vw, 6rem); }
.mp-action-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.mp-action-cards article { background: rgba(255,255,255,0.78); border: 1px solid rgba(185,15,46,0.13); border-radius: 18px; padding: 1.3rem; }
.mp-action-cards article > span { color: var(--mp-red); font-size: 1.45rem; }
.mp-action-cards h3 { color: var(--mp-green); font-size: 1.45rem; margin: 0.55rem 0; }
.mp-action-cards p { font-size: 0.88rem; line-height: 1.55; }

.mp-social { align-items: center; background: var(--mp-red-dark); color: #fff; display: flex; gap: 2rem; justify-content: space-between; padding: clamp(3rem, 7vw, 5rem) max(1.5rem, calc((100vw - 1180px) / 2)); }
.mp-social .mp-kicker { color: #ffd57a; }
.mp-social h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 0.55rem; }
.mp-social a { background: #fff; border-radius: 14px; color: var(--mp-red-dark); flex: 0 0 auto; font-weight: 800; min-height: 48px; padding: 0.9rem 1.2rem; text-decoration: none; }
.mp-credits { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: center; padding: 2rem 1.5rem; text-align: center; }

.mp-footer { background: var(--mp-green); color: rgba(255,255,255,0.86); padding: 2.4rem 1.5rem; text-align: center; }
.mp-footer-inner { margin: 0 auto; max-width: 960px; }
.mp-footer a { color: #fff; }
.mp-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: center; margin: 1rem 0; }
.mp-footer .footer-system-status { display: flex; flex-wrap: wrap; font-size: 0.72rem; gap: 0.5rem 1.2rem; justify-content: center; margin-top: 1rem; opacity: 0.78; }

.mp-lightbox { align-items: center; background: rgba(12, 17, 16, 0.88); display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 20000; }
.mp-lightbox[hidden] { display: none; }
.mp-lightbox-panel { background: #fff; border-radius: 18px; display: flex; flex-direction: column; max-height: calc(100vh - 2rem); max-width: 920px; overflow: hidden; width: 100%; }
.mp-lightbox-header { align-items: center; border-bottom: 1px solid var(--mp-line); display: flex; gap: 1rem; justify-content: space-between; padding: 0.8rem 1rem; }
.mp-lightbox-header h2 { color: var(--mp-green); font-size: 1.5rem; }
.mp-lightbox-close { background: var(--mp-red); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font: 700 0.85rem "Raleway", sans-serif; min-height: 44px; padding: 0.55rem 0.8rem; }
.mp-lightbox-close span { font-size: 1.35rem; margin-left: 0.25rem; }
.mp-lightbox-scroll { align-items: center; display: flex; justify-content: center; overflow: auto; padding: 1rem; }
.mp-lightbox-scroll img { display: block; height: auto; margin: 0 auto; max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); max-width: 100%; object-fit: contain; width: auto; }

@media (max-width: 820px) {
    .mp-intro,
    .mp-poster,
    .mp-polskie-grid,
    .mp-exhibition,
    .mp-actions-month { grid-template-columns: 1fr; }
    .mp-poster-thumb { margin: 0 auto; max-width: 480px; }
    .mp-polskie-logo { margin: 0 auto; max-width: 360px; }
    .mp-actions-month-media img { height: auto; max-height: 720px; object-fit: contain; }
    .mp-social { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .mp-breadcrumb { padding-left: 1rem; padding-right: 1rem; }
    .mp-hero { border-radius: 0 0 24px 24px; }
    .mp-hero-copy { padding: 2rem 1rem 2.4rem; }
    .mp-chips { gap: 0.4rem; }
    .mp-chips li { font-size: 0.75rem; padding: 0.42rem 0.65rem; }
    .mp-actions { align-items: stretch; flex-direction: column; width: 100%; }
    .mp-actions .mp-button { width: 100%; }
    .mp-section { padding-left: 1rem; padding-right: 1rem; }
    .mp-timeline::before { left: 29px; }
    .mp-event { gap: 0.75rem; grid-template-columns: 58px minmax(0, 1fr); }
    .mp-event-date { border-width: 2px; height: 58px; width: 58px; }
    .mp-event-date span { font-size: 1.55rem; }
    .mp-event-date small { font-size: 0.52rem; margin-top: 0.3rem; }
    .mp-event-body { padding: 1rem; }
    .mp-event-title-row { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
    .mp-event-status { font-size: 0.61rem; }
    .mp-check-list { columns: 1; }
    .mp-service-list div { grid-template-columns: 1fr; gap: 0.15rem; }
    .mp-action-cards { grid-template-columns: 1fr; }
    .mp-actions-month-content { padding-left: 1rem; padding-right: 1rem; }
    .mp-social { padding-left: 1rem; padding-right: 1rem; }
    .mp-social a { max-width: 100%; overflow-wrap: anywhere; }
    .mp-lightbox { padding: 0.45rem; }
    .mp-lightbox-panel { max-height: calc(100vh - 0.9rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mp-button,
    .mp-gallery-card img { transition: none; }
    .mp-button:hover,
    .mp-gallery-card:hover img { transform: none; }
}

body.high-contrast .mp-hero,
body.high-contrast .mp-event-body,
body.high-contrast .mp-poster-thumb,
body.high-contrast .mp-action-cards article,
body.high-contrast .mp-gallery,
body.high-contrast .mp-gallery-card { background: #000 !important; border-color: #ff0 !important; color: #fff !important; }
body.high-contrast .mp-hero h1,
body.high-contrast .mp-section h2,
body.high-contrast .mp-event h3,
body.high-contrast .mp-action-cards h3,
body.high-contrast .mp-gallery h2,
body.high-contrast .mp-gallery h3 { color: #ff0 !important; }
