.vkm-first {
    display: none;
}

.vkm-is-home .vkm-hero {
    display: none;
}

.vkm-is-home .vkm-stack > .vkm-mast {
    order: -1;
}

.vkm-stack > .vkm-mast {
    border-color: var(--app-line);
}

.vkm-mast .vkm-mast__inner {
    gap: 10px;
    padding: 12px;
}

.vkm-mast .vkm-mast__h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.vkm-mast__loot {
    display: none;
}

.vkm-mast__floor {
    display: contents;
}

.vkm-mast .vkm-first {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.vkm-ticket {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    min-width: 0;
    border: 1px solid var(--app-line);
    border-radius: var(--app-r-card);
    background: var(--app-cloth);
    color: var(--app-text);
    -webkit-mask:
        radial-gradient(circle 8px at calc(100% - 104px) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
        radial-gradient(circle 8px at calc(100% - 104px) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
    mask:
        radial-gradient(circle 8px at calc(100% - 104px) 0, transparent 97%, #000 100%) top / 100% 51% no-repeat,
        radial-gradient(circle 8px at calc(100% - 104px) 100%, transparent 97%, #000 100%) bottom / 100% 51% no-repeat;
}

.vkm-ticket--solo {
    grid-template-columns: minmax(0, 1fr);
    -webkit-mask: none;
    mask: none;
}

.vkm-ticket__row {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    margin: 4px 0 0;
    padding: 0 12px 10px;
}

.vkm-ticket__row > noindex {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.vkm-ticket__go {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--app-r-btn);
    background: var(--app-amber);
    color: var(--vkm-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.vkm-ticket__stub {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 104px;
    min-height: 44px;
    padding: 8px 6px;
    border: 0;
    border-left: 2px dashed var(--app-line);
    background: transparent;
    color: var(--app-text);
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.vkm-ticket__lab,
.vkm-ticket__hint {
    font-size: 12px;
    color: var(--app-ash);
}

.vkm-ticket__lab {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.vkm-ticket__code {
    max-width: 100%;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vkm-ticket__stub.is-done .vkm-ticket__hint {
    color: var(--app-text);
}

.vkm-first > noindex {
    display: block;
}

.vkm-first__cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.vkm-first__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 44px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: var(--app-r-btn);
    background: var(--app-bg);
    color: var(--app-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.vkm-ticket__go:focus-visible,
.vkm-ticket__stub:focus-visible,
.vkm-first__btn:focus-visible {
    outline: 2px solid var(--app-text);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .vkm-mast .vkm-ticket__row {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (min-width: 1024px) {
    .vkm-mast .vkm-ticket__row {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 1023px) {
    .vkm-is-home {
        background-color: var(--vkm-bg);
        background-image: none;
    }

    .vkm-is-home .vkm-mast {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: calc(100% + 24px);
        max-width: none;
        min-height: 520px;
        margin: -10px -12px 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: var(--vkm-bg);
        box-shadow: none;
    }

    .vkm-is-home .vkm-mast__bg {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        height: auto;
        overflow: hidden;
    }

    .vkm-is-home .vkm-mast__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 58%;
    }

    .vkm-is-home .vkm-mast__veil {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        height: auto;
        background:
            linear-gradient(180deg, rgba(18, 16, 16, .55) 0%, rgba(18, 16, 16, .18) 28%, rgba(18, 16, 16, .08) 48%, rgba(18, 16, 16, .78) 74%, rgba(18, 16, 16, .96) 100%);
    }

    .vkm-is-home .vkm-mast .vkm-mast__inner {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        gap: 18px;
        min-height: 520px;
        padding: 18px 16px 18px;
        background: transparent;
    }

    .vkm-is-home .vkm-mast__loot {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        max-width: 100%;
        margin-top: 4px;
        pointer-events: none;
    }

    .vkm-is-home .vkm-mast__loot-eye {
        color: rgba(233, 226, 216, .82);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.3;
        text-transform: none;
        text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
    }

    .vkm-is-home .vkm-mast__loot-sum {
        max-width: 100%;
        color: var(--vkm-amber);
        font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
        font-size: clamp(2.1rem, 10vw, 3rem);
        font-weight: 700;
        letter-spacing: -.02em;
        line-height: 1.05;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-shadow: 0 2px 22px rgba(0, 0, 0, .65), 0 0 28px rgba(232, 163, 61, .28);
        font-variant-numeric: tabular-nums;
    }

    .vkm-is-home .vkm-mast__loot--mid .vkm-mast__loot-sum {
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1.12;
    }

    .vkm-is-home .vkm-mast__loot--long .vkm-mast__loot-sum {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: clamp(1.2rem, 5.4vw, 1.55rem);
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .vkm-is-home .vkm-mast__floor {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
    }

    .vkm-is-home .vkm-mast .vkm-mast__h1 {
        max-width: none;
        margin: 0;
        padding: 0;
        color: var(--vkm-text);
        font-size: 26px;
        font-weight: 600;
        line-height: 1.18;
        letter-spacing: -.02em;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
        text-wrap: balance;
    }

    .vkm-is-home .vkm-mast .vkm-mast__mark,
    .vkm-is-home .vkm-mast .vkm-mast__brand,
    .vkm-is-home .vkm-mast .vkm-mast__rest {
        display: inline;
        margin: 0;
        color: inherit;
        font-size: inherit;
        font-weight: inherit;
        letter-spacing: inherit;
        line-height: inherit;
        text-transform: none;
    }

    .vkm-is-home .vkm-mast .vkm-mast__perks {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        margin: 0;
        color: rgba(233, 226, 216, .78);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        font-variant-numeric: tabular-nums;
    }

    .vkm-is-home .vkm-mast .vkm-mast__perk + .vkm-mast__perk::before {
        margin-right: 8px;
        color: var(--vkm-ash);
        content: "·";
    }

    .vkm-is-home .vkm-mast .vkm-first {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 4px;
    }

    .vkm-is-home .vkm-ticket,
    .vkm-is-home .vkm-ticket--solo {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "go" "stub";
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px 12px 10px;
        border: 1px solid rgba(232, 163, 61, .35);
        border-radius: 16px;
        background: rgba(18, 16, 16, .78);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
        -webkit-mask: none;
        mask: none;
    }

    .vkm-is-home .vkm-ticket--solo {
        grid-template-areas: "go";
        padding-bottom: 12px;
    }

    .vkm-is-home .vkm-ticket__stub {
        grid-area: stub;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        min-height: 36px;
        padding: 10px 4px 2px;
        border: 0;
        border-top: 1px dashed rgba(233, 226, 216, .18);
        border-radius: 0;
        background: transparent;
        color: var(--vkm-text);
        box-shadow: none;
        text-align: left;
    }

    .vkm-is-home .vkm-ticket__lab {
        display: inline;
        color: var(--vkm-ash);
        font-size: 13px;
        font-weight: 500;
    }

    .vkm-is-home .vkm-ticket__code {
        display: inline;
        color: var(--vkm-text);
        font-size: 15px;
        font-weight: 600;
    }

    .vkm-is-home .vkm-ticket__hint {
        margin-left: auto;
        color: var(--vkm-amber);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
    }

    .vkm-is-home .vkm-ticket__row {
        grid-area: go;
        margin: 0;
        padding: 0;
    }

    .vkm-is-home .vkm-ticket__row > noindex {
        width: 100%;
    }

    .vkm-is-home .vkm-ticket__go {
        width: 100%;
        height: 50px;
        min-height: 50px;
        padding: 0 18px;
        border: 0;
        border-radius: 12px;
        background: var(--vkm-amber);
        color: var(--vkm-ink);
        font-size: 17px;
        font-weight: 600;
        box-shadow: none;
        text-shadow: none;
    }

    .vkm-is-home .vkm-ticket__go:hover {
        background: #F0B656;
        color: var(--vkm-ink);
    }

    .vkm-is-home .vkm-first > noindex {
        display: block;
    }

    .vkm-is-home .vkm-first__cta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .vkm-is-home .vkm-first__btn {
        display: flex;
        height: 46px;
        border: 1px solid rgba(233, 226, 216, .28);
        border-radius: 12px;
        background: rgba(18, 16, 16, .72);
        color: var(--vkm-text);
        font-size: 14px;
        font-weight: 600;
    }

    .vkm-is-home .vkm-first__btn:hover {
        border-color: rgba(233, 226, 216, .45);
        background: rgba(18, 16, 16, .85);
        color: var(--vkm-text);
    }
}


@media (max-width: 359px) {
    .vkm-is-home .vkm-mast__loot--mid .vkm-mast__loot-sum {
        font-size: 1.45rem;
    }

    .vkm-is-home .vkm-ticket__go {
        padding: 0 14px;
        font-size: 16px;
    }
}
