:root {
    --bg: #0f0e0e;
    --ink: #f0efeb;
    --mute: #c6c6c6;
    --line: rgba(255, 255, 255, 0.12);
    --panel: #1c1c1c;
    --flash: #00dcff;
    --tg: #54a6eb;
    --tg-bubble: #1f2c34;
    --font-display: "Syne", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", Consolas, monospace;
    --pad: clamp(1rem, 3vw, 2.5rem);
    --max: 1240px;
    --mast: 4rem;
    --radius: 1rem;
    /* Скорость перехода между секциями. Меняй здесь: 0.2s быстрее, 0.5s медленнее */
    --snap-duration: 0.21s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.5;
}

body.is-home {
    background: var(--bg);
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--flash);
    color: #111;
}

:focus-visible {
    outline: 2px solid var(--flash);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 60;
    background: var(--flash);
    color: #111;
    padding: 0.55rem 0.8rem;
    font-weight: 700;
}

.skip:focus {
    top: 0.6rem;
}

/* Header: logo + contacts only */
.masthead {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    color: #f5f4ef;

}

.masthead__bar {
    min-height: var(--mast);
    margin-inline: auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 1rem;       justify-content: end;
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masthead__mark-wrap {
    width: 34px;
    height: 30px;
    overflow: hidden;
    flex: 0 0 auto;
}

.masthead__mark {
    width: 82px;
    max-width: none;
    height: auto;
    margin: -4px 0 0 -24px;
}

.masthead__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.masthead__contact {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.masthead__contact:hover {
    background: var(--flash);
    color: #111;
    border-color: var(--flash);
}

/* Global page progress scrollbar — отключён вместе со snap-скроллом */
.page-progress {
    display: none !important;
}

.page-progress[hidden] {
    display: none;
}

.page-progress__track,
.page-progress__thumb,
.page-progress__meta {
    pointer-events: auto;
}

.page-progress__track {
    position: relative;
    flex: 1 1 auto;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.page-progress__thumb {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    min-height: 36px;
    margin-left: -6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--flash);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    cursor: grab;
    touch-action: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.2s ease;
}

.page-progress__thumb:active {
    cursor: grabbing;
}

.page-progress__meta {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

/* Sections */
.panel {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
}

.panel--works {
    min-height: auto;
    overflow: visible;
    padding-bottom: 4rem;
}

.panel__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.panel__shade--intro {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.35)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 40%);
}

.panel__shade--preview {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 28%, transparent 58%);
    backdrop-filter: blur(8px) saturate(1.8);
    -webkit-backdrop-filter: blur(8px) saturate(1.8);
}

.panel-video--bg,
img.panel-video--bg {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    object-position: center center;
    transform: translate(-50%, -50%) scale(1.12);
    background: #090909;
    border: 0;
    outline: 0;
    pointer-events: none;
}

/* Hide native video chrome on background players */
.panel-video--bg::-webkit-media-controls,
.panel-video--bg::-webkit-media-controls-enclosure,
.panel-video--bg::-webkit-media-controls-panel,
.panel-video--bg::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
    opacity: 0;
    pointer-events: none;
}

.pack__fs {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 4.7rem;
    height: 4.7rem;
    padding: 0;
    border: 0;
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.pack__fs svg {
    width: 3.2rem;
    height: 3.2rem;
}

.pack__fs:hover {
    background: var(--flash);
    color: #111;
}

.panel__inner {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: 100svh;
    margin-inline: auto;
    padding: calc(var(--mast) + 1.2rem) 0 2rem;
}

.panel__inner--preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    max-width: 42rem;
    margin-left: var(--pad);
    margin-right: auto;
    width: calc(100% - var(--pad) * 2);
}

.panel__eyebrow {
    color: rgba(255, 255, 255, 0.65);
}

.panel__logo {
    width: min(160px, 40vw);
    max-height: 40px;
    margin: 0 0 0.45rem;
    object-fit: contain;
    object-position: left bottom;
}

.panel__title,
.intro__title,
.works h2,
.pack__copy h2,
.about__copy h2,
.contact__mail,
.contact-page h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 0.88;
}

.panel__title {
    font-size: clamp(1.55rem, 3.2vw, 2.4rem);
}

.panel__meta {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0.7rem 0 0;
    padding: 0;
    list-style: none;
}

.project-tags li {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
}

.project-tags img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.project-tags--on-dark img {
    filter: brightness(0) invert(1);
}

.panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.panel__play,
.pack__play {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.05rem;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 800;
}

.pack__play {
    background: var(--flash);
    color: 000;
}

.panel__next {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.05rem;
    background: var(--flash);
    color: #111;
    text-decoration: none;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

/* Intro: full video + text */
.intro {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--mast) + 1.5rem) 0 3rem;
    color: #fff;
}

.intro__eyebrow {
    color: var(--flash);
}

.intro__title {
    font-size: clamp(4rem, 11vw, 9.5rem);
    max-width: 9ch;
}

.intro__lead {
    max-width: 28rem;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.intro__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin-top: 1.5rem;
    padding: 0.95rem 1.2rem;
    background: var(--flash);
    color: #111;
    text-decoration: none;
    font-weight: 800;
}

/* Works grid 3 cols */
.panel--works {
    background: var(--bg);
    color: var(--ink);
}

.works {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--mast) + 1.5rem) 0 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.works__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 1rem;
}

.works__head .eyebrow {
    grid-column: 1 / -1;
}

.works h2 {
    font-size: clamp(3.2rem, 8vw, 7rem);
}

.works__count {
    margin: 0 0 0.4rem;
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    color: var(--mute);
}

.works__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.5rem;
}

.works__tag {
    appearance: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--mute);
    cursor: pointer;
}

.works__tag--all {
    width: auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.works__tag img {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

.works__tag:hover {
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.35);
}

.works__tag:hover img {
    opacity: 1;
}

.works__tag.is-active {
    background: var(--flash);
    border-color: var(--flash);
    color: #111;
}

.works__tag.is-active img {
    opacity: 1;
    filter: none;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.8rem;
}

.work-card {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.work-card.is-hidden,
.work-card[hidden] {
    display: none;
}

.work-card__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 0.65rem;
    background: #1a1a1a;
}

.work-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card__media--contain {
    background: #202020;
}

.work-card__media--contain img {
    object-fit: contain;
    padding: 1rem;
}

.work-card:hover .work-card__media img {
    transform: scale(1.04);
}

.work-card__body {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.7rem;
}

.work-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.work-card__year {
    margin: 0;
    color: var(--mute);
    font-size: 0.86rem;
}

.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
}

.work-card__tags li {
    display: grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
}

.work-card__tags img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

.work-card:hover .work-card__tags img {
    opacity: 1;
}

.status--open {
    font-weight: 700;
    color: #fff;
}

.status--done {
    font-weight: 700;
    color: #6dcb8c;
}

.status--closed {
    font-weight: 700;
    color: #8a8880;
}

/* Pack */
.panel--pack {
    background: var(--bg);
    color: var(--ink);
}

.pack__character {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: min(92%, 920px);
    width: auto;
    max-width: min(48vw, 640px);
    object-fit: contain;
    object-position: right bottom;
    filter: grayscale(1) contrast(1.08) brightness(0.82);
    opacity: 0.42;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: luminosity;
}

.pack {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--mast) + 1.2rem) 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;

    .project-tags li{
        width: 3.25rem;
        height: 3.25rem;
    }
}

.pack__copy {
    max-width: 42rem;
}

.pack__logo {
    width: min(240px, 60%);
    max-height: 64px;
    margin-bottom: 0.8rem;
    object-fit: contain;
    object-position: left center;
}

.pack__copy h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.pack__lead {
    margin: 0.9rem 0 0;
    font-size: 2.15rem;
    font-weight: 600;
    color: var(--ink);
    line-height: normal;
}

.pack__copy > p {
    color: var(--mute);
}

.pack__play {
    margin-top: 1rem;
    width: fit-content;
}

.pack__voices {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.65rem;
    width: 100%;
    max-width: none;
}

.pack__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.pack__cell {
    position: relative;
    padding: 0;
    border: 0;
    background: #111;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 0;
}

.pack__cell img,
.pack__cell video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #111;
    border: 0;
    outline: 0;
}

.pack__cell--video {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pack__cell--video video {
    pointer-events: auto;
    touch-action: manipulation;
}

.pack__cell--video .pack__fs {
    right: 0.6rem;
    bottom: 0.6rem;
    top: auto;
}

/* Telegram-like voice */
.tg-voice {
    position: relative;
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    background: var(--tg-bubble);
    background: #000;
    background: rgba(0, 0, 0, 0.25);
    color: #e8f2fa;
    border-radius: 1.15rem 1.15rem 1.15rem 0.35rem;
    width: 100%;
    max-width: 420px;
    box-shadow: -2px 8px 9px #00000029;
    padding: 0.76rem;

    .tg-voice__icon--pause{
        display: none;
    }
}

.tg-voice__body {
    min-width: 0;
    width: 100%;
}

.tg-voice audio {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.tg-voice__play {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 50%;
    background: var(--tg);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.tg-voice__icon {
    width: 1.05rem;
    height: 1.05rem;
}

.tg-voice.is-playing .tg-voice__icon--play {
    display: none;
}

.tg-voice.is-playing .tg-voice__icon--pause {
    display: block;
}

.tg-voice__title {
    margin: 0 0 0.2rem;
    font-size: 0.78rem;
    opacity: 0.8;
}

.tg-voice__wave {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    height: 1.5rem;
}

.tg-voice__wave span {
    flex: 1 1 0;
    width: auto;
    min-width: 2px;
    height: calc(var(--h) * 1.5px);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.15s ease;
}

.tg-voice__wave span.is-on {
    background: var(--tg);
}

.tg-voice__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.75;
}

/* About */
.panel--about {
    background: #1c1c1c;
}

.about {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    padding: calc(var(--mast) + 1rem) 0 1rem;
    color: #f5f4ef;
}

.about__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1rem, 4vw, 3rem);
}

.about__copy .eyebrow {
    color: var(--flash);
}

.about__copy h2 {
    color: #fff;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
}

.about__copy p {
    margin: 1rem 0 0;
    max-width: 24rem;
    color: rgba(245, 244, 239, 0.72);
}

.about__visual {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.about__still {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__person {
    position: absolute;
    right: -4%;
    bottom: -8%;
    width: min(52%, 340px);
    mix-blend-mode: lighten;
    pointer-events: none;
}

/* Contact page */
.contact-page {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    min-height: calc(100svh - var(--mast));
    margin: 0 auto;
    padding: calc(var(--mast) + 3rem) 0 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-page h1 {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
}

.contact-page__lead {
    color: var(--mute);
    max-width: 28rem;
}

.contact__mail {
    display: inline-block;
    margin-top: 1rem;
    font-size: clamp(1.8rem, 5vw, 4rem);
    text-decoration: none;
    border-bottom: 4px solid var(--flash);
    width: fit-content;
}

.contact-page__back {
    margin-top: 2rem;
}

.contact-page__back a {
    font-weight: 800;
    text-decoration: none;
}

.lightbox {
    width: min(1100px, 94vw);
    border: 0;
    padding: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
    width: 100%;
}

.lightbox__close {
    margin-bottom: 0.45rem;
    border: 0;
    background: var(--flash);
    color: #111;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
}

.empty {
    color: var(--mute);
}

.missing {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto;
    padding: 8rem 0 6rem;
}

.missing h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
}

.footer {
    background: var(--ink);
    color: #f5f4ef;
    padding: 1.4rem 0;
}

.footer__inner {
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.5rem;
}

.footer__brand,
.footer__note,
.footer__copy,
.footer__mail {
    margin: 0;
}

.footer__note,
.footer__copy {
    color: rgba(245, 244, 239, 0.55);
}

.footer__copy {
    margin-left: auto;
}

@media (max-width: 1200px) {
    .works__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .works__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .about {
        grid-template-columns: 1fr;
    }

    .about__visual {
        min-height: 50svh;
    }
}

@media (max-width: 720px) {
    .works__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .works__head {
        grid-template-columns: 1fr;
    }

    .intro__title {
        font-size: clamp(3.4rem, 18vw, 5.5rem);
    }

    .panel__inner--preview {
        margin-left: auto;
    }

    .pack__character {
        max-width: min(70vw, 320px);
        opacity: 0.28;
    }
}

/* Project page (normal scroll) */
.project-page {
    background: var(--bg);
    color: var(--ink);
}

.project-page__hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
}

.project-page__back {
    margin: 0 0 1rem;
}

.project-page__back a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
}

.project-page__back a:hover {
    color: #fff;
}

.project-page__pack {
    position: relative;
    min-height: 100svh;
    padding-bottom: 2rem;
    overflow: hidden;
}

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: min(var(--max), calc(100% - var(--pad) * 2));
    margin: 0 auto 3rem;
    padding-top: 1rem;
}

.pager__link {
    display: grid;
    gap: 0.35rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.pager__link span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--mute);
    text-transform: uppercase;
}

.pager__link strong {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: -0.04em;
}

.pager__link--next {
    text-align: right;
}

.pager__link:hover {
    border-color: var(--flash);
}

.pager__link--empty {
    border: 0;
    pointer-events: none;
}

@media (max-width: 720px) {
    .pager {
        grid-template-columns: 1fr;
    }

    .pager__link--next {
        text-align: left;
    }
}

/* Cookie bar */
.cookie-bar {
    position: fixed;
    left: var(--pad);
    right: var(--pad);
    bottom: 1.1rem;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.2rem;
    width: min(42rem, calc(100% - var(--pad) * 2));
    margin-inline: auto;
    padding: 0.95rem 1.1rem;
    background: #151515;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar__text {
    margin: 0;
    flex: 1 1 14rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: rgba(240, 239, 235, 0.82);
}

.cookie-bar__accept {
    flex: 0 0 auto;
    border: 0;
    padding: 0.7rem 1.15rem;
    background: var(--flash);
    color: #111;
    font-weight: 800;
    cursor: pointer;
}

.cookie-bar__accept:hover {
    filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .snap-track {
        transition: none;
    }
}
