/* Страница «Гид» (/missu/gid/) — вторая страница ледяного мини-сайта MISSU.
   Островок догружает модуль перед переходом в гид. */

/* Холодный графит вкладки «Гид» и светлая типографика на его фоне. */
:root {
    --guide-bg: #252d35;
    --guide-bg-top: #34414d;
    --guide-bg-deep: #21282f;
    --guide-ink: #f4f7fb;
    --guide-ink-2: #e4e9ef;
    --guide-ink-3: #d1d9e2;
    --guide-accent: #e1edfa;
    --guide-accent-soft: #acbfd1;
    --guide-on-light: #222b36;
}

body.guide-page {
    margin: 0;
    min-height: 100dvh;
    background-color: var(--guide-bg);
    color: var(--guide-ink);
    font-family: var(--font-primary), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Скрываем горизонтальный выход, не создавая контейнер прокрутки для sticky. */
    overflow-x: clip;
}

/* Холодный свет от шапки растворяется в графите; под контентом цвет почти ровный. */
.ice-page__bg--guide {
    background-color: var(--guide-bg);
    background-image: linear-gradient(172deg, var(--guide-bg-top), var(--guide-bg) 43%, var(--guide-bg-deep));
}

.ice-page__bg--guide::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, #62788a, transparent 57%);
    opacity: 0.06;
    animation: guide-slate-light 48s ease-in-out infinite alternate;
}

@keyframes guide-slate-light {
    to {
        opacity: 0.14;
    }
}

/* На гиде снег живёт за текстом: страница читается, а не скрывается
   случайными хлопьями. На /missu/ слой остаётся поверх постера. */
.guide-page .missu-snow {
    z-index: 0;
}

/* --- Каркас ----------------------------------------------------------- */

.guide {
    --guide-sticky-inset: 6rem;
    position: relative;
    z-index: 1;
    min-height: 100dvh;
}

.guide__inner {
    width: 100%;
    max-width: 74rem;
    margin: 0 auto;
    padding:
        0
        clamp(1rem, 4vw, 2.5rem)
        clamp(2rem, 6vh, 4rem);
}

.guide__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- Первый экран: полноширинная шапка ------------------------------- */

.guide__hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Баннер прижат к верхнему краю и занимает всю ширину окна. Островок
   навигации лежит поверх него, поэтому сверху добавлена лёгкая тень. */
.guide__hero-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1b1f24;
}

.guide__hero-media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: clamp(5rem, 12vw, 8rem);
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(24, 29, 35, 0.34) 0%,
        rgba(24, 29, 35, 0) 100%
    );
}

.guide__hero-media picture,
.guide__hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.guide__hero-media img {
    object-fit: contain;
    object-position: center;
}

.guide__hero-fallback {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    margin: 0;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 64% 120% at 50% -16%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 68%),
        radial-gradient(ellipse 42% 80% at 82% 110%, rgba(214, 224, 234, 0.7), rgba(214, 224, 234, 0) 72%),
        linear-gradient(135deg, #f8fafd 0%, #e3e8ee 52%, #d6dce3 100%);
}

.guide__hero-fallback::before {
    content: "";
    position: absolute;
    inset: 12% 8% auto;
    height: 76%;
    border: 1px solid rgba(88, 104, 122, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.guide__hero-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 74rem;
    margin: 0 auto;
    padding:
        clamp(1.15rem, 3vh, 1.8rem)
        clamp(1rem, 4vw, 2.5rem)
        clamp(1.2rem, 3vh, 2rem);
}

.guide__hero--fallback .guide__hero-foot {
    padding-top: clamp(2rem, 5vh, 3.5rem);
}

.guide__kicker {
    margin: 0;
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(0.78rem, 1.25vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--guide-ink-3);
}

.guide__jumps {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.8vw, 2.2rem);
    flex: none;
}

.guide__jump {
    position: relative;
    padding-bottom: 0.18rem;
    font-family: var(--font-display), sans-serif;
    font-size: clamp(0.6rem, 1.1vw, 0.68rem);
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    text-transform: uppercase;
    color: var(--guide-ink);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide__jump::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.28;
    transition: opacity 0.3s ease;
}

.guide__jump:hover {
    color: var(--guide-accent);
}

.guide__jump:hover::after {
    opacity: 0.75;
}

/* На широком экране постер остаётся целиком видимым, но больше не
   разрастается вместе с окном и не конкурирует с навигацией островка. */
@media (min-width: 48.01rem) {
    .guide__hero {
        padding-top: clamp(5rem, 10vh, 6rem);
    }

    .guide__hero-media,
    .guide__hero-fallback {
        width: calc(100% - 2 * clamp(1rem, 4vw, 2.5rem));
        max-width: 69rem;
        margin: 0 auto;
        border-radius: 0.75rem;
        box-shadow: 0 20px 50px -30px rgba(52, 62, 74, 0.38);
    }

    .guide__hero-media::before {
        display: none;
    }

    .guide__hero-foot,
    .guide__hero--fallback .guide__hero-foot {
        align-items: center;
        padding-top: 1.15rem;
        padding-bottom: 1.5rem;
    }

    .guide__jump:focus-visible {
        outline: 2px solid var(--guide-accent);
        outline-offset: 5px;
        border-radius: 2px;
    }
}

.guide__eyebrow {
    margin: 0;
    font-family: var(--font-primary), sans-serif;
    font-size: clamp(0.72rem, 1.35vw, 0.84rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--guide-ink-3);
}

.guide__jump:focus-visible,
.guide__back:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 4px;
}

.guide__cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(52, 62, 74, 0.5);
    font-family: var(--font-display), sans-serif;
    font-size: clamp(0.5rem, 1.2vw, 0.62rem);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
}

.guide__cover-fallback::before {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.guide__description {
    max-width: 100%;
    margin-top: clamp(0.8rem, 2vh, 1.1rem);
    font-size: clamp(0.92rem, 1.6vw, 1rem);
    line-height: 1.7;
    color: var(--guide-ink-2);
}

.guide__description p,
.guide__description h2,
.guide__description h3,
.guide__description h4,
.guide__description ul,
.guide__description ol {
    max-width: 58ch;
}

.guide__description .formatted-description > :first-child {
    margin-top: 0;
}

.guide__description .formatted-description > :last-child {
    margin-bottom: 0;
}

.guide__description p {
    margin: 0 0 0.8em;
}

.guide__description p:last-child {
    margin-bottom: 0;
}

.guide__description strong {
    color: var(--guide-ink);
    font-weight: 700;
}

.guide__description em {
    color: var(--guide-ink-3);
}

.guide__description h2,
.guide__description h3,
.guide__description h4 {
    margin: 1.15em 0 0.45em;
    font-family: var(--font-display), sans-serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--guide-ink);
}

.guide__description h2 {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.guide__description h3 {
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.guide__description h4 {
    font-size: clamp(0.82rem, 1.7vw, 0.96rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--guide-accent);
}

.guide__description ul,
.guide__description ol {
    margin: 0 0 0.9em;
    padding-left: 1.2rem;
}

.guide__description li {
    margin: 0.28em 0;
}

.guide__description .guide-align--center,
.guide__description .guide-align--right {
    width: fit-content;
}

.guide__description .guide-align--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.guide__description .guide-align--right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.guide__description ul.guide-align--center,
.guide__description ol.guide-align--center,
.guide__description ul.guide-align--right,
.guide__description ol.guide-align--right {
    text-align: left;
}

.guide__description .guide-align--center img {
    margin-left: auto;
    margin-right: auto;
}

.guide__description .guide-align--right img {
    margin-left: auto;
    margin-right: 0;
}

.guide__description a {
    color: var(--guide-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.guide__description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.9em 0;
    border-radius: 0.8rem;
}

.guide__description .youtube-embed {
    position: relative;
    margin: 1em 0;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #dfe4ea;
}

.guide__description .youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.guide-mark--ice,
.guide-mark--rose {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.guide-mark--ice {
    background-image: linear-gradient(100deg, var(--guide-accent) 0%, var(--guide-accent-soft) 48%, var(--guide-accent) 100%);
}

.guide-mark--rose {
    background-image: linear-gradient(100deg, #e1eaf3 0%, #b4c6d8 48%, #e1eaf3 100%);
}

.guide-mark--light {
    padding: 0 0.12em;
    border-radius: 0.18em;
    background: linear-gradient(180deg, rgba(236, 241, 247, 0.92), rgba(236, 241, 247, 0.46));
    color: var(--guide-on-light);
    box-shadow: 0 0.12em 0 rgba(70, 88, 110, 0.12);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.guide__empty {
    margin: 0;
    padding: 1rem 0;
    color: var(--guide-ink-3);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Релиз: галерея иллюстраций и история ------------------------------ */

.guide__release {
    padding: clamp(1rem, 3vh, 2rem) 0 clamp(3rem, 8vh, 5.5rem);
    scroll-margin-top: 6rem;
}

.guide__release-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.4rem, 4vw, 3.2rem);
    align-items: start;
}

.guide__gallery {
    position: relative;
    min-width: 0;
}

@media (width > 48rem) and (min-height: 40rem) {
    .guide__gallery {
        position: sticky;
        top: var(--guide-sticky-inset);
    }
}

.guide__gallery-track {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(231, 238, 246, 0.18);
    border-radius: clamp(1.2rem, 2.6vw, 1.8rem);
    background: #15181c;
    box-shadow:
        0 1.4rem 3.2rem rgba(52, 62, 74, 0.18),
        0 0.25rem 0.7rem rgba(52, 62, 74, 0.1);
}

.guide__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.guide__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.guide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide__slide-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding:
        clamp(2.5rem, 6vw, 4rem)
        clamp(1rem, 2.2vw, 1.5rem)
        clamp(1rem, 2.2vw, 1.3rem);
    background: linear-gradient(
        180deg,
        rgba(18, 22, 27, 0) 0%,
        rgba(18, 22, 27, 0.78) 65%,
        rgba(18, 22, 27, 0.94) 100%
    );
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #f4f7fb;
    text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.35);
}

.guide__slide-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.guide__slide-timer,
.guide__slide-state {
    flex: none;
    font-size: clamp(0.52rem, 1vw, 0.62rem);
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    text-align: right;
    text-transform: uppercase;
    color: #dfe4ea;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}

.guide__slide-timer.is-done {
    color: #f4f7fb;
}

.guide__slide-meta {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
}

.guide__reminder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    min-height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(24, 29, 35, 0.5);
    color: #f4f7fb;
    font-family: var(--font-primary), sans-serif;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.06em;
    text-indent: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.guide__reminder svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.guide__reminder:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(44, 53, 63, 0.8);
    transform: translateY(-1px);
}

.guide__reminder:focus-visible {
    outline: 2px solid #eef2f7;
    outline-offset: 3px;
}

.guide__reminder.is-active {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(248, 250, 253, 0.94);
    color: var(--guide-on-light);
}

.guide__reminder.is-active:hover:not(:disabled) {
    background: #fbfcfe;
    color: var(--guide-on-light);
}

.guide__reminder:disabled {
    cursor: wait;
    opacity: 0.65;
}

.guide__slide-download {
    position: absolute;
    top: clamp(12px, 1.8vw, 18px);
    left: clamp(12px, 1.8vw, 18px);
    z-index: 5;
    display: grid;
    place-items: center;
    width: clamp(36px, 3.8vw, 44px);
    height: clamp(36px, 3.8vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(24, 29, 35, 0.55);
    color: #f4f7fb;
    text-decoration: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.guide__slide-download svg {
    width: 18px;
    height: 18px;
}

.guide__slide-download:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(248, 250, 253, 0.92);
    color: var(--guide-on-light);
    transform: translateY(-2px);
}

.guide__slide-download:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 3px;
}

.guide__slide-download[hidden] {
    display: none;
}

.guide__gallery-arrow {
    position: absolute;
    top: calc(50% - 0.8rem);
    z-index: 4;
    display: grid;
    place-items: center;
    width: clamp(38px, 4vw, 46px);
    height: clamp(38px, 4vw, 46px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(24, 29, 35, 0.55);
    color: #f4f7fb;
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.guide__gallery-arrow svg {
    width: 18px;
    height: 18px;
}

.guide__gallery-arrow--prev {
    left: clamp(10px, 1.6vw, 16px);
}

.guide__gallery-arrow--next {
    right: clamp(10px, 1.6vw, 16px);
}

.guide__gallery-arrow:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(248, 250, 253, 0.92);
    color: var(--guide-on-light);
}

.guide__gallery-arrow:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 3px;
}

.guide__gallery-bar {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.guide__gallery-counter {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(0.52rem, 1vw, 0.6rem);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    color: var(--guide-ink-3);
}

.guide__toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    max-width: min(92vw, 30rem);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(226, 234, 242, 0.22);
    border-radius: 0.8rem;
    background: rgba(26, 31, 37, 0.95);
    box-shadow: 0 1rem 2.4rem rgba(38, 45, 54, 0.3);
    color: #f4f7fb;
    font-family: var(--font-primary), sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.guide__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.guide__story.guide__description {
    position: relative;
    max-width: 64ch;
    margin: 0;
    padding-top: clamp(0.4rem, 1.4vw, 1rem);
    font-size: clamp(0.95rem, 1.5vw, 1.06rem);
    line-height: 1.78;
}

.guide__story-panel {
    min-width: 0;
}

.guide__story-panel[hidden] {
    display: none;
}

/* Пока текст одной епишки сменяется текстом другой, уходящий абзац
   вынимается из потока, чтобы высота колонки не прыгала. */
.guide__story.is-switching {
    overflow: clip;
    overflow-clip-margin: 1rem;
}

.guide__story .formatted-description > :first-child {
    margin-top: 0;
}

@media (max-width: 48rem) {
    .guide__release {
        padding: 0.5rem 0 3rem;
    }

    .guide__release-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .guide__gallery {
        width: min(100%, 32rem);
        margin-inline: auto;
    }

    .guide__story.guide__description {
        max-width: none;
        padding-top: 0;
        font-size: clamp(0.85rem, 2.2vw, 0.92rem);
        line-height: 1.62;
    }

    .guide__story.guide__description h2 {
        font-size: 1rem;
    }

    .guide__story.guide__description h3 {
        font-size: 0.93rem;
    }

    .guide__story.guide__description p {
        margin-bottom: 0.68em;
    }

    .guide__slide-meta {
        gap: 0.34rem;
    }

    .guide__reminder {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        gap: 0;
    }

    .guide__reminder svg {
        width: 15px;
        height: 15px;
    }

    .guide__reminder-label {
        display: none;
    }
}

@media (max-width: 30rem) {
    .guide__gallery-arrow {
        width: 34px;
        height: 34px;
    }

    .guide__gallery-arrow svg {
        width: 15px;
        height: 15px;
    }

    .guide__slide-caption {
        font-size: 1rem;
    }
}

/* --- Активности ------------------------------------------------------- */

.guide__activities {
    margin-top: clamp(2rem, 6vh, 4rem);
    padding-top: clamp(2rem, 5vh, 3rem);
    border-top: 1px solid rgba(231, 238, 246, 0.22);
    scroll-margin-top: 6rem;
}

.guide__section-head {
    max-width: 46rem;
    margin-bottom: clamp(1.4rem, 3.5vh, 2.2rem);
}

.guide__section-title {
    margin: 0.45rem 0 0.7rem;
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1.8rem, 4.6vw, 3rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.01em;
    color: var(--guide-ink);
}

.guide__section-lead {
    max-width: 40rem;
    margin: 0;
    font-size: clamp(0.92rem, 1.8vw, 1.05rem);
    line-height: 1.65;
    color: var(--guide-ink-3);
}

.guide__section-note {
    max-width: 40rem;
    margin: 0.7rem 0 0;
    font-size: clamp(0.78rem, 1.5vw, 0.86rem);
    line-height: 1.55;
    color: var(--guide-accent-soft);
}


.guide__activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(0.8rem, 2vw, 1.2rem);
}

.guide__activity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 15rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--dynamic-border, rgba(214, 229, 244, 0.16));
    border-radius: clamp(1.1rem, 2.4vw, 1.5rem);
    background-color: #2c343d;
    background-image: var(--dynamic-bg, none);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide__activity-banner {
    width: 100%;
    margin: 0;
    background: #15181c;
    border-bottom: 1px solid rgba(231, 238, 246, 0.1);
}

.guide__activity-banner img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 676;
    object-fit: cover;
}

/* Карточка-ссылка: кнопка выглядит как обычная CTA, но растянутая ссылка
   (::after) делает кликабельной всю поверхность блока. */
.guide__activity--link {
    position: relative;
    cursor: pointer;
}

.guide__activity-hint::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: clamp(1.1rem, 2.4vw, 1.5rem);
}

.guide__activity--link:hover .guide__activity-cta {
    background: rgba(226, 238, 250, 0.14);
    border-color: rgba(226, 238, 250, 0.42);
}

.guide__activity--link:hover .guide__activity-cta svg {
    transform: translateX(3px);
}

.guide__activity-hint:focus-visible {
    outline: none;
}

.guide__activity-hint:focus-visible::after {
    outline: 2px solid var(--guide-accent);
    outline-offset: -3px;
}

.guide__activity-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: clamp(1.2rem, 2.8vw, 1.8rem);
}

.guide__activity.is-soon .guide__activity-icon {
    opacity: 0.75;
}

/* Секретная активность занимает всю ширину секции под двумя карточками.
   Обложка — узкая вертикальная панель слева, текст справа, ссылка по центру
   внизу. Пока таймер не истёк, вместо ссылки идёт отсчёт. */
.guide__activity--wide {
    --secret-cover: 15rem;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--secret-cover) minmax(0, 1fr);
    align-items: stretch;
    min-height: 0;
}

.guide__activity.guide__activity--wide {
    min-height: 0;
}

.guide__activity--secret {
    position: relative;
    isolation: isolate;
}

.guide__activity-secret-cover {
    position: relative;
    align-self: stretch;
    width: var(--secret-cover);
    margin: 0;
    overflow: hidden;
    background: #15181c;
    border-right: 1px solid rgba(231, 238, 246, 0.1);
}

.guide__activity-secret-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Замок поверх обложки: подсказывает, что карточка ещё закрыта.
   После открытия он мягко уходит. */
.guide__activity-secret-lock {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1px solid rgba(226, 238, 250, 0.24);
    background: rgba(16, 21, 27, 0.55);
    color: var(--guide-accent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.guide__activity-secret-lock svg {
    width: 1rem;
    height: 1rem;
}

.guide__activity--secret.is-open .guide__activity-secret-lock {
    opacity: 0;
    transform: scale(0.82);
}

.guide__activity--secret .guide__activity-body {
    justify-content: flex-start;
    padding: clamp(1.35rem, 3vw, 2rem);
}

.guide__activity--secret .guide__activity-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--guide-ink);
}

.guide__activity--secret .guide__activity-text {
    max-width: 46ch;
    margin: 0.5rem 0 0;
    font-size: clamp(0.86rem, 1.6vw, 0.95rem);
    line-height: 1.62;
    color: var(--guide-ink-3);
}

/* Нижняя строка карточки: тонкая линия во всю ширину и ссылка по центру. */
.guide__activity-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: clamp(1rem, 2.6vw, 1.4rem);
    border-top: 1px solid rgba(226, 238, 250, 0.12);
}

.guide__activity-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.6rem;
    padding: 0.55rem 1.35rem;
    border: 1px solid rgba(226, 238, 250, 0.26);
    border-radius: 999px;
    background: rgba(226, 238, 250, 0.08);
    color: var(--guide-ink);
    font-size: clamp(0.78rem, 1.6vw, 0.88rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.guide__activity-cta svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.guide__activity-cta:hover {
    background: rgba(226, 238, 250, 0.14);
    border-color: rgba(226, 238, 250, 0.42);
}

.guide__activity-cta:hover svg {
    transform: translateX(3px);
}

.guide__activity-cta:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 2px;
}

.guide__activity-timer {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    color: var(--guide-ink-3);
}

.guide__activity-timer-label {
    font-size: clamp(0.66rem, 1.4vw, 0.74rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--guide-accent-soft);
}

.guide__activity-timer-value {
    font-variant-numeric: tabular-nums;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    letter-spacing: 0.04em;
    color: var(--guide-ink);
}

.guide__activity-timer-value.is-done {
    color: var(--guide-accent);
}

/* Атрибут hidden должен побеждать собственные display у чипов. */
.guide__activity-foot [hidden] {
    display: none !important;
}

@media (max-width: 48rem) {
    .guide__activity--wide {
        --secret-cover: 100%;
        grid-template-columns: 1fr;
    }

    .guide__activity-secret-cover {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid rgba(231, 238, 246, 0.1);
    }

    .guide__activity--secret .guide__activity-body {
        padding: 1.1rem 1.15rem 1.3rem;
    }

    .guide__activity--secret .guide__activity-title {
        font-size: 1.28rem;
    }

    .guide__activity--secret .guide__activity-foot {
        padding-top: 0.9rem;
    }
}

@media (max-width: 30rem) {
    .guide__activity--secret .guide__activity-title {
        font-size: 1.14rem;
    }

    .guide__activity-cta {
        width: 100%;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .guide__activity:not(.is-soon):hover {
        transform: translateY(-2px);
    }
}

.guide__activity-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(70, 88, 110, 0.18);
    border-radius: 0.85rem;
    background: rgba(236, 241, 247, 0.10);
    color: var(--guide-accent);
}

.guide__activity-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.guide__activity-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display), sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--guide-ink);
}

.guide__activity-text {
    flex: 1;
    margin: 0;
    font-size: clamp(0.86rem, 1.6vw, 0.95rem);
    line-height: 1.6;
    color: var(--guide-ink-3);
}

.guide__activity-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    margin-top: 1.3rem;
    padding: 0.55rem 1.35rem;
    border: 1px dashed rgba(226, 238, 250, 0.24);
    border-radius: 999px;
    background: rgba(226, 238, 250, 0.04);
    font-size: clamp(0.78rem, 1.6vw, 0.88rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: var(--guide-ink-3);
}

.guide__activity-foot .guide__activity-soon {
    margin-top: 0;
}

/* --- Интервью --------------------------------------------------------- */

.guide__interview {
    margin-top: clamp(2rem, 6vh, 4rem);
    padding-top: clamp(2rem, 5vh, 3rem);
    border-top: 1px solid rgba(231, 238, 246, 0.22);
    scroll-margin-top: 6rem;
    /* Смена группы меняет высоту панели; не позволяем браузеру самовольно
       переякоривать скролл на соседний блок. */
    overflow-anchor: none;
}

.guide__interview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(0.9rem, 2vw, 1.4rem);
    align-items: start;
}

/* Вкладки появляются только с JS: без него разделы идут обычной лентой. */
.guide__interview-rails,
.guide__interview-tabs {
    display: none;
}

.guide__interview-shell.is-enhanced {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: clamp(1.4rem, 3vw, 2.6rem);
}

.guide__interview-shell.is-enhanced .guide__interview-rails {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}

/* Второй бар с треками второй епишки стоит под первым и отделён тонкой
   линией: это две группы одного интервью, а не один длинный список. */
.guide__interview-rail + .guide__interview-rail {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(214, 229, 244, 0.14);
}

.guide__interview-shell.is-enhanced .guide__interview-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.45rem;
    border: 1px solid rgba(214, 229, 244, 0.18);
    border-radius: 1rem;
    background: rgba(31, 37, 44, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

@media (width > 64rem) and (min-height: 40rem) {
    .guide__interview-shell.is-enhanced .guide__interview-rails {
        position: sticky;
        top: var(--guide-sticky-inset);
    }
}

.guide__interview-tab {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.62rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 0.68rem;
    background: transparent;
    color: var(--guide-ink-3);
    font-family: var(--font-primary), sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.guide__interview-tab:hover {
    background: rgba(226, 238, 250, 0.06);
    color: var(--guide-ink);
}

.guide__interview-tab.is-active {
    border-color: rgba(226, 238, 250, 0.2);
    background: rgba(226, 238, 250, 0.1);
    color: var(--guide-ink);
}

.guide__interview-tab:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 2px;
}

.guide__interview-tab-count {
    flex: none;
    color: var(--guide-ink-3);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}

/* Общий раздел о релизе читается как светлая обложка MISSU: на фоне
   тёмного списка это единственная белая кнопка. Фон не меняется между
   состояниями — только рамка и тень, иначе при переключении вкладок
   кнопка заметно мигает. */
.guide__interview-tab--release,
.guide__interview-tab--release:hover,
.guide__interview-tab--release.is-active {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: #f1f5fa;
    background-image: linear-gradient(150deg, #fbfcfe 0%, #e9eef4 100%);
    color: var(--guide-on-light);
    box-shadow:
        0 0.35rem 1rem rgba(15, 20, 26, 0.2),
        inset 0 1px 0 #fff;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

/* У каждой епишки свой белый раздел о релизе. Активный отмечаем тёмной
   рамкой: двух одинаково белых кнопок недостаточно, чтобы понять выбор. */
.guide__interview-tab--release.is-active {
    border-color: rgba(34, 43, 54, 0.38);
    box-shadow:
        0 0.5rem 1.3rem rgba(15, 20, 26, 0.24),
        inset 0.2rem 0 0 rgba(34, 43, 54, 0.5),
        inset 0 1px 0 #fff;
}

.guide__interview-tab--release .guide__interview-tab-count {
    color: var(--guide-on-light);
    opacity: 0.55;
}

.guide__interview-panels {
    position: relative;
}

.guide__interview-panels.is-resizing {
    overflow: clip;
    overflow-clip-margin: 0.25rem;
}

.guide__interview-panel {
    min-width: 0;
}

.guide__interview-panel.is-outgoing {
    position: absolute;
    inset: 0;
    overflow: clip;
    pointer-events: none;
}

.guide__interview-panel-title {
    margin: 0 0 0.8rem;
    color: var(--guide-ink-3);
    font-family: var(--font-display), sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    text-transform: uppercase;
}

/* С вкладками название раздела уже читается в выбранной кнопке. */
.guide__interview-shell.is-enhanced .guide__interview-panel-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.guide__qa-list {
    display: grid;
    gap: 0.55rem;
}

.guide__qa {
    border: 1px solid rgba(214, 229, 244, 0.17);
    border-radius: 0.95rem;
    background: rgba(28, 34, 41, 0.3);
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

/* Спойлер раскрывается и закрывается одной согласованной анимацией:
   дорожка сетки меняет высоту, а текст мягко уезжает и проявляется.
   Стили включаются только после инициализации JS: без него остаётся
   обычный нативный <details>. */
.guide__interview-shell.is-enhanced .guide__qa-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide__interview-shell.is-enhanced .guide__qa.is-open .guide__qa-answer {
    grid-template-rows: 1fr;
}

.guide__interview-shell.is-enhanced .guide__qa:not(.is-open) .guide__qa-answer {
    transition-duration: 300ms;
}

.guide__interview-shell.is-enhanced .guide__qa-answer-clip {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 300ms ease,
        transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.guide__interview-shell.is-enhanced .guide__qa.is-open .guide__qa-answer-clip {
    opacity: 1;
    transform: none;
}

.guide__interview-shell.is-enhanced .guide__qa:not(.is-open) .guide__qa-answer-clip {
    transition-duration: 260ms, 300ms;
}

/* Страховка для вкладок, где браузер приостановил анимации: после
   штатной длительности фиксируем конечное состояние без перехода. */
.guide__interview-shell.is-enhanced .guide__qa.is-settled .guide__qa-answer,
.guide__interview-shell.is-enhanced .guide__qa.is-settled .guide__qa-answer-clip {
    transition: none;
}

.guide__qa:hover {
    border-color: rgba(214, 229, 244, 0.3);
}

.guide__qa[open] {
    border-color: rgba(214, 229, 244, 0.34);
    background: rgba(28, 34, 41, 0.44);
}

.guide__qa-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    list-style: none;
    color: var(--guide-ink);
    cursor: pointer;
}

.guide__qa-summary::-webkit-details-marker {
    display: none;
}

.guide__qa-summary:focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: -3px;
    border-radius: 0.95rem;
}

.guide__qa-question {
    font-size: clamp(0.94rem, 1.6vw, 1.02rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.002em;
}

.guide__qa-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(214, 229, 244, 0.22);
    border-radius: 50%;
    color: var(--guide-ink-2);
    transition:
        transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.guide__qa-toggle svg {
    width: 0.82rem;
    height: 0.82rem;
}

.guide__qa[open] .guide__qa-toggle {
    border-color: rgba(226, 238, 250, 0.34);
    background: rgba(226, 238, 250, 0.1);
    transform: rotate(45deg);
}

/* With JS the answer keeps [open] until the collapse finishes. Tie the
   visible state to is-open so the icon and card return together with it. */
.guide__interview-shell.is-enhanced .guide__qa[open]:not(.is-open) {
    border-color: rgba(214, 229, 244, 0.17);
    background: rgba(28, 34, 41, 0.3);
}

.guide__interview-shell.is-enhanced .guide__qa[open]:not(.is-open) .guide__qa-toggle {
    border-color: rgba(214, 229, 244, 0.22);
    background: transparent;
    transform: none;
}

.guide__qa-answer {
    overflow: hidden;
}

.guide__qa-answer-inner {
    padding: 0 1.1rem 1.15rem;
    color: var(--guide-ink-2);
    font-size: clamp(0.9rem, 1.6vw, 0.98rem);
    line-height: 1.7;
}

.guide__qa-answer-inner::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 0.9rem;
    background: rgba(231, 238, 246, 0.12);
}

.guide__qa-answer-inner p {
    max-width: 62ch;
    margin: 0 0 0.75rem;
}

.guide__qa-answer-inner p:last-child {
    margin-bottom: 0;
}

/* --- Финал ------------------------------------------------------------ */

.guide__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: clamp(3rem, 8vh, 5rem);
    padding-top: clamp(2rem, 5vh, 3rem);
    border-top: 1px solid rgba(231, 238, 246, 0.22);
    text-align: center;
}

.guide__footer-note {
    max-width: 38rem;
    margin: 0;
    font-size: clamp(0.84rem, 1.5vw, 0.92rem);
    line-height: 1.7;
    color: var(--guide-ink-3);
}

.guide__back {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 1.2rem;
    border: 1px solid rgba(231, 238, 246, 0.22);
    border-radius: 999px;
    background: #343a41;
    box-shadow:
        0 0.55rem 1.4rem rgba(52, 62, 74, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: var(--font-display), sans-serif;
    font-size: clamp(0.5rem, 1.05vw, 0.58rem);
    letter-spacing: 0.14em;
    text-indent: 0.14em;
    text-transform: uppercase;
    color: var(--guide-ink);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide__back-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
    transition: transform 0.35s ease;
}

.guide__back:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0.8rem 1.8rem rgba(52, 62, 74, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.guide__back:hover .guide__back-icon {
    transform: rotate(-12deg) scale(1.06);
}

/* --- Появление после лоадера и при скролле ---------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .guide img {
        transition: opacity 0.25s ease;
    }
    .guide img.guide-image-pending {
        opacity: 0;
    }
}

/* --- Адаптив ---------------------------------------------------------- */

@media (max-width: 64rem) {
    .guide__inner {
        padding-left: clamp(14px, 3.6vw, 24px);
        padding-right: clamp(14px, 3.6vw, 24px);
    }

    .guide__interview-shell.is-enhanced {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .guide__interview-shell.is-enhanced .guide__interview-tabs {
        flex-direction: row;
        gap: 0.35rem;
        overflow-x: auto;
        padding: 0.35rem;
        border-radius: 0.85rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .guide__interview-shell.is-enhanced .guide__interview-tabs::-webkit-scrollbar {
        display: none;
    }

    .guide__interview-tab {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }

    .guide__interview-tab-count {
        margin-left: 0.35rem;
    }
}

@media (max-width: 48rem) {
    .guide__inner {
        padding:
            0
            clamp(14px, 3.6vw, 24px)
            3rem;
    }

    .guide__hero-fallback {
        height: auto;
        aspect-ratio: 4 / 3;
        padding: 0 clamp(14px, 3.6vw, 24px);
    }

    .guide__hero-foot {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.8rem;
        padding:
            1.1rem
            clamp(14px, 3.6vw, 24px)
            1.3rem;
    }

    .guide__hero--fallback .guide__hero-foot {
        padding-top: 1.5rem;
    }

    .guide__kicker {
        flex: 1 1 auto;
        min-width: 0;
        font-size: clamp(0.66rem, 2.2vw, 0.78rem);
        line-height: 1.3;
    }

    .guide__jumps {
        flex: 0 0 auto;
        align-self: auto;
        flex-wrap: nowrap;
        gap: clamp(0.55rem, 1.8vw, 1.1rem);
    }

    .guide__jump {
        font-size: clamp(0.55rem, 1.7vw, 0.66rem);
        letter-spacing: 0.11em;
        text-indent: 0.11em;
    }

    .guide__activity-grid {
        grid-template-columns: 1fr;
    }

    .guide__activity {
        min-height: 13rem;
    }

    .guide__activities,
    .guide__interview {
        margin-top: 0;
        padding-top: 3rem;
    }

    .guide__qa-summary {
        padding: 0.9rem 0.95rem;
    }

    .guide__qa-answer-inner {
        padding: 0 0.95rem 1.05rem;
    }

    .guide__footer {
        margin-top: 3rem;
        padding-top: 3rem;
    }
}

@media (max-width: 30rem) {

    .guide__description {
        margin-top: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide__jump,
    .guide__jump::after,
    .guide__back-icon,
    .guide__activity,
    .guide__back,
    .guide__reminder,
    .guide__toast,
    .guide__activity-cta,
    .guide__activity-cta svg,
    .guide__interview-tab,
    .guide__qa,
    .guide__qa-toggle {
        animation: none;
        transition: none;
    }

    .guide__interview-shell.is-enhanced .guide__qa-answer,
    .guide__interview-shell.is-enhanced .guide__qa-answer-clip {
        transition: none;
    }

    .ice-page__bg--guide::before {
        animation: none;
    }

    .guide__activity:not(.is-soon):hover,
    .guide__back:hover,
    .guide__back:hover .guide__back-icon {
        transform: none;
    }
}
