:root {
    --services-yellow: #22c55e;
    --services-yellow-deep: #16a34a;
    --services-black: #111827;
    --services-surface: rgba(17, 24, 39, 0.58);
    --services-surface-strong: rgba(17, 24, 39, 0.9);
    --services-card: rgba(17, 24, 39, 0.74);
    --services-muted-surface: rgba(31, 41, 55, 0.5);
    --services-line: rgba(55, 65, 81, 0.9);
    --services-line-soft: rgba(31, 41, 55, 0.72);
    --services-text: #ffffff;
    --services-muted: #9ca3af;
    --services-muted-soft: #6b7280;
    --services-accent-soft: #86efac;
    --services-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

html {
    background:
        radial-gradient(circle at top, rgba(34, 197, 94, 0.08), transparent 24%),
        rgb(17, 24, 39);
}

body.services-page-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--services-text);
    font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: transparent;
}

.services-page {
    min-height: 100vh;
    padding-bottom: 88px;
}

.services-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(17, 24, 39, 0.94);
    border-bottom: 1px solid rgba(31, 41, 55, 0.85);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.services-hero__inner,
.services-layout {
    max-width: 1480px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.services-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 16px;
    padding-bottom: 10px;
}

.services-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.services-brand__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.12);
    color: var(--services-accent-soft);
    font-size: 18px;
    font-weight: 800;
}

.services-brand__logo img {
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
    object-fit: contain;
    display: block;
}

.services-brand__logo span {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.services-brand__logo.is-fallback span {
    display: flex;
}

.services-brand__copy {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
}

.services-brand__eyebrow {
    margin: 0 0 5px;
    color: var(--services-muted-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-brand__copy h1 {
    display: flex;
    align-items: center;
    margin: 0;
    min-height: 44px;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-hero__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.services-hero__shortcut-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-mobile-tabs {
    display: none;
}

.services-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 320px;
    width: min(420px, 100%);
    max-width: 420px;
    min-width: 0;
    padding: 7px 7px 7px 12px;
    background: var(--services-muted-surface);
    border: 1px solid var(--services-line);
    border-radius: 14px;
}

.services-search svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--services-muted-soft);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--services-text);
    font-size: 13px;
    outline: none;
}

.services-search input::placeholder {
    color: var(--services-muted-soft);
}

.services-search button {
    border: 0;
    border-radius: 10px;
    background: var(--services-yellow);
    color: #ffffff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.services-search button:hover {
    background: var(--services-yellow-deep);
}

.services-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--services-line);
    border-radius: 10px;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 700;
    background: var(--services-muted-surface);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.services-quick-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.services-quick-link__label {
    line-height: 1;
}

.services-quick-link--tool {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
}

.services-quick-link--tool .services-quick-link__label,
.services-quick-link--tool .services-header-credit__value {
    display: none;
}

.services-quick-link:hover {
    color: #ffffff;
    border-color: rgb(75, 85, 99);
    background: rgba(31, 41, 55, 0.72);
}

.services-quick-link--accent {
    border-color: transparent;
    background: var(--services-yellow);
    color: #ffffff;
}

.services-quick-link--accent:hover {
    border-color: transparent;
    background: var(--services-yellow-deep);
}

.services-header-credit {
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.services-header-credit__value {
    color: var(--services-accent-soft);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.services-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-top: 18px;
    padding-bottom: 24px;
}

.services-sidebar,
.services-main {
    min-width: 0;
}

.services-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 82px;
    display: grid;
    gap: 14px;
}

.services-profile-card,
.services-side-nav,
.services-side-note {
    border-radius: 18px;
    box-shadow: var(--services-shadow);
}

.services-profile-card {
    padding: 20px;
    color: var(--services-text);
    background: var(--services-surface);
    border: 1px solid var(--services-line-soft);
}

.services-profile-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.services-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(34, 197, 94, 0.18);
    background: rgba(34, 197, 94, 0.14);
    color: var(--services-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.services-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-profile-card__hint {
    margin: 0 0 6px;
    color: var(--services-muted-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-profile-card__name {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    word-break: break-all;
}

.services-profile-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.services-profile-card__meta div {
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--services-muted-surface);
    border: 1px solid var(--services-line-soft);
}

.services-profile-card__meta span {
    display: block;
    margin-bottom: 8px;
    color: var(--services-muted-soft);
    font-size: 11px;
}

.services-profile-card__meta strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.services-profile-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    border-radius: 12px;
    background: var(--services-yellow);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.services-profile-card__cta:hover {
    background: var(--services-yellow-deep);
}

.services-side-nav {
    padding: 12px;
    background: var(--services-surface);
    border: 1px solid var(--services-line-soft);
}

.services-side-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #d1d5db;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.services-side-nav__item + .services-side-nav__item {
    margin-top: 8px;
}

.services-side-nav__item:hover {
    color: #ffffff;
    background: rgba(31, 41, 55, 0.48);
    border-color: rgb(55, 65, 81);
}

.services-side-nav__item--active {
    color: var(--services-accent-soft);
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.services-side-nav__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(31, 41, 55, 0.7);
    color: var(--services-muted);
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
}

.services-side-nav__item--active .services-side-nav__glyph {
    background: rgba(34, 197, 94, 0.14);
    color: var(--services-accent-soft);
}

.services-side-nav__item strong {
    display: block;
    font-size: 13px;
}

.services-side-nav__item p {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--services-muted);
    opacity: 1;
}

.services-side-note {
    padding: 15px 16px;
    background: var(--services-surface);
    border: 1px solid var(--services-line-soft);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.services-side-note__label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--services-accent-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-side-note__list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
    color: var(--services-muted);
    font-size: 12px;
    line-height: 1.65;
}

.services-side-note__list li + li {
    margin-top: 8px;
}

.services-main__surface {
    padding: 18px;
    background: var(--services-surface);
    border-radius: 18px;
    border: 1px solid rgba(31, 41, 55, 0.7);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.services-main__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.services-main__header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
}

.services-main__search {
    flex: 1 1 360px;
    width: min(520px, 100%);
    max-width: 520px;
}

.services-breadcrumb {
    margin: 0 0 10px;
    font-size: 11px;
    color: var(--services-muted-soft);
}

.services-main__header h2 {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.services-main__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    color: var(--services-muted);
    font-size: 13px;
}

.services-main__summary span {
    min-width: 0;
    word-break: break-word;
}

.services-main__summary em {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: var(--services-accent-soft);
    font-style: normal;
    font-weight: 700;
}

.services-main__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 92px;
    padding: 0 13px;
    border-radius: 10px;
    background: var(--services-muted-surface);
    border: 1px solid var(--services-line);
    color: #d1d5db;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.services-main__back:hover {
    color: #ffffff;
    border-color: rgb(75, 85, 99);
}

.services-categories {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.services-categories__viewport {
    flex: 1;
    overflow-x: auto;
    padding: 2px;
}

.services-categories__track {
    display: flex;
    gap: 10px;
    min-height: 48px;
}

.services-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--services-line);
    border-radius: 999px;
    background: var(--services-muted-surface);
    color: var(--services-muted);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.services-category-pill:hover {
    color: #ffffff;
    border-color: rgb(75, 85, 99);
}

.services-category-pill.is-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: var(--services-accent-soft);
}

.services-categories__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--services-line);
    background: var(--services-surface-strong);
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.services-categories__arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--services-muted);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.services-categories__arrow:hover {
    border-color: rgb(75, 85, 99);
}

.services-categories__arrow.is-hidden,
.services-categories__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.services-search-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--services-line-soft);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.72);
    color: var(--services-muted);
    font-size: 12px;
}

.services-search-state span {
    min-width: 0;
    word-break: break-word;
}

.services-search-state button {
    border: 0;
    background: transparent;
    color: var(--services-accent-soft);
    font-weight: 800;
}

.services-grid {
    --services-card-height: 198px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: var(--services-card-height);
    gap: 12px;
    align-items: stretch;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: var(--services-card-height);
    aspect-ratio: auto;
    padding: 16px 16px 13px;
    border-radius: 14px;
    background: var(--services-card);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.11);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: services-rise 0.45s ease both;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.13);
}

.service-card__serial {
    display: none;
}

.service-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.service-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: calc(1.3em * 2);
}

.service-card__content h3 {
    margin: 0;
    min-width: 0;
    flex: 1;
    display: block;
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--services-text);
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: calc(1.3em * 2);
    overflow-wrap: anywhere;
}

.service-card__content p {
    margin: 6px 0 0;
    color: var(--services-muted);
    font-size: 10px;
    line-height: 1.38;
    display: block;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: calc(1.38em * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.service-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
}

.service-card__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.service-card__price {
    color: var(--services-accent-soft);
    font-size: 13px;
    font-weight: 800;
}

.service-card__time {
    color: var(--services-muted);
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.service-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 56px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    border: 1px solid var(--services-line);
    font-size: 10px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.service-card__action svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__action:hover {
    border-color: rgb(75, 85, 99);
}

.service-card__action--ghost {
    background: var(--services-muted-surface);
    color: #d1d5db;
}

.service-card__action--primary {
    border-color: transparent;
    background: var(--services-yellow);
    color: #ffffff;
}

.service-card__action--primary:hover {
    border-color: transparent;
    background: var(--services-yellow-deep);
}

.services-empty {
    padding: 36px 18px;
    text-align: center;
    border: 1px dashed rgba(55, 65, 81, 0.85);
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.4);
}

.services-empty h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.services-empty p {
    margin: 0;
    color: var(--services-muted);
    font-size: 13px;
}

.services-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 60;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .services-hero {
        background: rgba(17, 24, 39, 0.98);
    }

    .services-side-note {
        background: rgba(17, 24, 39, 0.78);
    }

    .services-loading {
        background: rgba(17, 24, 39, 0.72);
    }
}

.services-loading__panel {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px 28px;
    border: 1px solid var(--services-line-soft);
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.94);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.services-loading__panel p {
    margin: 0;
    font-weight: 700;
}

.services-loading__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(148, 163, 184, 0.18);
    border-top-color: #22c55e;
    border-radius: 999px;
    animation: services-spin 0.9s linear infinite;
}

@keyframes services-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes services-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 1280px) {
    .services-grid {
        --services-card-height: 192px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-main {
        order: 1;
    }

    .services-sidebar {
        order: 2;
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .services-side-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .services-hero {
        position: static;
    }

    .services-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .services-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .services-brand {
        align-items: flex-start;
    }

    .services-brand__copy h1 {
        white-space: normal;
        line-height: 1.12;
    }

    .services-search {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 6px 6px 6px 10px;
        border-radius: 12px;
    }

    .services-hero__shortcut-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
        width: 100%;
        gap: 10px;
    }

    .services-quick-link {
        width: 100%;
    }

    .services-quick-link--tool {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        padding: 0;
    }

    .services-main__header {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .services-main__header-actions {
        width: 100%;
        flex: none;
        min-height: 0;
        margin-left: 0;
        justify-content: flex-start;
    }

    .services-main__search {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .services-page {
        padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .services-hero {
        border-bottom: 0;
        box-shadow: none;
        background:
            linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.94) 100%);
    }

    .services-hero__inner,
    .services-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .services-hero__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .services-brand {
        flex: 1 1 auto;
        gap: 12px;
    }

    .services-brand__logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 17px;
    }

    .services-brand__copy {
        min-height: 40px;
    }

    .services-hero__actions {
        display: flex;
        flex: 0 0 auto;
        justify-content: flex-end;
        margin-left: auto;
    }

    .services-brand__copy h1 {
        min-height: 40px;
        font-size: 19px;
        line-height: 1.1;
    }

    .services-mobile-tabs {
        display: none !important;
    }

    .services-hero__shortcut-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
        gap: 8px;
    }

    .services-quick-link {
        display: inline-flex;
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 12px;
        gap: 0;
        flex-shrink: 0;
    }

    .services-quick-link__label {
        display: none;
    }

    .services-header-credit,
    .services-quick-link--tool {
        width: 36px;
        min-width: 36px;
        padding: 0;
        gap: 0;
    }

    .services-header-credit .services-quick-link__label,
    .services-header-credit__value {
        display: none;
    }

    .services-quick-link svg {
        width: 17px;
        height: 17px;
    }

    .services-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 18px;
    }

    .services-sidebar {
        order: 2;
        position: static;
        display: block;
        width: 100%;
        margin-top: 2px;
    }

    .services-main {
        order: 1;
    }

    .services-profile-card {
        padding: 14px;
        border-radius: 18px;
        box-shadow: none;
    }

    .services-profile-card__head {
        align-items: flex-start;
        gap: 12px;
    }

    .services-profile-card__name {
        font-size: 16px;
        line-height: 1.22;
    }

    .services-profile-card__meta {
        margin-top: 14px;
        gap: 10px;
    }

    .services-profile-card__meta div {
        padding: 10px 11px;
    }

    .services-profile-card__cta {
        min-height: 40px;
        margin-top: 14px;
        border-radius: 12px;
    }

    .services-side-nav,
    .services-side-note {
        display: none;
    }

    .services-main,
    .services-main__surface {
        width: 100%;
    }

    .services-main__surface {
        padding: 14px;
        border-radius: 20px;
        border-color: rgba(55, 65, 81, 0.72);
        background:
            linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(17, 24, 39, 0.96) 100%);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    }

    .services-main__header {
        gap: 12px;
        margin-bottom: 14px;
    }

    .services-breadcrumb {
        display: none;
    }

    .services-main__header h2 {
        font-size: 20px;
        line-height: 1.12;
    }

    .services-main__summary {
        gap: 8px;
        font-size: 12px;
    }

    .services-main__header-actions {
        flex: none;
        min-height: 0;
        gap: 8px;
    }

    .services-main__search {
        width: 100%;
        min-height: 40px;
        padding: 3px 4px 3px 10px;
        border-radius: 11px;
        max-width: none;
        gap: 8px;
    }

    .services-main__search svg {
        width: 15px;
        height: 15px;
    }

    .services-main__search input {
        font-size: 12px;
    }

    .services-main__search button {
        min-width: 62px;
        min-height: 32px;
        padding: 0 11px;
        border-radius: 9px;
        font-size: 12px;
    }

    .services-main__back {
        display: none;
    }

    .services-categories {
        margin-bottom: 12px;
        gap: 0;
        min-height: 0;
    }

    .services-search-state {
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 14px;
        background: rgba(17, 24, 39, 0.82);
    }

    .services-categories__arrow {
        display: none;
    }

    .services-categories__viewport {
        width: 100%;
        padding: 0 0 2px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .services-categories__track {
        width: max-content;
        min-width: 100%;
        gap: 8px;
        min-height: 42px;
        padding-right: 14px;
    }

    .services-category-pill {
        min-width: auto;
        min-height: 42px;
        padding: 0 16px;
        font-size: 14px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        background: rgba(31, 41, 55, 0.92);
    }

    .services-category-pill span {
        display: block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .services-search-state button {
        padding: 0;
    }

    .services-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 8px;
        align-items: stretch;
        min-height: 0;
    }

    .service-card {
        width: 100%;
        min-height: 118px;
        aspect-ratio: auto;
        height: auto;
        padding: 12px;
        border-radius: 16px;
        background:
            linear-gradient(180deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%);
        border-color: rgba(75, 85, 99, 0.82);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
        animation: none;
        opacity: 1;
        transform: none;
        min-width: 0;
    }

    .service-card:hover {
        transform: none;
        border-color: rgba(75, 85, 99, 0.82);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    }

    .service-card__title-row {
        align-items: flex-start;
        gap: 0;
    }

    .service-card__content h3 {
        font-size: 15px;
        line-height: 1.28;
        max-height: calc(1.28em * 2);
    }

    .service-card__content p {
        margin-top: 6px;
        font-size: 11px;
        line-height: 1.42;
        -webkit-line-clamp: 2;
        max-height: calc(1.42em * 2);
    }

    .service-card__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 10px;
        padding-top: 0;
    }

    .service-card__meta {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        flex: 1;
    }

    .service-card__price {
        font-size: 15px;
    }

    .service-card__time {
        font-size: 11px;
        max-width: 100%;
        text-align: left;
        white-space: normal;
        word-break: break-word;
    }

    .service-card__actions {
        width: auto;
        gap: 7px;
        flex: 0 0 auto;
    }

    .service-card__action {
        flex: 0 0 auto;
        min-width: 54px;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 11px;
    }

    .service-card__action--primary {
        min-width: 60px;
    }

    .service-card__action--primary svg {
        display: none;
    }

    .service-card__action svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .services-page {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    }

    .services-hero__inner,
    .services-layout {
        padding-left: 14px;
        padding-right: 14px;
    }

    .services-hero__inner {
        gap: 9px;
        padding-top: 13px;
        padding-bottom: 9px;
    }

    .services-brand__logo {
        width: 38px;
        height: 38px;
    }

    .services-brand__copy h1 {
        min-height: 38px;
        font-size: 18px;
    }

    .services-quick-link {
        width: 34px;
        min-width: 34px;
        min-height: 34px;
        border-radius: 11px;
    }

    .services-quick-link svg {
        width: 16px;
        height: 16px;
    }

    .services-main__header h2 {
        font-size: 19px;
    }

    .services-main__summary,
    .services-empty p {
        font-size: 12px;
    }

    .services-main__surface {
        padding: 13px;
        border-radius: 18px;
    }

    .services-main__search input {
        font-size: 12px;
    }

    .services-main__search {
        min-height: 38px;
        padding: 3px 4px 3px 9px;
        border-radius: 10px;
    }

    .services-main__search button {
        min-width: 58px;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 8px;
    }

    .services-categories__track {
        gap: 7px;
        min-height: 40px;
        padding-right: 12px;
    }

    .services-category-pill {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .services-category-pill span {
        max-width: 92px;
    }

    .services-search-state {
        padding: 10px 11px;
        border-radius: 13px;
    }

    .service-card {
        min-height: 112px;
        padding: 11px;
        border-radius: 15px;
    }

    .service-card__content h3 {
        font-size: 14px;
    }

    .service-card__content p {
        font-size: 11px;
        line-height: 1.38;
        max-height: calc(1.38em * 2);
    }

    .service-card__price {
        font-size: 14px;
    }

    .service-card__time {
        font-size: 10px;
    }

    .service-card__footer {
        gap: 7px;
        margin-top: 9px;
    }

    .service-card__action {
        min-width: 48px;
        min-height: 32px;
        padding: 0 8px;
        border-radius: 10px;
        font-size: 10px;
    }

    .service-card__action--primary {
        min-width: 54px;
    }

    .services-profile-card {
        padding: 13px;
    }

    .services-profile-card__meta {
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .services-brand__copy h1 {
        min-height: 36px;
        font-size: 17px;
    }

    .services-hero__inner,
    .services-layout {
        padding-left: 12px;
        padding-right: 12px;
    }

    .services-main__surface {
        padding: 12px;
        border-radius: 16px;
    }

    .services-quick-link {
        width: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 10px;
    }

    .services-quick-link svg {
        width: 15px;
        height: 15px;
    }

    .services-main__header {
        gap: 11px;
        margin-bottom: 13px;
    }

    .services-main__header h2 {
        font-size: 18px;
    }

    .services-main__search {
        min-height: 37px;
        padding-left: 8px;
    }

    .services-main__search button {
        min-width: 54px;
        min-height: 29px;
        padding: 0 9px;
    }

    .services-main__summary {
        gap: 7px;
    }

    .services-categories__track {
        gap: 6px;
        min-height: 38px;
        padding-right: 10px;
    }

    .services-category-pill {
        min-height: 38px;
        padding: 0 12px;
    }

    .services-category-pill span {
        max-width: 86px;
    }

    .service-card {
        min-height: 106px;
        padding: 10px;
        border-radius: 14px;
    }

    .service-card__content h3 {
        font-size: 14px;
    }

    .service-card__content p {
        font-size: 11px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
        max-height: calc(1.4em * 2);
    }

    .service-card__price {
        font-size: 14px;
    }

    .service-card__action {
        min-width: 46px;
        min-height: 30px;
        font-size: 10px;
    }
}
