.service-detail-page {
    padding: 0 0 clamp(64px, 9vw, 112px);
    background: linear-gradient(180deg, var(--card-2) 0, var(--bg) 42%);
    overflow: hidden;
}

.service-detail-page .blog-post-shell--article {
    max-width: 980px;
    padding-top: clamp(104px, 12vw, 136px);
}

.service-detail-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid var(--border);
    border-radius: clamp(22px, 3vw, 32px);
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.service-detail-hero::before {
    content: "";
    position: absolute;
    inset: auto -16% -72% auto;
    width: min(440px, 58vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient);
    opacity: .08;
    pointer-events: none;
}

.service-detail-hero .blog-post-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.service-detail-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.75rem, 2vw, 1.15rem);
    width: 100%;
    margin: 0 0 clamp(1.3rem, 3vw, 2rem);
}

.service-detail-hero .breadcrumb {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    width: fit-content;
    max-width: calc(100% - 80px);
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .4rem .55rem;
    margin: 0;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card-2);
    font-weight: 700;
    line-height: 1.55;
    text-align: left;
    overflow-wrap: anywhere;
}

.service-detail-hero .seo-card-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 20px;
    font-size: 1.45rem;
}

.service-detail-hero h1 {
    max-width: 18ch;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.service-detail-hero p {
    max-width: 66ch;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.72;
    color: var(--text-muted);
}

.service-detail-content {
    margin-top: clamp(20px, 3vw, 32px);
    padding: clamp(1.35rem, 3.5vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: clamp(20px, 3vw, 28px);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-size: clamp(1rem, 1.55vw, 1.08rem);
    line-height: 1.86;
    overflow-wrap: anywhere;
}

.service-detail-content h2,
.service-detail-content h3 {
    margin-top: 1.7em;
}

.service-detail-content li {
    padding-left: .2rem;
}

.service-detail-content img,
.service-detail-content video,
.service-detail-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4rem auto;
    border-radius: 18px;
}

.service-detail-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.service-detail-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.service-detail-page .blog-post-keywords {
    margin-top: clamp(22px, 3vw, 32px);
    padding: clamp(1.35rem, 3.5vw, 2rem);
    border: 1px solid var(--border);
    border-radius: clamp(20px, 3vw, 28px);
    background: var(--card);
}

.service-detail-page .blog-post-keywords h2 {
    font-size: clamp(.92rem, 1.4vw, 1rem);
    color: var(--text);
    letter-spacing: .08em;
}

.service-detail-page .blog-post-keywords ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-detail-page .blog-post-keywords li {
    position: relative;
    padding: 12px 12px 12px 34px;
    border-radius: 14px;
    background: var(--card-2);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.service-detail-page .blog-post-keywords li::before {
    content: "✓";
    position: absolute;
    left: 13px;
    color: var(--text);
    font-weight: 900;
}

.service-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(26px, 4vw, 40px);
    padding: 16px 34px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--gradient);
    color: var(--btn-fg);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
    transition: transform .35s var(--ease-bounce), box-shadow .35s ease, background-color .3s ease, border-color .3s ease;
}

.service-back-link:hover,
.service-back-link:focus-visible {
    color: var(--btn-fg);
    text-decoration: none;
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .service-back-link {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .52);
}

[data-theme="dark"] .service-back-link:hover,
[data-theme="dark"] .service-back-link:focus-visible {
    box-shadow: 0 20px 52px rgba(0, 0, 0, .65);
}

.service-back-link i {
    transition: transform .38s var(--ease-bounce);
}

.service-back-link:hover i,
.service-back-link:focus-visible i {
    transform: translateX(-6px) rotate(5deg);
}

.service-interest-cta {
    max-width: 760px;
    margin: clamp(22px, 3vw, 32px) auto 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: clamp(20px, 3vw, 28px);
    background: linear-gradient(135deg, var(--card), var(--card-2));
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.service-interest-cta-eyebrow,
.service-contact-modal-eyebrow {
    margin: 0 0 .55rem;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.service-interest-cta h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3.4vw, 2rem);
    line-height: 1.15;
}

.service-interest-cta > p:not(.service-interest-cta-eyebrow) {
    max-width: 54ch;
    margin: .8rem auto 1.35rem;
    color: var(--text-muted);
    line-height: 1.68;
}

.service-interest-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 15px 30px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: var(--gradient);
    color: var(--btn-fg);
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
    transition: transform .35s var(--ease-bounce), box-shadow .35s ease;
}

.service-interest-button:hover,
.service-interest-button:focus-visible {
    color: var(--btn-fg);
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 52px rgba(0, 0, 0, .22);
}

.service-interest-button i {
    transition: transform .38s var(--ease-bounce);
}

.service-interest-button:hover i,
.service-interest-button:focus-visible i {
    transform: translateX(6px) rotate(-5deg);
}

.service-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .66);
    opacity: 0;
    transition: opacity .24s ease;
}

.service-contact-modal[hidden] {
    display: none;
}

.service-contact-modal.is-open {
    opacity: 1;
}

.service-contact-modal-dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(760px, calc(100dvh - 48px));
    overflow-y: auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    transform: translateY(18px) scale(.985);
    transition: transform .28s var(--ease-out);
}

.service-contact-modal.is-open .service-contact-modal-dialog {
    transform: translateY(0) scale(1);
}

.service-contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: transform .25s var(--ease-bounce), background-color .2s ease, color .2s ease;
}

.service-contact-modal-close:hover,
.service-contact-modal-close:focus-visible {
    transform: rotate(90deg);
    background: var(--btn-bg);
    color: var(--btn-fg);
}

.service-contact-modal h2 {
    max-width: 20ch;
    margin: 0 .9rem .65rem 0;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.service-contact-modal-intro {
    margin: 0 0 1.35rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.service-contact-form {
    display: grid;
    gap: 14px;
}

.service-contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-contact-form label span {
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.service-contact-form input,
.service-contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.service-contact-form input {
    min-height: 48px;
    padding: 11px 13px;
}

.service-contact-form textarea {
    min-height: 130px;
    padding: 12px 13px;
    resize: vertical;
}

.service-contact-form input:focus,
.service-contact-form textarea:focus {
    border-color: var(--text);
    outline: 3px solid color-mix(in srgb, var(--text) 18%, transparent);
    outline-offset: 2px;
}

.service-contact-form .service-interest-button {
    width: 100%;
    margin-top: 5px;
}

.service-contact-form-status {
    min-height: 1.5em;
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.55;
}

.service-contact-form-status.is-error {
    color: #c62828;
}

.service-contact-form-status.is-success {
    color: #0b7a4b;
}

body.service-contact-modal-open {
    overflow: hidden;
}

/* A részletoldal hero-ja maradjon tiszta: ne lógjon be dekoratív kör a szélén. */
.service-detail-hero::before {
    display: none;
}

@media (max-width: 768px) {
    .service-detail-page {
        padding-bottom: 42px;
    }

    .service-detail-page .blog-post-shell--article {
        width: 100%;
        padding: 92px 16px 42px;
    }

    .service-detail-hero {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .service-detail-hero::before {
        right: -35%;
        bottom: -36%;
        width: 260px;
    }

    .service-detail-hero .breadcrumb {
        width: min(100%, 560px);
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        gap: .22rem .34rem;
        padding: .58rem .65rem;
        font-size: clamp(.58rem, 2.55vw, .76rem);
        line-height: 1.35;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
    }

    .service-detail-hero .seo-card-icon {
        display: none;
    }

    .service-detail-hero .breadcrumb > * {
        flex: 0 0 auto;
    }

    .service-detail-hero .breadcrumb > :last-child {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .service-detail-hero h1 {
        max-width: none;
        font-size: clamp(1.75rem, 8.5vw, 2.45rem);
        line-height: 1.1;
    }

    .service-detail-hero p {
        font-size: .98rem;
        line-height: 1.68;
    }

    .service-detail-content {
        margin-top: 16px;
        padding: 1.2rem;
        border-radius: 20px;
        font-size: 1rem;
        line-height: 1.78;
    }

    .service-detail-content h2,
    .service-detail-content h3 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        line-height: 1.2;
    }

    .service-detail-page .blog-post-keywords {
        margin-top: 16px;
        padding: 1.2rem;
        border-radius: 20px;
    }

    .service-detail-page .blog-post-keywords ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .service-detail-page .blog-post-keywords li {
        padding: 11px 11px 11px 32px;
        font-size: .95rem;
    }

    .service-detail-page .service-back-link {
        width: fit-content;
        min-height: 54px;
        margin-top: 22px;
        padding: 14px 20px;
        font-size: .78rem;
        letter-spacing: .8px;
    }

    .service-detail-page .service-back-link,
    .service-interest-cta .service-interest-button {
        align-self: center;
        max-width: 180px;
    }

    .service-interest-cta {
        margin-top: 16px;
        padding: 1.35rem 1.15rem;
        border-radius: 20px;
    }

    .service-interest-button {
        width: fit-content;
        min-height: 54px;
        padding: 14px 20px;
        font-size: .78rem;
        letter-spacing: .8px;
    }

    .service-contact-modal {
        align-items: flex-end;
        padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
    }

    .service-contact-modal-dialog {
        max-height: calc(100dvh - 24px);
        padding: 1.5rem 1.1rem calc(1.5rem + env(safe-area-inset-bottom));
        border-radius: 22px 22px 18px 18px;
    }

    .service-contact-modal h2 {
        font-size: 1.5rem;
    }
}
