.service-detail-page {
    background: #f4f5f7;
    color: #05091f;
}

body:has(.service-detail-page) #wrapper {
    overflow: visible !important;
}

#wrapper.service-detail-wrapper {
    overflow: visible !important;
}

.service-detail-section > .container {
    max-width: 1200px;
    overflow: visible;
}

.service-detail-grid {
    display: block;
    overflow: visible;
}

.service-detail-main {
    display: grid;
    grid-template-columns: 278px minmax(0, 520px) 338px;
    gap: 24px;
    align-content: start;
    align-items: start;
    justify-content: start;
    overflow: visible;
    position: relative;
}

.service-sidebar {
    grid-column: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    z-index: 2;
}

.service-detail-page.service-scroll-bound .service-sidebar,
.service-detail-page.service-scroll-bound .service-quote-card {
    backface-visibility: hidden;
    position: relative;
    top: auto;
    transition: none;
    will-change: transform;
}

.service-content {
    grid-column: 2;
}

.service-nav-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-left: 4px solid transparent;
    background: transparent;
    color: #1f2535;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: all .3s ease;
}

.service-nav-link:hover,
.service-nav-link.active {
    border-left-color: #1E2648;
    background: #eef0f3;
    color: #1E2648;
    transition: all .3s ease;
}

.service-content h1 {
    margin: 0 0 18px;
    color: #01051a;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.service-content h2 {
    margin: 0 0 18px;
    color: #01051a;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.service-intro {
    max-width: 520px;
    color: #2d3344;
    font-size: 18px;
    line-height: 1.5;
}

.service-rich-text {
    max-width: 520px;
    color: #2d3344;
    font-size: 17px;
    line-height: 1.5;
}

.service-rich-text p:last-child {
    margin-bottom: 0;
}

.service-rule {
    margin: 15px 0 17px;
    border-color: rgba(5, 9, 31, .14);
}

.service-specs {
    padding: 25px 15px;
    padding-top: 8px;
    background: #f1f1f19e;
}

.service-specs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #01051a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-specs-title i {
    color: #01051a;
    font-size: 18px;
}

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

.service-spec-item {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(5, 9, 31, .08);
}

.service-spec-label {
    display: block;
    margin-bottom: 4px;
    color: #252c3d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-spec-value {
    display: block;
    color: #01051a;
    font-size: 17px;
    line-height: 1.3;
}

.service-main-video {
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.service-main-video video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
}

.service-quote-card {
    grid-column: 3;
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    align-self: start;
    height: max-content;
    padding: 32px 32px 30px;
    border-radius: 6px;
    background: #02071d;
    color: #fff;
    box-shadow: 0 14px 24px rgba(5, 9, 31, .18);
}

.service-quote-card h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.service-quote-card p {
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.45;
}

.service-quote-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 35px;
    padding: 17px 18px;
    border-radius: 2px;
    background: #1c2b6b;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.service-quote-button:hover {
    background: #1c2b6bcc;
    color: #fff;
}

.service-quote-note {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 302px);
    margin-left: 302px;
    margin-top: 32px;
}

.service-gallery a,
.service-gallery img {
    display: block;
    width: 100%;
    height: 160px;
}

.service-gallery img {
    object-fit: cover;
    filter: saturate(.88) contrast(1.02);
}

.service-gallery-hidden {
    display: none !important;
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: calc(100% - 302px);
    margin-left: 302px;
    margin-top: 32px;
}

.service-benefit {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 21px;
    min-height: 93px;
    padding: 19px 19px 18px;
    border-left: 2px solid #1e2648;
    background: #f1f1f19e;
    align-items: start;
}

.service-benefit i {
    color: #02071d;
    font-size: 24px;
    line-height: 1;
}

.service-benefit h3 {
    margin: 0 0 4px;
    color: #01051a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.service-benefit p {
    margin: 0;
    color: #232a3b;
    font-size: 15px;
    line-height: 1.4;
}

@media (max-width: 1199px) {
    .service-detail-main {
        grid-template-columns: 220px minmax(0, 1fr) 300px;
    }

    .service-gallery,
    .service-benefits {
        width: calc(100% - 244px);
        margin-left: 244px;
    }

    .service-quote-button {
        margin-top: 36px;
    }
}

@media (max-width: 991px) {
    .service-detail-section {
        padding: 88px 0 58px;
    }

    .service-detail-main {
        grid-template-columns: 1fr;
    }

    .service-sidebar,
    .service-quote-card,
    .service-gallery,
    .service-benefits {
        grid-column: auto;
    }

    .service-gallery,
    .service-benefits {
        width: 100%;
        margin-left: 0;
    }

    .service-sidebar {
        max-height: none;
        position: static;
        transform: none !important;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .service-quote-card {
        transform: none !important;
    }

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

@media (max-width: 575px) {
    .service-detail-section {
        padding: 72px 0 48px;
    }

    .service-sidebar,
    .service-specs-grid,
    .service-gallery,
    .service-benefits {
        grid-template-columns: 1fr;
    }

    .service-content h1 {
        font-size: 34px;
    }

    .service-content h2 {
        font-size: 34px;
    }

    .service-intro,
    .service-rich-text {
        font-size: 16px;
    }

    .service-quote-card {
        min-height: 0;
        padding: 26px;
    }

    .service-gallery a,
    .service-gallery img {
        height: 210px;
    }
}
