.teb-service-page {
    --teb-ink: #10253d;
    --teb-muted: #536476;
    --teb-border: #d8e0e6;
    --teb-surface: #f3f5f7;
    --teb-navy: #0a3159;
    --teb-cyan: #078ba1;
    --teb-blue: #1769a8;
    --teb-coral: #c34f3d;
    --teb-green: #2f7654;
    --teb-charcoal: #36414c;
    --teb-gold: #a86e16;
    color: var(--teb-ink);
    background: #fff;
}

.teb-service-page * {
    box-sizing: border-box;
}

.teb-service-page h1,
.teb-service-page h2,
.teb-service-page h3,
.teb-service-page p {
    letter-spacing: 0;
}

.teb-service-page p {
    font-size: 18px;
    line-height: 1.65;
}

.teb-service-page h2 {
    margin: 0;
    color: var(--teb-ink);
    font-size: 40px;
    line-height: 1.16;
}

.teb-service-page h3 {
    color: var(--teb-ink);
    font-size: 22px;
    line-height: 1.3;
}

.teb-service-page .eyebrow {
    margin: 0 0 12px;
    color: var(--teb-cyan);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.teb-hero {
    overflow: hidden;
    background: #f0f4f6;
    border-bottom: 1px solid var(--teb-border);
}

.teb-hero__inner {
    position: relative;
    min-height: 700px;
    padding-top: 106px;
    padding-bottom: 70px;
}

.teb-breadcrumbs {
    position: absolute;
    top: 28px;
    left: var(--container-padding, 24px);
    right: var(--container-padding, 24px);
}

.teb-breadcrumbs li,
.teb-breadcrumbs a {
    color: var(--teb-muted);
}

.teb-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr);
    gap: 46px;
    align-items: center;
}

.teb-hero__copy,
.teb-hero__visual {
    min-width: 0;
}

.teb-hero h1 {
    max-width: 830px;
    margin: 0;
    color: var(--teb-navy);
    font-size: 52px;
    line-height: 1.08;
}

.teb-hero__lead {
    max-width: 790px;
    margin: 24px 0 0;
    color: var(--teb-ink);
    font-size: 20px !important;
    line-height: 1.55 !important;
}

.teb-hero__text {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--teb-muted);
}

.teb-hero__audience {
    margin: 20px 0 0;
    color: var(--teb-green);
    font-size: 15px !important;
    font-weight: 800;
}

.teb-hero__visual {
    margin: 0;
}

.teb-hero__visual img {
    display: block;
    width: 108%;
    max-width: none;
    height: auto;
    margin-left: -4%;
}

.teb-hero__visual figcaption {
    max-width: 530px;
    margin: 8px auto 0;
    color: var(--teb-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.teb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.teb-actions .button,
.teb-estimate .button {
    min-height: 52px;
    height: auto;
    padding: 14px 22px;
    white-space: normal;
}

.teb-hero .button--ghost {
    color: var(--teb-navy);
    border-color: rgba(10, 49, 89, 0.42);
    background: transparent;
}

.teb-hero .button--ghost:hover {
    color: #fff;
    border-color: var(--teb-navy);
    background: var(--teb-navy);
}

.teb-section {
    padding: 82px 0;
}

.teb-section--surface {
    background: var(--teb-surface);
}

.teb-section__heading {
    max-width: 850px;
    margin-bottom: 38px;
}

.teb-section__heading--wide {
    max-width: 1040px;
}

.teb-section__heading > p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--teb-muted);
}

.teb-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.teb-balance-card {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--teb-border);
    border-radius: 8px;
    background: #fff;
}

.teb-balance-card--actual {
    border-top: 5px solid var(--teb-blue);
}

.teb-balance-card--forecast {
    border-top: 5px solid var(--teb-coral);
}

.teb-balance-card__label {
    margin: 0 0 14px;
    color: var(--teb-blue);
    font-size: 13px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.teb-balance-card--forecast .teb-balance-card__label {
    color: var(--teb-coral);
}

.teb-balance-card h3 {
    margin: 0;
    font-size: 28px;
}

.teb-balance-card > p:not(.teb-balance-card__label):not(.teb-balance-card__deadline) {
    margin: 18px 0 0;
    color: var(--teb-muted);
}

.teb-balance-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.teb-balance-card li {
    position: relative;
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.5;
}

.teb-balance-card li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teb-blue);
}

.teb-balance-card--forecast li::before {
    background: var(--teb-coral);
}

.teb-balance-card__deadline {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--teb-border);
    color: var(--teb-ink);
    font-size: 16px !important;
}

.teb-resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 26px;
    margin-bottom: 42px;
    border-top: 1px solid var(--teb-border);
    border-bottom: 1px solid var(--teb-border);
}

.teb-resource {
    position: relative;
    padding: 17px 0 17px 18px;
    color: var(--teb-ink);
    font-size: 15px;
    font-weight: 800;
}

.teb-resource::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teb-blue);
}

.teb-resource--electricity::before { background: #dfa624; }
.teb-resource--heat::before { background: var(--teb-coral); }
.teb-resource--solid::before { background: var(--teb-charcoal); }
.teb-resource--oil::before { background: var(--teb-green); }
.teb-resource--other::before { background: var(--teb-cyan); }

.teb-method-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--teb-border);
    border-bottom: 1px solid var(--teb-border);
}

.teb-method-steps li {
    min-width: 0;
    padding: 28px 22px;
    border-right: 1px solid var(--teb-border);
}

.teb-method-steps li:last-child {
    border-right: 0;
}

.teb-method-steps li > span {
    display: block;
    margin-bottom: 18px;
    color: var(--teb-coral);
    font-weight: 800;
}

.teb-method-steps h3 {
    margin: 0;
    font-size: 18px;
}

.teb-method-steps p {
    margin: 10px 0 0;
    color: var(--teb-muted);
    font-size: 15px;
    line-height: 1.55;
}

.teb-text-link {
    display: inline-flex;
    margin-top: 25px;
    color: var(--teb-blue);
    font-size: 16px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.teb-scope-layout,
.teb-deliverables,
.teb-inputs {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 72px;
    align-items: start;
}

.teb-scope-layout .teb-section__heading,
.teb-deliverables .teb-section__heading,
.teb-inputs .teb-section__heading {
    margin-bottom: 0;
}

.teb-scope-list,
.teb-deliverables__list,
.teb-inputs__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teb-scope-list li,
.teb-deliverables__list li,
.teb-inputs__list li {
    position: relative;
    min-width: 0;
    padding: 15px 0 15px 28px;
    border-bottom: 1px solid var(--teb-border);
    font-size: 16px;
    line-height: 1.5;
}

.teb-scope-list li::before,
.teb-deliverables__list li::before,
.teb-inputs__list li::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teb-cyan);
}

.teb-section--verification {
    color: #fff;
    background: var(--teb-navy);
}

.teb-verification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 72px;
    align-items: start;
}

.teb-verification-layout h2,
.teb-verification-layout p {
    color: #fff;
}

.teb-verification-layout .eyebrow {
    color: #78d8df;
}

.teb-verification-layout > div:first-child > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
}

.teb-verification-list {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.teb-verification-list article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.teb-verification-list span {
    color: #78d8df;
    font-weight: 800;
}

.teb-verification-list p {
    margin: 0;
    font-size: 16px;
}

.teb-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teb-stages li {
    display: flex;
    min-width: 0;
    gap: 17px;
    padding: 24px 20px;
    border-left: 3px solid var(--teb-blue);
    background: var(--teb-surface);
}

.teb-stages li:nth-child(2n) { border-left-color: var(--teb-coral); }
.teb-stages li:nth-child(3n) { border-left-color: var(--teb-green); }

.teb-stages li > span {
    flex: 0 0 auto;
    color: var(--teb-blue);
    font-weight: 800;
}

.teb-stages h3 {
    margin: 0;
    font-size: 18px;
}

.teb-stages p {
    margin: 10px 0 0;
    color: var(--teb-muted);
    font-size: 15px;
    line-height: 1.55;
}

.teb-normative-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 72px;
    align-items: start;
}

.teb-normative-layout > div:first-child > p:not(.eyebrow) {
    color: var(--teb-muted);
}

.teb-deadline-facts {
    border-top: 1px solid var(--teb-border);
}

.teb-deadline-facts article {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--teb-border);
}

.teb-deadline-facts strong {
    color: var(--teb-coral);
    font-size: 24px;
    line-height: 1.2;
}

.teb-deadline-facts p {
    margin: 0;
    color: var(--teb-muted);
    font-size: 16px;
}

.teb-estimate-section {
    padding: 78px 0;
    color: #fff;
    background: #27333e;
}

.teb-estimate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
    align-items: center;
}

.teb-estimate h2,
.teb-estimate .eyebrow,
.teb-estimate p {
    color: #fff;
}

.teb-estimate .eyebrow {
    color: #efb45a;
}

.teb-estimate p {
    max-width: 900px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.teb-estimate .button {
    max-width: 340px;
    min-height: 56px;
    padding: 15px 22px;
}

.teb-related-section {
    scroll-margin-top: 100px;
}

.teb-project-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 930px;
    margin-bottom: 4px;
}

.teb-project-grid .project-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.teb-project-grid .content-card__image,
.teb-project-grid .content-card__body {
    min-width: 0;
}

.teb-project-grid .content-card__image {
    width: 100%;
    height: 330px;
    min-height: 0;
    aspect-ratio: auto;
}

.teb-project-grid .content-card__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.teb-project-grid .content-card h3,
.teb-project-grid .content-card h3 a {
    display: block;
    max-height: none;
    overflow: visible;
    -webkit-line-clamp: unset;
}

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

.teb-service-page .content-card {
    border-radius: 8px;
}

.teb-service-page .content-card h3 {
    font-size: 21px;
}

.teb-faq-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
    gap: 72px;
}

.teb-faq-layout .teb-section__heading {
    margin-bottom: 0;
}

.teb-faq-list {
    border-top: 1px solid var(--teb-border);
}

.teb-faq-list details {
    border-bottom: 1px solid var(--teb-border);
}

.teb-faq-list summary {
    position: relative;
    padding: 22px 48px 22px 0;
    color: var(--teb-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.teb-faq-list summary::-webkit-details-marker {
    display: none;
}

.teb-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 16px;
    right: 4px;
    color: var(--teb-blue);
    font-size: 30px;
    font-weight: 400;
}

.teb-faq-list details[open] summary::after {
    content: "−";
}

.teb-faq-list details p {
    margin: -4px 0 24px;
    color: var(--teb-muted);
    font-size: 16px;
}

.teb-final-cta {
    padding: 82px 0;
    color: #fff;
    background: #173c35;
}

.teb-final-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
    align-items: center;
}

.teb-final-cta h2,
.teb-final-cta p {
    color: #fff;
}

.teb-final-cta .eyebrow {
    color: #9de2c5;
}

.teb-final-cta h2 {
    max-width: 820px;
}

.teb-final-cta p:not(.eyebrow) {
    max-width: 900px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.teb-final-cta .teb-actions {
    max-width: 320px;
    margin-top: 0;
}

.teb-final-cta .teb-actions .button {
    width: 100%;
}

.teb-final-cta .button--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: transparent;
}

.teb-final-cta .button--ghost:hover {
    color: #173c35;
    background: #fff;
}

@media (max-width: 1100px) {
    .teb-hero__layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
        gap: 30px;
    }

    .teb-hero h1 {
        font-size: 46px;
    }

    .teb-method-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .teb-method-steps li:nth-child(3) {
        border-right: 0;
    }

    .teb-method-steps li:nth-child(n + 4) {
        border-top: 1px solid var(--teb-border);
    }

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

    .teb-scope-layout,
    .teb-verification-layout,
    .teb-deliverables,
    .teb-inputs,
    .teb-normative-layout,
    .teb-faq-layout {
        gap: 44px;
    }

    .teb-estimate,
    .teb-final-cta__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .teb-final-cta .teb-actions {
        max-width: none;
    }
}

@media (max-width: 820px) {
    .teb-hero__inner {
        min-height: 0;
        padding-top: 96px;
        padding-bottom: 54px;
    }

    .teb-hero__layout,
    .teb-verification-layout,
    .teb-project-grid .project-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .teb-hero__visual {
        max-width: 610px;
        margin: 10px auto 0;
    }

    .teb-hero__visual img {
        width: 100%;
        margin-left: 0;
    }

    .teb-project-grid .content-card__image {
        height: 280px;
    }
}

@media (max-width: 760px) {
    .teb-service-page p {
        font-size: 17px;
    }

    .teb-service-page h2 {
        font-size: 32px;
    }

    .teb-breadcrumbs {
        top: 22px;
    }

    .teb-hero h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .teb-hero__lead {
        font-size: 18px !important;
    }

    .teb-section,
    .teb-final-cta,
    .teb-estimate-section {
        padding: 54px 0;
    }

    .teb-balance-grid,
    .teb-method-steps,
    .teb-scope-layout,
    .teb-deliverables,
    .teb-inputs,
    .teb-stages,
    .teb-normative-layout,
    .teb-journal-grid,
    .teb-faq-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .teb-balance-card {
        padding: 24px;
    }

    .teb-resource-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
    }

    .teb-method-steps li,
    .teb-method-steps li:nth-child(3) {
        border-right: 0;
        border-top: 1px solid var(--teb-border);
    }

    .teb-method-steps li:first-child {
        border-top: 0;
    }

    .teb-scope-list,
    .teb-deliverables__list,
    .teb-inputs__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .teb-deadline-facts article {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .teb-actions {
        flex-direction: column;
    }

    .teb-actions .button,
    .teb-estimate .button {
        width: 100%;
        max-width: none;
    }

    .teb-final-cta {
        padding-bottom: 108px;
    }
}

@media (max-width: 420px) {
    .teb-hero h1 {
        font-size: 33px;
        overflow-wrap: anywhere;
    }

    .teb-service-page h2 {
        font-size: 29px;
        overflow-wrap: anywhere;
    }

    .teb-balance-card h3 {
        font-size: 24px;
    }

    .teb-resource-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .teb-stages li {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teb-service-page *,
    .teb-service-page *::before,
    .teb-service-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
