/* ================================================
   Axiomed — Header (logo in flow, 3-column grid)
   ================================================ */

.hdr {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.25s;
    
}

.hdr.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── 3-column grid: nav | logo | nav+contacts ── */
.hdr-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100px;
}

/* ── Logo ── */
.hdr-logo {
    display: flex;
    justify-content: center;
    padding: 0 34px;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hdr-logo:hover { opacity: 0.85; text-decoration: none; }

.hdr-logo img {
    height: 90px;
    width: auto;
    display: block;
}

/* ── Nav (shared) ── */
.hdr-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-nav--left  { justify-content: flex-end; }
.hdr-nav--right { justify-content: flex-start; gap: 0; }

.hdr-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-link {
    position: relative;
    color: #ccc !important;
    font-size: 1.1rem;
    font-weight: 900;
    -webkit-text-stroke: 1px currentColor;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 8px 11px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.hdr-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 11px;
    right: 11px;
    height: 2px;
    background: #3798da;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.hdr-link:hover,
.hdr-link:focus {
    color: #3798da !important;
    text-decoration: none;
}

.hdr-link:hover::after { transform: scaleX(1); }

/* ── Contacts (right of right-nav) ── */
.hdr-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.hdr-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hdr-lang a { color: #777; text-decoration: none; transition: color 0.2s; }
.hdr-lang a:hover { color: #3798da; }
.hdr-lang span { color: #333; }

.hdr-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #3798da;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(55,152,218,0.4);
    transition: background 0.2s, transform 0.15s;
}

.hdr-cta:hover {
    background: #2578b5;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}

/* ── Burger ── */
.hdr-toggler {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    margin-left: 12px;
    transition: border-color 0.2s;
}

.hdr-toggler:hover { border-color: #3798da; }

.hdr-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s, width 0.25s;
}

.hdr-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-toggler.open span:nth-child(2) { opacity: 0; width: 0; }
.hdr-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.hdr-drawer {
    display: none;
    flex-direction: column;
    background: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 20px 16px;
}

.hdr-drawer.open { display: flex; }

.hdr-drawer .hdr-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hdr-drawer .hdr-link::after { display: none; }

.hdr-cta--drawer {
    margin-top: 14px;
    justify-content: center;
    border-radius: 50px;
}

/* ── Mobile ── */
@media (max-width: 991.98px) {
    .hdr-bar {
        grid-template-columns: auto 1fr auto;
        height: 64px;
        padding: 0 16px;
    }

    /* на мобиле: бургер слева, лого по центру (1fr), кнопки справа */
    .hdr-nav--left  { display: none; }
    .hdr-nav-links  { display: none; }
    .hdr-contacts   { display: none; }
    .hdr-toggler    { display: flex; margin-left: 0; }

    .hdr-logo {
        padding: 0;
        justify-content: center;
    }

    .hdr-logo img { height: 48px; }

    /* правая колонка — только бургер */
    .hdr-nav--right {
        justify-content: flex-end;
    }
}
