.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4.65px);
    -webkit-backdrop-filter: blur(4.65px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.header__logos {
    display: flex;
    align-items: center;
    gap: 14.924px;
    flex-shrink: 0;
}

.header__logo-link {
    display: block;
}

.header__logo-img {
    display: block;
    height: 24.778px;
    width: auto;
}

.header__logo-img--mipt {
    height: 35.389px;
    width: auto;
}

.header__logo-img--techpred {
    height: 21.922px;
    width: auto;
}

.header__separator {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: 14.745px;
    line-height: 1;
    color: #8f8e85;
    user-select: none;
}

.header__nav {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    flex-shrink: 0;
}

.header__nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.5;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.header__nav-link:hover {
    opacity: 0.6;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header__date {
    font-family: 'Space Mono', 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12.5px;
    line-height: 1.3;
    color: #a9a89f;
    white-space: nowrap;
}

.header__cta {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    background: #258bff;
    border: 1px solid #258bff;
    border-radius: 100px;
    padding: 16px 27px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.header__cta:hover {
    background: #1a7aeb;
}

.header__cta:active {
    transform: scale(0.97);
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.header__burger--active .header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger--active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--active .header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1280px) {
    .header__logos {
        gap: 10px;
    }

    .header__logo-img {
        height: 20px;
    }

    .header__logo-img--mipt {
        height: 28px;
    }

    .header__logo-img--techpred {
        height: 18px;
    }

    .header__separator {
        font-size: 12px;
    }

    .header__nav {
        gap: 24px;
    }
}

@media (max-width: 1124px) {
    .header .content-wrap {
        --page-margin: 24px;
    }

    .header__inner {
        height: 72px;
    }

    .header__nav {
        gap: 18px;
    }

    .header__nav-link {
        font-size: 13px;
    }

    .header__date {
        display: none;
    }

    .header__logos {
        gap: 8px;
    }

    .header__logo-img {
        height: 18px;
    }

    .header__logo-img--mipt {
        height: 24px;
    }

    .header__logo-img--techpred {
        height: 16px;
    }

    .header__separator {
        font-size: 10px;
    }

    .header__cta {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .header .content-wrap {
        --page-margin: 16px;
    }

    .header__inner {
        height: 64px;
    }

    .header__burger {
        display: flex;
    }

    .header__logo-img--mipt,
    .header__logo-img--techpred,
    .header__separator {
        display: none;
    }

    .header__nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .header__nav--open {
        max-height: 300px;
        padding: 20px 16px;
    }

    .header__nav-link {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .header__nav-link:last-child {
        border-bottom: none;
    }

    .header__actions {
        gap: 12px;
    }

    .header__cta {
        font-size: 13px;
        padding: 10px 16px;
    }

    .header__logo-img {
        height: 16px;
    }

    .header__logo-img--mipt,
    .header__logo-img--techpred {
        height: 16px;
    }

    .header__actions {
        margin-left: auto;
        margin-right: 20px;
    }
}
