.new-service-hero {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #12141a;
    background-image:
        linear-gradient(90deg, rgba(10, 12, 18, 0.78) 0%, rgba(10, 12, 18, 0.5) 36%, rgba(10, 12, 18, 0.08) 62%, rgba(10, 12, 18, 0.02) 100%),
        var(--new-service-hero-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;
}

.new-service-hero__inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 130px 0 0;
}

.new-service-hero__title {
    margin: 0;
    max-width: 640px;
    font-family: Inter, sans-serif;
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

.new-service-hero__rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.new-service-hero__stars {
    color: #f5b400;
    letter-spacing: 2px;
    font-size: 22px;
    line-height: 1;
}

.new-service-hero__score {
    font-weight: 600;
}

.new-service-hero__accent {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 16px;
    border-radius: 4px;
    background: #f97316;
}

.new-service-hero__card {
    width: min(680px, 100%);
    margin-top: 36px;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.new-service-hero__card-title {
    margin: 0 0 16px;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #1a1a1a;
}

.new-service-hero__form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-service-hero__field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.new-service-hero__field input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 42px 0 16px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    background: #fff;
    font-family: Inter, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
}

.new-service-hero__field input::placeholder {
    color: #8a8a8a;
}

.new-service-hero__field input:focus {
    outline: none;
    border-color: #f97316;
}

.new-service-hero__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8a8a8a;
    font-size: 22px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.new-service-hero__clear:hover {
    color: #1a1a1a;
}

.new-service-hero__clear[hidden] {
    display: none;
}

.new-service-hero__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #f97316;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.new-service-hero__submit:hover,
.new-service-hero__submit:focus {
    background: #ea6a0c;
    color: #fff;
}

.new-service-hero__results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
}

.new-service-hero__results ul {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    max-height: 280px;
    margin: 0;
    padding: 4px 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.new-service-hero__results ul li {
    margin: 0;
}

.new-service-hero__results ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: #1a1a1a;
    font-family: Inter, sans-serif;
    font-size: 14px;
    text-decoration: none;
}

.new-service-suggest__kind {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
}

.new-service-hero__results ul li:hover,
.new-service-hero__results ul li.ui-state-focus {
    background: #fff4ec;
}

.new-service-hero__results .ui-menu-item-wrapper {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body:has(.new-service-hero) .new-homepage-footer {
    margin-top: 0;
}

.new-service-results {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    background: #fff;
    color: #1a1a1a;
}

.new-service-results__inner {
    padding: 28px 40px 56px;
}

.new-service-results__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f97316;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.new-service-results__back[hidden] {
    display: none;
}

.new-service-results__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.new-service-results__title {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.new-service-results__summary {
    margin: 8px 0 0;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #8a8a8a;
}

.new-service-results__sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 6px;
    padding: 8px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    white-space: nowrap;
}

.new-service-results__sort select {
    border: 0;
    background: transparent;
    font: inherit;
    color: #1a1a1a;
    cursor: pointer;
}

.new-service-results__sort select:focus {
    outline: none;
}

.new-service-results__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.new-service-results__loading[hidden] {
    display: none;
}

.new-service-results__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #d9d9d9;
    border-top-color: #000;
    border-radius: 50%;
    animation: new-service-results-spin 0.7s linear infinite;
}

@keyframes new-service-results-spin {
    to {
        transform: rotate(360deg);
    }
}

.new-service-results__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.new-service-results__grid[hidden] {
    display: none;
}

.new-service-results__card {
    display: flex;
    gap: 16px;
    padding: 14px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
}

.new-service-results__photo {
    flex-shrink: 0;
    width: 148px;
    height: 132px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f3f3;
}

.new-service-results__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.new-service-results__name {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.new-service-results__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    color: #6b6b6b;
}

.new-service-results__stars {
    color: #f5b400;
    letter-spacing: 1px;
    font-size: 14px;
    line-height: 1;
}

.new-service-results__categories,
.new-service-results__description,
.new-service-results__empty {
    margin: 6px 0 0;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #8a8a8a;
}

.new-service-results__description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-service-results__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #f97316;
}

.new-service-results__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.new-service-results__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.new-service-results__btn--outline {
    border: 1px solid #f97316;
    color: #f97316;
    background: #fff;
}

.new-service-results__btn--solid {
    border: 1px solid #f97316;
    background: #f97316;
    color: #fff;
}

.new-service-results__btn:hover,
.new-service-results__btn:focus,
.new-service-results__btn:focus-visible,
.new-service-results__btn:active {
    text-decoration: none;
}

.new-service-results__btn--outline:hover,
.new-service-results__btn--solid:hover {
    background: #ea6a0c;
    border-color: #ea6a0c;
    color: #fff;
}

.new-service-results__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.new-service-results__pages[hidden] {
    display: none;
}

.new-service-results__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    color: #4a4a4a;
    font-family: Inter, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.new-service-results__page.is-current {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

.new-service-results__page:disabled {
    opacity: 0.4;
    cursor: default;
}

.new-service-results__empty {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    font-size: 15px;
}

.new-service-empty,
.new-service-recommend {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 24px 64px;
}

.new-service-empty[hidden],
.new-service-recommend[hidden] {
    display: none;
}

.new-service-empty__card,
.new-service-recommend__card {
    border: 1px solid #f3e6dc;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.18);
}

.new-service-empty__card {
    padding: 56px 40px 48px;
    text-align: center;
}

.new-service-empty__icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
}

.new-service-empty__title {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.new-service-empty__text {
    margin: 14px 0 0;
    font-family: Inter, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.new-service-empty__button,
.new-service-recommend__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: #f97316;
    color: #fff;
    font-family: Inter, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.new-service-empty__button {
    margin-top: 22px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8.5px;
    font-size: 14px;
}

.new-service-empty__button:hover,
.new-service-recommend__send:hover {
    background: #ea6a0c;
}

.new-service-recommend__header {
    margin: 8px 0 22px;
    text-align: center;
}

.new-service-recommend__title {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a1a1a;
}

.new-service-recommend__intro {
    max-width: 630px;
    margin: 8px auto 0;
    font-weight: 400;
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #8a8a8a;
}

.new-service-recommend__card {
    padding: 28px 28px 22px;
}

.new-service-recommend__label {
    margin: 0 0 16px;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
}

.new-service-recommend__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.new-service-recommend__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-family: Inter, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.new-service-recommend__control {
    position: relative;
    display: block;
}

.new-service-recommend__control img {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    pointer-events: none;
}

.new-service-recommend__field input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.new-service-recommend__field input::placeholder {
    color: #b0b0b0;
    font-weight: 400;
}

.new-service-recommend__field input:focus {
    outline: 2px solid rgba(249, 115, 22, 0.35);
    border-color: #f97316;
}

.new-service-recommend__field input.is-invalid {
    border-color: #c2410c;
}

.new-service-recommend__field-error {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #c2410c;
    text-align: left;
}

.new-service-recommend__field-error[hidden] {
    display: none;
}

.new-service-recommend__send {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 16px;
}

.new-service-recommend__send:disabled {
    opacity: 0.7;
    cursor: default;
}

.new-service-recommend__note,
.new-service-recommend__error {
    margin: 12px 0 0;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: #9a9a9a;
}

.new-service-recommend__error {
    color: #c2410c;
}

.new-service-recommend__error.is-success {
    color: #15803d;
}

.new-service-recommend__error[hidden] {
    display: none;
}

.new-service-recommend__thanks {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #f6e4d4;
    border-radius: 16px;
    background: #fff7f2;
}

.new-service-recommend__thanks-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: auto;
    padding-right: 20px;
    border-right: 1.5px solid #7F7875;
}

.new-service-recommend__thanks-icon img {
    display: block;
    width: 42px;
    height: 38px;
}

.new-service-recommend__thanks p {
    margin: 0;
    align-self: center;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a;
}

@media (max-width: 720px) {
    .new-service-hero {
        min-height: 0;
        align-items: flex-end;
        background-position: 70% center;
    }

    .new-service-hero__inner {
        width: calc(100% - 32px);
        padding: 48px 0 36px;
    }

    .new-service-hero__rating {
        font-size: 16px;
    }

    .new-service-hero__form {
        flex-direction: column;
        align-items: stretch;
    }

    .new-service-hero__submit {
        width: 100%;
    }

    .new-service-results__inner {
        padding: 24px 16px 40px;
    }

    .new-service-results__heading {
        flex-direction: column;
        align-items: stretch;
    }

    .new-service-results__title {
        font-size: 28px;
    }

    .new-service-results__grid {
        grid-template-columns: 1fr;
    }

    .new-service-empty__card {
        padding: 36px 20px 32px;
    }

    .new-service-empty__title,
    .new-service-recommend__title {
        font-size: 24px;
    }

    .new-service-recommend__row {
        grid-template-columns: 1fr;
    }

    .new-service-results__card {
        flex-direction: column;
    }

    .new-service-results__photo {
        width: 100%;
        height: 180px;
    }
}
