.offers-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh + 60px);
    margin-top: -120px;
    padding: 0;
    overflow: hidden;
    background: #0a1a30;
}

.offers-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0a1a30;
    animation: offersHeroZoom 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.offers-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.offers-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 18, 34, 0.62) 0%, rgba(8, 18, 34, 0.18) 22%, rgba(8, 18, 34, 0.12) 42%, rgba(8, 18, 34, 0.78) 100%),
        radial-gradient(120% 80% at 15% 100%, rgba(16, 35, 63, 0.6), transparent 60%);
}

.offers-hero-inner {
    position: relative;
    z-index: 3;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 clamp(48px, 7vh, 96px);
    color: #ffffff;
}

.offers-hero-kicker {
    margin: 0 0 18px;
    color: #e6c47f;
    font-size: clamp(12px, 1.2vw, 14px);
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
}

.offers-hero h1 {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.offers-hero h1 .line-strong {
    display: block;
    font-weight: 800;
    font-size: clamp(2.8rem, 8vw, 6.4rem);
}

.offers-hero h1 .line-accent {
    display: block;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 4.8rem);
    color: #e6c47f;
}

.offers-hero-lead {
    max-width: 56ch;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 400;
    font-size: clamp(1.02rem, 1.5vw, 1.24rem);
    line-height: 1.6;
}

.offers-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    margin-top: 34px;
}

.offers-hero-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 15px 28px;
    color: #241703;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(169, 118, 43, 0.22);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.offers-hero-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.45) 50%, transparent 66%);
    transform: translateX(-130%);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offers-hero-cta:hover::before {
    transform: translateX(130%);
}

.offers-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 14px rgba(169, 118, 43, 0.16);
}

.offers-hero-cta svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offers-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.offers-hero-count strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.offers-hero-scrollcue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    transform: translateX(-50%);
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
}

.offers-hero-scrollcue::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: #e6c47f;
    transform: translateX(-50%);
    animation: offersBob 1.6s ease-in-out infinite;
}

/* wejście tekstu hero */
.offers-hero-kicker,
.offers-hero h1 .line-strong,
.offers-hero h1 .line-accent,
.offers-hero-lead,
.offers-hero-actions {
    opacity: 0;
    animation: offersIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.offers-hero-kicker { animation-delay: 120ms; }
.offers-hero h1 .line-strong { animation-delay: 220ms; }
.offers-hero h1 .line-accent { animation-delay: 340ms; }
.offers-hero-lead { animation-delay: 480ms; }
.offers-hero-actions { animation-delay: 600ms; }

@keyframes offersIn {
    from { opacity: 0; transform: translateY(30px); filter: blur(7px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes offersHeroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes offersBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(9px); }
}

/* ---------- BODY ---------- */
.offers-page {
    position: relative;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) 0 90px;
    color: var(--ink);
}

.offers-eyebrow {
    margin: 0 0 6px;
    color: #a9762b;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ---------- FILTRY (szklany panel / <details>) ---------- */
.offers-filter-panel {
    margin-bottom: 0;
    border: 1px solid #ece3cf;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 24px 58px rgba(16, 35, 63, 0.1);
    overflow: hidden;
}

.offers-filter-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(20px, 2.6vw, 30px);
    cursor: pointer;
    list-style: none;
}

.offers-filter-panel > summary::-webkit-details-marker {
    display: none;
}

.offers-filter-panel > summary span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #131b2c;
    font-size: 1.02rem;
    font-weight: 700;
}

.offers-filter-panel > summary span .offers-icon {
    color: #b98a3a;
}

.offers-filter-panel > summary strong {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border: 1px solid rgba(185, 138, 58, 0.24);
    border-radius: 999px;
    color: #a9762b;
    background: rgba(185, 138, 58, 0.08);
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* rozwijanie panelu filtrów animuje offers-fx.js (height) — kompatybilne z każdą przeglądarką */
.offers-filter-reveal {
    overflow: hidden;
}

.offers-filter-panel > summary .offers-icon {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offers-filter-panel[open] > summary .offers-icon {
    transform: rotate(180deg);
}

.offers-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 30px);
}

.offers-filter-form > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: #2c2a24;
    font-size: 0.78rem;
    font-weight: 700;
}

.offers-filter-form > label > span {
    color: #2c2a24;
    letter-spacing: 0.02em;
}

.offers-filter-form input,
.offers-filter-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 35, 63, 0.12);
    border-radius: 11px;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.offers-filter-form input:focus,
.offers-filter-form select:focus {
    background: #ffffff;
    border-color: rgba(185, 138, 58, 0.7);
    box-shadow: 0 0 0 4px rgba(185, 138, 58, 0.14);
}

.offers-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.offers-filter-actions .btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.offers-filter-actions .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.4) 50%, transparent 66%);
    transform: translateX(-130%);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offers-filter-actions .btn:hover::before {
    transform: translateX(130%);
}

.offers-filter-actions .btn-primary {
    flex: 1;
    color: #ffffff;
    background: linear-gradient(150deg, #1b3a68, #10233f 58%, #0b1d34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(16, 35, 63, 0.16);
}

.offers-filter-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px rgba(16, 35, 63, 0.2), 0 0 24px rgba(185, 138, 58, 0.28);
}

.offers-filter-actions .btn-ghost {
    color: #10233f;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(16, 35, 63, 0.14);
    backdrop-filter: blur(12px);
}

.offers-filter-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(185, 138, 58, 0.45);
    color: #a9762b;
    transform: translateY(-2px);
}

/* ---------- PASEK WYNIKÓW ---------- */
.offers-results-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 38px 0 22px;
}

.offers-results-bar h2 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: #131b2c;
}

.offers-clear-link {
    color: #b98a3a;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.offers-clear-link:hover {
    color: #10233f;
}

/* ---------- SIATKA / KARTY ---------- */
.offers-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.offers-list-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ece3cf;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.07);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.offers-list-card:hover {
    transform: translateY(-6px);
    border-color: rgba(185, 138, 58, 0.3);
    box-shadow: 0 26px 56px rgba(16, 35, 63, 0.16);
}

.offers-list-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.offers-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand);
}

.offers-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offers-list-card:hover .offers-card-media img {
    transform: scale(1.05);
}

.offers-badge {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 28px);
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px rgba(15, 40, 74, 0.14);
}

.offers-card-media .offers-badge {
    position: absolute;
    top: 14px;
    left: 14px;
}

.offers-badge--neutral {
    color: #ffffff;
    background: rgba(16, 35, 63, 0.82);
    border: 1px solid rgba(185, 138, 58, 0.4);
}

.offers-badge--urgent {
    color: #ffffff;
    background: rgba(143, 38, 31, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offers-badge--positive {
    color: #ffffff;
    background: rgba(28, 107, 61, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offers-badge--info {
    color: #241703;
    background: rgba(230, 196, 127, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.offers-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
}

.offers-location {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 20px;
    color: #6d6a62;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.offers-location .offers-icon {
    width: 15px;
    height: 15px;
    color: #b98a3a;
}

.offers-card-body h3 {
    margin: 0;
    color: #131b2c;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.7vw, 1.35rem);
    line-height: 1.2;
}

.offers-card-body p {
    margin: 0;
    color: #6d6a62;
    font-size: 0.92rem;
    line-height: 1.55;
}

.offers-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 4px;
    padding: 16px 0 0;
    border-top: 1px solid #f0e9db;
}

.offers-price-row strong {
    color: #10233f;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.05;
}

.offers-price-row span {
    color: #8a8578;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.offers-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.offers-card-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.offers-card-stats dt {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: rgba(23, 23, 22, 0.42);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.offers-card-stats dt .offers-icon {
    display: none;
}

.offers-card-stats dd {
    margin: 0;
    color: #2c2a24;
    font-size: 0.92rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offers-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offers-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #b98a3a;
    font-weight: 700;
    font-size: 0.92rem;
}

.offers-card-cta .offers-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offers-list-card:hover .offers-card-cta .offers-icon {
    transform: translate(3px, -3px);
}

/* ---------- PUSTY STAN ---------- */
.offers-empty-state {
    display: grid;
    place-items: center;
    min-height: 300px;
    border: 1px solid #ece3cf;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    box-shadow: 0 18px 45px rgba(16, 35, 63, 0.08);
}

.offers-empty-state h2 {
    max-width: 580px;
    margin: 0 auto 10px;
    padding: 0 24px;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #131b2c;
}

.offers-empty-state p:not(.offers-eyebrow) {
    max-width: 520px;
    margin: 0 auto 20px;
    padding: 0 24px;
    color: #6d6a62;
    line-height: 1.65;
}

.offers-empty-state .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: #10233f;
    border-radius: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.offers-empty-state .btn:hover {
    background: #07162a;
    transform: translateY(-1px);
}

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 1100px) {
    .offers-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .offers-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .offers-hero {
        min-height: 74vh;
    }

    .offers-hero-scrollcue {
        display: none;
    }

    .offers-filter-panel > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .offers-filter-panel:not([open]) .offers-filter-form {
        display: none;
    }

    .offers-filter-form {
        grid-template-columns: 1fr;
    }

    .offers-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .offers-results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .offers-clear-link {
        white-space: normal;
    }

    .offers-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- REVEAL KART (klasy sterowane przez offers-list.js) ---------- */
@media (prefers-reduced-motion: no-preference) {
    /* panel „Filtry ofert” — wjazd jak karty */
    .offers-page.has-offers-animations .offers-filter-panel.offers-filter-reveal-item {
        opacity: 0;
        transform: translateY(34px);
        transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
        will-change: opacity, transform;
    }

    .offers-page.has-offers-animations .offers-filter-panel.offers-filter-reveal-item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .offers-page.has-offers-animations .offers-list-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
        transition-delay: var(--offers-delay, 0ms);
    }

    .offers-page.has-offers-animations .offers-list-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .offers-page.has-offers-animations .offers-list-card.is-visible:hover {
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .offers-hero-bg,
    .offers-hero-kicker,
    .offers-hero h1 .line-strong,
    .offers-hero h1 .line-accent,
    .offers-hero-lead,
    .offers-hero-actions {
        opacity: 1;
        animation: none;
    }

    .offers-hero-scrollcue::after,
    .offers-hero-cta,
    .offers-hero-cta::before,
    .offers-list-card,
    .offers-card-media img,
    .offers-card-cta .offers-icon {
        transition: none;
        animation: none;
    }
}
