/* Generated from src/style.css. Run ./publish; do not edit this copy. */
@font-face {
    font-family: "Nimbus Mono PS";
    src: url("/assets/fonts/NimbusMonoPS-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    margin: 10px 0 0;
}

.sub {
    margin: 4px 0 16px;
    color: #555;
}

a {
    color: #1769aa;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    vertical-align: middle;
}

.support-icon {
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.dorev-pre { display: none; }
body.dorev .dorev-ru { display: none; }
body.dorev .dorev-pre { display: inline; }
.dorev-pre-block { display: none; }
body.dorev .dorev-ru-block { display: none; }
body.dorev .dorev-pre-block { display: block; }
.nav { margin: 10px 0 8px; }
.ni { white-space: nowrap; }
.dorev-toggle { text-decoration: none; }
.dorev-toggle.active { text-decoration: underline; }

.upgrade-banner {
    position: relative;
    display: block;
    min-height: 176px;
    width: min(960px, 100%);
    margin: 22px auto 4px;
    padding: 28px 28px 28px 35px;
    overflow: hidden;
    text-align: left;
    box-sizing: border-box;
    color: #25231f;
    border: 3px double #4d4a41;
    background: #fffdf5;
    box-shadow: 3px 3px 0 rgba(65, 60, 50, 0.22);
}

.upgrade-banner[hidden] { display: none; }

.upgrade-banner::before,
.upgrade-banner::after {
    position: absolute;
    z-index: 2;
    padding: 4px 7px;
    font: 700 9px "Courier New", monospace;
    letter-spacing: 0.12em;
    white-space: nowrap;
    opacity: 0.68;
    -webkit-mask-image: repeating-linear-gradient(
        103deg,
        #000 0 6px,
        rgba(0, 0, 0, 0.32) 6px 7px,
        #000 7px 13px
    );
    mask-image: repeating-linear-gradient(
        103deg,
        #000 0 6px,
        rgba(0, 0, 0, 0.32) 6px 7px,
        #000 7px 13px
    );
}

.upgrade-banner::before {
    content: "КУБЫ ПЕРЕСЧИТАНЫ";
    right: 105px;
    bottom: 22px;
    color: #315b83;
    border: 2px solid #47749b;
    transform: rotate(-4deg);
}

.upgrade-banner::after {
    content: "ВВОД РАЗРЕШЁН";
    top: 9px;
    right: 65px;
    color: #8b443d;
    border: 2px solid #a4564d;
    transform: rotate(3deg);
}

.upgrade-copy {
    position: static;
    display: flex;
    height: 114px;
    max-width: none;
    padding: 0 330px 0 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.upgrade-kicker {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 1px;
    z-index: 7;
    display: flex;
    width: 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    color: #686052;
    background: #fffdf5;
    font: 8px/1 "Courier New", monospace;
    letter-spacing: 0.06em;
    text-orientation: sideways;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.upgrade-banner h2 {
    display: block;
    width: fit-content;
    margin: 0;
    color: rgba(34, 32, 28, 0.92);
    font-family: "Nimbus Mono PS", "Liberation Mono", "Courier New", monospace;
    font-size: clamp(12px, 1.5vw, 14.5px);
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.3;
    text-align: left;
    text-shadow:
        0.35px 0 rgba(34, 32, 28, 0.5),
        -0.18px 0 rgba(34, 32, 28, 0.25);
    text-transform: uppercase;
    transform: rotate(-0.12deg);
}

.upgrade-visa {
    position: absolute;
    top: 17px;
    right: 18px;
    bottom: 17px;
    z-index: 1;
    display: flex;
    width: 300px;
    padding: 11px 12px;
    flex-direction: column;
    align-items: flex-end;
    box-sizing: border-box;
    color: rgba(48, 65, 46, 0.72);
    border: 1px solid #7e8974;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 15px,
            rgba(57, 73, 53, 0.075) 15px 16px
        ),
        #e3e8d8;
    box-shadow:
        inset 0 0 0 3px #f6f2e4,
        inset 0 0 0 4px rgba(91, 103, 83, 0.34);
    font: 8px/1.25 "Courier New", monospace;
    letter-spacing: 0.055em;
    text-align: right;
    text-transform: uppercase;
}

.upgrade-visa::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    border-left: 1px dashed rgba(73, 70, 61, 0.55);
}

.upgrade-visa::after {
    content: "";
    position: absolute;
    inset: 22px 54px 18px 22px;
    z-index: 0;
    background: url("/assets/mooshroom.webp") center / 88px auto no-repeat;
    filter: grayscale(1) sepia(0.35);
    opacity: 0.075;
    pointer-events: none;
}

.upgrade-visa > span {
    position: relative;
    z-index: 2;
}

.upgrade-visa-title {
    margin-bottom: 7px;
    color: #344b35;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.upgrade-visa-field { display: block; }
.upgrade-visa-field b { color: #273a29; }
.upgrade-visa-serial {
    position: absolute !important;
    right: 10px;
    bottom: 7px;
    color: rgba(48, 65, 46, 0.48);
    font-size: 7px;
    letter-spacing: 0.12em;
}

.upgrade-mrz {
    position: absolute;
    right: 345px;
    bottom: 7px;
    left: 35px;
    z-index: 3;
    display: block;
    overflow: hidden;
    padding-top: 4px;
    color: rgba(52, 49, 42, 0.55);
    border-top: 1px solid rgba(77, 74, 65, 0.28);
    font: 8px/1 "Courier New", monospace;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.upgrade-version {
    position: absolute;
    right: 185px;
    bottom: 16px;
    z-index: 6;
    display: grid;
    width: 116px;
    height: 116px;
    grid-template-columns: 1fr;
    place-items: center;
    box-sizing: border-box;
    color: #326f40;
    border: 3px double #3c7849;
    border-radius: 50%;
    transform: rotate(-5deg);
}

.upgrade-version strong {
    color: #326f40;
    font-family: "Liberation Serif", "Times New Roman", serif;
    font-size: 37px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.upgrade-version strong::after {
    content: "ОДОБРЕНО";
    display: block;
    margin-top: 5px;
    font: 8px Arial, sans-serif;
    letter-spacing: 0.12em;
    text-align: center;
}

.upgrade-stamps {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    pointer-events: none;
}

.upgrade-stamp-oval {
    position: absolute;
    right: 55px;
    bottom: 30px;
    display: grid;
    width: 98px;
    height: 43px;
    place-items: center;
    box-sizing: border-box;
    color: #48506f;
    border: 3px double #596281;
    border-radius: 50%;
    font: 700 8px/1.05 "Courier New", monospace;
    letter-spacing: 0.08em;
    text-align: center;
    transform: rotate(-7deg);
    opacity: 0.66;
}

.upgrade-stamp-register {
    position: absolute;
    top: 66px;
    right: 108px;
    z-index: 3;
    box-sizing: border-box;
    width: 94px;
    padding: 5px 6px 4px;
    color: #66556f;
    border: 3px double #74617f;
    font: 700 7px/1.05 "Courier New", monospace;
    letter-spacing: 0.07em;
    text-align: center;
    transform: rotate(2deg);
    opacity: 0.58;
    -webkit-mask-image: repeating-linear-gradient(
        98deg,
        #000 0 8px,
        rgba(0, 0, 0, 0.28) 8px 10px,
        #000 10px 17px
    );
    mask-image: repeating-linear-gradient(
        98deg,
        #000 0 8px,
        rgba(0, 0, 0, 0.28) 8px 10px,
        #000 10px 17px
    );
}

.upgrade-stamp-date {
    position: absolute;
    right: 28px;
    bottom: 18px;
    padding: 3px 7px;
    color: #7d4c45;
    border: 2px solid #925d55;
    font: 700 7px "Courier New", monospace;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transform: rotate(4deg);
    opacity: 0.6;
    -webkit-mask-image: repeating-linear-gradient(
        97deg,
        #000 0 5px,
        rgba(0, 0, 0, 0.25) 5px 6px,
        #000 6px 11px
    );
    mask-image: repeating-linear-gradient(
        97deg,
        #000 0 5px,
        rgba(0, 0, 0, 0.25) 5px 6px,
        #000 6px 11px
    );
}

.upgrade-stamp-triangle {
    position: absolute;
    right: 4px;
    bottom: 15px;
    width: 74px;
    height: 65px;
    color: #744889;
    transform: rotate(8deg);
    opacity: 0.62;
}

.upgrade-stamp-hex {
    position: absolute;
    right: -4px;
    bottom: 80px;
    z-index: 2;
    width: 76px;
    height: 50px;
    color: #866326;
    transform: rotate(-3deg);
    opacity: 0.5;
}

.upgrade-stamp-triangle > svg,
.upgrade-stamp-hex > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.upgrade-stamp-triangle > svg polygon,
.upgrade-stamp-hex > svg polygon {
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
}

.upgrade-stamp-triangle,
.upgrade-stamp-hex {
    -webkit-mask: url("/assets/stamp-wear.svg") center / 100% 100% no-repeat;
    mask: url("/assets/stamp-wear.svg") center / 100% 100% no-repeat;
}

.upgrade-stamp-triangle::after {
    content: "УЧТЕНО\A 26.2";
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    font: 700 8px/1.15 "Courier New", monospace;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: pre;
}

.upgrade-stamp-hex::after {
    content: "МУХИК\A ПРОВЕРИЛ";
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    font: 700 7px/1.15 "Courier New", monospace;
    letter-spacing: 0.06em;
    text-align: center;
    white-space: pre;
}

body.dorev .upgrade-banner::after { content: "ВВОДЪ РАЗРѢШЕНЪ"; }
body.dorev .upgrade-stamp-hex::after { content: "МУХИКЪ\A ПРОВѢРИЛЪ"; }

.link-hint {
    color: #777;
    font-size: 0.9em;
}

h2 {
    margin: 18px 0 0;
}

.server-schedule { width:min(960px, 100%); margin:0 auto 12px; }
#server-schedule-copy { text-align:left; color:#444; line-height:1.55; }
#server-schedule-copy p { margin:8px 0; }
#server-schedule-copy ul { margin:8px 0; padding-left:24px; }
#server-schedule-copy strong { color:#1d1d1d; }
@media (max-width:820px) { .server-schedule { max-width:560px; } }

.faq {
    max-width: 960px;
    width: 100%;
    text-align: left;
    margin: 2px auto;
    box-sizing: border-box;
    color: #444;
    line-height: 1.55;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
}

.faq-item {
    margin: 0 0 18px;
}

/* вопрос — отдельной строкой-подзаголовком */
.faq-item > b { display: block; margin-bottom: 3px; color: #1d1d1d; }
.faq ul { margin: 6px 0; padding-left: 24px; }
.faq li { margin: 4px 0; }

/* узкие экраны: одна колонка, как раньше */
@media (max-width: 820px) {
    .faq { display: block; max-width: 560px; }
}

@media (max-width: 700px) {
    .upgrade-banner {
        max-width: 560px;
        min-height: 395px;
        padding: 12px 18px 205px 35px;
    }

    .upgrade-copy {
        height: 165px;
        padding: 0;
    }

    .upgrade-kicker {
        top: 12px;
        bottom: auto;
        height: 165px;
    }

    .upgrade-banner h2 {
        font-size: clamp(11px, 3.2vw, 12.5px);
        letter-spacing: 0.01em;
        line-height: 1.32;
    }

    .upgrade-visa {
        top: 205px;
        right: 18px;
        bottom: 17px;
        left: 18px;
        width: auto;
        height: auto;
    }

    .upgrade-visa::before {
        top: -12px;
        right: 0;
        bottom: auto;
        left: 0;
        border-top: 1px dashed rgba(73, 70, 61, 0.55);
        border-left: 0;
    }

    .upgrade-mrz {
        top: 178px;
        right: 18px;
        bottom: auto;
        left: 18px;
    }

    .upgrade-visa::before { display: none; }

    .upgrade-banner::after {
        top: 285px;
        right: 65px;
        bottom: auto;
    }

    .upgrade-banner::before {
        right: 95px;
        bottom: 70px;
    }

    .upgrade-version {
        right: auto;
        bottom: 50px;
        left: 33px;
        width: 130px;
        height: 130px;
    }

    .upgrade-version strong { font-size: 40px; }

    .upgrade-stamp-oval {
        right: 38px;
        bottom: 105px;
    }

    .upgrade-stamp-register {
        top: 310px;
        right: 90px;
        bottom: auto;
    }

    .upgrade-stamp-hex {
        top: 330px;
        right: -2px;
        bottom: auto;
    }

    .upgrade-stamp-triangle {
        right: 6px;
        bottom: 30px;
    }

    .upgrade-stamp-date {
        right: 27px;
        bottom: 35px;
    }
}

@media (max-width: 480px) {
    html,
    body { overflow-x: hidden; }

    .upgrade-banner {
        margin-top: 17px;
        box-shadow: 2px 2px 0 rgba(65, 60, 50, 0.22);
    }

    .upgrade-mrz { font-size: 7px; }

    body .post-container {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
    .post-container .post {
        min-width: 0;
        max-width: 100%;
        flex-basis: 100%;
    }

    .post-container .post iframe {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

.post-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Unavailable embeds occupy no space. Keep them measurable for Telegram. */
#telegram-posts {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
}

#telegram-posts:has(.tg-ready) {
    padding-top: 10px;
    padding-bottom: 10px;
}

#telegram-posts .post:not(.tg-ready) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.post > .telegram-post,
.post > .tg-fallback { display: none; }

.post {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
}
