/* =================== ШАПКА САЙТА =================== */
.topbar {
    position: relative;
    z-index: 50;
    background: var(--topbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    flex: 1 1 320px;
}

.brand img {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .22));
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img { transition: transform .22s ease, filter .22s ease, opacity .22s ease; transform-origin: center center; }

.logo-link:hover img, .logo-link:focus-visible img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
    opacity: 1;
}

.brand .logo-link img { width: 60px; height: 50px; }

.slogan {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.05;
}

.slogan .big {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--b);
}

.slogan .big span { display: block; }
.slogan .big .l1 { white-space: nowrap; }

.meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2 1 520px;
    flex-wrap: wrap;
    gap: 14px 22px;
    min-width: 260px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: normal;
}

.meta-item svg { opacity: .95; }

.meta-item span {
    font-size: 18px;
    line-height: 1.2;
    white-space: normal;
    color: rgba(0, 0, 0, .78);
}

.ico-img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    opacity: .95;
}

.wordmark {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 1 240px;
    min-width: 220px;
    width: 100%;
    gap: clamp(20px, 5vw, 25px);
}

.wordmark .logo-link { display: flex; align-items: center; }

.wordmark img {
    display: block;
    width: auto;
    height: 40px;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .22));
    transition: transform .22s ease, filter .22s ease, opacity .22s ease;
    transform-origin: center center;
}

.wordmark .logo-link:hover img, .wordmark .logo-link:focus-visible img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22));
    opacity: 1;
}

.second-logo { width: auto; height: 72px; }
.priority-logo, .university-logo { width: auto; height: 40px; }
.wordmark .logo-link img.second-logo { height: 50px !important; }

.brand .logo-link { height: 50px; overflow: visible; }

.brand .logo-link > img {
    width: auto !important;
    height: 55px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}

.wordmark .logo-link img[src*="priority"] {
    height: 25px !important;
    max-width: 200px !important;
    margin-top: 7px;
    object-fit: contain !important;
}

.topbar .wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 18px;
}

.topbar-inner {
    width: 100%;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
}

.brand {
    flex: 1 1 320px !important;
    min-width: 260px !important;
    justify-content: flex-start !important;
}

.wordmark {
    width: auto !important;
    min-width: 220px !important;
    flex: 1 1 240px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: clamp(14px, 3vw, 25px) !important;
}

.wordmark .logo-link, .wordmark .logo-link:last-child { flex: 0 0 auto !important; justify-content: center; }

.wordmark .logo-link img {
    width: auto !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.wordmark .logo-link img[src*="priority"] {
    height: clamp(21px, 2vw, 25px) !important;
    max-width: none !important;
    margin-top: 0 !important;
}

.wordmark .logo-link img.second-logo { height: clamp(40px, 3.5vw, 50px) !important; max-width: none !important; }

/* =================== ЦИТАТА В ШАПКЕ =================== */
.topbar-inner {
    display: grid !important;
    grid-template-columns: max-content minmax(270px, 330px) max-content;
    align-items: center !important;
    gap: 30px;
}

.topbar-inner,.topbar-inner > *,.brand,.topbar-quote,.wordmark,.topbar-quote__text {
    border: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
}

.topbar-inner::before,.topbar-inner::after,.topbar-inner > *::before,.topbar-inner > *::after,.brand::before,.brand::after,.topbar-quote::before,.topbar-quote::after,.wordmark::before,.wordmark::after,.topbar-quote__text::before,.topbar-quote__text::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.topbar-quote {
    justify-self: center;
    max-width: 330px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.topbar-quote__text {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin: 0 !important;
    padding: 0 !important;
    color: #1f2f29;
    font-size: clamp(12px, .80vw, 15px);
    line-height: 1.12;
    font-weight: 800;
    font-style: italic;
    white-space: nowrap;
}

.topbar-quote__mark {
    display: inline-block;
    margin-top: -2px;
    color: rgba(31, 47, 41, .42);
    font-size: 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
}

.topbar-quote__line { display: inline-block; }

.topbar-quote__author {
    display: block;
    margin-top: 5px;
    padding: 0;
    color: rgba(31, 47, 41, .48);
    font-size: clamp(9px, .5vw, 11px);
    line-height: 1;
    font-weight: 800;
}

.wordmark { justify-self: end; }


/* =================== АДАПТАЦИЯ ШАПКИ САЙТА =================== */
@media (max-width: 1080px) {
    .topbar-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 18px !important;
    }

    .topbar-quote { display: none !important; }

    .brand {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 260px) !important;
    }

    .wordmark {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
    }

    .slogan { min-width: 0 !important; }
    .slogan .big { font-size: 19px; }
    .wordmark { gap: 14px !important; }
    .wordmark .logo-link img[src*="priority"] { height: 22px !important; }
    .wordmark .logo-link img.second-logo { height: 42px !important; }
}

@media (max-width: 820px) {
    .topbar { overflow: visible !important; }

    .topbar .wrap {
        padding: 0 12px !important;
        overflow: visible !important;
    }

    .topbar-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 10px 0 !important;
        overflow: visible !important;
    }

    .brand {
        display: flex !important;
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        gap: 7px !important;
        overflow: visible !important;
    }

    .brand .logo-link {
        flex: 0 0 auto !important;
        height: 48px !important;
    }

    .brand .logo-link > img {
        height: 48px !important;
        width: auto !important;
        max-width: 58px !important;
    }

    .slogan {
        min-width: 0 !important;
        max-width: calc(100vw - 95px) !important;
        overflow: hidden !important;
    }

    .slogan .big {
        font-size: clamp(14px, 4.6vw, 18px) !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .slogan .big .l1, .slogan .big .l2 { white-space: nowrap !important; }

    .wordmark {
        display: flex !important;
        flex: 0 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    .wordmark .logo-link {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        justify-content: center !important;
    }

    .wordmark .logo-link img[src*="priority"] {
        height: clamp(20px, 6vw, 26px) !important;
        max-width: 170px !important;
        margin-top: 0 !important;
    }

    .wordmark .logo-link img.second-logo {
        height: clamp(38px, 10vw, 48px) !important;
        max-width: 145px !important;
        object-fit: contain !important;
    }

    .brand img, .wordmark img, .logo-link img, .brand .logo-link > img, .wordmark .logo-link img { filter: none !important; box-shadow: none !important; }

    .logo-link:hover img, .logo-link:focus-visible img, .logo-link:active img, .wordmark .logo-link:hover img, .wordmark .logo-link:focus-visible img, .wordmark .logo-link:active img {
        filter: none !important;
        box-shadow: none !important;
    }

    .brand .logo-link:hover img, .brand .logo-link:focus-visible img, .brand .logo-link:active img { transform: scale(1.01) !important; }
    .nav,.nav .wrap,.nav-inner,.drop { overflow: visible !important; }
    .nav { position: relative !important; z-index: 100 !important; }
    .drop { position: relative !important; z-index: 101 !important; }
    .drop .menu { z-index: 9999 !important; }
}

@media (max-width: 392px) {
    .topbar .wrap { padding: 0 10px !important; overflow: visible !important; }
    .topbar-inner { gap: 8px !important; padding: 9px 0 !important; overflow: visible !important; }
    .brand { gap: 6px !important; overflow: visible !important; }
    .brand .logo-link { height: 44px !important; }
    .brand .logo-link > img { height: 44px !important; max-width: 52px !important; }
    .slogan { max-width: calc(100vw - 80px) !important; overflow: hidden !important; }
    .slogan .big { font-size: clamp(13px, 4.5vw, 16px) !important; }
    .wordmark { gap: 8px !important; overflow: visible !important; }
    .wordmark .logo-link img[src*="priority"] { height: 21px !important; max-width: 150px !important; }
    .wordmark .logo-link img.second-logo { height: 38px !important; max-width: 125px !important; }
}

@media (max-width: 320px) {
    .slogan .big { font-size: 13px !important; }
    .brand .logo-link { height: 40px !important; }
    .brand .logo-link > img { height: 40px !important; max-width: 48px !important; }
    .wordmark { gap: 6px !important; }
    .wordmark .logo-link img[src*="priority"] { height: 19px !important; max-width: 130px !important; }
    .wordmark .logo-link img.second-logo { height: 34px !important; max-width: 110px !important; }
}