/* Ptaki i małe zwierzęta — szałwia i słoma w palecie ZOO PARK.
   Wszystkie reguły dotyczą podstrony. Wspólny style.css pozostaje bazą. */
.ma-page {
    --ma-cream: #edf3ec;
    --ma-sand: #f4eedf;
    --ma-muted: #6b675f;
    --ma-line: #dce5dc;
    background: white;
}

.ma-page main > section,
.ma-scene,
.ma-product-grid {
    scroll-margin-top: 28px;
}

.ma-section {
    padding-block: 84px;
}

.ma-hero {
    position: relative;
    overflow: hidden;
    background: var(--ma-cream);
    isolation: isolate;
}

.ma-hero-photo,
.ma-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ma-hero-photo {
    object-fit: cover;
    object-position: 85% 38%;
    z-index: -2;
}

.ma-hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, #edf3ecf5 0%, #edf3ece6 24%, #edf3ecb8 38%, #edf3ec40 52%, #edf3ec00 68%);
}

.ma-hero-inner {
    min-height: 540px;
    display: flex;
    align-items: center;
    padding-block: 32px;
}

.ma-hero-copy {
    width: 550px;
    max-width: 100%;
}

.ma-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 23px;
    color: var(--ma-muted);
    font-size: .77rem;
    font-weight: 600;
}

.ma-back:hover,
.ma-text-link:hover {
    color: var(--red);
}

.ma-hero-copy .eyebrow {
    margin-bottom: 16px;
    font-size: .77rem;
}

.ma-hero h1 {
    font-size: clamp(3rem, 4.4vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 24px;
}

.ma-hero-lead {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #46536b;
    margin-bottom: 23px;
}

.ma-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
}

.ma-page .button {
    gap: 12px;
}

.ma-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .8rem;
    font-weight: 700;
    transition: color .18s ease;
}

.ma-local {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 23px 0 0;
    color: #59616a;
    font-size: .8rem;
}

.ma-local > span {
    width: 24px;
    height: 2px;
    background: var(--red);
    flex: none;
}

.ma-image-note {
    position: absolute;
    right: 24px;
    bottom: 15px;
    color: #fff;
    text-shadow: 0 1px 5px #1f2d4a99;
    font-size: .58rem;
    letter-spacing: .04em;
}

.ma-shortcuts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    margin-top: -25px;
    border: 1px solid #dce5dc;
    border-radius: 20px;
    background: white;
    box-shadow: 0 12px 38px #1f2d4a0d;
}

.ma-shortcuts > a {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
    min-height: 77px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background .2s ease, border-color .2s ease;
}

.ma-shortcuts > a:hover,
.ma-shortcuts > a:focus-visible {
    border-color: #df172229;
    background: #fff6f5;
}

.ma-shortcut-number {
    color: #81977b;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -.05em;
}

.ma-shortcuts strong,
.ma-shortcuts small {
    display: block;
}

.ma-shortcuts strong {
    font-size: .95rem;
}

.ma-shortcuts small {
    margin-top: 4px;
    font-size: .74rem;
    color: var(--gray);
    line-height: 1.5;
}

.ma-shortcuts b {
    margin-left: auto;
    color: var(--red);
    font-weight: 400;
}


.ma-heading {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 36px;
}

.ma-heading h2 {
    margin: 0;
}

.ma-heading > p {
    margin: 0 0 3px;
    color: var(--gray);
    font-size: .94rem;
    line-height: 1.9;
}

.ma-photo-label {
    position: absolute;
    left: 24px;
    top: 18px;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 12px 16px;
    border-radius: 28px;
    background: #fffffff5;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .07em;
}

.ma-photo-label b {
    color: var(--red);
    font-size: 1rem;
    font-weight: 400;
}

.ma-kicker {
    display: block;
    color: var(--red);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .085em;
    margin-bottom: 12px;
}

.ma-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    align-items: start;
}

.ma-product-grid .hover-card {
    background: #ffffffbd;
    border-color: #dedbd4;
    box-shadow: none;
    border-radius: 16px;
}

.ma-product-grid .hover-card:hover,
.ma-product-grid .hover-card[open] {
    border-color: #df17223d;
    box-shadow: 0 8px 22px #1f2d4a08;
}

.ma-product-grid .hover-card summary {
    padding: 20px 18px;
    min-height: 166px;
}

.ma-product-grid .card-kicker {
    color: var(--red);
    font-size: .59rem;
    min-height: 28px;
    margin-bottom: 10px;
}

.ma-product-grid h4 {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: -.025em;
    margin: 0 0 19px;
}

.ma-product-grid .card-action {
    font-size: .65rem;
}

.ma-product-grid .card-detail {
    padding: 0 18px 22px;
}

.ma-product-grid .card-detail p {
    font-size: .76rem;
    line-height: 1.75;
}

.ma-card-link {
    display: inline-block;
    color: var(--red);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.65;
}

.ma-product-grid .card-detail p a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ma-subtle-note {
    margin: 20px 0 0;
    color: #58677a5c;
    font-size: .45rem;
    line-height: 1.7;
    text-align: center;
}

.ma-guide-layout {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 85px;
    align-items: start;
}

.ma-guide-copy > p:not(.eyebrow) {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.85;
}

.ma-shopping-note {
    background: var(--ma-cream);
    border-left: 3px solid var(--red);
    padding: 23px 25px;
    margin: 26px 0;
    border-radius: 0 15px 15px 0;
}

.ma-shopping-note .ma-kicker {
    margin-bottom: 9px;
}

.ma-shopping-note p {
    color: var(--gray);
    font-size: .79rem;
    line-height: 1.8;
    margin: 0;
}

.ma-guide-item {
    border-bottom: 1px solid var(--ma-line);
}

.ma-guide-item:first-child {
    border-top: 1px solid var(--ma-line);
}

.ma-guide-item summary {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    cursor: pointer;
    padding: 23px 0;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.5;
}

.ma-guide-item summary::-webkit-details-marker {
    display: none;
}

.ma-step-number {
    flex: none;
    color: #81977b;
    font-size: .76rem;
    font-weight: 600;
}

.ma-guide-item summary > b {
    margin-left: auto;
    color: var(--red);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform .2s ease;
}

.ma-guide-item[open] summary > b {
    transform: rotate(45deg);
}

.ma-guide-item > div {
    padding: 0 29px 11px 33px;
    color: var(--gray);
    font-size: .81rem;
    line-height: 1.85;
}

.ma-guide-item > div p {
    margin-bottom: 15px;
}

.ma-guide-sources {
    margin: 18px 0 0;
    color: var(--gray);
    font-size: .62rem;
    line-height: 1.8;
}

.ma-guide-sources a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ma-invitation {
    background: #f3f6fa;
    border-block: 1px solid #e5ebf2;
    padding-block: 51px;
}

.ma-invitation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.ma-invitation h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.ma-invitation p:not(.eyebrow) {
    color: var(--gray);
    font-size: .83rem;
    line-height: 1.85;
    margin: 0;
}

.ma-invitation .button {
    flex: none;
}

/* Zdjęcie rozciąga się do wysokości treści z rozwiniętą kartą.
   Wspólny script.js rezerwuje miejsce, więc hover nie przesuwa kolejnych sekcji. */
.ma-section-opening { padding-bottom: 60px; }
.ma-section-closing { padding-top: 60px; }
.ma-scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: stretch;
    min-width: 0;
    scroll-margin-top: 30px;
}
.ma-scene-photo {
    position: relative;
    display: block;
    align-self: stretch;
    overflow: hidden;
    min-height: 430px;
    border-radius: 24px;
    background: var(--ma-sand);
}
.ma-scene-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% center;
    transition: filter .4s ease;
}
#kanarki .ma-scene-photo img { object-position: 43% center; }
#chomiki .ma-scene-photo img { object-position: 28% center; }
#kroliki .ma-scene-photo img { object-position: 55% center; }
.ma-scene-photo:hover img { filter: saturate(1.08); }
.ma-scene-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ma-scene-copy h3 {
    font-size: clamp(1.8rem, 2.7vw, 2.25rem);
    line-height: 1.2;
    letter-spacing: -.045em;
    margin-bottom: 18px;
}
.ma-scene-copy > p:not(.ma-kicker) {
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 23px;
}
.ma-scene-copy > .ma-product-grid { margin-top: auto; }
.has-hover .ma-scene .card-slot { height: calc(var(--card-space) - 6px); }
.ma-small {
    background: #faf7ee;
    border-block: 1px solid #ede6d8;
    --ma-line: #e5ddcc;
}
.ma-species-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
}
.ma-species-nav a {
    display: inline-flex;
    gap: 22px;
    padding: 13px 19px;
    border: 1px solid #e5ddcc;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 700;
    background: #ffffffc7;
    transition: color .18s ease, border-color .18s ease;
}
.ma-species-nav a:hover,
.ma-species-nav a:focus-visible {
    color: var(--red);
    border-color: #df172250;
}
.ma-species-nav span { color: var(--red); }
.ma-page .button.navy:hover,
.ma-page .button.navy:focus-visible {
    background: var(--red);
    color: white;
}
/* Szerokie sceny: papugi i rozetki. Karty mają stałe miejsce na zdjęciu. */
.ma-panorama {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 28px;
    background: var(--ma-cream);
}
.ma-panorama-photo,
.ma-panorama-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.ma-panorama-photo {
    object-fit: cover;
    object-position: 20% top;
}
.ma-panorama-shade {
    z-index: -1;
    background: linear-gradient(90deg, #edf3ec00 35%, #edf3ecb8 70%, #edf3ece6 100%), linear-gradient(0deg, #edf3ecf5 0%, #edf3ec50 48%, #edf3ec00 80%);
}
.ma-panorama-straw { background: #f4eedf; }
.ma-panorama-straw .ma-panorama-shade {
    background: linear-gradient(90deg, #f4eedf00 35%, #f4eedfb8 70%, #f4eedfe6 100%), linear-gradient(0deg, #f4eedff5 0%, #f4eedf50 48%, #f4eedf00 80%);
}
.ma-panorama-inner { padding-block: 42px; }
.ma-panorama-heading {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 52px;
    min-height: 230px;
    margin-bottom: 24px;
}
.ma-panorama-heading > div { grid-column: 2; }
.ma-panorama-heading h3 {
    font-size: clamp(2rem, 3.1vw, 2.65rem);
    letter-spacing: -.045em;
    line-height: 1.16;
    margin-bottom: 17px;
}
.ma-panorama-heading > div > p:not(.ma-kicker) {
    max-width: 440px;
    color: #46536b;
    font-size: .88rem;
    line-height: 1.85;
    margin: 0;
}
.ma-banner-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.ma-banner-cards .hover-card {
    background: #fffffff2;
    border-color: #ffffffd9;
    box-shadow: 0 8px 30px #1f2d4a08;
}
.ma-banner-cards .hover-card[open] { background: white; }
.ma-banner-cards .hover-card summary {
    min-height: 155px;
    padding: 21px 24px;
}
.ma-banner-cards h4 { font-size: 1.15rem; }
.ma-banner-cards .card-kicker { min-height: 18px; }
.ma-banner-cards .card-detail { padding: 0 24px 22px; }
.ma-start-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 27px;
    list-style: none;
    color: var(--gray);
    font-size: .78rem;
    line-height: 1.7;
}
.ma-start-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.ma-start-list li::before {
    content: "✓";
    flex: none;
    color: #627b5e;
    font-weight: 700;
}
@media (min-width: 2200px) {
    .ma-panorama-heading { min-height: clamp(310px, 17vw, 540px); }
}
@media (min-width: 1650px) {
    .ma-hero-inner { min-height: 580px; }
}
@media (max-width: 1100px) {
    .ma-hero-copy { width: 420px; }
    .ma-hero h1 { font-size: 3rem; }
    .ma-scene, .ma-panorama-heading { gap: 32px; }
    .ma-heading, .ma-guide-layout { gap: 35px; }
    .ma-shortcuts > a { padding-inline: 12px; gap: 12px; }
    .ma-shortcuts strong { font-size: .84rem; }
    .ma-shortcuts small { font-size: .67rem; }
    .ma-product-grid .hover-card summary { padding-inline: 15px; }
    .ma-product-grid .card-detail { padding-inline: 15px; }
    .ma-banner-cards { gap: 14px; }
    .ma-banner-cards h4 { font-size: 1.02rem; }
    .ma-panorama-heading { min-height: 215px; }
}
@media (max-width: 850px) {
    .ma-section { padding-block: 52px; }
    .ma-hero { padding-top: 255px; }
    .ma-hero-photo { height: 300px; object-position: 79% center; }
    .ma-hero-shade {
        height: 302px;
        background: linear-gradient(0deg, var(--ma-cream) 0%, #edf3ec40 22%, #edf3ec00 50%);
    }
    .ma-hero-inner { min-height: 0; padding: 20px 0 38px; }
    .ma-hero-copy { width: 100%; }
    .ma-hero h1 { font-size: 3.3rem; }
    .ma-shortcuts { padding: 12px; gap: 5px; }
    .ma-shortcuts > a { gap: 8px; padding: 12px; }
    .ma-shortcut-number { display: none; }
    .ma-heading { grid-template-columns: 1fr; gap: 22px; }
    .ma-scene { grid-template-columns: 1fr; gap: 27px; }
    .ma-scene-photo { min-height: 0; aspect-ratio: 1.5; }
    .ma-scene-copy > p { max-width: 610px; }
    .ma-scene-copy > .ma-product-grid { margin-top: 0; }
    .ma-product-grid .hover-card summary { min-height: 150px; }
    .ma-panorama { padding-top: 285px; }
    .ma-panorama-photo { height: 330px; object-position: 20% top; }
    .ma-panorama-shade {
        height: 332px;
        background: linear-gradient(0deg, var(--ma-cream) 0%, #edf3ec40 20%, #edf3ec00 55%);
    }
    .ma-panorama-straw .ma-panorama-shade {
        background: linear-gradient(0deg, #f4eedf 0%, #f4eedf40 20%, #f4eedf00 55%);
    }
    .ma-panorama-inner { padding-block: 20px 32px; }
    .ma-panorama-heading {
        display: block;
        min-height: 0;
        margin-bottom: 27px;
    }
    .ma-panorama-heading h3 { font-size: 2.2rem; }
    .ma-panorama-heading > div > p:not(.ma-kicker) { max-width: 620px; }
    .ma-banner-cards .hover-card summary { min-height: 154px; }
    .ma-guide-layout { grid-template-columns: 1fr; gap: 33px; }
    .ma-guide-copy { max-width: 600px; }
    .ma-invitation-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 600px) {
    .ma-hero { padding-top: 205px; }
    .ma-hero-photo { height: 250px; object-position: 76% center; }
    .ma-hero-shade { height: 252px; }
    .ma-hero-inner { padding: 19px 0 35px; }
    .ma-back { margin-bottom: 21px; font-size: .72rem; }
    .ma-hero h1 { font-size: clamp(2.15rem, 8.7vw, 3rem); }
    .ma-hero-copy .eyebrow { font-size: .64rem; }
    .ma-hero-lead { font-size: .92rem; }
    .ma-hero-lead br { display: none; }
    .ma-hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
    .ma-hero-actions .button { font-size: .77rem; padding-inline: 20px; }
    .ma-local { font-size: .72rem; }
    .ma-image-note { top: 15px; bottom: auto; right: 15px; }
    .ma-shortcuts { margin-top: 0; border-radius: 16px; padding: 8px; }
    .ma-shortcuts > a { padding: 11px 7px; min-height: 80px; }
    .ma-shortcuts strong { font-size: .74rem; line-height: 1.5; }
    .ma-shortcuts small { font-size: .6rem; line-height: 1.6; }
    .ma-shortcuts b { display: none; }
    .ma-section { padding-block: 44px; }
    .ma-heading { margin-bottom: 29px; }
    .ma-heading h2, .ma-guide-copy h2 { font-size: 2rem; }
    .ma-heading > p { font-size: .85rem; }
    .ma-heading > p br { display: none; }
    .ma-scene-photo { border-radius: 18px; }
    .ma-photo-label { left: 15px; top: 15px; padding: 10px 13px; font-size: .6rem; gap: 18px; }
    .ma-scene-copy h3 { font-size: 1.9rem; }
    .ma-scene-copy > p:not(.ma-kicker) { font-size: .84rem; }
    .ma-product-grid { gap: 9px; }
    .ma-product-grid .hover-card summary { min-height: 158px; padding: 18px 13px; }
    .ma-product-grid .card-kicker { font-size: .53rem; min-height: 32px; letter-spacing: .04em; }
    .ma-product-grid h4 { font-size: .87rem; }
    .ma-product-grid .card-action { font-size: .6rem; }
    .ma-product-grid .card-detail { padding: 0 13px 18px; }
    .ma-product-grid .card-detail p { font-size: .73rem; }
    .ma-card-link { font-size: .67rem; }
    .ma-species-nav { margin-bottom: 29px; gap: 8px; }
    .ma-species-nav a { padding: 11px 14px; gap: 13px; font-size: .7rem; }
    .ma-panorama { padding-top: 235px; }
    .ma-panorama-photo { height: 280px; object-position: 20% top; }
    .ma-panorama-shade { height: 282px; }
    .ma-panorama-heading h3 { font-size: 2rem; }
    .ma-panorama-heading > div > p:not(.ma-kicker) { font-size: .84rem; }
    .ma-banner-cards { grid-template-columns: 1fr; gap: 12px; }
    .ma-banner-cards .hover-card summary { min-height: 0; padding: 20px; }
    .ma-banner-cards .card-kicker { min-height: 0; font-size: .59rem; }
    .ma-banner-cards h4 { font-size: 1.1rem; margin-bottom: 17px; }
    .ma-banner-cards h4 br { display: none; }
    .ma-banner-cards .card-detail { padding: 0 20px 20px; }
    .ma-guide-item summary { gap: 12px; font-size: .84rem; padding-block: 20px; }
    .ma-guide-item > div { padding-left: 28px; padding-right: 15px; font-size: .78rem; }
    .ma-invitation { padding-block: 36px; }
    .ma-invitation h2 { font-size: 1.75rem; }
    .ma-invitation p:not(.eyebrow) { font-size: .77rem; }
}
@media (max-width: 360px) {
    .ma-product-grid { grid-template-columns: 1fr; }
    .ma-product-grid .hover-card summary { min-height: 130px; padding: 18px; }
    .ma-product-grid .card-kicker { min-height: 0; font-size: .6rem; }
    .ma-product-grid h4 { font-size: .94rem; }
    .ma-product-grid .card-detail { padding-inline: 18px; }
    .ma-banner-cards .hover-card summary { min-height: 0; padding: 20px; }
    .ma-shortcuts strong { font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ma-scene-photo img,
    .ma-shortcuts > a,
    .ma-species-nav a,
    .ma-text-link,
    .ma-guide-item summary > b { transition: none; }
}
