.global-search-panel {
    position: fixed;
    z-index: 90;
    top: var(--global-search-top, 112px);
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    visibility: hidden;
    max-height: calc(100vh - var(--global-search-top, 112px));
    overflow-y: auto;
    color: #565656;
    border-top: 1px solid #edf0f2;
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(22, 42, 58, .12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: visibility .25s ease, opacity .25s ease, transform .25s ease;
}

.global-search-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.global-search-panel[hidden] {
    display: none;
}

.global-search-inner {
    position: relative;
    width: min(calc(100% - 48px), 1584px);
    margin: 0 auto;
    padding: 38px 0 40px;
}

.global-search-close {
    position: absolute;
    top: 20px;
    right: max(24px, calc((100% - 1584px) / 2));
    z-index: 2;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #777777;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    transition: color .2s ease, transform .2s ease;
}

.global-search-close:hover {
    color: #333333;
    transform: rotate(90deg);
}

.global-search-title {
    margin: 0;
    color: #5b5b5b;
    font-size: clamp(25px, 2vw, 32px);
    font-weight: 400;
    line-height: 1.25;
}

.global-search-form {
    display: flex;
    align-items: center;
    margin-top: 25px;
    border-bottom: 1px solid #174b9d;
}

.global-search-form input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0;
    color: #555555;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 21px;
}

.global-search-form input::placeholder {
    color: #5e5e5e;
    opacity: 1;
}

.global-search-submit {
    display: grid;
    place-items: center;
    width: 48px;
    height: 52px;
    flex: 0 0 48px;
    color: #686868;
    background: transparent;
    font-size: 25px;
    transition: color .2s ease, transform .2s ease;
}

.global-search-submit:hover {
    color: #f26d32;
    transform: scale(1.08);
}

.global-search-popular {
    margin-top: 45px;
}

.global-search-popular-title {
    display: block;
    margin-bottom: 15px;
    color: #174b9d;
    font-size: 16px;
    line-height: 1.2;
}

.global-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.global-search-tag {
    min-height: 33px;
    padding: 0 16px;
    color: #626262;
    border-radius: 18px;
    background: #f4f4f4;
    font-size: 14px;
    line-height: 33px;
    transition: color .2s ease, background .2s ease;
}

.global-search-tag:hover,
.global-search-tag:focus-visible {
    color: #ffffff;
    background: #f26d32;
}

body.global-search-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .global-search-inner {
        width: min(calc(100% - 34px), 680px);
        padding: 31px 0 32px;
    }

    .global-search-close {
        top: 14px;
        right: 17px;
    }

    .global-search-title {
        padding-right: 38px;
        font-size: 25px;
    }

    .global-search-form {
        margin-top: 22px;
    }

    .global-search-form input {
        height: 48px;
        font-size: 17px;
    }

    .global-search-submit {
        height: 48px;
        font-size: 22px;
    }

    .global-search-popular {
        margin-top: 31px;
    }
}

@media (max-width: 540px) {
    .global-search-inner {
        width: min(calc(100% - 28px), 480px);
    }

    .global-search-title {
        font-size: 22px;
    }

    .global-search-popular-title {
        font-size: 14px;
    }

    .global-search-tag {
        min-height: 30px;
        padding: 0 12px;
        font-size: 12px;
        line-height: 30px;
    }
}
