@keyframes form-row-appearance {
  from {
    transform: translateY(20vh);
    opacity: 0;
  }

  to {
    transform: translateY(0vh);
    opacity: 1;
  }
}

@keyframes r5-form-row-appearance {
  from {
    transform: translateY(0vh);
    opacity: 1;
    animation: none;
  }

  to {
    transform: translateY(0vh);
    opacity: 1;
    animation: none;
  }
}

@keyframes ss-form-appearance {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


h1 {
    margin-inline: auto;
    width: fit-content;
    padding-left: 0px;
}

.services-search-form {
    max-width: max(60vw, 900px);
    gap: 10px;
    margin-left: calc(calc(100vw - max(60vw, 900px) - 12.5vw) / 2);
}

.gruz {
    display: flex;
    filter: brightness(.5);
}

.form-background {
    display: block;
    position: absolute;
    width: calc(max(60vw, 900px) - 12.5vw + 15px);
    height: 16em;
    background: #1e1e1e75;
    backdrop-filter: blur(90px);
    margin-left: calc(12.5vw);
    margin-top: -10px;

    border-radius: 30px;
    border: var(--default-border);
    transition: all .2s ease;

    animation: 1s cubic-bezier(0, 0, 0, 0.97) 0s 1 form-row-appearance;
}

.result {
    transition: all .2s ease;

}

.result:hover {
    background-color: #3F3F3D;
}

.services-search-form:hover .form-background {
    background-color: rgb(30, 30, 30, .75);
}

.category-input aside {
    line-height: 30px;
}

.category-input {
    height: 90px;
}

#r1 {
    animation: 1s cubic-bezier(0, 0, 0, 0.97) 0s 1 forwards form-row-appearance;
}

#r2 {
    animation: 1s cubic-bezier(0, 0, 0, 0.97) 0s 1 forwards form-row-appearance;
}

#r3 {
    animation: 1s cubic-bezier(0, 0, 0, 0.97) 0s 1 forwards form-row-appearance;
}

#r4 {
    animation: 1s cubic-bezier(0, 0, 0, 0.97) 0s 1 forwards form-row-appearance;
}

#r5 {
    margin-top: 40px;
    margin-left: calc(calc(100vw - max(60vw, 900px) - 12.5vw) / 2);
    z-index: 10;
    animation: 1s cubic-bezier(0, 0, 0, 0.97) .5s 1 forwards form-row-appearance;
}

.top.hint {
    margin-bottom: 20px;
    display: flex;
    margin-left: calc(calc(100vw - max(60vw, 900px) - 12.5vw) / 2);
}

.mobile-form-separator {
    display: none;
}

.results-list {
    max-width: fit-content;
}

@media (aspect-ratio >= 1/1) {
    .form-row {
        gap: 10px;
    }

    #r5 {
        gap: 0px;
    }
}

@media (aspect-ratio < 1/1) {
    .services-search-form {
        max-width: calc(90vw - 60px);
        margin-inline: auto;
        background: rgb(30, 30, 30, .9);
        backdrop-filter: blur(25px);
        border-radius: 50px;
        padding: 30px;
        border: var(--default-border);
        height: auto;
        justify-content: space-between;
        gap: 30px;

        opacity: 0;

        animation: 1s cubic-bezier(0, 0, 0, 0.97) .25s 1 forwards line-appearance;
    }

    .hint {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .category-input {
        height: auto;
        width: calc(90vw - 60px);
    }

    .form-background {
        display: none;
    }

    .top.hint {
        display: none;
    }

    .category-input aside {
        max-width: none;
        font-size: 50px;
        line-height: normal;
    }

    .results-list {
        opacity: 1;
        width: 90vw;
        margin-inline: 8vw;
        margin-left: 7vw;
        gap: 40px;
    }

    .result {
        width: auto;
        max-width: none;
        border-radius: 40px;
        padding: 0px;
        row-gap: 65px;

        background: rgb(30, 30, 30, .9);
        backdrop-filter: blur(25px);

        cursor: pointer;
        display: grid;
        grid-template-columns: 1fr 1.6fr;
        max-height: max-content;
    }

    .result h3 {
        margin-top: 20px;
        font-size: 50px;
        line-height: 50px;
    }

    .result-service-image-wrapper {
        max-width: 20vw;
        height: auto;
        background: #1e1e1e;
    }

    .result-main-data span {
        font-size: 25px;
        margin-top: 20px;
    }

    .result-controls-data {
        display: flex;
        flex-direction: row;
        height: 100%;
        margin-left: auto;
        grid-column-end: -1;
        grid-column-start: -2;
        width: 100%;
        justify-content: center;
        align-items: flex-end;
    }

    .result-controls-data label {
        width: 100%;
        margin: 0px;
        border-radius: 50px;
        font-size: 50px;
        height: max-content;
        margin-bottom: 20px;
        margin-right: 20px;

        color: var(--black-color)!important;
        background: var(--green-color)!important;
    }

    .result-controls-data button {
        width: 100%;
        border-radius: 50px;
        font-size: 35px;
        height: max-content;
    }

    .result-service-image-wrapper {
        max-width: 100%;
        grid-row-end: 3;
        grid-row-start: 1;
        height: 100%;
    }

    .result-main-data span {
        display: none;
    }

    .result-main-data a {
        font-size: 35px;
    }

    .result-main-data {
        justify-content: flex-start;
        gap: 5px;
    }

    .service-btn {
        display: none!important;
    }

    .result-service-image-wrapper {
        border-radius: 35px;
    }

    .services-search-form input {
        font-size: 50px;
        padding: 20px!important;
        background-color: #474747;
    }

    .services-search-form button {
        font-size: 35px;
        background-color: #474747;
    }

    #categoryInput {
        font-size: 35px;
    }

    .input-row.filters {
        flex-direction: column;
    }

    .form-btn {
        padding-block: 20px;
        border-radius: 40px;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #r5 .hint {
        display: none;
    }

    .keys-input {
        font-size: 35px!important;
        border-radius: 40px!important;
        width: calc(90vw - 100px);
    }

    #r1, #r2, #r3, #r4, #r5 {
        animation: none;
        opacity: 1;
        transform: none;
    }

    #r5 {
        margin-left: calc(calc(100vw - max(60vw, 900px) - 12.5vw) / 2);
        display: flex;
        opacity: 0;
        animation: 1s cubic-bezier(0, 0, 0, 0.97) .5s 1 forwards line-appearance;
    }

    .category-input {
        border-radius: 40px;
        border: none;
        background: transparent;
        padding: 0px;
    }

    .result.empty {
        display: flex;
        padding: 30px;
    }

    .result.empty img {
        width: 100%;
    }

    #categoriesList {
        padding-left: 25px;
    }

   .mobile-form-separator {
        display: flex;
        height: 5px;
        background: #474747;
        width: calc(90vw - 60px);
   }

   .h1-spaces {
        display: none;
   }

   h1 {
        padding-top: 20vh;
        font-size: 60px;
        line-height: 60px;
        text-align: center;
        height: 180px;
        padding-top: 10vh;
   }

   .h-line
}
