.cg-header {
    width: min(1680px, calc(100% - 64px));
    margin: 48px auto 0;
    padding: 24px 40px 0;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
    font-family: Manrope, sans-serif;
}

.cg-header__inner {
    height: 74px;
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    align-items: center;
    gap: 24px;
}

.cg-header__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0f172a;
    text-decoration: none;
}

.cg-header__logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #11b8bd;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
}

.cg-header__logo-text {
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 1;
}

.cg-header__search-wrap {
    height: 64px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.1);
    box-shadow: 0 14px 44px rgba(15,23,42,.07);
}

.cg-header__search,
.cg-header__location {
    height: 52px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: inherit;
    cursor: pointer;
}

.cg-header__search {
    padding: 0 22px;
    justify-content: flex-start;
    color: #64748b;
    font-size: 17px;
    font-weight: 750;
}

.cg-header__location {
    padding: 0 18px;
    border-left: 1px solid rgba(15,23,42,.08);
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.cg-search-icon,
.cg-location-icon {
    color: #0f172a;
    opacity: .7;
}

.cg-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.cg-header__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #0f172a;
    text-decoration: none;
    font-size: 25px;
    border-radius: 999px;
}

.cg-header__icon:hover {
    background: #f1f5f9;
}

.cg-header__cta {
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    background: #11b8bd;
    color: #fff;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 17px;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(17,184,189,.32);
}

.cg-header__menu {
    display: none;
}

.cg-header__nav {
    margin: 18px auto -31px;
    width: min(980px, 100%);
    min-height: 62px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 54px rgba(15,23,42,.12);
}

.cg-header__nav a {
    position: relative;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    opacity: .82;
}

.cg-header__nav a:hover,
.cg-header__nav a:first-child {
    color: #11b8bd;
    opacity: 1;
}

.cg-header__nav a:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: 3px;
    border-radius: 999px;
    background: #11b8bd;
}

@media (max-width: 980px) {
    .cg-header {
        width: calc(100% - 24px);
        margin: 18px auto 0;
        padding: 16px 16px 0;
        border-radius: 28px;
    }

    .cg-header__inner {
        height: auto;
        display: grid;
        grid-template-columns: 44px 1fr auto;
        gap: 12px;
    }

    .cg-header__brand {
        justify-content: center;
    }

    .cg-header__logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 15px;
    }

    .cg-header__logo-text {
        font-size: 24px;
    }

    .cg-header__search-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 56px;
        margin-top: 16px;
    }

    .cg-header__search {
        font-size: 15px;
        padding: 0 16px;
    }

    .cg-header__location {
        display: none;
    }

    .cg-header__icon,
    .cg-header__cta {
        display: none;
    }

    .cg-header__menu {
        display: grid;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: #f1f5f9;
        place-items: center;
        cursor: pointer;
    }

    .cg-header__menu span {
        width: 18px;
        height: 2px;
        background: #0f172a;
        display: block;
        margin: 3px 0;
        border-radius: 999px;
    }

    .cg-header__nav {
        margin: 18px -16px 0;
        width: auto;
        min-height: 74px;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 28px;
        padding: 0 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }
}