.offer-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% -10%, #fbf8f2, #f2ece2 60%, #ece4d6);
}

.offer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(38px);
    will-change: transform;
}

.offer-orb--gold {
    top: -10%;
    right: 0%;
    width: 44vw;
    height: 44vw;
    background: radial-gradient(circle, rgba(185, 138, 58, 0.30), transparent 66%);
    animation: offerFloatA 20s ease-in-out infinite;
}

.offer-orb--navy {
    top: 42%;
    left: -12%;
    width: 52vw;
    height: 52vw;
    background: radial-gradient(circle, rgba(16, 35, 63, 0.20), transparent 64%);
    animation: offerFloatB 26s ease-in-out infinite;
}

.offer-orb--palm {
    bottom: -16%;
    right: 12%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(82, 111, 98, 0.18), transparent 66%);
    animation: offerFloatA 23s ease-in-out infinite reverse;
}

@keyframes offerFloatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(32px, -24px) scale(1.08); }
}

@keyframes offerFloatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 26px) scale(1.06); }
}

/* ---- powłoka strony ---- */
.offer-detail-page {
    position: relative;
    z-index: 1;
}

.offer-shell {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(22px, 3.5vw, 44px) 0 clamp(60px, 8vw, 104px);
}

/* ---- pasek górny (powrót + udostępnij) ---- */
.offer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(18px, 2.4vw, 28px);
}

.offer-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #514e46;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease, gap 0.25s ease;
}

.offer-back-link::before {
    content: "←";
    font-size: 1.05em;
    transition: transform 0.25s ease;
}

.offer-back-link:hover {
    color: #a9762b;
}

.offer-back-link:hover::before {
    transform: translateX(-3px);
}

.offer-share-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.offer-share-icon-button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    cursor: pointer;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(16, 35, 63, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(16, 35, 63, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.offer-share-icon-button:hover {
    transform: translateY(-2px);
    color: #a9762b;
    border-color: rgba(185, 138, 58, 0.45);
    background: rgba(255, 255, 255, 0.82);
}

.offer-share-icon-button.is-copied {
    color: var(--success);
    border-color: rgba(46, 111, 84, 0.5);
}

.offer-share-icon {
    width: 19px;
    height: 19px;
    transform: translateX(-1.5px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-share-toast {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    padding: 7px 12px;
    color: #fff;
    background: var(--navy);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.offer-share-toast:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

/* ---- eyebrow / nagłówki ---- */
.offer-eyebrow {
    margin: 0 0 14px;
    color: #a9762b;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* =========================================================================
   UKŁAD (galeria+treść w lewej kolumnie, panel po prawej)
   ========================================================================= */
/* tytuł oferty — ukryty wizualnie, zostaje dla SEO/czytników ekranu */
.offer-sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.offer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: clamp(22px, 3vw, 44px);
}

.offer-layout-main {
    display: grid;
    gap: clamp(18px, 2.4vw, 26px);
    align-content: start;
    min-width: 0;
}

.offer-layout-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* grupa cena+kontakt \u2014 wysoka, wyznacza zasi\u0119g przyklejenia kontaktu,
   dzi\u0119ki czemu kontakt zatrzymuje si\u0119 nad kalkulatorem (nie wpada pod niego) */
.offer-aside-top {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* ---- galeria ---- */
.offer-gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.offer-gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(16, 35, 63, 0.16);
}

.offer-gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offer-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.offer-gallery-slide[data-offer-lightbox-src] {
    cursor: zoom-in;
}

.offer-gallery-empty-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 9px 16px;
    color: #fff;
    background: rgba(16, 35, 63, 0.7);
    border-radius: 999px;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.offer-gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    cursor: pointer;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 22px rgba(16, 35, 63, 0.18);
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.offer-gallery-control:hover {
    color: #a9762b;
    background: #fff;
}

.offer-gallery-control.is-prev { left: 14px; }
.offer-gallery-control.is-next { right: 14px; }
.offer-gallery-control:hover.is-prev { transform: translateY(-50%) translateX(-2px); }
.offer-gallery-control:hover.is-next { transform: translateY(-50%) translateX(2px); }

.offer-gallery-arrow-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 35, 63, 0.2) transparent;
}

.offer-gallery-thumb {
    flex: 0 0 auto;
    width: 92px;
    height: 68px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: var(--sand);
    border: 2px solid transparent;
    border-radius: 12px;
    opacity: 0.62;
    transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.offer-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-gallery-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.offer-gallery-thumb.is-active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 6px 16px rgba(185, 138, 58, 0.28);
}

/* ---- karta podsumowania / cena (szkło) — statyczna, na wysokości galerii ---- */
.offer-summary-card {
    position: static;
    padding: clamp(22px, 2.4vw, 30px);
    background:
        linear-gradient(180deg, #fdfbf7, #f7f1e7);
    border: 1px solid #ece3cf;
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(16, 35, 63, 0.14);
}

/* placeholder rezerwujący miejsce po wyj\u0119tej z flow (fixed) karcie ceny;
   wysoko\u015b\u0107 ustawia skrypt pozycjonuj\u0105cy */
.offer-summary-spacer {
    display: none;
}

.offer-summary-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #a9762b;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.offer-lead {
    margin: 16px 0 0;
    color: #514e46;
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.62;
}

.offer-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
}

.offer-price-block .offer-price-value {
    color: var(--navy);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.offer-price-block .offer-price-per-square {
    color: #8a8578;
    font-size: 0.86rem;
    font-weight: 500;
}

.offer-price-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 14px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.offer-price-badge--neutral {
    color: #fff;
    background: rgba(16, 35, 63, 0.85);
    border: 1px solid rgba(185, 138, 58, 0.4);
}

.offer-price-badge--urgent {
    color: #fff;
    background: rgba(143, 38, 31, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-price-badge--positive {
    color: #fff;
    background: rgba(28, 107, 61, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.offer-key-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.offer-key-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(16, 35, 63, 0.08);
    border-radius: 14px;
}

.offer-key-stats dt {
    margin: 0;
    color: rgba(23, 23, 22, 0.5);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.offer-key-stats dd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #2c2a24;
    font-size: 1.02rem;
    font-weight: 700;
}

.offer-price-stat-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #b98a3a;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-invest-cta {
    margin-top: 24px;
}

.offer-cta-arrow-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================================
   KARTY TREŚCI (w lewej kolumnie .offer-layout-main)
   ========================================================================= */
.offer-content-card {
    padding: clamp(24px, 2.8vw, 38px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ece3cf;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(16, 35, 63, 0.07);
}

.offer-section-heading {
    margin-bottom: 22px;
}

/* pojedynczy nagłówek sekcji — tylko tytuł (eyebrow ukryty) */
.offer-section-heading span {
    display: none;
}

.offer-section-heading h2 {
    margin: 0;
    color: #131b2c;
    font-family: "Cinzel", Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.16;
    letter-spacing: 0.01em;
}

/* siatka danych nieruchomości */
.offer-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.offer-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(245, 240, 232, 0.6);
    border: 1px solid rgba(16, 35, 63, 0.06);
    border-radius: 14px;
}

.offer-data-item span {
    color: rgba(23, 23, 22, 0.5);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.offer-data-item strong {
    color: #2c2a24;
    font-size: 1rem;
    font-weight: 700;
}

/* proza / opis */
.offer-prose {
    color: #3a382f;
    font-size: 1.02rem;
    line-height: 1.75;
}

.offer-prose + .offer-prose {
    margin-top: 16px;
}

/* udogodnienia */
.amenity-tag-list,
.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-list {
    margin-top: 14px;
}

.amenity-tag,
.feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    color: #2c2a24;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(185, 138, 58, 0.22);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* lokalizacja */
.offer-location-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.offer-location-list div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 35, 63, 0.08);
}

.offer-location-list dt {
    color: rgba(23, 23, 22, 0.5);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.offer-location-list dd {
    margin: 0;
    color: #2c2a24;
    font-size: 0.98rem;
    font-weight: 600;
}

.offer-map-preview {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(16, 35, 63, 0.1);
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.08);
}

.offer-map-preview iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.offer-map-link,
.offer-video-link {
    margin-top: 18px;
}

/* =========================================================================
   PANEL PRAWY — karta kontaktu + kalkulator (w .offer-layout-aside)
   ========================================================================= */
/* wspólne eyebrow w panelu */
.offer-contact-card > span,
.offer-rental-calculator > span {
    display: block;
    margin-bottom: 10px;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* karta osoby kontaktowej — granatowa; przewija się razem z treścią */
.offer-contact-person-card {
    position: sticky;
    top: 88px;
    align-self: start;
    overflow: hidden;
    padding: clamp(24px, 2.4vw, 32px);
    color: #fff;
    background: linear-gradient(155deg, rgba(27, 58, 104, 0.97), rgba(11, 29, 52, 0.98));
    border: 1px solid rgba(185, 138, 58, 0.26);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(16, 35, 63, 0.18);
}

.offer-contact-person-card::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 138, 58, 0.32), transparent 66%);
    filter: blur(12px);
    pointer-events: none;
}

.offer-contact-person-card > * {
    position: relative;
    z-index: 1;
}

.offer-contact-person-card > span {
    color: #e0bd77;
}

.offer-contact-person-card h2 {
    margin: 0 0 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.15;
}

.offer-contact-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.offer-contact-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #e0bd77;
    background: rgba(185, 138, 58, 0.16);
    border: 1px solid rgba(185, 138, 58, 0.4);
    border-radius: 50%;
    font-family: "Cinzel", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.offer-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-contact-person-info strong {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
}

.offer-contact-person-info span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

.offer-contact-person-card p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
    line-height: 1.6;
}

.offer-contact-actions {
    display: grid;
    gap: 10px;
}

.offer-contact-actions .text-link {
    justify-self: center;
    margin-top: 4px;
    color: #e0bd77;
    font-size: 0.85rem;
    font-weight: 700;
}

.offer-contact-actions .text-link:hover {
    color: #fff;
}

/* =========================================================================
   KALKULATOR NAJMU — nowy design (panel wyniku + kontrolki)
   ========================================================================= */
.offer-rental-calculator {
    margin-top: auto;
    overflow: hidden;
    padding: clamp(22px, 2.4vw, 30px);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 18px 44px rgba(16, 35, 63, 0.1);
}

.offer-rental-calculator > span {
    color: #a9762b;
}

.offer-rental-calculator h2 {
    margin: 0 0 6px;
    color: #131b2c;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.15;
}

.offer-rental-calculator > p {
    margin: 0 0 20px;
    color: #6d6a62;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---- panel wyniku (hero) ---- */
.rental-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 22px;
    margin-bottom: 22px;
    color: #fff;
    background: linear-gradient(150deg, #1b3a68, #10233f 60%, #0b1d34);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(16, 35, 63, 0.2);
}

.rental-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 138, 58, 0.34), transparent 66%);
    filter: blur(10px);
    pointer-events: none;
}

.rental-hero-main {
    position: relative;
    z-index: 1;
}

.rental-hero-label {
    display: block;
    color: #e0bd77;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rental-hero-value {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.7rem, 4.4vw, 2.15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.rental-hero-split {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.rental-hero-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.rental-hero-cell[hidden] {
    display: none;
}

.rental-hero-cell span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.72rem;
    font-weight: 500;
}

.rental-hero-cell strong {
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ---- kontrolki ---- */
.rental-fields {
    display: grid;
    gap: 20px;
    margin-bottom: 18px;
}

.rental-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.rental-field-head label,
.rental-control-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2c2a24;
    font-size: 0.84rem;
    font-weight: 700;
}

[data-rental-occupancy-output] {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 800;
}

[data-rental-rate-input] {
    width: 96px;
    min-height: 40px;
    padding: 6px 10px;
    text-align: center;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 35, 63, 0.14);
    border-radius: 11px;
    font-weight: 800;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-rental-rate-input]:focus {
    outline: none;
    border-color: rgba(185, 138, 58, 0.7);
    box-shadow: 0 0 0 4px rgba(185, 138, 58, 0.14);
}

.rental-tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.rental-tooltip-trigger {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    padding: 0;
    cursor: help;
    color: #a9762b;
    background: rgba(185, 138, 58, 0.12);
    border: 1px solid rgba(185, 138, 58, 0.3);
    border-radius: 50%;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.rental-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: 200px;
    transform: translateX(-50%);
    padding: 9px 12px;
    color: #fff;
    background: var(--navy);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 12px 30px rgba(16, 35, 63, 0.24);
}

.rental-tooltip-wrap:hover .rental-tooltip,
.rental-tooltip-trigger:focus-visible + .rental-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---- suwaki ---- */
.offer-rental-calculator input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    min-height: 0;
    margin: 6px 0 0;
    padding: 0;
    background: linear-gradient(90deg, #c79a45 var(--range-progress, 50%), rgba(16, 35, 63, 0.1) var(--range-progress, 50%));
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.offer-rental-calculator input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

.offer-rental-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -5px;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(169, 118, 43, 0.5);
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-rental-calculator input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 3px 10px rgba(169, 118, 43, 0.6), 0 0 0 5px rgba(185, 138, 58, 0.14);
}

.offer-rental-calculator input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
    cursor: grabbing;
}

.offer-rental-calculator input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(169, 118, 43, 0.5);
    cursor: grab;
}

.rental-calculator-note {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 35, 63, 0.08);
    color: #8a8578;
    font-size: 0.76rem;
    line-height: 1.5;
}

/* =========================================================================
   SEKCJA ZAPYTANIA (includes/offer_inquiry_form.php)
   ========================================================================= */
.offer-inquiry-section {
    position: relative;
    margin-top: clamp(40px, 6vw, 80px);
    padding: clamp(30px, 4vw, 56px) clamp(24px, 3vw, 52px);
    overflow: hidden;
    color: #fff;
    background: linear-gradient(155deg, rgba(27, 58, 104, 0.98), rgba(11, 29, 52, 0.99));
    border: 1px solid rgba(185, 138, 58, 0.26);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(16, 35, 63, 0.24);
}

.offer-inquiry-section::before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 138, 58, 0.24), transparent 66%);
    filter: blur(16px);
    pointer-events: none;
}

.offer-inquiry-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(26px, 3.4vw, 52px);
    align-items: start;
}

.offer-inquiry-kicker {
    display: block;
    margin-bottom: 14px;
    color: #e0bd77;
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.offer-inquiry-copy h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.offer-inquiry-copy > p {
    max-width: 46ch;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.65;
}

.offer-inquiry-summary {
    margin-top: 26px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.offer-inquiry-summary h3 {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.55);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.offer-inquiry-summary dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.offer-inquiry-summary dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.offer-inquiry-summary dt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.86rem;
    font-weight: 500;
}

.offer-inquiry-summary dd {
    margin: 0;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 700;
    text-align: right;
}

.offer-inquiry-person {
    margin-top: 24px;
}

.offer-inquiry-person-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.offer-inquiry-person-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.offer-inquiry-avatar {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    overflow: hidden;
    color: #e0bd77;
    background: rgba(185, 138, 58, 0.16);
    border: 1px solid rgba(185, 138, 58, 0.4);
    border-radius: 50%;
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
}

.offer-inquiry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-inquiry-person-inner strong {
    display: block;
    color: #fff;
    font-weight: 700;
}

.offer-inquiry-person-inner span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* karta formularza — jasna, na ciemnym tle */
.offer-inquiry-form-card {
    padding: clamp(24px, 2.8vw, 34px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.offer-inquiry-form-card h3 {
    margin: 0;
    color: #131b2c;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    letter-spacing: -0.01em;
}

.offer-inquiry-form-card > p {
    margin: 10px 0 22px;
    color: #514e46;
    font-size: 0.95rem;
    line-height: 1.6;
}

.offer-inquiry-form {
    display: grid;
    gap: 15px;
}

.offer-inquiry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.offer-inquiry-form label {
    display: grid;
    gap: 8px;
    color: #2c2a24;
    font-size: 0.82rem;
    font-weight: 700;
}

.offer-inquiry-form input,
.offer-inquiry-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 35, 63, 0.12);
    border-radius: 13px;
    font: inherit;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.offer-inquiry-form textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}

.offer-inquiry-form input::placeholder,
.offer-inquiry-form textarea::placeholder {
    color: #a7a297;
    font-weight: 400;
}

.offer-inquiry-form input:focus,
.offer-inquiry-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: rgba(185, 138, 58, 0.7);
    box-shadow: 0 0 0 4px rgba(185, 138, 58, 0.14);
}

.offer-inquiry-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 11px !important;
    color: #514e46 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    line-height: 1.45;
}

.offer-inquiry-consent input {
    width: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
}

.offer-inquiry-consent a {
    color: #a9762b;
    font-weight: 700;
    text-decoration: underline;
}

.offer-inquiry-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.offer-inquiry-trust {
    margin: 0;
    color: #7a776e;
    font-size: 0.8rem;
    text-align: center;
}

/* komunikaty */
.offer-inquiry-message {
    margin-bottom: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.offer-inquiry-message--error {
    color: var(--error);
    background: #fff1ef;
    border: 1px solid #f3beb7;
}

.offer-inquiry-message--error ul {
    margin: 0;
    padding-left: 18px;
}

.success-confirmation {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f6d3a;
    background: #eef8ef;
    border: 1px solid #bfe5cc;
}

.success-confirmation strong {
    display: block;
}

.success-confirmation small {
    display: block;
    font-weight: 500;
}

.success-confirmation-icon svg {
    width: 40px;
    height: 40px;
    stroke: #1f6d3a;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
body.offer-lightbox-open {
    overflow: hidden;
}

.offer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px clamp(76px, 8vw, 112px);
}

.offer-lightbox[hidden] {
    display: none;
}

.offer-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 0;
    border: 0;
    cursor: zoom-out;
    background: rgba(8, 16, 30, 0.9);
    backdrop-filter: blur(8px);
    animation: offerFade 0.3s ease both;
}

.offer-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    width: min(1100px, 100%);
    height: min(900px, calc(100vh - 48px));
    height: min(900px, calc(100dvh - 48px));
    min-width: 0;
    min-height: 0;
    color: #ffffff;
    animation: offerZoomIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.offer-lightbox-media {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.offer-lightbox-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.offer-lightbox-close {
    position: absolute;
    top: clamp(12px, 2vw, 24px);
    right: clamp(12px, 2vw, 24px);
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(17, 24, 36, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.offer-lightbox-close::before,
.offer-lightbox-close::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.offer-lightbox-close::before {
    transform: rotate(45deg);
}

.offer-lightbox-close::after {
    transform: rotate(-45deg);
}

.offer-lightbox-close:hover,
.offer-lightbox-close:focus-visible {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    transform: scale(1.04);
}

.offer-lightbox-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(17, 24, 36, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.offer-lightbox-control:hover,
.offer-lightbox-control:focus-visible {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    transform: translateY(-50%) scale(1.04);
}

.offer-lightbox-control.is-prev {
    left: clamp(12px, 2.2vw, 32px);
}

.offer-lightbox-control.is-next {
    right: clamp(12px, 2.2vw, 32px);
}

.offer-lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    text-align: center;
}

.offer-lightbox-caption [data-offer-lightbox-counter] {
    flex: 0 0 auto;
    font-family: "Cinzel", Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.offer-lightbox-caption [data-offer-lightbox-alt] {
    min-width: 0;
    overflow-wrap: anywhere;
}

@keyframes offerFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes offerZoomIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================================================
   404 — brak oferty
   ========================================================================= */
.compact-hero {
    position: relative;
    z-index: 2;
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(60px, 12vh, 140px) 0;
    text-align: center;
}

.compact-hero .eyebrow {
    color: #a9762b;
    font-family: "Cinzel", Georgia, serif;
    letter-spacing: 0.24em;
}

.compact-hero h1 {
    margin: 12px 0 16px;
    color: #131b2c;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.02em;
}

.compact-hero p {
    margin: 0 auto 28px;
    max-width: 52ch;
    color: #514e46;
    font-size: 1.05rem;
}

/* =========================================================================
   SYSTEM PRZYCISKÓW .dg-btn (spójny z contact.css)
   ========================================================================= */
.dg-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.dg-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);
}

.dg-btn:hover::before { transform: translateX(130%); }
.dg-btn:hover { transform: translateY(-2px); }
.dg-btn:active { transform: translateY(0); }

.dg-btn:focus-visible {
    outline: 2px solid rgba(185, 138, 58, 0.7);
    outline-offset: 3px;
}

.dg-btn .dg-arrow { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dg-btn:hover .dg-arrow { transform: translate(3px, -3px); }

.dg-btn--navy {
    color: #fff;
    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);
}

.dg-btn--navy:hover {
    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);
}

.dg-btn--gold {
    color: #241703;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(169, 118, 43, 0.22);
}

.dg-btn--gold:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 14px rgba(169, 118, 43, 0.16);
}

.dg-btn--glass {
    color: var(--navy);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(16, 35, 63, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(16, 35, 63, 0.06);
}

.dg-btn--glass:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(185, 138, 58, 0.45);
}

.dg-btn--darkglass {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dg-btn--darkglass:hover {
    background: rgba(185, 138, 58, 0.2);
    border-color: rgba(185, 138, 58, 0.55);
}

.dg-btn--lg { min-height: 54px; padding: 15px 30px; font-size: 15px; }
.dg-btn--md { min-height: 46px; padding: 12px 22px; font-size: 14px; }
.dg-btn--block { width: 100%; min-height: 54px; border-radius: 16px; font-size: 1rem; }

/* przyciski w karcie kontaktu (revealy) — ta sama animacja co .dg-btn */
.offer-contact-actions .btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    cursor: pointer;
    border: 0;
    border-radius: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}

.offer-contact-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);
}

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

.offer-contact-actions .btn:active {
    transform: translateY(0);
}

.offer-contact-actions .btn-primary {
    color: #241703;
    background: linear-gradient(150deg, #e6c47f, #c79a45 54%, #ac7a2e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(169, 118, 43, 0.24);
}

.offer-contact-actions .btn-primary:hover {
    transform: translateY(-2px);
}

.offer-contact-actions .btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.offer-contact-actions .btn-ghost:hover {
    background: rgba(185, 138, 58, 0.2);
    border-color: rgba(185, 138, 58, 0.55);
    transform: translateY(-2px);
}

/* przycisk wysyłki w formularzu zapytania — ta sama animacja */
.offer-inquiry-submit.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(150deg, #1b3a68, #10233f 58%, #0b1d34);
    border: 0;
    border-radius: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(16, 35, 63, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.offer-inquiry-submit.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);
}

.offer-inquiry-submit.btn:hover::before {
    transform: translateX(130%);
}

.offer-inquiry-submit.btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(16, 35, 63, 0.26), 0 0 24px rgba(185, 138, 58, 0.28);
}

.offer-inquiry-submit.btn:active {
    transform: translateY(0);
}

/* =========================================================================
   ANIMACJA WEJŚCIA (pierwszy ekran — jak hero na kontakt.php)
   ========================================================================= */
@keyframes offerEnter {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* wszystkie sekcje wjeżdżają przez scroll-reveal (.offer-reveal);
   stagger pierwszego ekranu steruje offer-detail.js */

/* =========================================================================
   SCROLL REVEAL (klasy dodaje offer-detail.js)
   ========================================================================= */
@keyframes offerRevealIn {
    from {
        opacity: 0;
        transform: translateY(42px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.offer-detail-page.has-scroll-animations .offer-reveal.offer-reveal-armed {
    opacity: 0;
    will-change: opacity, transform;
}

/* animacja keyframes zamiast transition — odtwarza się ZAWSZE od klatki 0,
   niezależnie od tego, kiedy przeglądarka namalowała stan ukryty */
.offer-detail-page.has-scroll-animations .offer-reveal.offer-reveal-armed.is-visible {
    opacity: 1;
    animation: offerRevealIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

/* =========================================================================
   RESPONSYWNOŚĆ
   ========================================================================= */
@media (max-width: 1040px) {
    /* jedna kolumna — spłaszczamy grid i układamy sekcje kolejno:
       galeria → cena → treści → kalkulator → kontakt → (formularz poniżej) */
    .offer-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .offer-layout-main,
    .offer-layout-aside,
    .offer-aside-top {
        display: contents;
    }

    .offer-sr-title { order: 0; }
    .offer-gallery { order: 1; }
    .offer-summary-card {
        order: 2;
        position: static;
        top: auto;
        z-index: auto;
        width: auto !important;
        left: auto !important;
    }
    .offer-summary-spacer { display: none; }
    /* „Informacje o nieruchomości” (pierwsza karta) tuż po cenie, potem kontakt */
    .offer-layout-main > section.offer-content-card { order: 5; }
    .offer-layout-main > section.offer-content-card:first-of-type { order: 3; }
    .offer-contact-person-card {
        order: 4;
        position: static;
        top: auto;
    }
    .offer-rental-calculator {
        order: 6;
        margin-top: 0;
    }
}

/* stopka strony ponad stałym tłem .offer-bg */
.site-footer {
    position: relative;
    z-index: 3;
}

@media (max-width: 760px) {
    .offer-inquiry-layout {
        grid-template-columns: 1fr;
    }

    .offer-key-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-lightbox {
        padding: 12px 8px 16px;
    }

    .offer-lightbox-panel {
        width: 100%;
        height: calc(100vh - 28px);
        height: calc(100dvh - 28px);
    }

    .offer-lightbox-media {
        padding-inline: 34px;
    }

    .offer-lightbox-control {
        width: 42px;
        height: 42px;
    }

    .offer-lightbox-control.is-prev { left: 8px; }
    .offer-lightbox-control.is-next { right: 8px; }

    .offer-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }

    .offer-lightbox-caption {
        padding-inline: 6px;
        font-size: 0.78rem;
    }
}

@media (max-width: 560px) {
    .offer-inquiry-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offer-orb,
    .offer-gallery-slide {
        animation: none !important;
        transition: none !important;
    }

    .offer-detail-page.has-scroll-animations .offer-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}


/* Osobna sekcja udogodnień */
.offer-amenity-group + .offer-amenity-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 35, 63, 0.09);
}

.offer-amenity-group h3 {
    margin: 0 0 12px;
    color: rgba(23, 23, 22, 0.62);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.offer-amenity-group .feature-list {
    margin-top: 0;
}

@media (max-width: 640px) {
    .offer-amenity-group + .offer-amenity-group {
        margin-top: 20px;
        padding-top: 18px;
    }
}
