/* =================================================
   HEADER THEME TOKENS (custom palette)
   Вдохновение: тёплый нейтральный + елово-петрольный акцент
================================================= */

:root {
    --hdr-ink: #121826; /* основной текст */
    --hdr-muted: #556070; /* вторичный */
    --hdr-border: #E7E3DA; /* тёплая граница */
    --hdr-bg: rgba(255, 255, 255, .94);
    --hdr-soft: #FAF7F2; /* мягкий фон */

    /* Акцент НЕ bootstrap-blue */
    --hdr-accent: #0F766E; /* deep teal */
    --hdr-accent-2: #14532D; /* темно-зелёный (в градиентах) */
    --hdr-accent-soft: #E7F6F4; /* мягкий teal */

    --hdr-radius: 12px;
}

/* =================================================
   HEADER / NAVBAR
================================================= */

.site-header {
    background: var(--hdr-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hdr-border);
    z-index: 1030;
}

.navbar {
    padding: 14px 0;
}

/* =================================================
   BRAND (icon + wordmark)
================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    user-select: none; /* не выделяется */
    -webkit-user-select: none;
}

.brand:hover {
    text-decoration: none; /* без подчеркивания */
}


.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
            135deg,
            var(--hdr-accent),
            #0B5F59
    );

    border: 1px solid rgba(15, 118, 110, .35);

    color: #ffffff;
    font-size: 18px;
    line-height: 1;

    box-shadow: none;
}

.brand-wordmark {
    font-weight: 850;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--hdr-ink);
    line-height: 1.1;
    user-select: none;
    -webkit-user-select: none;
}

.brand-tagline {
    font-size: 12px;
    color: var(--hdr-muted);
    margin-top: 2px;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 991px) {
    .brand-tagline {
        display: none;
    }
}

/* =================================================
   NAVIGATION
================================================= */

.navbar-nav {
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 10px 14px !important;
    font-weight: 650;
    font-size: 15px;
    color: var(--hdr-muted) !important;
    border-radius: var(--hdr-radius);
    transition: background .18s ease, color .18s ease;
}

.nav-link:hover {
    background: var(--hdr-soft);
    color: var(--hdr-ink) !important;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: transparent;
    border-radius: 999px;
    transition: background .18s ease;
}

.nav-link:hover::after {
    background: rgba(15, 118, 110, .25);
}

.nav-link.is-active {
    background: var(--hdr-accent-soft);
    color: var(--hdr-accent) !important;
}

.nav-link.is-active::after {
    background: rgba(15, 118, 110, .55);
}

/* =================================================
   HEADER ACTIONS
================================================= */

/* Search icon button */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--hdr-radius);
    border: 1px solid var(--hdr-border);
    background: #fff;
    color: var(--hdr-muted);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-icon:hover {
    background: var(--hdr-soft);
    color: var(--hdr-ink);
    border-color: rgba(15, 118, 110, .25);
}

/* Make bootstrap icon inside the search button larger */
.btn-icon .bi {
    font-size: 18px; /* можно 19–20 если хочется крупнее */
    line-height: 1;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Newsletter CTA — flat, editorial */

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: var(--hdr-radius);

    background: var(--hdr-accent);
    border: 1px solid rgba(15, 118, 110, .35);

    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;

    box-shadow: none;
    transition: background .15s ease,
    color .15s ease,
    border-color .15s ease;
}

.btn-cta:hover {
    background: #0B5F59; /* чуть темнее акцента */
    border-color: #0B5F59;
    color: #ffffff;
}

.btn-cta:active {
    background: #0A5450;
    border-color: #0A5450;
}

.btn-cta:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .25);
}


/* =================================================
   TOPBAR (Kurz & neu) — оставляем как было, но в палитре
================================================= */

.topbar {
    background: linear-gradient(180deg, #ffffff, #fbfaf7);
    border-top: 1px solid var(--hdr-border);
}

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

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-label {
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--hdr-muted);
}

.topbar-link {
    font-size: 14px;
    font-weight: 650;
    color: var(--hdr-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65vw;
}

.topbar-link:hover {
    text-decoration: underline;
}

.badge-soft {
    font-size: 12px;
    font-weight: 750;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ECFDF3;
    color: #027A48;
    border: 1px solid rgba(2, 122, 72, 0.15);
}

.topbar-right {
    font-size: 13px;
    color: var(--hdr-muted);
    white-space: nowrap;
}

/* =================================================
   SEARCH DRAWER — compact, newsroom-like
================================================= */

.searchbar {
    background: #FBFAF7;
    border-top: 1px solid var(--hdr-border);
}

.searchbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 6px;
}

.searchbar-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;

    background: #ffffff;
    border: 1px solid var(--hdr-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.searchbar-icon {
    color: var(--hdr-muted);
    flex: 0 0 auto;
}

.searchbar-input {
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 15px;
    line-height: 1.2;
    color: var(--hdr-ink);
    background: transparent;
    padding: 0;
}

.searchbar-input::placeholder {
    color: #8A93A3;
}

.searchbar-clear {
    border: 1px solid var(--hdr-border);
    background: #ffffff;
    color: var(--hdr-muted);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 650;
    font-size: 14px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.searchbar-clear:hover {
    background: var(--hdr-soft);
    color: var(--hdr-ink);
    border-color: rgba(15, 118, 110, .25);
}

.searchbar-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--hdr-border);
    background: #ffffff;
    color: var(--hdr-muted);
    font-size: 16px;
    line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.searchbar-close:hover {
    background: var(--hdr-soft);
    color: var(--hdr-ink);
    border-color: rgba(15, 118, 110, .25);
}

.searchbar-hint {
    padding-bottom: 10px;
    font-size: 13px;
    color: var(--hdr-muted);
}

@media  (max-width: 693px) {
    .topbar {
        display: none;
    }

}