.offers-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 58px) 0 96px;
    color: var(--navy);
    overflow-anchor: none;
    background:
        radial-gradient(circle at 88% 8%, rgba(212, 169, 82, 0.18), transparent 25%),
        linear-gradient(115deg, transparent 0 72%, rgba(16, 37, 45, 0.04) 72% 72.15%, transparent 72.15%),
        var(--paper);
}

.offers-page::before {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: 6px;
    content: "";
    background: linear-gradient(90deg, var(--navy) 0 36%, var(--gold) 36% 43%, var(--navy) 43% 100%);
}

.offers-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.offers-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 38px;
}

.offers-kicker {
    margin: 0 0 12px;
    color: #8c661f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.offers-heading h1 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(3.4rem, 5.4vw, 5.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

.offers-intro {
    max-width: 680px;
    margin: 18px 0 0;
    color: #52666c;
    font-size: 1rem;
    line-height: 1.85;
}

.offers-total-mark {
    min-width: 150px;
    padding: 18px 22px;
    border-left: 3px solid var(--gold);
    background: rgba(255, 253, 248, 0.58);
}

.offers-total-mark strong,
.offers-total-mark span {
    display: block;
}

.offers-total-mark strong {
    font-family: var(--display-font);
    font-size: 2.5rem;
    line-height: 1;
}

.offers-total-mark span {
    margin-top: 8px;
    color: #68777b;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
}

.offers-filter-panel {
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    margin-bottom: 32px;
    padding: 22px;
    background: rgba(255, 253, 248, 0.94);
    border: 1px solid rgba(16, 37, 45, 0.16);
    box-shadow: 0 18px 48px rgba(16, 37, 45, 0.09);
    backdrop-filter: blur(12px);
}

.offers-filter-summary {
    display: none;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 16px;
    padding: 9px 12px;
    color: var(--navy);
    background: transparent;
    border: 0;
    text-align: left;
}

.offers-filter-summary-title {
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.offers-filter-summary-action {
    margin-left: auto;
    flex: 0 0 auto;
    color: #7b5818;
    font-size: 0.78rem;
    font-weight: 700;
}

.offers-filter-panel.is-filter-scrolled {
    --offers-filter-gutter: max(30px, calc((100vw - 1440px) / 2 + 10px));
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px var(--offers-filter-gutter);
    background: rgba(255, 253, 248, 0.99);
    border: 0;
    box-shadow: 0 14px 30px rgba(16, 37, 45, 0.16);
    backdrop-filter: blur(12px);
}

.offers-filter-panel.is-filter-scrolled + .offers-results-meta {
    padding-top: calc(var(--offers-filter-space, 0px) + 32px);
}

.offers-filter-panel.is-filter-scrolled .offers-filter-summary {
    display: flex;
}

.offers-filter-panel.is-filter-scrolled:not(.is-filter-expanded) .offers-filter-fields {
    display: none;
}

.offers-filter-panel.is-filter-scrolled.is-filter-expanded {
    box-shadow: none;
}

.offers-filter-panel.is-filter-scrolled.is-filter-expanded .offers-filter-fields {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 22px var(--offers-filter-gutter) 24px;
    background: rgba(255, 253, 248, 0.99);
    box-shadow: 0 22px 48px rgba(16, 37, 45, 0.16);
    backdrop-filter: blur(12px);
}

.offers-filter-summary:hover,
.offers-filter-summary:focus-visible {
    background: rgba(16, 37, 45, 0.055);
}

.offers-filter-summary:focus-visible {
    outline: 3px solid rgba(212, 169, 82, 0.35);
    outline-offset: -3px;
}

.offers-search-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(190px, 0.36fr) minmax(150px, 0.25fr) auto;
    gap: 12px;
}

.offers-field label,
.offers-category-label {
    display: block;
    margin: 0 0 7px;
    color: #53686e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.offers-field input,
.offers-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    color: var(--navy);
    background: #fffdf8;
    border: 1px solid rgba(16, 37, 45, 0.28);
    border-radius: 0;
}

.offers-field input:focus,
.offers-field select:focus {
    border-color: #8c661f;
    outline: 3px solid rgba(212, 169, 82, 0.22);
}

.offers-clear {
    align-self: end;
    min-height: 48px;
    padding: 10px 18px;
    color: var(--navy);
    background: transparent;
    border: 1px solid rgba(16, 37, 45, 0.28);
    font-weight: 700;
}

.offers-clear:hover {
    background: rgba(16, 37, 45, 0.06);
}

.offers-category-wrap {
    margin-top: 18px;
}

.offers-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offers-category-list button {
    min-width: 54px;
    min-height: 42px;
    padding: 8px 15px;
    color: #41585e;
    background: transparent;
    border: 1px solid rgba(16, 37, 45, 0.2);
    border-radius: 999px;
    font-weight: 700;
}

.offers-category-list button[aria-pressed="true"] {
    color: #fffdf8;
    background: var(--navy);
    border-color: var(--navy);
}

.offers-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: #53686e;
}

.offers-results-meta strong {
    color: var(--navy);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.offer-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.9);
    border: 1px solid rgba(16, 37, 45, 0.15);
    box-shadow: 0 16px 42px rgba(16, 37, 45, 0.07);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.offer-card:hover {
    border-color: rgba(157, 116, 38, 0.42);
    box-shadow: 0 20px 52px rgba(16, 37, 45, 0.11);
    transform: translateY(-3px);
}

.offer-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--gold) 0 28%, var(--navy) 28% 100%);
}

.offer-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 144px;
    align-items: start;
    gap: 20px;
    margin-top: 18px;
}

.offer-card-summary-copy {
    min-width: 0;
}

.offer-card-media {
    position: relative;
    display: grid;
    width: 144px;
    height: 108px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    padding: 14px;
    background: linear-gradient(135deg, #fffdf8, #f3eee3);
    border: 1px solid rgba(157, 116, 38, 0.34);
    box-shadow: 0 8px 22px rgba(16, 37, 45, 0.1);
    place-items: center;
}

.offer-card-media.theme-dark {
    background: linear-gradient(135deg, #18343d, #0d1d22);
    border-color: rgba(212, 169, 82, 0.42);
}

.offer-card-media img {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    place-self: center;
    filter: drop-shadow(0 2px 6px rgba(16, 37, 45, 0.16));
}

.offer-card-media.is-icon img {
    width: 64px;
    height: 64px;
}

.offer-card-media.is-photo {
    padding: 0;
    background: #10252d;
}

.offer-card-media.is-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.offer-card-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    color: rgba(16, 37, 45, 0.58);
    transition: opacity 180ms ease;
}

.has-logo .offer-card-placeholder {
    opacity: 0;
}

.offer-card-placeholder-mark {
    font-family: var(--display-font);
    font-size: clamp(2.7rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.offer-card-placeholder.is-word .offer-card-placeholder-mark {
    font-family: var(--body-font);
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.offer-card-placeholder.is-long-word .offer-card-placeholder-mark {
    font-size: 1.28rem;
    letter-spacing: 0.01em;
}

.offer-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.offer-card-topline,
.offer-tags,
.offer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.offer-type,
.offer-tag,
.offer-registration {
    padding: 4px 9px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.offer-type {
    color: #fffdf8;
    background: var(--navy);
}

.offer-registration {
    color: #6d4b0d;
    background: #f1d28b;
}

.offer-agency {
    margin-left: auto;
    color: #64767b;
    font-size: 0.75rem;
}

.offer-card h2 {
    min-height: 2.8em;
    margin: 0;
    font-family: var(--display-font);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

.offer-period {
    margin: 12px 0 0;
    color: #8a631c;
    font-size: 0.86rem;
    font-weight: 700;
}

.offer-content {
    margin: 18px 0;
    color: #3f565c;
    line-height: 1.75;
    white-space: pre-line;
}

.offer-gallery-action {
    margin: -2px 0 18px;
}

.offer-gallery-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 18px;
    padding: 9px 10px 9px 16px;
    color: #68480e;
    background: rgba(212, 169, 82, 0.12);
    border: 1px solid rgba(157, 116, 38, 0.48);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.offer-gallery-button-count {
    display: grid;
    width: 26px;
    height: 26px;
    color: #fffdf8;
    background: var(--navy);
    font-family: var(--display-font);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1;
    place-items: center;
    transition: background 180ms ease;
}

.offer-gallery-button:hover {
    color: var(--navy);
    background: rgba(212, 169, 82, 0.22);
    border-color: #8c661f;
    transform: translateY(-1px);
}

.offer-gallery-button:hover .offer-gallery-button-count {
    background: #8c661f;
}

.offer-gallery-button:focus-visible,
.offer-gallery-dialog-close:focus-visible {
    outline: 3px solid rgba(212, 169, 82, 0.42);
    outline-offset: 3px;
}

.offer-facts {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(16, 37, 45, 0.13);
}

.offer-facts div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
}

.offer-facts dt,
.offer-facts dd {
    margin: 0;
}

.offer-facts dt {
    color: #748388;
    font-size: 0.78rem;
    font-weight: 700;
}

.offer-facts dd {
    color: #344d53;
    font-size: 0.86rem;
    line-height: 1.65;
    white-space: pre-line;
}

.offer-tag {
    color: #6d4b0d;
    background: rgba(212, 169, 82, 0.18);
    border: 1px solid rgba(157, 116, 38, 0.24);
}

.offer-tags {
    margin-top: auto;
    padding-top: 4px;
}

.offer-schedules {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: rgba(16, 37, 45, 0.045);
}

.offer-schedules summary {
    cursor: pointer;
    font-weight: 700;
}

.offer-schedules ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.offer-schedules li + li {
    margin-top: 10px;
}

.offer-links {
    margin: 18px -24px -24px;
    padding: 0 24px;
    border-top: 1px solid rgba(16, 37, 45, 0.13);
}

.offer-links a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    color: #765213;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.offer-links a + a::before {
    width: 1px;
    height: 16px;
    margin-right: 8px;
    content: "";
    background: rgba(16, 37, 45, 0.2);
}

.offer-links a:hover,
.offer-links a:focus-visible {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.offer-links a:visited {
    color: #5f536f;
}

.offer-gallery-dialog {
    width: min(1120px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    padding: 0;
    overflow: auto;
    color: var(--navy);
    background: transparent;
    border: 0;
}

.offer-gallery-dialog::backdrop {
    background: rgba(7, 20, 25, 0.82);
    backdrop-filter: blur(10px);
}

.offer-gallery-dialog-panel {
    position: relative;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(212, 169, 82, 0.12), transparent 34%),
        #fffdf8;
    border-top: 4px solid var(--gold);
    box-shadow: 0 30px 90px rgba(4, 15, 19, 0.42);
}

.offer-gallery-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fffdf8;
    background: var(--navy);
    border: 1px solid rgba(255, 253, 248, 0.26);
    font-size: 1.55rem;
    line-height: 1;
    place-items: center;
}

.offer-gallery-dialog-close:hover {
    color: var(--navy);
    background: var(--gold);
}

.offer-gallery-dialog-heading {
    padding: 4px 70px 24px 2px;
}

.offer-gallery-dialog-heading > p:first-child {
    margin: 0 0 8px;
    color: #8c661f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.offer-gallery-dialog-heading h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.offer-gallery-dialog-heading > p:last-child {
    margin: 12px 0 0;
    color: #53686e;
    line-height: 1.7;
}

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

.offer-gallery-dialog-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.offer-gallery-item {
    position: relative;
    display: grid;
    min-height: 260px;
    margin: 0;
    padding: 10px;
    background: #f6f0e6;
    border: 1px solid rgba(157, 116, 38, 0.3);
    place-items: center;
}

.offer-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(440px, calc(100dvh - 270px));
    object-fit: contain;
}

.offer-gallery-dialog-grid.is-single .offer-gallery-item img {
    max-height: calc(100dvh - 255px);
}

.offer-gallery-item-index {
    position: absolute;
    top: 18px;
    left: 18px;
    min-width: 30px;
    padding: 5px 7px;
    color: #fffdf8;
    background: rgba(16, 37, 45, 0.88);
    font-family: var(--display-font);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
}

.offer-gallery-item.is-error {
    color: #7d3b3b;
    background: #fff3f3;
    border-color: rgba(162, 59, 59, 0.36);
}

.offer-gallery-item-state {
    font-size: 0.82rem;
    font-weight: 700;
}

.offers-state {
    grid-column: 1 / -1;
    padding: 54px 24px;
    color: #52666c;
    background: rgba(255, 253, 248, 0.66);
    border: 1px dashed rgba(16, 37, 45, 0.28);
    text-align: center;
}

.offers-load-more {
    display: block;
    min-width: 180px;
    min-height: 50px;
    margin: 34px auto 0;
    padding: 10px 24px;
    color: #fffdf8;
    background: var(--navy);
    border: 1px solid var(--navy);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.offers-load-more[hidden] {
    display: none;
}

@media (max-width: 1099.98px) {
    .offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offers-search-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .offers-page {
        padding-top: calc(var(--header-height) + 38px);
    }

    .offers-shell {
        width: min(100% - 28px, 680px);
    }

    .offers-heading {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
    }

    .offers-heading h1 {
        font-size: clamp(2.85rem, 14vw, 4.2rem);
    }

    .offers-total-mark {
        min-width: 0;
    }

    .offers-filter-panel {
        position: relative;
        top: auto;
        padding: 18px;
    }

    .offers-filter-panel.is-filter-scrolled {
        padding: 18px;
    }

    .offers-filter-panel.is-filter-scrolled .offers-filter-summary {
        display: none;
    }

    .offers-filter-panel.is-filter-scrolled:not(.is-filter-expanded) .offers-filter-fields {
        display: block;
    }

    .offers-search-row,
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offers-clear {
        width: 100%;
    }

    .offers-results-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-gallery-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
    }

    .offer-gallery-dialog-panel {
        padding: 20px;
    }

    .offer-gallery-dialog-heading {
        padding: 3px 52px 18px 0;
    }

    .offer-gallery-dialog-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    .offer-gallery-dialog-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .offer-gallery-item {
        min-height: 180px;
        padding: 6px;
    }

    .offer-gallery-item img,
    .offer-gallery-dialog-grid.is-single .offer-gallery-item img {
        max-height: calc(100dvh - 225px);
    }

    .offer-gallery-item-index {
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 479.98px) {
    .offer-card-summary {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 14px;
    }

    .offer-card-media {
        width: 96px;
        height: 82px;
        padding: 10px;
    }

    .offer-card-media.is-icon img {
        width: 52px;
        height: 52px;
    }

    .offer-card h2 {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offers-page *,
    .offers-page *::before,
    .offers-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
