:root {
    --jrm-red: #ea001b;
    --jrm-black: #090909;
    --jrm-text: #171717;
    --jrm-muted: #777b80;
    --jrm-line: #d8dadd;
    --jrm-radius: 16px;
    --jrm-font: 'Lexend', Arial, sans-serif;
}

.jrm-wrap,
.jrm-related,
.jrm-summary,
.jrm-gallery-section,
.jrm-hero,
.jrm-breadcrumbs,
.jrm-lightbox {
    width: 100%;
    box-sizing: border-box;
    color: var(--jrm-text);
    font-family: var(--jrm-font);
}

.jrm-wrap *,
.jrm-related *,
.jrm-summary *,
.jrm-gallery-section *,
.jrm-hero *,
.jrm-breadcrumbs *,
.jrm-lightbox * {
    box-sizing: border-box;
    font-family: var(--jrm-font);
}

.jrm-cards {
    display: grid;
    gap: 20px;
    width: 100%;
}

.jrm-cards--cols-1 { grid-template-columns: 1fr; }
.jrm-cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jrm-cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jrm-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.jrm-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--jrm-line);
    border-radius: var(--jrm-radius);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.jrm-card:hover {
    border-color: #b6b9bd;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

.jrm-card__link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
}

.jrm-card__media {
    position: relative;
    min-height: 248px;
    background-color: #d9d9d9;
    background-position: center;
    background-size: cover;
}

.jrm-card__media::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 45%);
}

.jrm-card__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--jrm-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.jrm-card__body {
    display: flex;
    min-height: 158px;
    padding: 20px 20px 18px;
    flex: 1;
    flex-direction: column;
}

.jrm-card__location {
    margin-bottom: 9px;
    color: var(--jrm-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.jrm-card__title {
    margin: 0;
    color: #000;
    font-size: clamp(18px, 1.45vw, 24px);
    font-weight: 500;
    line-height: 1.08;
}

.jrm-card__bottom {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    align-items: flex-end;
    justify-content: space-between;
}

.jrm-card__meta {
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.jrm-card__arrow {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--jrm-red);
    border-radius: 12px;
    color: var(--jrm-red);
    font-size: 22px;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
    place-items: center;
}

.jrm-card:hover .jrm-card__arrow {
    background: var(--jrm-red);
    color: #fff;
}

.jrm-empty {
    padding: 30px;
    border: 1px dashed var(--jrm-line);
    border-radius: 14px;
    color: var(--jrm-muted);
    text-align: center;
}

.jrm-pagination {
    margin-top: 28px;
}

.jrm-pagination .page-numbers {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.jrm-pagination a,
.jrm-pagination span.page-numbers {
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f3f3f3;
    color: #494949;
    font-size: 13px;
    text-decoration: none;
    place-items: center;
}

.jrm-pagination span.current {
    background: #111;
    color: #fff;
}

.jrm-breadcrumbs {
    display: flex;
    gap: 7px;
    color: #7a7a7a;
    font-size: 13px;
    align-items: center;
    flex-wrap: wrap;
}

.jrm-breadcrumbs a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jrm-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(540px, 43vw, 690px);
    min-height: 540px;
    border-radius: 10px;
    background-color: #ddd;
    background-image: var(--jrm-hero-image);
    background-position: center 42%;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.jrm-hero::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .03) 0%, rgba(0, 0, 0, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .82) 76%, #fff 96%);
    pointer-events: none;
}

.jrm-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: clamp(54px, 5vw, 76px) clamp(24px, 6vw, 86px) clamp(32px, 3vw, 42px);
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}

.jrm-hero__title {
    max-width: 1100px;
    margin: 0 0 24px;
    color: #000;
    font-size: clamp(40px, 3.7vw, 58px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.jrm-hero__facts {
    display: grid;
    width: fit-content;
    max-width: 100%;
    gap: 18px clamp(24px, 3vw, 42px);
    margin: 0 0 34px;
    align-items: start;
    justify-content: center;
    grid-template-columns: repeat(4, max-content);
}

.jrm-hero__fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
}

.jrm-hero__fact span {
    margin-bottom: 4px;
    color: #7d7d7d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.jrm-hero__fact strong {
    display: block;
    width: max-content;
    max-width: none;
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    text-wrap: nowrap;
}

.jrm-button {
    display: inline-flex;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    align-items: center;
    justify-content: center;
}

.jrm-button--primary {
    border-color: var(--jrm-red);
    background: var(--jrm-red);
    color: #fff;
}

.jrm-button--primary:hover {
    border-color: #bd0016;
    background: #bd0016;
    color: #fff;
}

.jrm-hero .jrm-button {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
}

.jrm-button--outline {
    border-color: var(--jrm-red);
    background: transparent;
    color: var(--jrm-red);
}

.jrm-button--outline:hover {
    background: var(--jrm-red);
    color: #fff;
}

.jrm-summary {
    scroll-margin-top: 40px;
}

.jrm-summary__title {
    margin: 0 0 clamp(42px, 5vw, 64px);
    color: #000;
    font-size: 50px;
    font-weight: 500;
    line-height: .98;
}

.jrm-summary__body {
    display: grid;
    gap: clamp(44px, 7vw, 96px);
    grid-template-columns: minmax(300px, .95fr) minmax(0, 1.1fr);
    align-items: start;
}

.jrm-summary__metrics {
    width: 100%;
    max-width: 520px;
}

.jrm-summary__metric {
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--jrm-line);
}

.jrm-summary__metric:first-child {
    padding-top: 0;
}

.jrm-summary__metric strong,
.jrm-summary__metric span {
    display: block;
}

.jrm-summary__metric strong {
    color: #050505;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.jrm-summary__metric span {
    margin-top: 5px;
    color: var(--jrm-red);
    font-size: 16px;
    font-weight: 700;
}

.jrm-summary__content {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.45;
}

.jrm-summary__content p:first-child {
    margin-top: 0;
}

.jrm-summary__content h2,
.jrm-summary__content h3,
.jrm-summary__content h4 {
    margin: 24px 0 10px;
    color: #000;
    font-weight: 500;
    line-height: 1.15;
}

.jrm-summary__content h2:first-child,
.jrm-summary__content h3:first-child,
.jrm-summary__content h4:first-child {
    margin-top: 0;
}

.jrm-summary__content blockquote {
    margin: 24px 0;
    padding: 0;
    border: 0;
    color: #111;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.12;
}

.jrm-section-heading {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 34px;
}

.jrm-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.jrm-section-heading h2 {
    margin: 0 0 18px;
    color: #000;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.03;
}

.jrm-section-heading--center h2,
.jrm-section-heading--center p {
    margin-right: auto;
    margin-left: auto;
}

.jrm-section-heading p {
    max-width: 900px;
    margin-top: 0;
    margin-bottom: 0;
    color: #5d5d5d;
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.35;
}


.jrm-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jrm-gallery__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.45 / 1;
    border-radius: 14px;
    background: #ececec;
}

.jrm-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.jrm-gallery__item:hover img {
    transform: scale(1.025);
}


.jrm-lightbox-open {
    overflow: hidden;
}

.jrm-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    padding: 40px 92px;
    background: rgba(0, 0, 0, .92);
    align-items: center;
    justify-content: center;
}

.jrm-lightbox__figure {
    display: flex;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.jrm-lightbox__image {
    display: block;
    max-width: min(1500px, calc(100vw - 184px));
    max-height: 86vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.jrm-lightbox__close,
.jrm-lightbox__nav {
    display: grid;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(0, 0, 0, .28);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    place-items: center;
}

.jrm-lightbox__close:hover,
.jrm-lightbox__nav:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
}

.jrm-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.jrm-lightbox__nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.jrm-lightbox__nav--prev {
    left: 24px;
}

.jrm-lightbox__nav--next {
    right: 24px;
}

.jrm-lightbox__counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transform: translateX(-50%);
}

@media (max-width: 1100px) {
    .jrm-cards--cols-4,
    .jrm-cards--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jrm-card__media { min-height: 220px; }
    .jrm-summary__body { gap: 50px; }
    .jrm-hero__facts { gap: 16px 22px; }
}

@media (max-width: 800px) {
    .jrm-cards--cols-2,
    .jrm-cards--cols-3,
    .jrm-cards--cols-4 { grid-template-columns: 1fr; }
    .jrm-card__media { min-height: 230px; }
    .jrm-hero {
        height: auto;
        min-height: 580px;
        background-position: center 40%;
    }
    .jrm-hero__content {
        min-height: 580px;
        padding: 64px 24px 34px;
    }
    .jrm-hero__title {
        max-width: 720px;
        margin-bottom: 22px;
        font-size: clamp(36px, 7vw, 48px);
        line-height: 1.08;
    }
    .jrm-hero__facts {
        width: min(100%, 700px);
        gap: 16px 30px;
        margin-bottom: 28px;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
    }
    .jrm-hero__fact {
        max-width: none;
    }
    .jrm-hero__fact span { font-size: 12px; }
    .jrm-hero__fact strong { font-size: 16px; }
    .jrm-summary__title,
    .jrm-section-heading h2 {
        font-size: 44px;
    }
    .jrm-summary__body {
        gap: 42px;
        grid-template-columns: 1fr;
    }
    .jrm-summary__metrics { max-width: none; }
    .jrm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jrm-section-heading { margin-bottom: 28px; }
    .jrm-section-heading p { font-size: 17px; }
    .jrm-lightbox { padding: 32px 70px; }
    .jrm-lightbox__image { max-width: calc(100vw - 140px); max-height: 82vh; }
    .jrm-lightbox__nav { width: 46px; height: 46px; }
    .jrm-lightbox__nav--prev { left: 14px; }
    .jrm-lightbox__nav--next { right: 14px; }
}

@media (max-width: 520px) {
    .jrm-card__body { min-height: 170px; padding: 18px; }
    .jrm-card__title { font-size: 21px; }
    .jrm-card__bottom { align-items: center; }
    .jrm-hero {
        min-height: 610px;
        border-radius: 8px;
        background-position: center 34%;
    }
    .jrm-hero__content {
        min-height: 610px;
        padding: 48px 16px 26px;
    }
    .jrm-hero__title {
        margin-bottom: 20px;
        font-size: clamp(30px, 9.2vw, 39px);
        letter-spacing: -.04em;
    }
    .jrm-hero__facts {
        width: 100%;
        max-width: 340px;
        gap: 12px;
        margin-bottom: 24px;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
    .jrm-hero__fact { align-items: center; }
    .jrm-hero__fact span { font-size: 10px; }
    .jrm-hero__fact strong { font-size: 14px; line-height: 1.25; }
    .jrm-hero .jrm-button {
        min-height: 46px;
        padding: 11px 20px;
        font-size: 14px;
    }
    .jrm-summary__title {
        margin-bottom: 28px;
        font-size: clamp(34px, 10vw, 40px);
        line-height: 1;
    }
    .jrm-summary__content { font-size: 15px; }
    .jrm-summary__content blockquote { font-size: 22px; }
    .jrm-section-heading h2 { font-size: clamp(34px, 10vw, 40px); }
    .jrm-section-heading p { font-size: 16px; }
    .jrm-gallery { grid-template-columns: 1fr; }
    .jrm-lightbox { padding: 72px 14px 58px; }
    .jrm-lightbox__image { max-width: calc(100vw - 28px); max-height: calc(100vh - 130px); }
    .jrm-lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .jrm-lightbox__nav {
        top: auto;
        bottom: 10px;
        width: 44px;
        height: 44px;
        transform: none;
    }
    .jrm-lightbox__nav--prev { left: 14px; }
    .jrm-lightbox__nav--next { right: 14px; }
    .jrm-lightbox__counter { bottom: 24px; }
}
