/* Шапка сайта (владелец 23.10.2026: «ужасная, не современная») — подключается в default.hbs, см. theme_patch.py.
   Вместо обложки-заглушки Ghost на пол-экрана — компактная тёмная полоса, прилипает при прокрутке;
   логотип слева, рубрики, соцсети значками. h1 главной (описание сайта) остаётся для поисковиков, но скрыт. */
.site-header-content { display: none; }
h1.site-description { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gh-head,
.has-cover:not(.home-template) .gh-head,
:is(.home-template, .paged:not(.tag-template):not(.author-template)).has-cover .gh-head {
    position: sticky; top: 0; height: 64px; z-index: 2000;
    background: #111214; color: #fff; border-bottom: 3px solid #f70d2c;
}
/* Casper на главной прячет логотип в шапке (он был на обложке) — возвращаем. */
.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-logo { display: block; }
.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-menu { margin-left: 16px; }
.gh-head-inner { column-gap: 24px; }
.gh-head-logo img { max-height: 44px; }
.gh-head .gh-search { color: #fff; }
.gh-burger::before, .gh-burger::after { background-color: #fff; }

.gh-head-menu .nav { gap: 4px 26px; align-items: center; }
.gh-head-menu .nav li { margin: 0; }
.gh-head-menu .nav a { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    opacity: .85; transition: opacity .15s; }
.gh-head-menu .nav a:hover { opacity: 1; color: #fff; }
.gh-head-menu .nav .nav-current a { opacity: 1; padding-bottom: 6px; box-shadow: inset 0 -3px 0 #f70d2c; }
.nav-glavnaia { display: none; } /* на главную ведёт логотип */

/* Соцсети — круглые значки после рубрик. Классы Ghost строит из названий пунктов в Navigation админки:
   переименуешь пункт — значок пропадёт. Ширину .nav не растягивать: dropdown.js Casper уносит пункты в «…»,
   пока ширина nav + 64 > ширины меню (с width:100% он унёс все, 23.10.2026). */
@media (min-width: 992px) {
    .gh-head-menu { margin-right: 0; }
    .gh-head-actions { margin-left: 16px; }
    .gh-head-menu .nav li.nav-telegram { margin-left: 6px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
    .gh-head-menu .nav li.nav-telegram, .gh-head-menu .nav li.nav-max { margin-right: -16px; }
    .nav-telegram a, .nav-max a, .nav-vk a { display: flex; align-items: center; justify-content: center;
        width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1);
        font-size: 0 !important; opacity: 1 !important; }
    .nav-telegram a:hover, .nav-max a:hover, .nav-vk a:hover { background: #f70d2c; }
    .nav-telegram a::before, .nav-max a::before, .nav-vk a::before { content: ""; width: 17px; height: 17px;
        background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
    .nav-telegram a { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.9 4.3 18.6 19.8c-.2 1.1-.9 1.4-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.2-8.3c.4-.4-.1-.6-.6-.2L6 13.4l-4.9-1.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.9c.9-.3 1.7.2 1.4 1.4z'/%3E%3C/svg%3E"); }
    .nav-vk a { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.8 18C6 18 2.1 13.3 2 5.5h3.4c.1 5.7 2.6 8.1 4.6 8.6V5.5h3.2v4.9c2-.2 4-2.5 4.7-4.9h3.2c-.5 3-2.7 5.3-4.3 6.2 1.6.8 4.1 2.7 5 6.3h-3.5c-.8-2.4-2.7-4.2-5.1-4.5V18h-.4z'/%3E%3C/svg%3E"); }
    .nav-max a { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-10 10c0 2 .5 3.6 1.4 5.1L2.6 21.4l4.4-.8A10 10 0 1 0 12 2zm0 4.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11z'/%3E%3C/svg%3E"); }
    /* Не влезшие пункты dropdown.js кладёт в «…» (белый список) — там соцсети обычным текстом. */
    .gh-dropdown li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
    .gh-dropdown a { display: block !important; width: auto !important; height: auto !important; border-radius: 0 !important;
        background: none !important; color: #15171a !important; font-size: 1.4rem !important; }
    .gh-dropdown a::before { content: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .gh-head-menu .nav { gap: 4px 18px; }
    .gh-head-menu .nav li.nav-telegram, .gh-head-menu .nav li.nav-max { margin-right: -10px; }
}

@media (max-width: 991px) {
    .gh-head { height: 56px; }
    .gh-head-logo img { max-height: 38px; }
    .gh-head-open #gh-head,
    .gh-head-open.has-cover #gh-head,
    .gh-head-open.has-cover #gh-head .gh-head-actions { background-color: #111214; }
    .gh-head-open #gh-head .nav a { font-size: 2.4rem; text-transform: none; letter-spacing: 0; }
}
