/* Inner pages. Loaded after mp-shell, mp-home, mp-cms-content, mp-catalog, mp-site and mp-mobile. */

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results
) :is(.columns, .category-view.container) {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page,
    .blog-page
) .mp-in-hero,
#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) .mp-in-band {
    width: 100%;
    background: #fff;
    color: var(--mp-ink);
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) .mp-in-band--wash {
    background: var(--mp-wash);
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page,
    .blog-page
) .mp-in-hero {
    background: var(--mp-navy);
    color: #fff;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) :is(.mp-in-hero, .mp-in-band) > [data-element="inner"] {
    width: min(100%, var(--mp-content));
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 64px var(--mp-gutter) !important;
    box-sizing: border-box;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) .mp-in-hero :is(h1, h2, p, li) {
    color: #fff;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us
) .mp-in-hero h1 {
    max-width: 16ch;
    margin: 0 0 16px;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

#html-body .mp-in-accent {
    color: #c8bfff;
}

#html-body .mp-in-eyebrow,
#html-body .mp-in-index,
#html-body .mp-in-micro,
#html-body .mp-in-role {
    color: #c8bfff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#html-body .mp-in-index {
    letter-spacing: 0;
}

#html-body .mp-in-micro {
    letter-spacing: 0;
    text-transform: none;
    font-weight: 550;
}

#html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-hero .mp-in-side {
    padding: 28px !important;
    border-radius: 16px;
    background: #fff;
    color: var(--mp-ink);
}

#html-body .mp-in-hero .mp-in-side:has(.mp-in-portrait) {
    padding: 0 !important;
    border-radius: 0;
    background: transparent;
}

#html-body:is(.category-teenused, .category-services) .mp-in-hero .mp-in-side :is(h2, h3, p, li, a) {
    color: var(--mp-ink);
}

#html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us, .mp-contact-page) .mp-in-split > [data-content-type="column-line"],
#html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-plans > [data-content-type="column-line"] {
    display: flex;
    gap: 32px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us, .mp-contact-page) .mp-in-split > [data-content-type="column-line"] > .pagebuilder-column,
#html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-plans > [data-content-type="column-line"] > .pagebuilder-column {
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
    box-sizing: border-box;
}

#html-body .mp-in-plan {
    padding: 24px !important;
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

#html-body .mp-in-list {
    margin: 0;
    padding-left: 1.15rem;
}

#html-body .mp-in-list li + li {
    margin-top: 8px;
}

#html-body .mp-in-side .mp-in-list a,
#html-body .mp-direct-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

#html-body .mp-in-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
}

#html-body .mp-in-systems span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-ink);
    font-weight: 650;
}

#html-body .mp-in-jumps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#html-body .mp-in-jumps [data-content-type="button-item"] {
    display: inline-flex;
}

#html-body a.pagebuilder-button-primary,
#html-body a.pagebuilder-button-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

#html-body .mp-in-band a.pagebuilder-button-primary,
#html-body .mp-in-close a.pagebuilder-button-primary {
    background: var(--mp-accent);
    color: #fff;
}

#html-body .mp-in-hero a.pagebuilder-button-primary {
    background: #fff;
    color: var(--mp-navy);
}

#html-body .mp-in-jumps a.pagebuilder-button-link {
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-ink);
}

#html-body .mp-in-hero .mp-in-copy .mp-in-jumps a.pagebuilder-button-link {
    border-color: #ffffff59;
    background: transparent;
    color: #fff;
}

#html-body .mp-in-faq {
    border-top: 1px solid var(--mp-line);
}

#html-body .mp-in-faq summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    cursor: pointer;
    font-weight: 650;
}

#html-body .mp-in-shot img,
#html-body .mp-work-page .mp-project img,
#html-body .mp-blog-shot img,
#html-body .mp-blog-post .post-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: var(--mp-wash);
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) [data-content-type="image"] .pagebuilder-mobile-only {
    display: none !important;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .mp-contact-page
) [data-content-type="image"] .pagebuilder-mobile-hidden {
    display: block !important;
}

#html-body .mp-in-portrait {
    margin: 0;
    padding: 0;
}

#html-body .mp-in-portrait img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

#html-body .mp-in-close > [data-element="inner"],
#html-body.mp-contact-page .mp-contact > [data-element="inner"] {
    width: min(100%, 760px);
}

#html-body:not(.cms-index-index):not(.cms-home-en):not(.checkout-index-index):not(.hyva_checkout-index-index) .breadcrumbs {
    background: transparent;
    box-shadow: none;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .blog-page,
    .mp-contact-page
) .breadcrumbs {
    background: var(--mp-navy);
    color: #fff;
}

#html-body:is(
    .category-teenused,
    .category-services,
    .category-meist,
    .category-about-us,
    .category-tulemused,
    .category-results,
    .blog-page,
    .mp-contact-page
) .breadcrumbs a {
    color: #fff;
}

#html-body:not(.cms-index-index):not(.cms-home-en):not(.checkout-index-index):not(.hyva_checkout-index-index) .mp-page-title .page-title {
    margin: 0;
    font-family: var(--mp-font);
    letter-spacing: -0.03em;
}

#html-body:is(.blog-category-view, .blog-author-view, .blog-tag-view, .blog-search-index, .blog-archive-view) .mp-page-title {
    max-width: none;
    margin: 0;
    padding: 48px var(--mp-gutter) 8px;
    background: var(--mp-navy);
    color: #fff;
}

#html-body:is(.blog-category-view, .blog-author-view, .blog-tag-view, .blog-search-index, .blog-archive-view) .page-title {
    color: #fff;
}

.mp-blog-hero,
.mp-blog-cta {
    width: min(100%, var(--mp-content));
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--mp-gutter);
    padding-left: var(--mp-gutter);
    box-sizing: border-box;
}

.mp-blog-hero {
    width: 100%;
    max-width: none;
    padding: 48px var(--mp-gutter) 36px;
    background: var(--mp-navy);
    color: #fff;
}

.mp-blog-hero h1 {
    max-width: 16ch;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -0.04em;
    line-height: 1;
}

.mp-blog-hero p:last-child {
    max-width: 42rem;
    color: #fff;
}

.mp-blog-search,
.mp-blog-cats,
.mp-blog-list,
.mp-blog-post,
.mp-blog-widgets,
.toolbar-blog-posts {
    width: min(100% - (var(--mp-gutter) * 2), var(--mp-content));
    max-width: 100%;
    margin: 24px auto;
    min-width: 0;
    box-sizing: border-box;
}

.mp-blog-search form,
.mp-blog-search-row {
    max-width: 100%;
    min-width: 0;
}

.mp-blog-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mp-blog-search input {
    flex: 1 1 12rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    background: #fff;
}

.mp-blog-cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-blog-cats a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-ink);
    text-decoration: none;
}

.mp-blog-rest {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-blog-feature-item,
.mp-blog-card {
    display: grid;
    gap: 20px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
}

.mp-blog-feature-item {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
}

.mp-blog-rest {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mp-blog-recent,
.mp-blog-post h1,
.mp-blog-copy h2,
.mp-blog-cta h2 {
    letter-spacing: -0.03em;
}

.mp-blog-copy :is(h2, h3) {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.mp-blog-kicker {
    margin: 0 0 8px;
    color: var(--mp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mp-blog-kicker a,
.mp-blog-more {
    color: var(--mp-accent);
    text-decoration: none;
}

.mp-blog-post {
    max-width: 70ch;
    overflow-wrap: anywhere;
}

.mp-blog-post .post-text-hld,
.mp-blog-copy,
.mp-blog-copy .post-description,
.mp-blog-post :is(a, p, li) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.mp-blog-post .post-text-hld {
    font-size: 1.05rem;
    line-height: 1.65;
}

.mp-blog-post :is(pre, code) {
    overflow-wrap: normal;
    word-break: normal;
}

.mp-blog-post pre {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.mp-blog-post .post-text-hld :is(img, video, iframe) {
    max-width: 100%;
    height: auto;
}

.mp-blog-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 28px;
    border-radius: 16px;
    background: var(--mp-navy);
    color: #fff;
}

.mp-blog-cta h2,
.mp-blog-cta p {
    color: #fff;
}

.toolbar-blog-posts .pages {
    display: flex;
    justify-content: center;
}

.toolbar-blog-posts .pages a,
.toolbar-blog-posts .pages .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mp-blog-widgets .widget.block {
    margin: 0 0 16px;
    padding: 16px 20px;
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
    min-width: 0;
}

.mp-blog-widgets .block-title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.mp-blog-widgets a {
    overflow-wrap: anywhere;
}

.mp-blog-widgets img {
    max-width: 100%;
    height: auto;
}

#html-body:not(.cms-index-index):not(.cms-home-en):not(.checkout-index-index):not(.hyva_checkout-index-index) :is(.btn-primary, button.action.primary, .action.primary) {
    border-color: var(--mp-accent);
    border-radius: 8px;
    background: var(--mp-accent);
    color: #fff;
    min-height: 44px;
}

#html-body:not(.cms-index-index):not(.cms-home-en):not(.checkout-index-index):not(.hyva_checkout-index-index) .page-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
    border: 1px solid var(--mp-line);
    border-radius: 8px;
    min-height: 44px;
}

#html-body:is(.catalog-product-view, .catalog-category-view, .checkout-cart-index, .account, .customer-account-login, .customer-account-create, .customer-account-forgotpassword) .page-main {
    padding-bottom: 48px;
}

#html-body.cms-page-view:not(.cms-index-index):not(.cms-home-en):not(.mp-contact-page):not(.cms-magento-hooldus):not(.cms-magento-maintenance):not(.cms-lihtne-koduleht):not(.cms-simple-website):not(.cms-magento-tarne-moodulid) .column.main {
    max-width: 78ch;
}

#html-body:is(
    .cms-magento-hooldus,
    .cms-magento-maintenance,
    .cms-lihtne-koduleht,
    .cms-simple-website,
    .cms-magento-tarne-moodulid
) :is(.columns, .column.main) {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-page {
    max-width: none;
    margin: 0;
    padding: 0 0 64px;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-hero {
    border-radius: 0;
    background: var(--mp-navy);
    margin: 0;
    padding: 64px var(--mp-gutter);
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-hero-title {
    letter-spacing: -0.04em;
    line-height: 1.05;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-hero-sub {
    max-width: 65ch;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) :is(.mh-sec, .mh-cta) {
    width: min(100% - (var(--mp-gutter) * 2), 1120px);
    margin-right: auto;
    margin-left: auto;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) :is(.mh-card, .mh-callout) {
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-btn {
    border-radius: 8px;
    min-height: 44px;
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-cta {
    border-radius: 16px;
    background: var(--mp-wash);
}

#html-body:is(.cms-magento-hooldus, .cms-magento-maintenance) .mh-sec > p {
    max-width: 65ch;
}

#html-body.cms-magento-tarne-moodulid .mtl-wrap {
    max-width: none;
    margin: 0;
    padding: 0 0 64px;
}

#html-body.cms-magento-tarne-moodulid .mtl-hero {
    border-radius: 0;
    background: var(--mp-navy);
    margin: 0;
    padding: 64px var(--mp-gutter);
    color: #fff;
}

#html-body.cms-magento-tarne-moodulid .mtl-hero h1 {
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

#html-body.cms-magento-tarne-moodulid .mtl-hero :is(p, .lead) {
    max-width: 65ch;
    color: #fff;
}

#html-body.cms-magento-tarne-moodulid .mtl-hero .mtl-btn-primary {
    border-radius: 8px;
    background: #fff;
    color: var(--mp-navy);
    min-height: 44px;
}

#html-body.cms-magento-tarne-moodulid .mtl-hero .mtl-btn-ghost {
    border-radius: 8px;
    color: #fff;
    min-height: 44px;
}

#html-body.cms-magento-tarne-moodulid :is(.mtl-section, .mtl-cta, .mtl-bridge) {
    width: min(100% - (var(--mp-gutter) * 2), 1080px);
    margin-right: auto;
    margin-left: auto;
}

#html-body.cms-magento-tarne-moodulid .mtl-section > p,
#html-body.cms-magento-tarne-moodulid .mtl-bridge p {
    max-width: 65ch;
}

#html-body.cms-magento-tarne-moodulid .mtl-card {
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

#html-body.cms-magento-tarne-moodulid .mtl-cta,
#html-body.cms-magento-tarne-moodulid .mtl-trust {
    border-radius: 16px;
    background: var(--mp-wash);
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-hero {
    border-radius: 0;
    background: var(--mp-navy);
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-hero::before {
    background: var(--mp-navy);
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-hero-title {
    letter-spacing: -0.04em;
    line-height: 0.98;
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-hero-sub {
    max-width: 65ch;
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) :is(.mp-btn-primary, .mp-btn-secondary) {
    border-radius: 8px;
    min-height: 44px;
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) :is(.mp-service-card, .mp-pricing-card, .mp-problem-card, .mp-process-card) {
    border: 1px solid var(--mp-line);
    border-radius: 16px;
    background: #fff;
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) :is(.mp-section-body, .mp-split-body, .mp-service-text) {
    max-width: 65ch;
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-proof-bar {
    background: var(--mp-wash);
}

#html-body:is(.cms-lihtne-koduleht, .cms-simple-website) .mp-cta-band {
    border-radius: 16px;
    background: var(--mp-wash);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .mp-header {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-areas: "logo menu tools lang";
    }

    .mp-menu {
        display: inline-flex;
    }

    .mp-header .mp-button.mp-header-cta {
        display: none;
    }

    .mp-nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--mp-line);
    }

    .mp-nav.is-open {
        display: flex;
    }

    .mp-nav.is-open .mp-button.mp-nav-cta {
        display: inline-flex;
        margin: 8px 0;
    }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .mp-header {
        grid-template-columns: auto minmax(0, 1fr) auto auto auto;
        grid-template-areas: "logo nav tools cta lang";
    }

    .mp-nav,
    .mp-store-nav {
        flex-wrap: nowrap;
    }

    .mp-nav {
        gap: 0 8px;
        padding-top: 0;
        border-top: 0;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .mp-blog-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-blog-search input,
    .mp-blog-search .mp-button {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 1024px) {
    #html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-plans > [data-content-type="column-line"] {
        flex-wrap: wrap;
    }

    #html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-plans > [data-content-type="column-line"] > .pagebuilder-column {
        width: 100% !important;
        flex-basis: 100%;
        max-width: 100%;
    }

    .mp-blog-rest {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    #html-body:is(
        .category-teenused,
        .category-services,
        .category-meist,
        .category-about-us,
        .category-tulemused,
        .category-results,
        .mp-contact-page
    ) :is(.mp-in-split, .mp-in-plans) > [data-content-type="column-line"] {
        flex-wrap: wrap;
    }

    #html-body:is(
        .category-teenused,
        .category-services,
        .category-meist,
        .category-about-us,
        .category-tulemused,
        .category-results,
        .mp-contact-page
    ) :is(.mp-in-split, .mp-in-plans) > [data-content-type="column-line"] > .pagebuilder-column {
        width: 100% !important;
        flex-basis: 100%;
        max-width: 100%;
    }

    #html-body:is(.category-teenused, .category-services, .category-meist, .category-about-us) .mp-in-hero h1,
    .mp-blog-hero h1 {
        max-width: none;
        font-size: 36px;
    }

    .mp-blog-feature-item,
    .mp-blog-rest {
        grid-template-columns: 1fr;
    }

    #html-body:is(
        .category-teenused,
        .category-services,
        .category-meist,
        .category-about-us,
        .category-tulemused,
        .category-results,
        .mp-contact-page
    ) :is(.mp-in-hero, .mp-in-band) > [data-element="inner"] {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
}

/* Shared native blog blocks remain editable in Admin; theme owns their layout. */
#html-body .mp-blog-cta .pagebuilder-column-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}
#html-body .mp-blog-cta .pagebuilder-column {
    width: 100% !important;
    min-width: 0;
}
#html-body .mp-blog-cta-source { width: 100%; }
#html-body .mp-blog-cta-action a {
    color: #fff;
    background: var(--mp-accent);
}
#html-body:is(.category-teenused, .category-services) .mp-in-hero h1 {
    max-width: 24ch;
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1.08;
}
@media (max-width: 767px) {
    #html-body .mp-blog-cta .pagebuilder-column-line { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Native markup corrections confirmed against the first staging screenshots. */
#html-body .breadcrumbs { background: var(--mp-wash); color: var(--mp-ink); }
#html-body .breadcrumbs a { color: var(--mp-muted); }
#html-body.mp-contact-page .mp-in-hero h1,
#html-body .mp-blog-post .post-header h1 {
    margin: 0 0 20px;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.12;
}
#html-body .mp-blog-post .post-header { margin-bottom: 32px; }
#html-body .mp-in-side h2 { margin: 0 0 16px; font-size: 24px; font-weight: 650; line-height: 1.2; }
#html-body .mp-in-side .mp-in-list { margin: 0; padding: 0; list-style: none; }
#html-body .mp-in-side .mp-in-list li + li { margin-top: 8px; }
#html-body .mp-in-side .mp-in-list a {
    display: flex; width: 100%; padding: 12px 14px;
    border: 1px solid var(--mp-line); border-radius: 6px; text-decoration: none;
}
#html-body .mp-in-side .mp-in-list a::after { content: "→"; margin-left: auto; padding-left: 12px; }
#html-body .mp-in-band :is(h2, h3) { font-weight: 650; line-height: 1.2; }
#html-body .mp-in-band h2 { margin: 0 0 16px; font-size: clamp(24px, 2.2vw, 32px); }
#html-body .mp-in-band h3 { margin: 0 0 12px; font-size: 18px; }
#html-body .mp-in-band p { margin: 0 0 16px; }
#html-body .mp-in-band .mp-in-index { margin-bottom: 12px; }
#html-body .mp-in-eyebrow { margin-bottom: 16px; }
.mp-mobile-tools { display: none; }
#html-body .form-create-account .field.password .control,
#html-body .form-create-account .field.confirmation .control { width: 100%; max-width: 100%; }
#html-body .form-create-account input[type="password"],
#html-body .form-create-account input[name="password_confirmation"] { width: 100%; min-width: 0; }
@media (max-width: 767px) {
    #header .mp-header {
        grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
        grid-template-areas: "logo tools menu lang";
        gap: 4px; padding: 10px 16px;
    }
    #header .mp-header .mp-logo { font-size: 18px; gap: 6px; }
    #header .mp-header .mp-logo img { width: 30px; height: 30px; }
    #header .mp-tools > :not(#menu-cart-icon) { display: none; }
    #header .mp-nav { grid-row: 2; }
    #header .mp-nav.is-open .mp-mobile-tools { display: block; width: 100%; padding: 12px 0; }
    .mp-mobile-tools form { margin: 12px 0; }
    .mp-mobile-tools form > div { display: flex; gap: 8px; }
    .mp-mobile-tools input { min-width: 0; flex: 1; }
    .mp-mobile-tools button { padding: 8px 12px; border: 1px solid var(--mp-line); border-radius: 6px; }
    #html-body:is(.category-teenused, .category-services) .mp-in-hero h1 { font-size: clamp(30px, 7.8vw, 36px); }
    #html-body:is(.category-teenused, .category-services) .mp-in-hero .mp-in-side { padding: 20px !important; border-radius: 8px; }
    #html-body .mp-in-jumps { gap: 6px; margin-top: 20px; }
    #html-body .mp-in-jumps a.pagebuilder-button-link { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 359px) {
    #header .mp-header { padding: 10px 12px; grid-template-columns: minmax(0, 1fr) 40px 40px 36px; gap: 2px; }
    #header .mp-header .mp-logo { font-size: 15px; gap: 5px; letter-spacing: -.5px; }
    #header .mp-header .mp-logo img { width: 26px; height: 26px; }
    #header .mp-menu { width: 40px; min-width: 40px; }
    #header .mp-header .mp-lang a { padding: 4px; }
}

#html-body .mp-blog-post .post-text-hld h2 { margin: 2rem 0 1rem; font-size: clamp(24px, 2.2vw, 30px); font-weight: 650; line-height: 1.25; }
#html-body .mp-blog-post .post-text-hld h3 { margin: 1.6rem 0 .8rem; font-size: 21px; font-weight: 650; line-height: 1.3; }
#html-body .mp-blog-post .post-text-hld p { margin: 0 0 1.2rem; }
#html-body .mp-blog-post .post-text-hld :is(ul, ol) { margin: 0 0 1.2rem; padding-left: 1.4rem; }
#html-body .mp-blog-post .post-text-hld ul { list-style: disc; }
#html-body .mp-blog-post .post-text-hld ol { list-style: decimal; }
#html-body .mp-blog-post .post-text-hld li + li { margin-top: .5rem; }
#html-body .mp-blog-post .post-text-hld a { color: var(--mp-accent); text-decoration: underline; text-underline-offset: .15em; }
#html-body .mp-blog-post .post-text-hld pre { margin: 1.5rem 0; padding: 20px; border-radius: 8px; background: var(--mp-wash); font-size: .85em; }
#html-body .mp-blog-post .post-text-hld th,
#html-body .mp-blog-post .post-text-hld td { padding: 10px; border: 1px solid var(--mp-line); text-align: left; }

.mp-blog-art { display: flex; align-items: center; justify-content: center; min-height: 240px; align-self: stretch; color: #c8bfff; background: var(--mp-navy); border-radius: 8px; }
.mp-blog-art svg { width: 100px; height: 120px; }
.mp-blog-feature-item .mp-blog-copy { order: -1; }
#html-body .mp-blog-card .post-title { font-size: 22px; line-height: 1.25; font-weight: 650; }
#html-body .mp-blog-feature-item .post-title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; font-weight: 650; }
#html-body .mp-blog-copy .post-description { margin: 12px 0 20px; }
#html-body .mp-blog-copy .post-data-wrap { margin: 12px 0; font-size: 13px; color: var(--mp-muted); }
@media (max-width: 767px) { .mp-blog-art { min-height: 160px; } .mp-blog-art svg { width: 72px; height: 84px; } }

/* Page Builder and Magefan carry native layout rules with higher specificity. */
#html-body .mp-in-split > .pagebuilder-column-line {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
}
#html-body.blog-page .columns { width: 100%; max-width: none; padding: 0 0 64px; }
#html-body.blog-page .column.main { width: 100%; }
#html-body .mp-blog-hero { font-weight: 400; }
#html-body .mp-blog-hero h1 { font-weight: 650; }
#html-body .mp-blog-list > .post-list {
    display: grid !important; width: 100% !important; max-width: 100%;
    margin: 0; padding: 0; box-sizing: border-box;
}
#html-body .mp-blog-list .post-item {
    display: grid !important; width: auto !important; min-width: 0;
    margin: 0 !important; padding: 24px !important; box-sizing: border-box;
}
#html-body .mp-blog-list .mp-blog-shot { display: block; min-width: 0; }
#html-body .mp-blog-list .mp-blog-shot img { display: block; width: 100%; height: auto; }
#html-body .mp-blog-list .mp-blog-feature-item { grid-column: 1 / -1; }
@media (max-width: 767px) {
    #html-body .mp-in-split > .pagebuilder-column-line { flex-wrap: wrap !important; }
    #html-body .mp-blog-list .post-item { padding: 20px !important; }
}

#html-body .breadcrumbs { background: var(--mp-wash) !important; color: var(--mp-ink) !important; }
#html-body .breadcrumbs :is(a, li, span, div) { color: var(--mp-muted) !important; }
#html-body .form-create-account .control.flex.items-center { width: 100%; flex-basis: 100%; }
#html-body .form-create-account .mp-password-ux-wrap { display: block; flex: 1 1 auto; min-width: 0; width: 100%; }
@media (max-width: 359px) {
    #header .mp-header { grid-template-columns: minmax(0, 1fr) 40px 40px 44px; }
}

#html-body .form-create-account .control.flex.items-center { flex-wrap: wrap; }
#html-body .form-create-account .mp-password-ux-note { flex: 0 0 100%; width: 100%; margin-top: 8px; }

#html-body .form-create-account .mp-password-ux-wrap { flex: 1 1 0; width: auto; }
#html-body .form-create-account .mp-password-ux-toggle { display: none; }

#html-body .mp-in-hero .mp-in-side { align-self: center !important; }
#html-body .mp-in-tabs { background: var(--mp-wash); }
#html-body .mp-in-tabs > [data-element="inner"] { width: min(100%, var(--mp-content)); margin: 0 auto !important; padding: 16px var(--mp-gutter) !important; }
#html-body .mp-in-tabs .mp-in-jumps { justify-content: space-between; margin: 0; }
@media (max-width: 767px) {
    #html-body .mp-in-tabs .mp-in-jumps { justify-content: flex-start; }
    #html-body .mp-in-side h2 { font-size: 21px; }
}

#html-body.blog-page .mp-blog-search {
    width: min(100% - (var(--mp-gutter) * 2), var(--mp-content));
    margin: 28px auto; padding: 0; border: 0; background: transparent;
}
#html-body .mp-blog-search form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; width: 100%; }
#html-body .mp-blog-search label { display: block; margin: 0; font-size: 24px; font-weight: 650; line-height: 1.25; color: var(--mp-ink); }
@media (max-width: 767px) { #html-body .mp-blog-search form { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

#html-body.blog-page .mp-blog-search { float: none; clear: both; }
#html-body .mp-blog-search form { padding: 0; }
#html-body .mp-blog-search label { position: static; width: auto; height: auto; clip: auto; overflow: visible; float: none; }
#html-body .mp-blog-list .post-title a { color: var(--mp-ink); }

#html-body .mp-in-band p { max-width: 70ch; }
#html-body .mp-in-band .mp-in-role { color: var(--mp-muted); }
#html-body .mp-in-band .mp-direct-contact a { color: var(--mp-ink); }
#html-body .mp-in-close .mp-in-side { background: transparent !important; padding: 0 !important; }
#html-body .mp-in-close .mp-in-side :is(p, a) { color: #fff !important; }
#html-body .mp-in-plans > .pagebuilder-column-line { flex-wrap: nowrap !important; }
@media (max-width: 1024px) { #html-body .mp-in-plans > .pagebuilder-column-line { flex-wrap: wrap !important; } }

#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-copy a:not(.pagebuilder-button-primary) { color: #c8bfff; }
#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact :is(p, h2, h3, legend, li) { color: var(--mp-ink); }
#html-body.mp-contact-page .mp-in-contact-hero .hyva-dev-contact a { color: var(--mp-accent); }
#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-form { min-width: 0; }
#html-body.mp-contact-page .mp-in-contact-hero .mp-contact-copy > :first-child { margin-top: 0; }
@media (max-width: 767px) {
    #html-body .mp-work-page .mp-project-copy { display: block !important; padding: 16px !important; }
    #html-body .mp-work-page .mp-project-copy > h3 { margin: 0 0 6px; }
    #html-body .mp-work-page .mp-project:not(.mp-project--lead) > [data-element="inner"] { padding: 16px !important; }
}

@media (max-width: 767px) {
    #html-body .mp-work-page .mp-project:not(.mp-project--lead) { padding: 16px !important; }
}

/* Keep the closing invitation at the same hierarchy as the page sections. */
#html-body .mp-in-close h2,
#html-body .mp-blog-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 2.4vw, 34px);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.025em;
}
#html-body .mp-in-close p,
#html-body .mp-blog-cta p { max-width: 68ch; margin-bottom: 16px; }
#html-body .mp-in-close .pagebuilder-button-primary { margin-block: 4px 12px; }
#html-body.mp-contact-page .mp-contact-form .mp-form-note a { color: #c8bfff; }
#html-body.mp-contact-page .mp-contact-copy .mp-direct-contact p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
