/* Public service pages */

.service-page {
    background: transparent;
    overflow-x: clip;
}

.service-hero {
    padding: calc(var(--header-stack-height) + var(--hero-header-gap)) 0 20px;
    background: transparent;
    border-bottom: none;
    text-align: center;
}

.service-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-hero .section-label {
    margin-bottom: 12px;
}

.service-hero .section-title {
    margin-bottom: 12px;
    max-width: 42rem;
    overflow-wrap: anywhere;
}

.service-hero__title {
    display: block;
    line-height: 1.2;
}

.service-hero__word {
    font-style: normal;
}

.service-hero__word--navy {
    color: var(--navy);
}

.service-hero__word--primary {
    color: var(--primary);
}

.service-hero__word--muted {
    color: var(--navy);
}

.service-hero .section-desc {
    margin: 0;
    text-align: center;
}

.service-hero__crumb {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.service-hero__crumb a {
    color: inherit;
}

.service-hero__crumb a:hover {
    color: var(--primary-dark);
}

.service-hero__crumb-sep {
    opacity: 0.55;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.service-hero__price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    line-height: 1.2;
}

.service-hero__price strong {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.service-hero__price span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-hero__save {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.service-hero__save s {
    margin-left: 6px;
    font-weight: 500;
    color: var(--text-muted);
}

.service-side__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--navy);
    line-height: 1.2;
}

.service-side__price strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.service-side__price span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-side__save {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
}

.service-side__save s {
    margin-left: 6px;
    font-weight: 500;
    color: var(--text-muted);
}

.service-side__cta {
    margin-top: 16px;
}

.service-hero__cta,
.service-side__start,
.package-start__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-hero__cta-icon,
.service-side__start-icon,
.package-start__btn-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.service-hero__cta:hover .service-hero__cta-icon,
.service-side__start:hover .service-side__start-icon,
.package-start__btn:hover .package-start__btn-icon {
    transform: translateX(3px);
}

.service-side__card--package .section-label {
    display: block;
    margin-bottom: 10px;
}

.service-side__start {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 20px rgba(252, 0, 0, 0.2);
}

.package-start {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 20px 10px 20px 20px;
    background: var(--white);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
}

.package-start--follow {
    margin-top: 24px;
}

.package-start__corner {
    position: absolute;
    width: 88px;
    height: 88px;
    pointer-events: none;
    z-index: 0;
}

.package-start__corner--top {
    top: 0;
    right: 0;
    background: radial-gradient(circle at 100% 0%, rgba(252, 0, 0, 0.09) 0%, transparent 68%);
    border-radius: 0 20px 0 60%;
}

.package-start__corner--bottom {
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 0% 100%, rgba(72, 108, 47, 0.08) 0%, transparent 65%);
    border-radius: 0 50% 10px 0;
}

.package-start__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
}

.package-start__main {
    min-width: 0;
}

.package-start__main .section-label {
    margin-bottom: 8px;
}

.package-start__title {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 6px;
}

.package-start__title em {
    font-style: normal;
    color: var(--primary);
}

.package-start__desc {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 34rem;
}

.package-start__actions {
    display: flex;
    flex-shrink: 0;
}

.package-start__btn {
    min-width: 168px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(252, 0, 0, 0.22);
}

@media (max-width: 720px) {
    .package-start__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .package-start__btn {
        width: 100%;
    }
}

.service-list-section,
.service-body {
    padding: 36px 0 56px;
}

.service-section-head {
    margin-bottom: 24px;
}

.service-section-head .section-desc {
    margin: 0;
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (min-width: 1200px) {
    .service-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.service-list-card,
.service-main,
.service-side__card,
.service-content--panel,
.service-empty {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.service-list-card {
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-list-card__icon {
    margin-bottom: 12px;
}

.service-list-card__icon .site-nav__cat-icon-fa,
.service-list-card--category .site-nav__cat-icon-fa {
    font-size: 0.95rem;
}

.service-list-card:hover {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transform: translateY(-2px);
}

.service-list-card h3 {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.service-list-card--category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.service-list-card--category .site-nav__cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.service-list-card--category .site-nav__cat-icon-svg {
    width: 0.9rem;
    height: 0.9rem;
}

.service-list-card--category h3 {
    margin: 0;
    flex: 1;
}

.service-list-card--category .service-list-card__link {
    margin-top: auto;
}

.service-other-categories {
    padding-top: 12px;
}

.service-list-card p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

.service-list-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 24px;
    align-items: start;
}

.service-main,
.service-side__card {
    min-width: 0;
}

.service-main {
    padding: clamp(16px, 3vw, 28px);
    overflow-wrap: anywhere;
}

.service-content--panel {
    padding: clamp(16px, 3vw, 28px);
}

.service-content--follow {
    margin-top: 24px;
}

.service-content.prose {
    color: var(--navy-mid);
    line-height: 1.7;
    font-size: 0.95rem;
    overflow-x: auto;
    max-width: 100%;
}

.service-content.prose > *:first-child {
    margin-top: 0;
}

.service-content.prose h1,
.service-content.prose h2,
.service-content.prose h3,
.service-content.prose h4 {
    color: var(--navy);
    margin: 1.4em 0 0.55em;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.service-content.prose h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.service-content.prose h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.service-content.prose h3 {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.service-content.prose p {
    margin: 0 0 1em;
}

.service-content.prose ul,
.service-content.prose ol {
    margin: 0 0 1em;
    padding-left: 1.25rem;
}

.service-content.prose li + li {
    margin-top: 0.35em;
}

.service-content.prose a {
    color: var(--primary);
    word-break: break-word;
}

.service-content.prose img,
.service-content.prose video,
.service-content.prose iframe {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.service-content.prose .table-responsive,
.service-content.prose figure {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1em;
}

.service-content.prose table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    margin: 0 0 1em;
    font-size: 0.875rem;
}

.service-content.prose th,
.service-content.prose td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.service-content.prose th {
    background: #f8fafc;
    color: var(--navy);
    font-weight: 700;
}

.service-content.prose pre,
.service-content.prose code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.service-block {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.service-block h2 {
    margin: 0 0 14px;
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--navy);
}

.service-stages {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    counter-reset: stage;
}

.service-stages li {
    position: relative;
    padding: 14px 14px 14px 54px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.service-stages li::before {
    counter-increment: stage;
    content: counter(stage);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--primary), #c40000);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.service-stages strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.service-stages p,
.service-docs p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.service-docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.service-docs li {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border-soft);
    background: rgba(255, 255, 255, 0.55);
}

.service-docs__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(252, 0, 0, 0.08);
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 700;
}

.service-city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-city-links a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--glass-border-soft);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy-mid);
}

.service-city-links a:hover,
.service-city-links a.is-active {
    border-color: rgba(252, 0, 0, 0.25);
    color: var(--primary);
    background: rgba(252, 0, 0, 0.06);
}

.service-city-links--side {
    margin: 0;
}

.service-side {
    display: grid;
    gap: 14px;
    align-content: start;
    position: sticky;
    top: calc(var(--header-stack-height) + 16px);
}

.service-side__card {
    padding: 18px;
    position: static;
}

.service-side__card--cities h3 {
    margin-bottom: 12px;
}

.service-side__card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--navy);
}

.service-side__card ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 4px;
}

.service-side__card a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy-mid);
    overflow-wrap: anywhere;
}

.service-side__card a.is-active,
.service-side__card a:hover {
    background: rgba(252, 0, 0, 0.06);
    color: var(--primary);
}

.service-empty {
    text-align: center;
    padding: 40px 16px;
}

@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
        gap: 18px;
    }

    .service-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-list-card {
        padding: 14px;
    }

    .service-list-card h3 {
        font-size: 0.9375rem;
    }

    .service-list-card p {
        font-size: 0.8125rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .service-hero {
        padding: calc(var(--header-stack-height) + 28px) 0 28px;
    }

    .service-list-section,
    .service-body {
        padding: 24px 0 40px;
    }

    .service-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-side {
        order: 2;
    }

    .service-side__card {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-hero {
        padding: calc(var(--header-stack-height) + 20px) 0 22px;
    }

    .service-hero .section-desc {
        font-size: 0.9375rem;
    }

    .service-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .service-list-section,
    .service-body {
        padding: 20px 0 32px;
    }

    .service-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .service-list-card {
        padding: 12px;
        border-radius: 12px;
    }

    .service-list-card--category .site-nav__cat-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .service-list-card h3 {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    .service-list-card p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .service-list-card__link {
        font-size: 0.75rem;
    }

    .service-main {
        padding: 16px;
        border-radius: 14px;
    }

    .service-stages li {
        padding: 12px 12px 12px 48px;
    }

    .service-content.prose {
        font-size: 0.9rem;
    }

    .service-content.prose table {
        min-width: 420px;
        font-size: 0.8125rem;
    }

    .service-side__card {
        padding: 14px;
        border-radius: 14px;
    }

    .service-side__card .btn--block {
        width: 100%;
    }
}
