.maruart-consent-active .footer-bottom {
    display: none !important;
}

.maruart-legal-footer {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(250px, 1.05fr) minmax(280px, 1fr) minmax(260px, 0.95fr);
    align-items: start;
    gap: clamp(20px, 2.5vw, 40px);
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
}

.maruart-legal-footer > * {
    min-width: 0;
}

.maruart-legal-footer p {
    margin: 0;
}

.maruart-legal-footer__identity,
.maruart-legal-footer__documents,
.maruart-legal-footer__analytics {
    display: grid;
    align-content: start;
    gap: 8px;
}

.maruart-legal-footer__label {
    margin-bottom: 3px !important;
    color: rgba(255, 255, 255, 0.48) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.maruart-legal-footer__copyright {
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
}

.maruart-legal-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.maruart-legal-footer__analytics p:not(.maruart-legal-footer__label) {
    max-width: 390px;
}

.maruart-legal-footer a,
.maruart-consent-settings {
    color: inherit;
    overflow-wrap: anywhere;
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.maruart-consent-settings {
    appearance: none;
    justify-self: start;
    min-height: 42px;
    margin-top: 5px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    font: 700 12px/1.2 inherit;
    cursor: pointer;
    touch-action: manipulation;
}

.maruart-consent-settings:hover,
.maruart-consent-settings:focus-visible,
.maruart-legal-footer a:hover,
.maruart-legal-footer a:focus-visible {
    color: #fff;
}

.maruart-consent-settings:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.11);
}

.maruart-consent-settings:focus-visible,
.maruart-legal-footer a:focus-visible {
    outline: 3px solid rgba(255, 104, 184, 0.7);
    outline-offset: 3px;
}

.maruart-consent {
    position: fixed;
    z-index: 2147483000;
    right: 20px;
    bottom: 20px;
    left: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    gap: 22px;
    width: min(1120px, calc(100% - 40px));
    max-height: min(72vh, 560px);
    margin: 0 auto;
    padding: 24px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(19, 13, 29, 0.98);
    box-shadow: 0 18px 70px rgba(11, 4, 24, 0.42);
    color: #fff;
    font-family: inherit;
}

.maruart-consent[hidden] {
    display: none !important;
}

.maruart-consent__content {
    min-width: 0;
}

.maruart-consent__title {
    margin: 0 42px 10px 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.12;
}

.maruart-consent p {
    margin: 7px 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
}

.maruart-consent a {
    color: #fff;
    text-underline-offset: 3px;
}

.maruart-consent__status:empty {
    display: none;
}

.maruart-consent__status {
    color: #ffcbec !important;
}

.maruart-consent__actions {
    display: grid;
    align-content: center;
    grid-template-columns: 1fr;
    gap: 10px;
}

.maruart-consent__button {
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font: 700 14px/1.2 inherit;
    cursor: pointer;
}

.maruart-consent__button--allow {
    border-color: transparent;
    background: linear-gradient(110deg, #ff4fa5, #8b54ff);
    color: #fff;
}

.maruart-consent__button--deny {
    background: transparent;
    color: #fff;
}

.maruart-consent__button:hover,
.maruart-consent__button:focus-visible {
    transform: translateY(-1px);
    outline: 3px solid rgba(255, 255, 255, 0.34);
    outline-offset: 2px;
}

.maruart-consent__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 300 28px/34px Arial, sans-serif;
    cursor: pointer;
}

.maruart-consent__close:focus-visible {
    outline: 3px solid #ff78ba;
    outline-offset: 2px;
}

.maruart-legal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.maruart-legal-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.maruart-legal-table-wrap th,
.maruart-legal-table-wrap td {
    padding: 10px;
    border: 1px solid rgba(20, 15, 28, 0.18);
    text-align: left;
    vertical-align: top;
}

/* Technical and legal pages use a raw post-content template in the theme. */
.maruart-legal-page {
    background: #f7f4ef;
}

.maruart-legal-page .entry-content.reference-content {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 150px 0 110px !important;
    color: #251f2b;
    font-size: 18px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.maruart-legal-page .entry-content.reference-content > * {
    max-width: 100%;
}

.maruart-legal-page .entry-content.reference-content h1 {
    max-width: 980px;
    margin: 0 0 28px;
    color: #150f1d;
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.04;
    text-wrap: balance;
}

.maruart-legal-page .entry-content.reference-content h2 {
    margin: 58px 0 20px;
    color: #1c1525;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-wrap: balance;
}

.maruart-legal-page .entry-content.reference-content h3 {
    margin: 34px 0 14px;
    color: #2b2134;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 750;
    line-height: 1.3;
}

.maruart-legal-page .entry-content.reference-content h1,
.maruart-legal-page .entry-content.reference-content h2,
.maruart-legal-page .entry-content.reference-content h3,
.maruart-legal-page .entry-content.reference-content h4 {
    scroll-margin-top: 130px;
}

.maruart-legal-page .entry-content.reference-content p,
.maruart-legal-page .entry-content.reference-content ul,
.maruart-legal-page .entry-content.reference-content ol {
    margin-top: 0;
    margin-bottom: 18px;
}

.maruart-legal-page .entry-content.reference-content ul,
.maruart-legal-page .entry-content.reference-content ol {
    padding-left: 1.4em;
}

.maruart-legal-page .entry-content.reference-content li {
    margin: 7px 0;
    padding-left: 0.25em;
}

.maruart-legal-page .entry-content.reference-content strong {
    color: #17101f;
}

.maruart-legal-page .entry-content.reference-content a {
    color: #6e2fc5;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.maruart-legal-page .entry-content.reference-content a:hover {
    color: #a62f78;
}

.maruart-legal-page .entry-content.reference-content a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(139, 84, 255, 0.32);
    outline-offset: 3px;
}

.maruart-legal-page .maruart-legal-table-wrap {
    margin: 28px 0 36px;
    border: 1px solid rgba(39, 25, 50, 0.14);
    border-radius: 18px;
    background: #fff;
}

.maruart-legal-page .maruart-legal-table-wrap th,
.maruart-legal-page .maruart-legal-table-wrap td {
    padding: 14px 16px;
    border-color: rgba(39, 25, 50, 0.12);
}

.maruart-legal-page .maruart-legal-table-wrap th {
    background: rgba(139, 84, 255, 0.08);
    color: #21172b;
}

/*
 * WordPress' flow-layout reset forces direct post-content children to the
 * viewport width. Restore the intended centered card for the course reading
 * links without changing the layout of the surrounding course sections.
 */
body .entry-content.reference-content > .maruart-seo-links {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    margin: clamp(28px, 3vw, 40px) auto !important;
    overflow-wrap: anywhere;
}

body .entry-content.reference-content > .maruart-seo-links h2 {
    text-wrap: balance;
}

/* Intent-focused SEO copy: readable first, keyword coverage second. */
.maruart-seo-copy {
    box-sizing: border-box;
    padding: clamp(58px, 7vw, 92px) 0;
    background: #f7f1ea;
    color: #17101f;
}

.maruart-seo-copy__inner {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.maruart-seo-copy__eyebrow {
    margin: 0 0 14px;
    color: #7d7182;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.maruart-seo-copy h2 {
    max-width: 920px;
    margin: 0;
    color: #17101f;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.maruart-seo-copy__lead {
    max-width: 900px;
    margin: 24px 0 0;
    color: #5f5664;
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.65;
}

.maruart-seo-copy__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.maruart-seo-copy__card {
    min-width: 0;
    padding: clamp(22px, 2.3vw, 30px);
    border: 1px solid rgba(39, 25, 50, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
}

.maruart-seo-copy__card h3 {
    margin: 0 0 14px;
    color: #17101f;
    font-size: clamp(20px, 1.8vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.maruart-seo-copy__card p {
    margin: 0;
    color: #625868;
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .maruart-seo-copy__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .maruart-seo-copy {
        padding: 48px 0;
    }

    .maruart-seo-copy__inner {
        width: min(100% - 32px, 1180px);
    }

    .maruart-seo-copy h2 {
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.08;
    }

    .maruart-seo-copy__lead {
        margin-top: 18px;
        font-size: 17px;
        line-height: 1.58;
    }

    .maruart-seo-copy__grid {
        gap: 12px;
        margin-top: 24px;
    }

    .maruart-seo-copy__card {
        padding: 20px;
        border-radius: 20px;
    }
}

/* Keep the shared footer compact and leave legal details in one place. */
.maruart-consent-active .site-footer {
    padding: 56px 0 24px;
}

.maruart-consent-active .footer-shell {
    gap: 26px 40px;
}

.maruart-consent-active .footer-brand,
.maruart-consent-active .footer-column,
.maruart-consent-active .footer-contact {
    align-self: start;
}

.maruart-consent-active .footer-column {
    gap: 4px;
}

.maruart-consent-active .footer-column a {
    min-height: 36px;
}

.maruart-consent-active .footer-contact {
    padding: 22px;
}

.maruart-consent-active .footer-contact h2 {
    margin-bottom: 18px;
}

.maruart-consent-active .footer-shell > .footer-column > a[href$="/requisites/"] {
    display: none;
}

/* Move article authorship and dates from behind the fixed header into the hero. */
body.single-post .entry-content.reference-content > .maruart-article-meta {
    display: none;
}

body.single-post .article-hero {
    padding-bottom: 32px;
}

body.single-post .article-hero .maruart-article-meta--relocated {
    position: static;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    width: 100%;
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.5;
}

body.single-post .article-hero .maruart-article-meta--relocated span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

body.single-post .article-hero .maruart-article-meta--relocated a,
body.single-post .article-hero .maruart-article-meta--relocated time {
    color: rgba(255, 255, 255, 0.88);
    font-variant-numeric: tabular-nums;
}

body.single-post .article-hero .maruart-article-meta--relocated a {
    text-decoration-color: rgba(255, 255, 255, 0.36);
    text-underline-offset: 4px;
}

body.single-post .article-hero .maruart-article-meta--relocated a:hover {
    color: #fff;
}

body.single-post .article-hero .maruart-article-meta--relocated a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(255, 104, 184, 0.7);
    outline-offset: 3px;
}

/*
 * Shared visual rhythm. The theme's original 120px section padding and
 * 78–92px display headings make long Russian titles look oversized and add
 * unnecessary empty space on content-heavy pages. Keep the expressive scale
 * while bringing every template onto one compact responsive system.
 */
.maruart-consent-active .section-padding {
    padding-block: clamp(76px, 6.5vw, 94px);
}

.maruart-consent-active .hero {
    padding-top: 132px;
}

.maruart-consent-active .page-hero,
.maruart-consent-active .contacts-hero {
    padding-bottom: 72px;
}

.maruart-consent-active .blog-hero {
    padding-bottom: 70px;
}

.maruart-consent-active .page-cta {
    padding-block: clamp(76px, 6vw, 90px);
}

.maruart-consent-active .final-cta {
    padding-block: clamp(76px, 6vw, 90px);
}

.maruart-consent-active.single-post .article-body {
    padding-bottom: 88px;
}

.maruart-consent-active .hero h1,
.maruart-consent-active .page-hero-copy h1,
.maruart-consent-active .blog-hero h1,
.maruart-consent-active .article-hero h1,
.maruart-consent-active .contacts-copy h1 {
    font-size: clamp(48px, 5.25vw, 78px);
    line-height: 1;
    text-wrap: balance;
}

/*
 * Keep the same title accent on the home hero and inner page heroes. The
 * theme scopes its original gradient to page-hero, so the identical class in
 * the home hero otherwise falls back to white. Cloned inline padding keeps
 * the edge of Cyrillic glyphs from being clipped after a mobile line wrap.
 */
.maruart-consent-active .maruart-gradient-text {
    background: linear-gradient(105deg, #ff80bd 2%, #a783ff 51%, #62e9ec 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-inline: 0.04em;
    margin-inline: -0.04em;
}

.maruart-consent-active .page-cta h2,
.maruart-consent-active .final-cta h2 {
    font-size: clamp(40px, 4.6vw, 64px);
    text-wrap: balance;
}

.maruart-legal-page .entry-content.reference-content h1 {
    font-size: clamp(36px, 4.2vw, 58px);
    line-height: 1.08;
}

/* New square artwork contains typography and must never be cropped. */
.maruart-home-page .hero-image-wrap,
.maruart-course-page .page-hero-image,
.maruart-course-page .result-poster,
.maruart-custom-videos-page .page-hero-image,
.maruart-custom-videos-page .personal-story-visual,
.maruart-about-page .page-hero-image,
.maruart-ai-video-post .article-hero-image,
.maruart-blog-page .blog-featured-image,
.maruart-useful-ai-post .article-hero-image {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    background: #f8f3ef;
}

.maruart-home-page .hero-image-wrap > img,
.maruart-course-page .page-hero-image > img,
.maruart-course-page .result-poster > img,
.maruart-custom-videos-page .page-hero-image > img,
.maruart-custom-videos-page .personal-story-visual > img,
.maruart-about-page .page-hero-image > img,
.maruart-ai-video-post .article-hero-image > img,
.maruart-blog-page .blog-featured-image > img,
.maruart-useful-ai-post .article-hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

/* Keep the hero artwork labels clear on desktop. */
@media (min-width: 1024px) {
    .maruart-home-page .floating-card-top {
        top: 52px !important;
    }
}

/* Portrait source files are taller than the character cards. Anchor them at
 * the top so hair and heads are not cut off by the card crop. */
.maruart-home-page .character-card-mother > img,
.maruart-home-page .character-card-father > img {
    object-position: center top !important;
}

/* The new blog cover is square and contains important typography. The
 * featured card uses the same square ratio instead of letterboxing it. */
.maruart-home-page .article-featured .article-image {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    background: #f6f2f3;
    aspect-ratio: 1 / 1 !important;
}

.maruart-home-page .article-featured .article-image > img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

@media (min-width: 900px) {
    .maruart-home-page .article-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    .maruart-home-page .article-featured {
        display: grid !important;
        grid-template-columns: clamp(320px, 31vw, 390px) minmax(0, 1fr);
        align-items: center;
        align-self: auto;
        height: auto !important;
        min-height: 0 !important;
    }

    .maruart-home-page .article-featured .article-image {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        align-self: center;
        aspect-ratio: 1 / 1 !important;
        background: #f6f2f3;
    }

    .maruart-home-page .article-featured .article-image > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .maruart-home-page .article-featured .article-copy {
        display: flex;
        min-width: 0;
        height: auto;
        padding: 44px 52px !important;
        flex-direction: column;
        justify-content: center;
    }

    .maruart-home-page .article-stack {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto !important;
        gap: 18px !important;
        height: auto !important;
    }

    .maruart-home-page .article-stack .article-card {
        height: auto !important;
        min-height: 210px !important;
    }
}

/* wpautop can insert an empty paragraph between the note icon and its copy.
 * Apply the repair to every blog post (including future publications), then
 * pin the real copy to the wide grid column so it can never fall into the
 * 35px icon column. */
.single-post .article-note {
    grid-template-columns: 35px minmax(0, 1fr) !important;
    align-items: start;
}

.single-post .article-note > p:empty {
    display: none !important;
}

.single-post .article-note > span:first-child {
    grid-column: 1;
    grid-row: 1;
}

.single-post .article-note__copy,
.single-post .article-note > p:not(:empty) {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: normal;
}

/* Keep every public photo frame in the approved 1:1, 4:3 or 16:9 family. */
.maruart-home-page .author-visual {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0;
}

.maruart-home-page .author-image {
    inset: 0 !important;
    height: auto !important;
    border-radius: 34px !important;
}

.maruart-home-page .author-image > img,
.maruart-about-page .founder-card-image > img {
    object-fit: cover !important;
    object-position: center 34% !important;
}

.maruart-home-page .character-card {
    aspect-ratio: 1 / 1 !important;
    height: 150px !important;
}

.maruart-home-page .character-card > img {
    object-fit: cover !important;
    object-position: center top !important;
}

.maruart-about-page .founder-card-image {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}

/* Award section: preserve the portrait certificate without forcing the rest
 * of the author page back to vertical editorial artwork. */
.maruart-about-certificate {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(64px, 7vw, 108px) clamp(20px, 4vw, 72px);
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 61, 145, 0.18), transparent 34%),
        radial-gradient(circle at 91% 82%, rgba(107, 89, 255, 0.2), transparent 36%),
        #100c19;
}

.maruart-about-certificate::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

.maruart-about-certificate__shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.68fr);
    grid-template-areas:
        "copy figure"
        "action figure";
    gap: 34px clamp(48px, 7vw, 112px);
    align-items: center;
    width: min(100%, 1240px);
    margin-inline: auto;
}

.maruart-about-certificate__copy {
    grid-area: copy;
    align-self: end;
    min-width: 0;
}

.maruart-about-certificate__eyebrow {
    margin: 0 0 20px;
    color: #ff4b9b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.maruart-about-certificate__award {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    min-height: 44px;
    margin: 0 0 28px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.35;
}

.maruart-about-certificate__award strong {
    color: #fff;
    font-size: 16px;
}

.maruart-about-certificate h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 4.3vw, 64px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.maruart-about-certificate__copy > p:not([class]) {
    max-width: 660px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.65;
    text-wrap: pretty;
}

.maruart-about-certificate__link {
    display: inline-flex;
    grid-area: action;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    justify-self: start;
    align-self: start;
    margin-top: 0;
    padding: 0 24px;
    border-radius: 18px;
    background: linear-gradient(120deg, #ff3d91, #ff6650);
    box-shadow: 0 16px 42px rgba(255, 61, 145, 0.24);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.maruart-about-certificate__link:hover {
    box-shadow: 0 20px 48px rgba(255, 61, 145, 0.34);
    color: #fff;
    transform: translateY(-2px);
}

.maruart-about-certificate__link:focus-visible,
.maruart-about-certificate__frame:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 5px;
}

.maruart-about-certificate__figure {
    grid-area: figure;
    justify-self: end;
    width: min(100%, 520px);
    margin: 0;
}

.maruart-about-certificate__frame {
    display: block;
    padding: clamp(10px, 1vw, 14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(148, 117, 255, 0.12));
    box-shadow: 0 32px 84px rgba(0, 0, 0, 0.42);
    text-decoration: none;
}

.maruart-about-certificate__frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 25px;
    background: #fff;
}

.maruart-about-certificate__figure figcaption {
    margin: 18px 8px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 780px) {
    .maruart-about-certificate {
        padding: 52px 18px 58px;
    }

    .maruart-about-certificate__shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "figure"
            "action";
        gap: 30px;
    }

    .maruart-about-certificate__award {
        margin-bottom: 22px;
    }

    .maruart-about-certificate h2 {
        font-size: clamp(34px, 10.5vw, 46px);
        line-height: 1.05;
    }

    .maruart-about-certificate__copy > p:not([class]) {
        margin-top: 22px;
        font-size: 17px;
        line-height: 1.58;
    }

    .maruart-about-certificate__link {
        align-self: auto;
        width: 100%;
        margin-top: -4px;
    }

    .maruart-about-certificate__figure {
        justify-self: center;
    }

    .maruart-about-certificate__copy {
        align-self: auto;
    }

    .maruart-about-certificate__frame {
        border-radius: 26px;
    }

    .maruart-about-certificate__frame img {
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maruart-about-certificate__link {
        transition: none;
    }
}

/* The character-system artwork and its frame are square at both breakpoints. */
.maruart-studio-page .poster-grid .poster-item:last-child > div {
    aspect-ratio: 1 / 1 !important;
}

.maruart-studio-page .poster-grid .poster-item:last-child img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.maruart-studio-page img[src*="studio-character-period.jpg"] {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

/* Studio hero artwork contains its own typography, so both breakpoints keep
 * the complete square instead of cropping it into the old project poster. */
.maruart-studio-page .page-hero-image {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    background: #f8f3ef;
}

.maruart-studio-page .page-hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

/* The project portrait uses the square Mia and Rex artwork. Parent portraits
 * use compact horizontal cards so their faces remain fully visible without
 * the empty vertical columns produced by the original three-column grid. */
.maruart-projects-page .page-hero-image {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    background: #f8f3ef;
}

.maruart-projects-page .page-hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.maruart-projects-page .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
}

.maruart-projects-page .character-feature {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    height: auto !important;
    min-height: 0;
}

.maruart-projects-page .character-feature-image {
    aspect-ratio: 1 / 1 !important;
    background: #f8f3ef;
}

.maruart-projects-page .character-feature-image > img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

.maruart-projects-page .character-person {
    display: grid !important;
    grid-template-columns: minmax(150px, 0.62fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 7px 22px;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
}

.maruart-projects-page .character-person > div {
    grid-row: 1 / 3;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #fff;
}

.maruart-projects-page .character-person > span {
    align-self: end;
    margin: 0 !important;
}

.maruart-projects-page .character-person > h3 {
    align-self: start;
    margin: 0 !important;
    text-wrap: balance;
}

.maruart-projects-page .character-person img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center top !important;
}

.maruart-article-photo-material {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin: 34px auto 48px;
}

.maruart-article-photo-material img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
}

.maruart-article-photo-material figcaption {
    color: rgba(34, 26, 42, 0.62);
    font-size: 13px;
    line-height: 1.55;
}

/* Reviews page: the raw WordPress content wrapper becomes a full-width page. */
.maruart-reviews-page .entry-content.reference-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.maruart-reviews-main {
    background: #fbf7f2;
    color: #17111f;
}

.maruart-reviews-hero {
    padding: 148px 0 84px;
}

.maruart-reviews-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(42px, 6vw, 88px);
}

.maruart-reviews-hero h1 {
    max-width: 920px;
    margin: 18px 0 24px;
    font-size: clamp(48px, 5.25vw, 78px);
    line-height: 1;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.maruart-reviews-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(30, 22, 37, 0.68);
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1.58;
}

.maruart-reviews-cover {
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(95, 47, 79, 0.16);
}

.maruart-reviews-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.maruart-reviews-support {
    padding: clamp(58px, 6vw, 84px) 0 0;
    background: #fbf7f2;
}

.maruart-reviews-support__card {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(34px, 5vw, 76px);
    padding: clamp(34px, 5vw, 66px);
    overflow: hidden;
    border: 1px solid rgba(111, 55, 104, 0.11);
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 116, 184, 0.24), transparent 28%),
        linear-gradient(135deg, #fff4f7 0%, #f6efff 56%, #fff8f2 100%);
    box-shadow: 0 22px 60px rgba(81, 43, 78, 0.08);
}

.maruart-reviews-support h2 {
    max-width: 620px;
    margin: 16px 0 0;
    color: #1d1424;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.maruart-reviews-support__copy {
    align-self: center;
}

.maruart-reviews-support__copy p {
    margin: 0 0 18px;
    color: rgba(30, 22, 37, 0.72);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.7;
}

.maruart-reviews-support__copy p:last-of-type {
    margin-bottom: 0;
}

.maruart-reviews-support__emotions {
    margin-top: 22px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0.14em;
    line-height: 1;
}

.maruart-reviews-heading {
    max-width: 820px;
    margin-bottom: 42px;
}

.maruart-reviews-heading h2 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 4.3vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.maruart-reviews-heading p {
    margin: 0;
    color: rgba(30, 22, 37, 0.64);
    font-size: 17px;
    line-height: 1.65;
}

.maruart-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.maruart-review-card {
    aspect-ratio: 1 / 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(42, 28, 50, 0.1);
    border-radius: 22px;
    background: #f2edf1;
    box-shadow: 0 16px 46px rgba(48, 28, 55, 0.08);
}

.maruart-review-card__link {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    color: #211827;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.maruart-review-card__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(48, 28, 55, 0.13);
}

.maruart-review-card__link:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: -4px;
}

.maruart-review-card__image {
    display: grid;
    min-height: 0;
    padding: 14px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 244, 248, 0.96));
}

.maruart-review-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.maruart-review-card figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px 15px;
    border-top: 1px solid rgba(42, 28, 50, 0.09);
    background: #fff;
    color: rgba(33, 24, 39, 0.58);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.maruart-review-card figcaption span:first-child {
    color: #211827;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.maruart-reviews-swipe-hint {
    display: none;
}

.maruart-blog-card-useful > div:first-child {
    background: #fff5f0;
}

.maruart-blog-card-useful img {
    object-fit: cover !important;
    object-position: center !important;
}

.maruart-blog-extra-grid .blog-card > div:first-child {
    aspect-ratio: 1 / 1 !important;
}

.maruart-blog-extra-grid .blog-card > div:first-child > img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

.maruart-blog-page img[src*="blog-image-generation-wide.jpg"],
.maruart-blog-page img[src*="blog-voice-generation-wide.jpg"],
.maruart-ai-image-post .article-hero-image > img,
.maruart-ai-voice-post .article-hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
}

.maruart-blog-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1080px) {
    .maruart-blog-extra-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maruart-legal-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maruart-legal-footer__analytics {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .maruart-legal-footer__analytics .maruart-legal-footer__label {
        grid-column: 1 / -1;
    }

    .maruart-legal-footer__analytics .maruart-consent-settings {
        margin: 0;
    }

    .maruart-reviews-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
        gap: 42px;
    }

    .maruart-review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .maruart-consent {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        grid-template-columns: 1fr;
        gap: 14px;
        width: calc(100% - 20px);
        max-height: 68vh;
        padding: 20px 16px 16px;
        border-radius: 20px;
    }

    .maruart-consent p {
        font-size: 13px;
    }

    .maruart-consent__actions {
        grid-template-columns: 1fr 1fr;
    }

    .maruart-consent__button {
        min-height: 52px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .maruart-legal-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
        margin-top: 0;
        padding-top: 22px;
    }

    .maruart-legal-footer__analytics {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .maruart-legal-footer__analytics .maruart-legal-footer__label {
        grid-column: 1 / -1;
    }

    .maruart-legal-footer__analytics .maruart-consent-settings {
        margin: 0;
    }

    .maruart-legal-footer__links {
        display: grid;
        justify-items: start;
        gap: 8px;
    }

    .maruart-consent-active .site-footer {
        padding: 48px 0 24px;
    }

    .maruart-consent-active .footer-shell {
        gap: 24px 20px;
    }

    .maruart-consent-active .footer-column a {
        min-height: 44px;
    }

    body.single-post .article-hero {
        padding-bottom: 24px;
    }

    body.single-post .article-hero .maruart-article-meta--relocated {
        gap: 7px 14px;
        margin-top: 18px;
        padding-top: 16px;
        font-size: 11px;
    }

    .maruart-consent-active .section-padding {
        padding-block: 56px;
    }

    .maruart-consent-active .hero {
        padding: 104px 0 68px;
    }

    .maruart-consent-active .hero-grid {
        gap: 40px;
    }

    .maruart-consent-active .page-hero,
    .maruart-consent-active .contacts-hero {
        padding-bottom: 56px;
    }

    .maruart-consent-active .page-hero-grid,
    .maruart-consent-active .blog-hero-grid,
    .maruart-consent-active .article-hero-grid,
    .maruart-consent-active .contacts-grid {
        gap: 34px;
    }

    .maruart-consent-active .blog-hero {
        padding-bottom: 52px;
    }

    .maruart-consent-active .page-cta,
    .maruart-consent-active .final-cta {
        padding-block: 64px;
    }

    .maruart-consent-active.single-post .article-body {
        padding-bottom: 64px;
    }

    .maruart-consent-active .hero h1,
    .maruart-consent-active .page-hero-copy h1,
    .maruart-consent-active .blog-hero h1,
    .maruart-consent-active .article-hero h1,
    .maruart-consent-active .contacts-copy h1 {
        font-size: clamp(36px, 10.8vw, 42px);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .maruart-consent-active .page-cta h2,
    .maruart-consent-active .final-cta h2 {
        font-size: clamp(32px, 9.5vw, 38px);
        line-height: 1.06;
    }

    .maruart-legal-page .entry-content.reference-content {
        width: min(calc(100% - 32px), 720px) !important;
        padding: 124px 0 76px !important;
        font-size: 16px;
        line-height: 1.68;
    }

    .maruart-legal-page .entry-content.reference-content h1 {
        margin-bottom: 22px;
        font-size: clamp(30px, 8.8vw, 36px);
        letter-spacing: -0.035em;
        line-height: 1.1;
    }

    .maruart-legal-page .entry-content.reference-content h2 {
        margin-top: 44px;
        font-size: clamp(25px, 7vw, 32px);
    }

    .maruart-legal-page .entry-content.reference-content h3 {
        margin-top: 28px;
        font-size: 21px;
    }

    .maruart-legal-page .entry-content.reference-content h1,
    .maruart-legal-page .entry-content.reference-content h2,
    .maruart-legal-page .entry-content.reference-content h3,
    .maruart-legal-page .entry-content.reference-content h4 {
        scroll-margin-top: 112px;
    }

    .maruart-legal-page .maruart-legal-table-wrap table {
        min-width: 680px;
    }

    body .entry-content.reference-content > .maruart-seo-links {
        width: calc(100% - 32px) !important;
        margin: 24px auto !important;
    }

    .maruart-reviews-hero {
        padding: 118px 0 58px;
    }

    .maruart-reviews-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .maruart-reviews-hero h1 {
        margin: 14px 0 18px;
        font-size: clamp(36px, 10.8vw, 42px);
        line-height: 1.04;
    }

    .maruart-reviews-hero p {
        font-size: 17px;
    }

    .maruart-reviews-cover {
        width: min(100%, 560px);
        justify-self: center;
        border-radius: 24px;
    }

    .maruart-reviews-heading {
        margin-bottom: 28px;
    }

    .maruart-reviews-support {
        padding-top: 42px;
    }

    .maruart-reviews-support__card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 22px;
        border-radius: 24px;
    }

    .maruart-reviews-support h2 {
        font-size: clamp(32px, 9.5vw, 38px);
        line-height: 1.06;
    }

    .maruart-reviews-support__copy p {
        font-size: 16px;
        line-height: 1.65;
    }

    .maruart-reviews-heading h2 {
        font-size: clamp(32px, 9.5vw, 38px);
        line-height: 1.06;
    }

    .maruart-review-grid {
        grid-template-columns: none;
        grid-auto-columns: min(80vw, 310px);
        grid-auto-flow: column;
        gap: 14px;
        padding: 4px 18px 18px 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 0 18px;
        scroll-snap-type: inline mandatory;
        scrollbar-color: rgba(86, 54, 91, 0.3) transparent;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .maruart-blog-extra-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .maruart-review-card {
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        border-radius: 16px;
    }

    .maruart-review-card__image {
        padding: 10px;
    }

    .maruart-review-card figcaption {
        padding: 12px 13px;
        font-size: 11px;
    }

    .maruart-reviews-swipe-hint {
        display: block;
        margin-top: 12px !important;
        color: rgba(30, 22, 37, 0.52) !important;
        font-size: 13px !important;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .maruart-article-photo-material {
        margin: 26px auto 36px;
    }

    .maruart-article-photo-material img {
        border-radius: 18px;
    }

    .maruart-projects-page .character-grid {
        grid-template-columns: 1fr !important;
    }

    .maruart-projects-page .character-feature {
        grid-column: auto;
        display: block !important;
    }

    .maruart-projects-page .character-person {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 6px 16px;
        padding: 10px !important;
    }

    /* A square cover in a 16:9 slot becomes unreadably small on phones. */
    .maruart-home-page .article-featured .article-image {
        aspect-ratio: 1 / 1 !important;
    }
}

@media (max-width: 430px) {
    .maruart-consent__actions {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {
    .maruart-review-card__link {
        transition: none;
    }
}

@media (max-width: 360px) {
    .maruart-legal-footer {
        grid-template-columns: 1fr;
    }

    .maruart-legal-footer__analytics {
        grid-column: auto;
        grid-template-columns: 1fr;
        align-items: start;
    }
}

/*
 * Compact spacing system, v2.
 * The original theme combines large section padding with fixed card heights
 * and oversized gaps after card labels. That creates stacked empty areas at
 * section boundaries and inside otherwise short cards. Keep the visual rhythm
 * but let content, rather than an arbitrary minimum, determine block height.
 */
.maruart-consent-active .section-padding {
    padding-block: 64px;
}

.maruart-consent-active .hero {
    padding-top: 116px;
}

.maruart-consent-active .page-hero,
.maruart-consent-active .contacts-hero {
    min-height: 0;
    padding-bottom: 56px;
}

.maruart-consent-active .breadcrumbs {
    padding-top: 104px;
}

.maruart-consent-active .page-hero-grid,
.maruart-consent-active .blog-hero-grid,
.maruart-consent-active .article-hero-grid,
.maruart-consent-active .contacts-grid {
    padding-top: 36px;
}

.maruart-consent-active .blog-hero {
    padding-bottom: 56px;
}

.maruart-consent-active .page-cta,
.maruart-consent-active .final-cta {
    padding-block: 64px;
}

.maruart-consent-active .maruart-seo-copy {
    padding-block: 64px;
}

.maruart-consent-active.single-post .article-body {
    padding-top: 72px;
    padding-bottom: 64px;
}

.maruart-consent-active.single-post .article-content > section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.maruart-consent-active.single-post .article-content > section:first-child {
    padding-top: 0;
}

.maruart-consent-active.single-post .article-content > section:last-child {
    padding-bottom: 0;
}

.maruart-consent-active .site-footer {
    padding: 40px 0 24px;
}

.maruart-consent-active .section-heading {
    margin-bottom: 40px;
}

.maruart-consent-active .manifesto-title {
    margin-bottom: 40px;
}

.maruart-consent-active .blog-coming {
    margin-top: 40px;
}

.maruart-consent-active .direction-card,
.maruart-consent-active .module-card,
.maruart-consent-active .format-card,
.maruart-consent-active .audience-card,
.maruart-consent-active .tool-cluster-card,
.maruart-consent-active .service-card,
.maruart-consent-active .occasion-card,
.maruart-consent-active .project-type-card,
.maruart-consent-active .principles-grid > article,
.maruart-consent-active .process-line > article,
.maruart-consent-active .manifesto-grid > article,
.maruart-consent-active .contact-route-grid > article {
    min-height: 0 !important;
}

.maruart-consent-active .format-index {
    margin-bottom: 42px;
}

/* Give every course stage its own brand accent instead of repeating a
 * three-colour cycle. Text colours are paired for readable contrast. */
.maruart-home-page .modules-grid > .module-card:nth-child(1) .module-number {
    background: #13101c !important;
    color: #ffffff !important;
}

.maruart-home-page .modules-grid > .module-card:nth-child(2) .module-number {
    background: #ffd84d !important;
    color: #17101f !important;
}

.maruart-home-page .modules-grid > .module-card:nth-child(3) .module-number {
    background: #ff4fa3 !important;
    color: #17101f !important;
}

.maruart-home-page .modules-grid > .module-card:nth-child(4) .module-number {
    background: #43d3cf !important;
    color: #17101f !important;
}

.maruart-home-page .modules-grid > .module-card:nth-child(5) .module-number {
    background: #6f49d8 !important;
    color: #ffffff !important;
}

.maruart-home-page .modules-grid > .module-card:nth-child(6) .module-number {
    background: #ff704d !important;
    color: #17101f !important;
}

.maruart-consent-active .audience-card > span:first-child,
.maruart-consent-active .occasion-card > span:first-child,
.maruart-consent-active .project-type-card > span:first-child,
.maruart-consent-active .principles-grid > article > span:first-child,
.maruart-consent-active .process-line > article > span:first-child,
.maruart-consent-active .manifesto-grid > article > span:first-child,
.maruart-consent-active .contact-route-grid > article > span:first-child {
    margin-bottom: 36px;
}

.maruart-consent-active .tool-cluster-card > span:first-child {
    margin-bottom: 32px;
}

.maruart-consent-active .service-head {
    margin-bottom: 38px;
}

.maruart-consent-active .contact-route-grid .button-dark {
    margin-top: 32px;
}

.maruart-consent-active .maruart-seo-copy__grid {
    align-items: start;
}

.maruart-legal-page .entry-content.reference-content {
    padding-top: 126px !important;
    padding-bottom: 72px !important;
}

.maruart-legal-page .entry-content.reference-content h2 {
    margin-top: 46px;
}

.maruart-reviews-hero {
    padding: 126px 0 64px;
}

.maruart-reviews-support {
    padding-top: 58px;
}

.maruart-reviews-support__card {
    padding: 42px;
}

.maruart-reviews-heading {
    margin-bottom: 34px;
}

@media (max-width: 760px) {
    .maruart-consent-active .section-padding {
        padding-block: 44px;
    }

    .maruart-consent-active .hero {
        padding: 96px 0 56px;
    }

    .maruart-consent-active .page-hero,
    .maruart-consent-active .contacts-hero {
        padding-bottom: 44px;
    }

    .maruart-consent-active .breadcrumbs {
        padding-top: 96px;
    }

    .maruart-consent-active .page-hero-grid,
    .maruart-consent-active .blog-hero-grid,
    .maruart-consent-active .article-hero-grid,
    .maruart-consent-active .contacts-grid {
        gap: 28px;
        padding-top: 28px;
    }

    .maruart-consent-active .blog-hero {
        padding-bottom: 44px;
    }

    .maruart-consent-active .page-cta,
    .maruart-consent-active .final-cta {
        padding-block: 52px;
    }

    .maruart-consent-active .maruart-seo-copy {
        padding-block: 44px;
    }

    .maruart-consent-active.single-post .article-body {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .maruart-consent-active.single-post .article-content > section {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .maruart-consent-active .site-footer {
        padding: 36px 0 20px;
    }

    .maruart-consent-active .section-heading,
    .maruart-consent-active .manifesto-title {
        margin-bottom: 28px;
    }

    .maruart-consent-active .blog-coming {
        margin-top: 28px;
    }

    .maruart-consent-active .format-index,
    .maruart-consent-active .audience-card > span:first-child,
    .maruart-consent-active .occasion-card > span:first-child,
    .maruart-consent-active .project-type-card > span:first-child,
    .maruart-consent-active .principles-grid > article > span:first-child,
    .maruart-consent-active .process-line > article > span:first-child,
    .maruart-consent-active .manifesto-grid > article > span:first-child,
    .maruart-consent-active .contact-route-grid > article > span:first-child,
    .maruart-consent-active .tool-cluster-card > span:first-child,
    .maruart-consent-active .service-head {
        margin-bottom: 28px;
    }

    .maruart-consent-active .contact-route-grid .button-dark {
        margin-top: 24px;
    }

    .maruart-legal-page .entry-content.reference-content {
        padding-top: 112px !important;
        padding-bottom: 56px !important;
    }

    .maruart-legal-page .entry-content.reference-content h2 {
        margin-top: 36px;
    }

    .maruart-reviews-hero {
        padding: 104px 0 48px;
    }

    .maruart-reviews-support {
        padding-top: 32px;
    }

    .maruart-reviews-support__card {
        padding: 24px 20px;
    }

    .maruart-reviews-heading {
        margin-bottom: 24px;
    }
}

/* Compact editorial CTA for the public Telegram channel. */
.maruart-channel-cta {
    padding: 44px 0;
    background: #f7f2eb;
}

.maruart-channel-cta__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 34px 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 18%, rgba(255, 79, 163, 0.24), transparent 35%),
        linear-gradient(130deg, #11101a 0%, #1c1729 62%, #2b1830 100%);
    box-shadow: 0 18px 46px rgba(24, 17, 36, 0.13);
    color: #fff;
}

.maruart-channel-cta__copy {
    max-width: 760px;
}

.maruart-channel-cta__copy .eyebrow {
    display: block;
    margin-bottom: 14px;
}

.maruart-channel-cta__copy h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.maruart-channel-cta__copy p {
    max-width: 720px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.58;
}

.maruart-channel-cta__button {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 62px;
    max-width: 390px;
    padding: 15px 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: linear-gradient(110deg, #ff3d9a 0%, #ff5e4d 100%);
    box-shadow: 0 15px 34px rgba(255, 63, 139, 0.25);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.maruart-channel-cta__button svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.maruart-channel-cta__button strong {
    display: block;
    font-weight: 800;
}

.maruart-channel-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 42px rgba(255, 63, 139, 0.33);
    color: #fff;
    filter: saturate(1.08);
}

.maruart-channel-cta__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .maruart-channel-cta__panel {
        grid-template-columns: 1fr;
    }

    .maruart-channel-cta__button {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .maruart-channel-cta {
        padding: 32px 0;
    }

    .maruart-channel-cta__panel {
        gap: 24px;
        padding: 26px 20px;
        border-radius: 24px;
    }

    .maruart-channel-cta__copy .eyebrow {
        margin-bottom: 11px;
    }

    .maruart-channel-cta__copy h2 {
        font-size: clamp(27px, 9vw, 36px);
        line-height: 1.08;
    }

    .maruart-channel-cta__copy p {
        margin-top: 13px;
        font-size: 15px;
    }

    .maruart-channel-cta__button {
        width: 100%;
        max-width: none;
        min-height: 60px;
        padding: 14px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maruart-consent__button,
    .maruart-channel-cta__button {
        transition: none;
    }
}

/* Reviews carousel: one readable message at a time, with tactile controls. */
.maruart-review-slider {
    position: relative;
    max-width: 900px;
    margin: 34px auto 0;
    padding: 76px clamp(20px, 4vw, 54px) 82px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 100% 100%, rgba(52, 211, 219, 0.24), transparent 37%),
        linear-gradient(145deg, #11101a 0%, #191724 62%, #282032 100%);
    background-size: 38px 38px, 38px 38px, auto, auto;
    box-shadow: 0 26px 70px rgba(31, 20, 38, 0.2);
    color: #fff;
    outline: none;
}

.maruart-review-slider:focus-visible {
    outline: 3px solid #8b5cf6;
    outline-offset: 5px;
}

.maruart-review-slider__meta {
    position: absolute;
    z-index: 3;
    top: 25px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.maruart-review-slider__meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.maruart-review-slider__meta i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #39d5dd;
    box-shadow: 0 0 16px rgba(57, 213, 221, 0.75);
}

.maruart-review-slider__counter {
    font-variant-numeric: tabular-nums;
}

.maruart-review-slider__viewport {
    height: min(66vh, 630px);
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 25px;
    background: #f7f3f6;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.45);
    touch-action: pan-y;
}

.maruart-review-track,
.maruart-review-slider .maruart-review-card,
.maruart-review-slider .maruart-review-card__link {
    height: 100%;
}

.maruart-review-slider .maruart-review-card {
    display: none;
    min-width: 0;
    margin: 0;
    aspect-ratio: auto;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
}

.maruart-review-slider .maruart-review-card.is-active {
    display: block;
    animation: maruart-review-enter 220ms ease both;
}

.maruart-review-slider .maruart-review-card[hidden] {
    display: none !important;
}

.maruart-review-slider .maruart-review-card__link {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    transform: none;
    box-shadow: none;
}

.maruart-review-slider .maruart-review-card__link:hover {
    transform: none;
    box-shadow: none;
}

.maruart-review-slider .maruart-review-card__image {
    padding: clamp(12px, 2vw, 20px);
    background: linear-gradient(145deg, #fff 0%, #f3edf2 100%);
}

.maruart-review-slider .maruart-review-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.maruart-review-slider .maruart-review-card figcaption {
    padding: 15px 18px;
    background: #fff;
    font-size: 12px;
}

.maruart-review-slider__button {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 148px;
    min-height: 58px;
    padding: 12px 22px;
    border: 1px solid rgba(19, 14, 25, 0.16);
    border-radius: 14px;
    background: #fff;
    box-shadow: 7px 8px 0 #0f0d16, 0 16px 34px rgba(8, 7, 11, 0.24);
    color: #17121d;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.maruart-review-slider__button--previous {
    top: 17px;
    left: 24px;
    transform: rotate(-2deg);
}

.maruart-review-slider__button--next {
    right: 23px;
    bottom: 18px;
    transform: rotate(2deg);
}

.maruart-review-slider__button:hover:not(:disabled) {
    transform: translateY(-3px) rotate(0deg);
    box-shadow: 7px 11px 0 #0f0d16, 0 20px 38px rgba(8, 7, 11, 0.28);
}

.maruart-review-slider__button:focus-visible {
    outline: 3px solid #ff4fa3;
    outline-offset: 4px;
}

.maruart-review-slider__button:disabled {
    cursor: default;
    opacity: 0.42;
}

.maruart-review-slider__help {
    position: absolute;
    left: 34px;
    bottom: 29px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
}

@keyframes maruart-review-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep the desktop carousel compact; the mobile composition below is unchanged. */
@media (min-width: 761px) {
    .maruart-review-slider {
        max-width: 720px;
        padding: 64px 36px 72px;
        border-radius: 28px;
    }

    .maruart-review-slider__meta {
        top: 22px;
        right: 27px;
        gap: 14px;
        font-size: 11px;
    }

    .maruart-review-slider__viewport {
        height: min(52vh, 480px);
        min-height: 400px;
        border-radius: 22px;
    }

    .maruart-review-slider .maruart-review-card {
        border-radius: 21px;
    }

    .maruart-review-slider__button {
        min-width: 128px;
        min-height: 50px;
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 14px;
    }

    .maruart-review-slider__button--previous {
        top: 13px;
        left: 21px;
    }

    .maruart-review-slider__button--next {
        right: 20px;
        bottom: 14px;
    }

    .maruart-review-slider__help {
        left: 27px;
        bottom: 24px;
        font-size: 11px;
    }
}

@media (min-width: 1024px) {
    .maruart-reviews-list > .page-shell {
        display: grid;
        grid-template-columns: minmax(280px, 0.72fr) minmax(620px, 1.28fr);
        align-items: start;
        gap: clamp(42px, 5vw, 76px);
    }

    .maruart-reviews-heading {
        max-width: 420px;
        padding-top: 34px;
    }

    .maruart-reviews-heading h2 {
        max-width: 9ch;
    }

    .maruart-reviews-heading p {
        max-width: 39ch;
    }

    .maruart-reviews-list .maruart-review-slider {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .maruart-review-slider {
        margin-top: 26px;
        padding: 68px 11px 75px;
        border-radius: 26px;
    }

    .maruart-review-slider__meta {
        top: 24px;
        right: 18px;
        gap: 12px;
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    .maruart-review-slider__viewport {
        height: min(64vh, 530px);
        min-height: 420px;
        border-radius: 18px;
        box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45);
    }

    .maruart-review-slider .maruart-review-card {
        border-radius: 17px;
    }

    .maruart-review-slider .maruart-review-card__image {
        padding: 9px;
    }

    .maruart-review-slider .maruart-review-card figcaption {
        padding: 12px 13px;
        font-size: 11px;
    }

    .maruart-review-slider__button {
        min-width: 118px;
        min-height: 50px;
        padding: 10px 15px;
        border-radius: 12px;
        font-size: 13px;
        box-shadow: 5px 6px 0 #0f0d16, 0 12px 25px rgba(8, 7, 11, 0.22);
    }

    .maruart-review-slider__button--previous {
        top: 12px;
        left: 15px;
    }

    .maruart-review-slider__button--next {
        right: 14px;
        bottom: 15px;
    }

    .maruart-review-slider__help {
        left: 16px;
        bottom: 28px;
        max-width: 138px;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .maruart-review-slider__meta > span:first-child {
        max-width: 86px;
        line-height: 1.3;
    }

    .maruart-review-slider__help {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maruart-review-slider .maruart-review-card.is-active {
        animation: none;
    }

    .maruart-review-slider__button {
        transition: none;
    }
}
