.btr-service-page {
    width: 100%;
    overflow: hidden;
}

.btr-service-hero {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 540px;
    padding: 150px 24px 90px;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            135deg,
            #563882 0%,
            #3d2665 50%,
            #271744 100%
        );
}

.btr-service-hero__background {
    position: absolute;
    z-index: -4;
    inset: -30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.08);
    filter: blur(4px);
}

.btr-service-hero__overlay {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(55, 31, 92, 0.97) 0%,
            rgba(64, 37, 104, 0.91) 38%,
            rgba(59, 35, 97, 0.79) 68%,
            rgba(48, 27, 82, 0.86) 100%
        );
}

.btr-service-hero--gradient .btr-service-hero__overlay {
    background:
        radial-gradient(
            circle at 76% 20%,
            rgba(133, 90, 184, 0.34),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #5d3d88 0%,
            #432a70 45%,
            #2d1a50 100%
        );
}

.btr-service-hero__decoration {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.btr-service-hero__circle {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.btr-service-hero__circle--one {
    top: -170px;
    right: 7%;
    width: 420px;
    height: 420px;
}

.btr-service-hero__circle--two {
    bottom: -210px;
    left: 12%;
    width: 340px;
    height: 340px;
}

.btr-service-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.btr-service-hero__content {
    width: 100%;
    max-width: 720px;
}

.btr-service-hero__title {
    max-width: 680px;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.btr-service-hero__subtitle {
    max-width: 720px;
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: 700;
    line-height: 1.5;
}

.btr-service-hero__text {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
}

.btr-service-hero__text p {
    margin: 0 0 16px;
}

.btr-service-hero__text > :last-child {
    margin-bottom: 0;
}

.btr-service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.btr-service-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 54px;
    padding: 14px 28px;
    color: #4c2d76;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(20, 10, 38, 0.2);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btr-service-hero__button:hover,
.btr-service-hero__button:focus {
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(20, 10, 38, 0.26);
}

.btr-service-hero__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 4px;
}

.btr-service-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}
.btr-service-content > :first-child {
    margin-top: 0;
}

.btr-service-content > :last-child {
    margin-bottom: 0;
}
.btr-service-content__inner {
    width: 100%;
}

.btr-service-content__inner > :first-child {
    margin-top: 0;
}

.btr-service-content__inner > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .btr-service-hero {
        min-height: 500px;
        padding-top: 135px;
    }

    .btr-service-hero__content {
        max-width: 660px;
    }
}

@media (max-width: 767px) {
    .btr-service-hero {
        min-height: 520px;
        padding: 120px 20px 70px;
    }

    .btr-service-hero__background {
        inset: -20px;
        background-position: center;
        transform: scale(1.12);
        filter: blur(3px);
    }

    .btr-service-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(55, 31, 92, 0.97) 0%,
                rgba(58, 33, 96, 0.92) 100%
            );
    }

    .btr-service-hero__title {
        font-size: clamp(2.35rem, 11vw, 3.3rem);
        line-height: 1.02;
    }

    .btr-service-hero__subtitle {
        font-size: 1.05rem;
    }

    .btr-service-hero__text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .btr-service-hero__actions {
        margin-top: 28px;
    }

    .btr-service-hero__button {
        width: 100%;
        max-width: 280px;
    }

    .btr-service-content {
        padding: 64px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btr-service-hero__button {
        transition: none;
    }

    .btr-service-hero__button:hover,
    .btr-service-hero__button:focus {
        transform: none;
    }
}

.btr-service-block-content {
    width: 100%;
    background: #ffffff;
}

.btr-service-block-content > * {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.btr-service-block-content > .alignwide {
    width: calc(100% - 48px);
    max-width: 1440px;
}

.btr-service-block-content > .alignfull {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.btr-service-block-content > :first-child {
    margin-top: 0;
}

.btr-service-block-content > :last-child {
    margin-bottom: 0;
}

/*
 * Add sensible vertical spacing to normal Gutenberg blocks.
 */
.btr-service-block-content > p,
.btr-service-block-content > h2,
.btr-service-block-content > h3,
.btr-service-block-content > h4,
.btr-service-block-content > ul,
.btr-service-block-content > ol,
.btr-service-block-content > .wp-block-image,
.btr-service-block-content > .wp-block-media-text,
.btr-service-block-content > .wp-block-columns,
.btr-service-block-content > .wp-block-group,
.btr-service-block-content > .wp-block-buttons,
.btr-service-block-content > .wp-block-shortcode {
    margin-top: 48px;
    margin-bottom: 48px;
}

/*
 * Standard Gutenberg group sections can control their own padding.
 */
.btr-service-block-content .wp-block-group {
    box-sizing: border-box;
}

/*
 * Media & Text block.
 */
.btr-service-block-content .wp-block-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.btr-service-block-content .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr 1fr;
}

.btr-service-block-content .wp-block-media-text__media {
    margin: 0;
}

.btr-service-block-content .wp-block-media-text__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.btr-service-block-content .wp-block-media-text__content {
    padding: 0;
}

.btr-service-block-content .wp-block-media-text__content > :first-child {
    margin-top: 0;
}

.btr-service-block-content .wp-block-media-text__content > :last-child {
    margin-bottom: 0;
}

/*
 * Standard typography.
 */
.btr-service-block-content h2 {
    color: #17121f;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.btr-service-block-content h3 {
    color: #17121f;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
}

.btr-service-block-content p,
.btr-service-block-content li {
    color: #5f5a67;
    font-size: 1.05rem;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .btr-service-block-content > * {
        width: calc(100% - 36px);
    }

    .btr-service-block-content > .alignwide {
        width: calc(100% - 36px);
    }

    .btr-service-block-content .wp-block-media-text,
    .btr-service-block-content .wp-block-media-text.has-media-on-the-right {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /*
     * On mobile, keep text first when the image is on the right.
     */
    .btr-service-block-content
        .wp-block-media-text.has-media-on-the-right
        .wp-block-media-text__content {
        grid-row: 1;
    }

    .btr-service-block-content
        .wp-block-media-text.has-media-on-the-right
        .wp-block-media-text__media {
        grid-row: 2;
    }
}