/*
 * Site-wide typography system.
 * Tilda Sans is used for reading and interface text. Farabee is reserved for
 * large display headings, where the character of the original brand font is
 * useful without sacrificing readability.
 */
:root {
    --vm-shell-wide: 300px;
    --vm-shell-narrow: 94px;
}

body.t-body.vm-shell-enabled {
    overflow-x: hidden;
}

body.vm-shell-enabled {
    overflow-x: hidden;
}

body.vm-shell-enabled,
body.vm-shell-enabled p,
body.vm-shell-enabled a,
body.vm-shell-enabled li,
body.vm-shell-enabled label,
body.vm-shell-enabled input,
body.vm-shell-enabled textarea,
body.vm-shell-enabled select,
body.vm-shell-enabled option,
body.vm-shell-enabled button,
body.vm-shell-enabled table,
body.vm-shell-enabled th,
body.vm-shell-enabled td,
body.vm-shell-enabled summary,
body.vm-shell-enabled figcaption,
body.vm-shell-enabled small,
body.vm-shell-enabled .t-title,
body.vm-shell-enabled .t-name,
body.vm-shell-enabled .t-descr,
body.vm-shell-enabled .t-text,
body.vm-shell-enabled .tn-atom {
    font-family: "TildaSans", Arial, sans-serif !important;
}

body.vm-shell-enabled h1,
body.vm-shell-enabled h2,
body.vm-shell-enabled .vm-tariff__head h3,
body.vm-shell-enabled .vm-system-count strong,
body.vm-shell-enabled .vm-page-title,
body.vm-shell-enabled .vm-title {
    font-family: "Farabee", "TildaSans", Arial, sans-serif !important;
    font-weight: 700;
}

body.vm-shell-enabled h3,
body.vm-shell-enabled h4,
body.vm-shell-enabled h5,
body.vm-shell-enabled h6,
body.vm-shell-enabled strong,
body.vm-shell-enabled b {
    font-family: "TildaSans", Arial, sans-serif;
}

/* Fixed navigation: readable at a glance on every page. */
body.vm-shell-enabled .vm-shell-sidebar {
    width: var(--vm-shell-wide);
    padding: 18px 15px;
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.3;
}

body.vm-shell-enabled .vm-shell-brand-row {
    height: 64px;
    gap: 10px;
    padding: 0 4px 14px;
}

body.vm-shell-enabled .vm-shell-brand {
    gap: 12px;
}

body.vm-shell-enabled .vm-shell-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

body.vm-shell-enabled .vm-shell-mark img {
    width: 48px;
    height: 48px;
}

body.vm-shell-enabled .vm-shell-brand-text {
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.6px;
}

body.vm-shell-enabled .vm-shell-label {
    padding: 20px 12px 9px;
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
}

body.vm-shell-enabled .vm-shell-nav {
    gap: 5px;
}

body.vm-shell-enabled .vm-shell-link {
    min-height: 51px;
    gap: 14px;
    padding: 0 12px;
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 15.5px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0;
}

body.vm-shell-enabled .vm-shell-link svg {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
}

body.vm-shell-enabled .vm-shell-status {
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 12.5px;
    font-weight: 600;
}

body.vm-shell-enabled .vm-shell-consult {
    min-height: 48px;
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

body.vm-shell-enabled .vm-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10030;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(156, 255, 30, .5);
    border-radius: 15px;
    background: #9cff1e;
    color: #071005;
    box-shadow: 0 15px 42px rgba(0, 0, 0, .35), 0 0 30px rgba(156, 255, 30, .14);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease, filter .2s ease;
}

body.vm-shell-enabled .vm-back-to-top:hover {
    filter: brightness(.9);
    transform: translateY(-2px);
}

body.vm-shell-enabled .vm-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

body.vm-shell-enabled .vm-back-to-top span {
    position: relative;
    width: 14px;
    height: 14px;
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: translateY(4px) rotate(45deg);
}

body.vm-shell-enabled .vm-back-to-top span::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: top center;
}

body.vm-shell-enabled.vm-shell-collapsed .vm-shell-sidebar {
    width: var(--vm-shell-narrow);
}

/* Page hierarchy: supporting text is legible, display text does not shout. */
body.vm-shell-enabled.vm-home-body .vm-hero h1 {
    font-size: clamp(42px, 3.8vw, 54px);
    line-height: 1;
    letter-spacing: -.015em;
}

body.vm-shell-enabled:not(.vm-home-body) .vm-hero h1 {
    font-size: clamp(40px, 4.4vw, 58px);
    line-height: 1.03;
    letter-spacing: -.015em;
}

body.vm-shell-enabled h2 {
    line-height: 1.06;
    letter-spacing: -.01em;
}

body.vm-shell-enabled .vm-home .vm-section-head h2,
body.vm-shell-enabled .vm-home .vm-final-cta h2 {
    font-size: clamp(36px, 3.8vw, 52px);
}

body.vm-shell-enabled .vm-kicker,
body.vm-shell-enabled .vm-auth-kicker,
body.vm-shell-enabled .vm-eyebrow {
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .1em;
}

body.vm-shell-enabled .vm-button,
body.vm-shell-enabled .vm-btn,
body.vm-shell-enabled .vm-auth-button {
    font-family: "TildaSans", Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.2;
}

body.vm-shell-enabled .vm-hero-visual figcaption,
body.vm-shell-enabled .vm-flow small,
body.vm-shell-enabled .vm-system-stats span,
body.vm-shell-enabled .vm-home-article i,
body.vm-shell-enabled .vm-tariff__volume span,
body.vm-shell-enabled .vm-tariff__price span,
body.vm-shell-enabled .vm-library-card b,
body.vm-shell-enabled .vm-article-cover figcaption {
    font-size: 12px;
}

body.vm-shell-enabled .vm-system-flow b {
    font-size: 11px;
}

body.vm-shell-enabled .vm-trust-list {
    font-size: 14px;
}

body.vm-shell-enabled .vm-feature-grid p,
body.vm-shell-enabled .vm-tariff__note,
body.vm-shell-enabled .vm-articles-more span {
    color: #aab4ac;
    font-size: 15px;
}

body.vm-shell-enabled .vm-system-flow small,
body.vm-shell-enabled .vm-home-article small,
body.vm-shell-enabled .vm-library-card small,
body.vm-shell-enabled .vm-tariff__badge {
    font-size: 10px;
}

body.vm-shell-enabled .vm-tariff__head small,
body.vm-shell-enabled .vm-system-count small,
body.vm-shell-enabled .vm-system-panel__top b {
    font-size: 11px;
}

body.vm-shell-enabled .vm-auth-copy {
    min-width: 0;
}

body.vm-shell-enabled .vm-auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 48px;
}

body.vm-shell-enabled .vm-auth-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 3vw, 40px);
    line-height: 1.04;
    overflow-wrap: break-word;
}

body.vm-shell-enabled .vm-hero .vm-lead {
    max-width: 820px;
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.45;
}

@media (max-width: 1400px) and (min-width: 801px) {
    body.vm-shell-enabled.vm-home-body .vm-hero .vm-container {
        width: min(1230px, calc(100% - 32px));
    }

    body.vm-shell-enabled.vm-home-body .vm-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(410px, .95fr);
        gap: 40px;
    }
}

body.vm-shell-enabled.vm-home-body .vm-hero-visual figcaption {
    position: static;
    min-height: 54px;
    padding: 13px 16px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    background: #101511;
    backdrop-filter: none;
}

body.vm-shell-enabled .vm-auth-card h2 {
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.2;
}

@media (max-width: 960px) {
    body.vm-shell-enabled .vm-shell-sidebar,
    body.vm-shell-enabled.vm-shell-collapsed .vm-shell-sidebar {
        width: min(330px, 88vw);
    }
}

@media (max-width: 900px) {
    body.vm-shell-enabled .vm-auth-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 560px) {
    body.vm-shell-enabled .vm-back-to-top {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    body.vm-shell-enabled.vm-home-body .vm-hero h1 {
        font-size: clamp(38px, 11vw, 48px);
    }

    body.vm-shell-enabled:not(.vm-home-body) .vm-hero h1 {
        font-size: 30px;
        line-height: 1.08;
        overflow-wrap: break-word;
        word-break: normal;
    }

    body.vm-shell-enabled .vm-home .vm-section-head h2,
    body.vm-shell-enabled .vm-home .vm-final-cta h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    body.vm-shell-enabled .vm-shell-brand-text {
        font-size: 24px;
    }
}
