.site-public {
    --site-accent: #d3051d;
    --site-heading-font: "Druk Cyr", sans-serif;
    --site-page-title-size: clamp(46px, 7vw, 100px);
    --site-page-top: clamp(92px, 8vw, 112px);
    --site-content-width: 1248px;
    --site-page-gutter: clamp(16px, 4vw, 24px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-public > main {
    flex: 1 0 auto;
    min-width: 0;
}

.site-public > main:has(> .dl-page, > .site-news--short) {
    display: grid;
}

.site-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-wiki-page {
    position: relative;
    isolation: isolate;
}

.site-wiki-page > .vanila-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
    pointer-events: none;
}

.vanila .vanila__btns,
.vanila .vanila__statusbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
    max-width: 760px;
}

.vanila .vanila__btns > a {
    width: 100%;
    max-width: none;
}

.vanila .vanila__statusbox .status__count {
    white-space: normal;
    text-align: center;
}

@media (min-width: 992px) and (max-height: 1000px) {
    .vanila .vanila__btns,
    .vanila .vanila__statusbox {
        max-width: 630px;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .vanila .vanila__btns {
        grid-template-columns: minmax(0, 1fr);
        max-width: 240px;
        gap: 12px;
    }

    .vanila .status__launch-clock {
        display: block;
    }

    .vanila .status__launch-comma {
        display: none;
    }

    .vanila .vanila__statusbox {
        gap: 16px 12px;
        max-width: 420px;
        margin-top: 24px;
    }
}

@media (max-width: 359px) {
    .vanila .vanila__statusbox {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hd-header .hd-link {
    padding-inline: 12px;
}

.hd-header .hd-btn-login img {
    flex-shrink: 0;
}

@media (min-width: 961px) and (max-width: 1440px) {
    .hd-header .hd-link:has(i) span,
    .hd-header .hd-sep {
        display: none;
    }

    .hd-header .hd-link:not(:has(i)) span {
        display: inline;
    }
}

@media (max-width: 960px) {
    .hd-header .hd-right {
        margin-left: auto;
        margin-right: 44px;
        padding-left: 0;
        border-left: 0;
    }

    .hd-header .hd-right .hd-lang {
        display: block;
    }
}

.site-footer {
    display: block;
    flex: none;
    padding: clamp(26px, 4vw, 48px) var(--site-page-gutter, 24px);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: min(100%, var(--site-content-width, 1248px));
    margin-inline: auto;
}

.site-footer .footer-left {
    min-width: 0;
    gap: 12px;
}

.site-footer .footer-left .logo {
    flex-shrink: 0;
    margin: 0;
}

.site-footer .footer-left .logo img {
    display: block;
    width: clamp(100px, 13vw, 220px);
    height: auto;
    max-width: 100%;
}

.site-footer .footer-mid-partners {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.site-footer .footer-mid-partners img,
.site-footer .footer-mid-partners svg {
    width: 36px;
    height: 36px;
}

.site-footer__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.site-footer .footer-right {
    gap: 6px;
    text-align: right;
    min-width: 0;
}

.site-footer .footer-right a {
    overflow-wrap: anywhere;
}

.site-footer .copy {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.site-footer .copy img {
    display: block;
    width: auto;
    height: 25px;
    max-width: 108px;
    object-fit: contain;
}

.site-footer .footer-left p,
.site-footer .footer-right a,
.site-footer .copy a {
    opacity: .72;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    opacity: 1;
}

.site-footer a:focus-visible,
.hd-header a:focus-visible,
.hd-header button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 940px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .site-footer .footer-left,
    .site-footer .footer-right,
    .site-footer__end {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
}


/* ── Брендбук, 3 декабря: главная и шапка ───────────────────────── */

/* бывшие inline-стили главной */
.status__count--launch { color: #fdfded; text-align: center; }
.status__count--state { color: var(--status-online-color); text-align: center; }
.vanila-video--home { padding-bottom: 50px; }
.faq-vanila--home { padding-top: 0; }
.wrapper--chat { max-width: 100%; width: 100%; }
.chat-container { position: relative; }
.contacts__heading--shown { opacity: 1; }

/* бывшие inline-стили шапки */
.hd-balance__icon { width: 30px; height: 30px; object-fit: contain; }
.hd-balance__value { color: #fdfded; }
.hd-logo__img--drawer { height: 38px; }

/* шапка: ссылки читаются, без лишней разрядки */
.hd-link { color: #c7b9ad; }
.hd-item:hover .hd-link { color: #fdfded; }

/* статус сервера: зелёный как в кабинете, «скоро» приглушённый */
[data-status-online="on"] { --status-online-color: #69c887; }
[data-status-online="off"] { --status-online-color: #d3051d; }
[data-status-online="pending"] { --status-online-color: #d5b079; }

/* приглушённый текст — #c7b9ad вместо серого #949494 */
.roadmap-slide__desc,
.roadmap-slide__number,
.faq-vanila__cap,
.quote__text p span { color: #c7b9ad; }

/* чат: подпись и счётчики */
.faq-vanila .online-count { color: #c7b9ad; }
.faq-vanila .online-count strong { color: #d5b079; }
