/* page-service.php only. All selectors stay below the template root. */

body.page-template-page-service {
    min-width: 0;
}

.pl-service-page {
    width: 100%;
    max-width: 100vw;
    background:
        radial-gradient(circle at 12% 21%, rgba(72, 175, 196, 0.09), transparent 26%),
        radial-gradient(circle at 88% 47%, rgba(36, 105, 132, 0.09), transparent 30%),
        radial-gradient(circle at 18% 75%, rgba(72, 175, 196, 0.055), transparent 25%),
        #00060e;
}

.pl-service-page .pl-seo-section,
.pl-service-page .pl-service-page__hero {
    background: transparent;
}

.pl-service-page .pl-seo-section {
    min-height: 0;
    padding-block: 44px;
}

.pl-service-page .pl-seo-section__title {
    margin-bottom: clamp(34px, 3vw, 44px);
}

.pl-service-page .pl-service-page__hero::after {
    background:
        linear-gradient(90deg, rgba(0, 6, 14, 0.98) 0%, rgba(0, 6, 14, 0.8) 48%, rgba(0, 6, 14, 0.25) 100%),
        linear-gradient(0deg, #00060e 0%, rgba(0, 6, 14, 0.22) 34%, transparent 62%);
}

.pl-service-page .pl-service-page__hero.is-awaiting-hero-image::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 78% 42%, rgba(72, 175, 196, 0.14), transparent 31%),
        linear-gradient(115deg, #00060e 0%, #00111d 100%);
}

.pl-service-page .pl-seo-hero__visual img {
    object-fit: contain;
    object-position: center right;
}

.pl-service-page .pl-seo-hero__content {
    width: min(100%, 850px);
}

.pl-service-page .pl-seo-hero__title {
    max-width: 18ch;
    font-size: clamp(2.55rem, 3.35vw, 4rem);
    line-height: 1.08;
    text-wrap: balance;
}

.pl-service-page .pl-service-page__description {
    padding-top: 72px;
    padding-bottom: 44px;
}

.pl-service-page .pl-service-intro {
    position: relative;
    width: min(100%, 860px);
    margin-right: auto;
    padding: clamp(32px, 4.5vw, 58px);
    overflow: hidden;
    border: 1px solid rgba(72, 175, 196, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(125deg, rgba(72, 175, 196, 0.09), rgba(255, 255, 255, 0.025) 54%, rgba(255, 255, 255, 0.012));
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pl-service-page .pl-service-intro::before {
    position: absolute;
    top: -120px;
    left: -110px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(72, 175, 196, 0.11);
    content: "";
    filter: blur(72px);
    pointer-events: none;
}

.pl-service-page .pl-service-intro .pl-seo-prose {
    position: relative;
    width: 100%;
    margin: 0;
}

.pl-service-page .pl-service-features,
.pl-service-page .pl-related-cases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 34px);
}

.pl-service-page .pl-service-feature {
    min-height: 260px;
    padding: clamp(26px, 3vw, 42px);
}

.pl-service-page .pl-service-feature h3,
.pl-service-page .pl-service-step h3 {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.pl-service-page .pl-service-feature p,
.pl-service-page .pl-service-step p {
    margin: 0;
    color: #cdd3d6;
}

.pl-service-page .pl-service-page__features::before,
.pl-service-page .pl-service-page__geography::before,
.pl-service-page .pl-service-page__cases::before {
    position: absolute;
    z-index: 0;
    top: 12%;
    left: 50%;
    width: min(86vw, 1180px);
    height: 70%;
    background: radial-gradient(ellipse, rgba(72, 175, 196, 0.055), transparent 68%);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.pl-service-page .pl-service-page__features > .pl-seo-container,
.pl-service-page .pl-service-page__geography > .pl-seo-container,
.pl-service-page .pl-service-page__cases > .pl-seo-container {
    position: relative;
    z-index: 1;
}

.pl-service-page .pl-service-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.pl-service-page .pl-service-step {
    position: relative;
    min-height: 230px;
    padding: clamp(30px, 4vw, 48px);
    overflow: hidden;
}

.pl-service-page .pl-service-step__number {
    position: absolute;
    top: 8px;
    right: 18px;
    color: rgba(72, 175, 196, 0.17);
    font-family: 'Archaica', Georgia, serif;
    font-size: clamp(4.5rem, 8vw, 8rem);
    line-height: 1;
}

.pl-service-page .pl-service-routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.pl-service-page .pl-service-route {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.2vw, 16px);
    padding: 16px clamp(20px, 2.2vw, 30px);
    border: 1px solid rgba(72, 175, 196, 0.19);
    border-radius: 16px;
    background: rgba(2, 15, 25, 0.74);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    color: #d8e1e5;
    font-size: clamp(0.9rem, 1.05vw, 1.04rem);
    line-height: 1.4;
    white-space: nowrap;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pl-service-page .pl-service-route:hover {
    border-color: rgba(72, 175, 196, 0.46);
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.24),
        0 0 30px rgba(72, 175, 196, 0.07);
    transform: translateY(-2px);
}

.pl-service-page .pl-service-route__point {
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

.pl-service-page .pl-service-route__arrow {
    flex: 0 0 auto;
    color: #74ccdc;
    font-size: 1.3rem;
    line-height: 1;
}

.pl-service-page .pl-service-cost {
    width: min(100%, 1120px);
    margin-inline: auto;
    padding: clamp(30px, 4.5vw, 58px);
    border-color: rgba(72, 175, 196, 0.16);
    background: linear-gradient(135deg, rgba(72, 175, 196, 0.065), rgba(255, 255, 255, 0.025));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.pl-service-page .pl-service-cost__content {
    color: #d8e1e5;
    font-size: clamp(1rem, 1.05vw, 1.1rem);
    line-height: 1.72;
}

.pl-service-page .pl-service-cost__content h2,
.pl-service-page .pl-service-cost__content h3 {
    margin: 2.15em 0 0.8em;
    color: #fff;
    font-family: 'Archaica', Georgia, serif;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-service-page .pl-service-cost__content h2 {
    font-size: clamp(1.625rem, 1.65vw, 1.85rem);
}

.pl-service-page .pl-service-cost__content h3 {
    font-size: clamp(1.5rem, 1.45vw, 1.625rem);
}

.pl-service-page .pl-service-cost__content h4 {
    margin: 1.8em 0 0.72em;
    color: #fff;
    font-family: 'Archaica', Georgia, serif;
    font-size: clamp(1.2rem, 1.25vw, 1.4rem);
    line-height: 1.35;
    letter-spacing: 0.035em;
    text-transform: none;
}

.pl-service-page .pl-service-cost__content > :first-child {
    margin-top: 0;
}

.pl-service-page .pl-service-cost__content > :last-child {
    margin-bottom: 0;
}

.pl-service-page .pl-service-cost__content p,
.pl-service-page .pl-service-cost__content ul,
.pl-service-page .pl-service-cost__content ol {
    margin: 0 0 1.55em;
}

.pl-service-page .pl-service-cost__content ul,
.pl-service-page .pl-service-cost__content ol {
    padding: 0;
    list-style: none;
}

.pl-service-page .pl-service-cost__content ol {
    counter-reset: pl-service-cost-item;
}

.pl-service-page .pl-service-cost__content li {
    position: relative;
    padding: 11px 0 11px 24px;
    border-bottom: 1px solid rgba(80, 220, 235, 0.12);
}

.pl-service-page .pl-service-cost__content li + li {
    margin-top: 0;
}

.pl-service-page .pl-service-cost__content li:last-child {
    border-bottom: 0;
}

.pl-service-page .pl-service-cost__content ul li::before {
    position: absolute;
    top: 1.28em;
    left: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(80, 220, 235, 0.72);
    content: "";
}

.pl-service-page .pl-service-cost__content ol li {
    counter-increment: pl-service-cost-item;
}

.pl-service-page .pl-service-cost__content ol li::before {
    position: absolute;
    top: 11px;
    left: 0;
    color: rgba(80, 220, 235, 0.72);
    content: counter(pl-service-cost-item) ".";
    font-size: 0.88em;
}

.pl-service-page .pl-seo-cta {
    position: relative;
    min-height: clamp(540px, 38vw, 680px);
}

.pl-service-page .pl-seo-cta__inner {
    position: static;
    display: flex;
    min-height: clamp(540px, 38vw, 680px);
    align-items: center;
    padding-block: 90px;
}

.pl-service-page .pl-seo-cta__content {
    width: min(54%, 650px);
    max-width: 650px;
}

.pl-service-page .pl-seo-cta__visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pl-service-page .pl-seo-cta__treasure {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(420px, 34vw, 700px);
    max-width: none;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: right bottom;
}

.pl-service-page .pl-seo-cta__ray {
    right: clamp(250px, 24vw, 500px);
    bottom: 4%;
    left: auto;
    width: clamp(150px, 18vw, 320px);
}

.pl-service-page .pl-related-case {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pl-service-page .pl-related-cases {
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
}

.pl-service-page .pl-related-cases--count-1 {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.pl-service-page .pl-related-cases--count-2 {
    grid-template-columns: repeat(2, minmax(0, 560px));
    justify-content: center;
}

.pl-service-page .pl-related-cases--count-3 .pl-related-case:last-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    justify-self: center;
}

.pl-service-page .pl-related-case:hover,
.pl-service-page .pl-related-case:focus-visible {
    border-color: rgba(72, 175, 196, 0.72);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transform: translateY(-5px);
}

.pl-service-page .pl-related-case__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #06121b;
}

.pl-service-page .pl-related-case__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pl-service-page .pl-related-case:hover .pl-related-case__image img,
.pl-service-page .pl-related-case:focus-visible .pl-related-case__image img {
    transform: scale(1.025);
}

.pl-service-page .pl-related-case__content {
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.pl-service-page .pl-related-case__title {
    overflow-wrap: anywhere;
    font-family: 'Archaica', Georgia, serif;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-service-page .pl-related-case__text {
    margin-top: 16px;
    color: #cdd3d6;
    line-height: 1.55;
}

.pl-service-page .pl-related-case__link {
    margin-top: auto;
    padding-top: 22px;
    color: #74ccdc;
}

@media (max-width: 1439px) {
    .pl-service-page .pl-seo-section {
        padding-block: 34px;
    }

    .pl-service-page .pl-seo-section__title {
        margin-bottom: 40px;
    }

    .pl-service-page .pl-service-page__description {
        padding-top: 68px;
        padding-bottom: 34px;
    }
}

@media (max-width: 1023px) {
    .pl-service-page .pl-seo-section {
        padding-block: 30px;
    }

    .pl-service-page .pl-seo-section__title {
        margin-bottom: 36px;
    }

    .pl-service-page .pl-service-page__description {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .pl-service-page .pl-service-features,
    .pl-service-page .pl-related-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pl-service-page .pl-related-cases--count-1 {
        grid-template-columns: minmax(0, 440px);
    }

    .pl-service-page .pl-service-routes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pl-service-page .pl-seo-cta__inner {
        min-height: 520px;
        padding-block: 70px;
    }

    .pl-service-page .pl-seo-cta {
        min-height: 520px;
    }

    .pl-service-page .pl-seo-cta__content {
        width: min(48%, 520px);
    }

    .pl-service-page .pl-seo-cta__treasure {
        width: clamp(340px, 45vw, 500px);
    }

    .pl-service-page .pl-seo-hero__title {
        max-width: 17ch;
        font-size: clamp(2.35rem, 5.6vw, 3.6rem);
    }
}

@media (max-width: 767px) {
    .pl-service-page .pl-seo-container {
        width: 100%;
        max-width: 100vw;
        padding-inline: 20px;
    }

    .pl-service-page .pl-service-features,
    .pl-service-page .pl-service-steps,
    .pl-service-page .pl-related-cases {
        grid-template-columns: 1fr;
    }

    .pl-service-page .pl-service-feature,
    .pl-service-page .pl-service-step {
        min-height: 0;
    }

    .pl-service-page .pl-seo-section {
        padding-block: 26px;
    }

    .pl-service-page .pl-seo-section__title {
        margin-bottom: 30px;
    }

    .pl-service-page .pl-seo-hero,
    .pl-service-page .pl-seo-hero__inner {
        min-height: clamp(520px, 78svh, 620px);
    }

    .pl-service-page .pl-seo-hero__inner {
        align-items: flex-end;
        padding-top: 118px;
        padding-bottom: 56px;
    }

    .pl-service-page .pl-service-page__hero::after {
        background:
            linear-gradient(90deg, rgba(0, 6, 14, 0.91), rgba(0, 6, 14, 0.56)),
            linear-gradient(0deg, #00060e 0%, rgba(0, 6, 14, 0.62) 42%, transparent 76%);
    }

    .pl-service-page .pl-seo-hero__visual img {
        object-fit: cover;
        object-position: center;
    }

    .pl-service-page .pl-seo-hero__content {
        width: 100%;
    }

    .pl-service-page .pl-seo-hero__title {
        max-width: 16ch;
        overflow-wrap: anywhere;
        font-size: clamp(1.85rem, 8vw, 2.55rem);
        line-height: 1.08;
    }

    .pl-service-page .pl-seo-hero__lead {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .pl-service-page .pl-seo-button {
        min-height: 58px;
        margin-top: 28px;
        padding-inline: 20px;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .pl-service-page .pl-service-page__description {
        padding-top: 52px;
        padding-bottom: 26px;
    }

    .pl-service-page .pl-service-intro {
        width: 100%;
        max-width: 100%;
        padding: 28px 24px;
        border-radius: 18px;
    }

    .pl-service-page .pl-service-routes {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pl-service-page .pl-service-route {
        width: 100%;
        max-width: 100%;
        min-height: 70px;
        gap: 8px;
        padding: 15px 16px;
        font-size: clamp(0.8rem, 3.55vw, 0.94rem);
    }

    .pl-service-page .pl-service-cost {
        width: 100%;
        max-width: 100%;
        padding: 28px 23px;
        border-radius: 18px;
    }

    .pl-service-page .pl-service-cost__content {
        font-size: 1rem;
        line-height: 1.65;
    }

    .pl-service-page .pl-service-cost__content h2 {
        font-size: clamp(1.35rem, 6vw, 1.55rem);
    }

    .pl-service-page .pl-service-cost__content h3 {
        font-size: clamp(1.25rem, 5.6vw, 1.375rem);
    }

    .pl-service-page .pl-service-cost__content h4 {
        font-size: clamp(1.1rem, 5vw, 1.25rem);
    }

    .pl-service-page .pl-service-cost__content li {
        padding-block: 10px;
    }

    .pl-service-page .pl-seo-cta__inner {
        position: relative;
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        padding-top: 52px;
        padding-bottom: 0;
    }

    .pl-service-page .pl-seo-cta {
        min-height: 0;
    }

    .pl-service-page .pl-seo-cta__content {
        width: 100%;
        max-width: 650px;
    }

    .pl-service-page .pl-seo-cta__visual {
        position: relative;
        inset: auto;
        display: flex;
        width: 100%;
        height: auto;
        min-height: clamp(220px, 70vw, 300px);
        align-items: flex-end;
        justify-content: flex-end;
    }

    .pl-service-page .pl-seo-cta__treasure {
        position: static;
        width: min(100%, 460px);
        max-width: 100%;
        max-height: none;
        margin-right: 0;
        margin-left: auto;
    }

    .pl-service-page .pl-seo-cta__ray {
        right: auto;
        bottom: 3%;
        left: 0;
        width: clamp(130px, 46vw, 210px);
    }

    .pl-service-page .pl-related-case__image {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 479px) {
    .pl-service-page .pl-seo-hero,
    .pl-service-page .pl-seo-hero__inner {
        min-height: clamp(500px, 74svh, 570px);
    }

    .pl-service-page .pl-seo-hero__title {
        font-size: clamp(1.78rem, 8.2vw, 2.35rem);
    }

    .pl-service-page .pl-service-route__arrow {
        font-size: 1.12rem;
    }
}
