.search-bar {
    position: relative;
    z-index: 10;
    top: 0;
    left: 0;
    background: #fff;
    margin-top: -139px;
    transition: margin-top 250ms linear;
}

@media screen and (max-width: 768px) {
    .search-bar {
        margin-top: -82px;
    }
}

.search-bar.open {
    margin-top: 0;
}

.search-inner {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 32px;
    margin: auto;
    padding: 32px 32px;
    max-width: calc(960px + 64px);
    width: 100%;
}

.search-result-inner {
    margin: auto;
    padding: 32px 32px 0;
    max-width: calc(960px + 64px);
    width: 100%;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;

}

@media screen and (max-width: 1511px) {
    .search-inner {
        max-width: calc(718px + 48px);
    }

    .search-result-inner {
        max-width: calc(718px + 48px);
    }
}

@media screen and (max-width: 768px) {
    .search-inner {
        column-gap: 16px;
        padding: 16px 16px;
        max-width: 960px;
        grid-template-columns: 50px 1fr;
    }

    .search-result-inner {
        padding: 20px 16px 0;
        max-width: 960px;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 30px;
    }
}

.search-btn {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
}

@media screen and (max-width: 1511px) {
    .search-btn {
        width: 58px;
        height: 58px;
    }
}

@media screen and (max-width: 768px) {
    .search-btn {
        width: 50px;
        height: 50px;
        cursor: pointer;
    }
}

.search-col:last-child {
    position: relative;
}

.search-col:last-child .search-btn--open {
    position: absolute;
    z-index: 1;
    top: 139px;
    right: 0;
    transition: top 250ms linear;
}

.search-col:last-child .search-btn--submit {
    display: none;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
}

@media screen and (max-width: 1511px) {
    .search-col:last-child .search-btn--submit {
        width: 58px;
        height: 58px;
    }
}

@media screen and (max-width: 768px) {
    .search-col:last-child .search-btn--open {
        top: 82px;
    }

    .search-col:last-child .search-btn--submit {
        width: 50px;
        height: 50px;
    }
}

.open .search-col:last-child .search-btn--open {
    top: 0;
}

.open .search-col:last-child .search-btn--submit {
    display: block;
}

.search-btn--close {
    opacity: 0;
    transition: opacity 0ms 300ms linear;
}

.search-btn--close-back {
    opacity: 1;
}

.open .search-btn--close {
    opacity: 1;
}

.closing .search-btn--close {
    opacity: 0;
    transition: opacity 0ms 150ms linear;
}

.search-input {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 0;
    height: 60px;
    padding: 0;
    text-indent: 23.977px;
    border-radius: 47.953px;
    background: #E978D7;

    color: #FFF;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 52px;

    opacity: 0;

    transition: width 300ms 300ms linear, opacity 0ms 300ms linear;

    outline: none;
}

@media screen and (max-width: 1511px) {
    .search-input {
        height: 58px;
    }
}

@media screen and (max-width: 768px) {
    .search-input {
        height: 50px;

        font-size: 21px;
        line-height: 42px;

        text-indent: 16.977px;
    }
}

.open .search-input {
    width: 100%;
    opacity: 1;
}

.closing .search-input {
    width: 0;
    opacity: 1;
    transition: width 300ms 0ms linear, opacity 0ms 300ms linear;
}

.search-input::placeholder {
    color: #F6F6F6;
}

@media screen and (max-width: 768px) {
    .search-input::placeholder {
        font-size: 18px;
    }

}