/* Kent-Ok: шапка */
.ko-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: var(--ko-header-h);
    padding: calc(8px + var(--ko-safe-top)) calc(16px + var(--ko-safe-right)) 8px calc(16px + var(--ko-safe-left));
    background: var(--ko-bg-soft);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ko-header__logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
}

.ko-header__logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.ko-header__logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ko-header__slogan {
    margin: 0;
    text-align: center;
    min-width: 0;
    width: 100%;
    justify-self: stretch;
    overflow: hidden;
}

.ko-header__slogan h1 {
    margin: 0;
}

.ko-header__slogan p {
    margin: 0;
}

.ko-header__slogan a {
    color: inherit;
    text-decoration: underline;
}

.ko-header__slogan img {
    max-height: 40px;
    width: auto;
    vertical-align: middle;
}

.ko-header__slogan .slogan-heart {
    display: inline-block;
    height: 0.28em;
    width: 0.28em;
    max-height: none;
    margin-left: 0.06em;
    vertical-align: 0.06em;
    object-fit: contain;
    animation: graffiti-blink 1s step-end infinite;
}

@keyframes graffiti-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ko-header__slogan .slogan-heart {
        animation: none;
    }
}

.ko-header__spacer {
    justify-self: end;
}

@media (max-width: 600px) {
    .ko-header {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .ko-header__spacer {
        display: none;
    }
    .ko-header__logo img {
        height: 36px;
        max-width: 120px;
    }
    .ko-header__slogan {
        padding-right: 8px;
    }
}
