/* Публичная /point/{slug}: общая шапка + контент */

.point__title {
    margin: 0;
    padding: 0.5rem 1.35rem 0.35rem;
    font-family: Unbounded, sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--title);
    text-align: left;
    max-width: 74rem;
    margin-inline: auto;
}

.point__subtitle {
    margin: 0 auto 0.35rem;
    padding: 0 1.35rem;
    max-width: 74rem;
    font-size: 1rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.point .v06__hero-slider .block-slider__link {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.point__body {
    max-width: 74rem;
    margin: 0 auto;
    padding: 1.5rem 1.35rem 3rem;
}

.point__article,
.point__route-point {
    padding: 0;
}

.point__section {
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 0.75rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.point .block-heroes {
    margin-bottom: 1.25rem;
}

.point__section-title {
    margin: 0 0 0.85rem;
    font-family: Unbounded, sans-serif;
    font-size: 1.15rem;
    color: var(--title);
}

.point__description,
.point__placeholder {
    margin: 0;
    line-height: 1.55;
    color: var(--ink);
}

.point__people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

.point__media-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.85rem;
}

.point__media-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.point__media-item > a,
.point__media-frame,
.point__photo-preview.point__media-frame {
    display: block;
    overflow: hidden;
    border-radius: 0.55rem;
    background: var(--panel-soft);
}

.point__media-item img,
.point__media-item video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.55rem;
    background: var(--panel-soft);
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
    will-change: transform;
}

.point__media-item > a:hover img,
.point__media-item > a:focus-visible img,
.point__media-item .point__photo-preview:hover .point__photo-preview__img,
.point__media-item .point__photo-preview:focus-visible .point__photo-preview__img,
.point__media-item .point__video-preview:hover .point__video-preview__img,
.point__media-item .point__video-preview:focus-visible .point__video-preview__img {
    transform: scale(1.07);
}

.point__media-caption {
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point__heroes-teaser {
    display: flex;
    flex-direction: column;
    max-width: 18rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--panel-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.point__heroes-teaser:hover,
.point__heroes-teaser:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 12%, transparent);
    outline: none;
}

.point__heroes-teaser__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--panel-soft);
}

.point__heroes-teaser__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.point__heroes-teaser:hover .point__heroes-teaser__media img,
.point__heroes-teaser:focus-visible .point__heroes-teaser__media img {
    transform: scale(1.05);
}

.point__heroes-teaser__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.point__heroes-teaser__play::before {
    content: "";
    position: absolute;
    left: 52%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 0.4rem 0 0.4rem 0.7rem;
    border-color: transparent transparent transparent #fff;
}

.point__heroes-teaser__body {
    padding: 0.75rem 0.9rem 0.9rem;
}

.point__heroes-teaser__cta {
    font-family: Unbounded, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--title);
}

.point__heroes-teaser__fallback {
    margin: 0.75rem 0 0;
}

.point__heroes-teaser__fallback a {
    color: var(--title);
    font-weight: 600;
}

.point__slide--media {
    padding: 0;
    overflow: hidden;
    cursor: default;
}

/* Слайдер Point: высота от viewport, ширина по пропорциям кадра */
.point .v06__hero-slider {
    --point-slide-max-h: 30vh;
}

.point .v06__hero-slider .block-slider__slide.point__slide--media {
    flex: 0 0 auto;
    width: auto;
    max-width: min(92vw, 42rem);
    min-height: 0;
    height: var(--point-slide-max-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.point .v06__hero-slider .point__slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    margin: 0;
    padding: 1.35rem 0.65rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent);
    overflow: hidden;
    pointer-events: auto;
    cursor: help;
    /* flex-item: keep caption from stretching past 2 text lines */
    flex: none;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(1.35rem + 0.55rem + 1.25em * 2);
}

.point .v06__hero-slider .point__slide-caption__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: calc(1.25em * 2);
}

/* Затенение как на главной (мягче) */
.point .v06__hero-slider .block-slider__slide.point__slide--media::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgb(15 23 42 / 12%) 0%, rgb(15 23 42 / 42%) 100%),
        linear-gradient(145deg, color-mix(in srgb, var(--slide-tint) 12%, transparent), color-mix(in srgb, var(--slide-tint) 22%, #0f172a));
    opacity: 1;
    transition: opacity 0.35s ease;
}

.point .v06__hero-slider .block-slider__slide.point__slide--media::after {
    display: none;
}

.point .v06__hero-slider .block-slider__slide.point__slide--media:hover::before,
.point .v06__hero-slider .block-slider__slide.point__slide--media:focus-within::before {
    opacity: 0;
}

.point .v06__hero-slider .point__slide-media,
.point .v06__hero-slider .point__photo-preview,
.point .v06__hero-slider .point__video-preview {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: var(--point-slide-max-h);
    min-height: 0;
    background: transparent;
    z-index: 1;
}

/* Видео в слайдере: превью на весь слайд (cover), play поверх */
.point .v06__hero-slider .point__video-preview {
    position: relative;
    width: calc(var(--point-slide-max-h) * 0.72);
    min-width: 7.5rem;
    height: var(--point-slide-max-h);
    overflow: hidden;
    background-color: #0f172a;
    background-image: var(--poster-url, none);
    background-size: cover;
    background-position: center;
}

.point .v06__hero-slider .point__video-preview.has-poster .point__video-preview__img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.point .v06__hero-slider .point__photo-preview__img,
.point .v06__hero-slider .point__video-preview__img,
.point .v06__hero-slider video.point__slide-media {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: var(--point-slide-max-h);
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: brightness(0.92);
    transition: transform 0.45s ease, filter 0.35s ease;
    will-change: transform, filter;
}

.point .v06__hero-slider .point__video-preview__play {
    z-index: 3;
}

.point .v06__hero-slider .point__video-preview__fallback {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    display: grid;
    place-items: center;
    min-height: 0;
    z-index: 1;
}

.point .v06__hero-slider .point__slide--media:hover .point__photo-preview__img,
.point .v06__hero-slider .point__slide--media:focus-within .point__photo-preview__img,
.point .v06__hero-slider .point__slide--media:hover .point__video-preview__img,
.point .v06__hero-slider .point__slide--media:focus-within .point__video-preview__img {
    transform: scale(1.07);
    filter: brightness(1);
}

.point__slide-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 15rem;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
    will-change: transform;
    background: #0f172a;
}

.point__slide--media video.point__slide-media {
    z-index: 2;
}

.point__slide--media:hover .point__slide-media:not(button),
.point__slide--media:focus-within .point__slide-media:not(button) {
    transform: scale(1.06);
}

.point__slide--media:hover .point__photo-preview__img,
.point__slide--media:focus-within .point__photo-preview__img,
.point__slide--media:hover .point__video-preview__img,
.point__slide--media:focus-within .point__video-preview__img {
    transform: scale(1.06);
}

.point__photo-preview {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    overflow: hidden;
    cursor: zoom-in;
    background: #0f172a;
    color: inherit;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.point__photo-preview__img {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.point__media-frame.point__photo-preview {
    min-height: 0;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

.point__media-frame .point__photo-preview__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.point__photo-preview:focus-visible {
    outline: 2px solid var(--accent, #38bdf8);
    outline-offset: 2px;
}

/* Превью видео → клик → lightbox */
.point__video-preview {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    color: inherit;
    font: inherit;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.point__video-preview__img {
    width: 100%;
    height: 100%;
    min-height: 15rem;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.point__media-frame.point__video-preview {
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.point__media-frame .point__video-preview__img,
.point__media-item video.point__media-video {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.point__video-preview__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 15rem;
    font-family: Unbounded, sans-serif;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(145deg, #334155, #0f172a);
    pointer-events: none;
}

.point__media-frame .point__video-preview__fallback {
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.point__video-preview__play {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, #0f172a 55%, transparent);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.point__video-preview__play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.55rem 0 0.55rem 0.9rem;
    border-color: transparent transparent transparent #fff;
}

.point__video-preview:hover .point__video-preview__play,
.point__video-preview:focus-visible .point__video-preview__play {
    transform: scale(1.08);
    background: color-mix(in srgb, #0f172a 35%, transparent);
}

.point__video-preview:focus-visible {
    outline: 2px solid var(--accent, #38bdf8);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .point__media-item img,
    .point__media-item video,
    .point__slide-media,
    .point__photo-preview__img,
    .point__video-preview__img,
    .point__video-preview__play {
        transition: none;
    }

    .point__slide--media:hover .point__slide-media:not(button),
    .point__slide--media:focus-within .point__slide-media:not(button),
    .point__slide--media:hover .point__photo-preview__img,
    .point__slide--media:focus-within .point__photo-preview__img,
    .point__slide--media:hover .point__video-preview__img,
    .point__slide--media:focus-within .point__video-preview__img,
    .point__video-preview:hover .point__video-preview__play,
    .point__video-preview:focus-visible .point__video-preview__play {
        transform: none;
    }
}

.point__person {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.55rem;
    background: var(--panel-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.point__person-name { font-weight: 700; }
.point__person-born { color: color-mix(in srgb, var(--ink) 65%, transparent); font-size: 0.92rem; }

.point__grid {
    display: grid;
    grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.6fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.point__aside {
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 0.75rem;
    padding: 1.15rem 1.25rem;
}

.point__toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.point__toc a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.point__toc a:hover { border-bottom-color: var(--accent); }

.point__map-section { margin-bottom: 0; }

.point__map {
    min-height: 16rem;
    border-radius: 0.75rem;
    border: 3px solid var(--accent);
    background:
        radial-gradient(circle at 22% 35%, var(--map-a) 0%, transparent 42%),
        radial-gradient(circle at 68% 58%, var(--map-b) 0%, transparent 38%),
        linear-gradient(160deg, var(--map-c), var(--map-b));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem;
    text-align: center;
}

.point__map-label {
    margin: 0;
    font-family: Unbounded, sans-serif;
    font-size: 1.05rem;
    color: var(--header-fg);
    text-shadow: 0 1px 6px color-mix(in srgb, var(--ink) 35%, transparent);
}

.point__map-hint {
    margin: 0;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--ink) 80%, #fff);
}

.point__route-kinds {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.point__route-card {
    background: var(--panel);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 0.75rem;
    padding: 1.1rem 1.15rem;
    height: 100%;
}

.point__route-card-title {
    margin: 0 0 0.65rem;
    font-family: Unbounded, sans-serif;
    font-size: 1rem;
}

/* Лайтбокс: фото / видео во весь экран */
html.point-lightbox-open,
body.point-lightbox-open {
    overflow: hidden;
}

.point-lightbox[hidden] {
    display: none !important;
}

.point-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
}

.point-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    cursor: zoom-out;
}

.point-lightbox__panel {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: min(96vw, 72rem);
    max-height: 92vh;
    display: grid;
    place-items: center;
}

.point-lightbox__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.point-lightbox__close:hover,
.point-lightbox__close:focus-visible {
    background: rgba(15, 23, 42, 0.95);
}

.point-lightbox__stage {
    width: auto;
    max-width: min(96vw, 72rem);
    max-height: 92vh;
    display: grid;
    place-items: center;
    line-height: 0;
}

.point-lightbox__media {
    display: block;
    max-width: min(96vw, 72rem);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.point-lightbox__media-wrap {
    position: relative;
    display: block;
    max-width: min(96vw, 72rem);
    max-height: 92vh;
    line-height: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.point-lightbox__media-wrap .point-lightbox__media {
    box-shadow: none;
    border-radius: 0;
}

.point-lightbox__media--video {
    width: min(96vw, 72rem);
    max-height: 92vh;
    background: #000;
}

.point-lightbox__video-wrap {
    position: relative;
    width: min(96vw, 72rem);
    max-height: 92vh;
    display: grid;
    place-items: center;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.point-lightbox__video-wrap .point-lightbox__media--video {
    position: relative;
    z-index: 1;
    box-shadow: none;
    border-radius: 0;
}

.point-lightbox__poster-cover,
.point-lightbox__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.point-lightbox__loading {
    display: grid;
    place-items: center;
    color: #fff;
    font-family: Unbounded, sans-serif;
    font-size: 1rem;
}

.point-lightbox__video-wrap.is-ready .point-lightbox__poster-cover,
.point-lightbox__video-wrap.is-ready .point-lightbox__loading {
    opacity: 0;
}

@media (max-width: 800px) {
    .point__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
        min-height: 0;
    }
    .point__title {
        position: static;
        place-items: start;
        text-align: left;
        padding: 0;
        pointer-events: auto;
    }
    .point__people,
    .point__media-grid { grid-template-columns: 1fr; }
    .point__grid { grid-template-columns: 1fr; }
    .point__route-kinds { grid-template-columns: 1fr; }
    .hero-awards__list { grid-template-columns: 1fr; }
}

/* ── Медали и ордена (страница героя) ─────────────────────────── */

.hero-awards__list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.65rem;
}

.hero-awards__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 0.6rem;
    background: var(--panel-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-awards__item:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero-awards__item--stub {
    opacity: 0.55;
    cursor: default;
}

.hero-awards__icon {
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
}

.hero-awards__name {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 500;
}

.hero-awards__stub-note {
    margin-top: 0;
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--ink) 55%, transparent);
    font-style: italic;
}
