.service-page {
    background: var(--bg-dark);
}

.service-page .navbar .logo-img {
    height: 50px;
}

.service-hero {
    padding: 8.5rem 2rem 3.5rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(107, 180, 45, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.24) 0%, transparent 50%),
        var(--bg-darker);
}

.service-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.service-hero-visual {
    position: relative;
    height: clamp(320px, 42vw, 520px);
    min-height: clamp(320px, 42vw, 520px);
    overflow: hidden;
    cursor: ew-resize;
}

.character-hero-loader {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.character-hero-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.character-hero-loader.is-centered {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-hero-loader.is-compact {
    top: 1rem;
    right: 1rem;
}

.character-hero-loader.is-compact .character-hero-loader-text {
    display: none;
}

.character-hero-loader-hud {
    position: relative;
    width: 140px;
    height: 140px;
}

.character-hero-loader.is-compact .character-hero-loader-hud {
    width: 36px;
    height: 36px;
}

.character-hero-loader-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.character-hero-loader-guide {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1;
}

.character-hero-loader-outer {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: butt;
    stroke-dasharray: 72 18 58 22 64 16 48 26;
    transform-origin: 60px 60px;
    animation: character-loader-pulse 2.4s ease-in-out infinite;
}

.character-hero-loader-inner {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 4;
    stroke-linecap: butt;
    stroke-dasharray: 16 10 16 10 16 10 16 10 16 10 16 10;
    transform-origin: 60px 60px;
    animation: character-loader-spin 2.8s linear infinite;
}

.character-hero-loader-inner--reverse {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 3;
    stroke-dasharray: 10 14 10 14 10 14 10 14 10 14 10 14;
    animation: character-loader-spin-reverse 3.6s linear infinite;
}

.character-hero-loader-progress {
    fill: none;
    stroke: var(--accent-purple);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 314.159;
    stroke-dashoffset: 314.159;
    transform: rotate(-90deg);
    transform-origin: 60px 60px;
    transition: stroke-dashoffset 0.2s ease;
}

.character-hero-loader-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 0.75rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    color: var(--accent-purple);
    text-align: center;
    text-transform: uppercase;
    font-stretch: condensed;
}

@keyframes character-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes character-loader-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes character-loader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}


#character-hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.character-hero-animation-label {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 12, 0.72);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.service-hero .back-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    border: 2px solid var(--accent-purple);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.service-hero .back-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.12);
    transform: translateY(-1px);
}

.service-chip {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(107, 180, 45, 0.45);
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-hero-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
    max-width: 16ch;
    line-height: 1.15;
}

.service-hero-header > p {
    color: var(--text-secondary);
    max-width: 42rem;
    font-size: 1.1rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.service-section {
    padding: 4.5rem 2rem;
}

.service-process-section {
    background: rgba(10, 10, 15, 0.45);
}

.service-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-offer-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
}

.service-offer-card h3 {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
}

.service-offer-card p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.service-process-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
    max-width: 840px;
}

.service-process-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem 1.4rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
}

.process-step {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 1.1rem;
    line-height: 1.2;
    min-width: 2rem;
}

.service-process-list h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.service-process-list p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.service-examples-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-example-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-example-card:hover {
    transform: translateY(-6px);
    border-color: rgba(107, 180, 45, 0.4);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.service-example-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: var(--bg-darker);
}

.service-example-content {
    padding: 1.25rem 1.35rem 1.5rem;
}

.service-example-content h3 {
    font-size: 1.15rem;
    color: var(--accent-green);
    margin-bottom: 0.55rem;
}

.service-example-content p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.service-cta-section {
    padding: 5rem 2rem 6rem;
}

.service-cta-inner {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 30% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(107, 180, 45, 0.16) 0%, transparent 50%),
        var(--bg-card);
}

.service-cta-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.85rem;
}

.service-cta-inner > p {
    color: var(--text-secondary);
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}

.service-cta-inner .service-hero-actions {
    justify-content: center;
}

.service-scans-section {
    padding-top: 0;
}

.service-scans-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 12% 20%, rgba(107, 180, 45, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 88% 80%, rgba(124, 58, 237, 0.16) 0%, transparent 48%),
        var(--bg-card);
}

.service-scans-media {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-scans-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    aspect-ratio: 1;
    width: 100%;
    background: var(--bg-darker);
}

.service-scans-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-scans-thumb--fallback {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.service-scans-content h2,
.service-scans-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    color: var(--accent-green);
}

.service-scans-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    letter-spacing: 0.01em;
}

.service-scans-content > p:not(.service-scans-lead) {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-scans-points {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.service-scans-points li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.service-scans-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent-green);
}

@media (max-width: 960px) {
    .service-hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-offer-grid,
    .service-examples-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-scans-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-hero {
        padding: 7.5rem 1.25rem 2.5rem;
    }

    .service-section,
    .service-cta-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .service-offer-grid,
    .service-examples-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-header h1 {
        max-width: none;
    }
}
