/**
 * WP + Tilda compatibility fixes for homepage fidelity.
 */
html.seo-ai-tilda-home,
body.seo-ai-tilda-home {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: #000;
}

body.seo-ai-tilda-home #allrecords,
body.seo-ai-tilda-home #t-header,
body.seo-ai-tilda-home #t-footer {
    width: 100%;
}

/* Hide WP admin bar gap on front */
body.seo-ai-tilda-home.admin-bar #wpadminbar {
    position: fixed;
}

body.seo-ai-tilda-home img.t-img {
    max-width: none;
}

body.seo-ai-tilda-home .t-records {
    opacity: 1;
}

/* Homepage slider — reserve layout on first paint (no absolute collapse / JS height jump). */
body.seo-ai-tilda-home .slider-wrapper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

body.seo-ai-tilda-home .slider-wrapper-container > [class*="custom-slider-blo"]:not(.slider-active):not(.slider-leaving) {
    display: none !important;
}

body.seo-ai-tilda-home .slider-wrapper-container > [class*="custom-slider-blo"].slider-active {
    display: block !important;
    position: relative !important;
    z-index: 2;
}

body.seo-ai-tilda-home .slider-wrapper-container > [class*="custom-slider-blo"].slider-leaving {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.seo-ai-refresh-case-wrap {
    background: var(--refresh-bg, #e9e9e9);
    margin-top: -120px;
}

/* Latiao case block: hide old CTA, shrink artboard before Refresh insert (all pages). */
.t-rec:has([data-elem-id="1779194373695"]) .tn-elem[data-elem-id="1779196339281"] {
    display: none !important;
}

@media (min-width: 1181px) {
    .t-rec:has([data-elem-id="1779194373695"]) .t396__artboard,
    .t-rec:has([data-elem-id="1779194373695"]) .t396__filter,
    .t-rec:has([data-elem-id="1779194373695"]) .t396__carrier {
        height: 512px !important;
    }
}

.seo-ai-refresh-case__cta {
    display: flex;
    justify-content: center;
    padding: 22px 0 36px;
}

.seo-ai-refresh-case__integration-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 309px;
    min-height: 65px;
    margin-left: 20px;
    padding: 0 31px;
    border: 0;
    border-radius: 39px;
    background-color: #5f30ed;
    background-image: radial-gradient(circle at center, rgba(160, 131, 247, 0.91) 14%, rgba(95, 48, 237, 1) 100%);
    color: #fff !important;
    font-family: var(--t-text-font, "Inter Tight", Arial, sans-serif);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none;
    transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.seo-ai-refresh-case__integration-btn span {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.seo-ai-refresh-case__integration-btn:hover,
.seo-ai-refresh-case__integration-btn:focus-visible {
    color: #fff !important;
    text-decoration: none !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.seo-ai-refresh-case__integration-btn:hover span,
.seo-ai-refresh-case__integration-btn:focus-visible span {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.seo-ai-refresh-case {
    --refresh-bg: #e9e9e9;
    --refresh-card: #fff;
    --refresh-text: #1e1e1e;
    --refresh-muted: rgba(30, 30, 30, 0.55);
    --refresh-purple: #a083f7;
    --refresh-purple-deep: #6d42ef;
    --refresh-dark: #020308;
    --refresh-shadow: 0 0 0 0.45px #e4e5e9, 0 0 0 0.9px rgba(228, 229, 233, 0.6), 2px 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background: var(--refresh-bg);
    padding: clamp(48px, 6vw, 88px) 0;
    font-family: "Inter Tight", Arial, sans-serif;
    color: var(--refresh-text);
}

.seo-ai-refresh-case *,
.seo-ai-refresh-case *::before,
.seo-ai-refresh-case *::after {
    box-sizing: border-box;
}

.seo-ai-refresh-case__canvas {
    position: relative;
    display: grid;
    grid-template-columns: 496px 854px 330px;
    grid-template-rows: 509px 351px;
    gap: 20px;
    width: min(100% - 40px, 1720px);
    min-height: 880px;
    margin: 0 auto;
}

.seo-ai-refresh-card,
.seo-ai-refresh-case__metric {
    border-radius: 35px;
    background: var(--refresh-card);
    box-shadow: var(--refresh-shadow);
}

.seo-ai-refresh-card--client {
    position: relative;
    grid-row: 1 / 3;
    min-height: 880px;
    overflow: hidden;
    padding: 30px 28px;
}

.seo-ai-refresh-case__eyebrow {
    display: grid;
    grid-template-columns: 122px 1fr;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    line-height: 1.16;
    color: rgba(30, 30, 30, 0.44);
    letter-spacing: -0.04em;
}

.seo-ai-refresh-case__eyebrow strong {
    color: var(--refresh-text);
}

.seo-ai-refresh-case__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 68px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(160, 131, 247, 0.74) 14%, var(--refresh-purple) 100%);
    color: #fff;
    font-size: 18px;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.32);
}

.seo-ai-refresh-card--client h2 {
    position: relative;
    z-index: 2;
    max-width: 380px;
    margin: 62px 0 0;
    color: var(--refresh-text) !important;
    font-size: 45px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.seo-ai-refresh-card--client h2::first-line {
    color: var(--refresh-muted);
}

.seo-ai-refresh-case__facts {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 20px;
    margin: 34px 0 0;
}

.seo-ai-refresh-case__facts div {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 20px;
}

.seo-ai-refresh-case__facts dt {
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.seo-ai-refresh-case__facts dt img {
    display: block;
    width: 58px;
    height: 58px;
}

.seo-ai-refresh-case__facts dd {
    margin: 0;
    color: var(--refresh-text) !important;
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.seo-ai-refresh-case__facts dd span {
    display: block;
    color: var(--refresh-muted);
}

.seo-ai-refresh-case__vending {
    position: absolute;
    right: -116px;
    bottom: 4px;
    width: 520px;
    height: auto;
    transform: rotate(14.7deg);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.16));
}

.seo-ai-refresh-case__tray {
    position: absolute;
    left: -18px;
    bottom: -40px;
    width: 300px;
    height: auto;
    transform: rotate(8deg);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.seo-ai-refresh-card--growth {
    position: relative;
    grid-column: 2;
    overflow: hidden;
    padding: 38px 28px 26px;
    color: #fff;
    background:
        radial-gradient(circle at 55% 118%, rgba(160, 131, 247, 0.95), rgba(160, 131, 247, 0) 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        var(--refresh-dark);
}

.seo-ai-refresh-card--growth::before {
    content: "";
    position: absolute;
    inset: -420px -40px -200px 180px;
    opacity: 0.88;
    background: radial-gradient(ellipse at center, rgba(160, 131, 247, 0.9), rgba(160, 131, 247, 0.16) 30%, rgba(2, 3, 8, 0) 58%);
    pointer-events: none;
}

.seo-ai-refresh-card--growth h3,
.seo-ai-refresh-card--done h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit !important;
    font-size: 38px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.seo-ai-refresh-case__month-table {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 42px;
}

.seo-ai-refresh-case__month-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.seo-ai-refresh-case__month-row span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    border-radius: 14px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.seo-ai-refresh-case__month-row--head span {
    background: transparent;
    min-height: auto;
    padding: 0 18px;
    font-size: 17px;
    font-weight: 600;
    color: #e8e8f6;
}

.seo-ai-refresh-case__month-row span.is-highlight {
    background: linear-gradient(90deg, rgba(160, 131, 247, 0.4), rgba(160, 131, 247, 0.18));
}

.seo-ai-refresh-case__month-row b {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.75);
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    transform: translateY(2px) rotate(-45deg);
}

.seo-ai-refresh-case__positions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.seo-ai-refresh-case__positions-title {
    font-size: 18px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.92);
}

.seo-ai-refresh-case__positions-title span {
    color: rgba(255, 255, 255, 0.58);
}

.seo-ai-refresh-case__monitoring {
    position: absolute;
    left: 0;
    top: 54px;
    width: 249px;
    padding: 14px 16px 12px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
}

.seo-ai-refresh-case__monitoring-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.seo-ai-refresh-case__monitoring-row--head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(30, 30, 30, 0.12);
}

.seo-ai-refresh-case__monitoring-row--head span {
    color: rgba(30, 30, 30, 0.45);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seo-ai-refresh-case__monitoring-row:not(.seo-ai-refresh-case__monitoring-row--head) span {
    color: #1e1e1e;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.seo-ai-refresh-case__monitoring-row:not(.seo-ai-refresh-case__monitoring-row--head) span:last-child {
    text-align: left;
}

.seo-ai-refresh-case__position-row {
    display: grid;
    grid-template-columns: 92px 1fr 88px 24px;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin-left: 324px;
    border-radius: 999px;
    padding: 0 16px;
    background: linear-gradient(90deg, rgba(160, 131, 247, 0.28), rgba(160, 131, 247, 0.58));
    font-size: 14px;
}

.seo-ai-refresh-case__position-row span {
    color: rgba(255, 255, 255, 0.58);
}

.seo-ai-refresh-case__position-row strong {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-ai-refresh-case__position-row em {
    color: #fff;
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

.seo-ai-refresh-case__position-row i {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) 50% 65% / 9px 3px no-repeat,
        linear-gradient(#fff, #fff) 50% 48% / 5px 10px no-repeat,
        radial-gradient(circle at 50% 30%, transparent 5px, #fff 5.6px, #fff 8px, transparent 8.6px),
        transparent;
}

.seo-ai-refresh-case__metrics {
    grid-column: 3;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.seo-ai-refresh-case__metric {
    display: grid;
    align-content: center;
    flex: 0 0 auto;
    min-height: 166px;
    padding: 0 42px;
}

.seo-ai-refresh-case__metric strong {
    display: block;
    font-size: 45px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.seo-ai-refresh-case__metric span {
    display: block;
    margin-top: 8px;
    font-size: 27px;
    line-height: 1.05;
    color: var(--refresh-muted);
    letter-spacing: -0.04em;
}

.seo-ai-refresh-case__metric--purple {
    color: #fff;
    background: radial-gradient(circle, rgba(160, 131, 247, 0.74) 14%, var(--refresh-purple) 100%);
}

.seo-ai-refresh-case__metric--purple span,
.seo-ai-refresh-case__metric--dark span {
    color: rgba(255, 255, 255, 0.64);
}

.seo-ai-refresh-case__metric--dark {
    color: #fff;
    background: #1e1e1e;
}

.seo-ai-refresh-card--done {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    padding: 58px 52px;
}

.seo-ai-refresh-card--done ul {
    display: grid;
    gap: 13px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.seo-ai-refresh-card--done li {
    position: relative;
    padding-left: 0;
    color: rgba(30, 30, 30, 0.7) !important;
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.seo-ai-refresh-card--done li::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 0.44em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4bbff;
}

.seo-ai-refresh-card--done .seo-ai-refresh-case__cup {
    position: absolute;
    top: 35px;
    right: 40px;
    width: 70px;
    height: 70px;
    display: block;
    border-radius: 0;
    background: none;
    object-fit: contain;
}

@media (min-width: 1181px) {
    .seo-ai-refresh-case {
        height: 582px;
        padding: 0;
        overflow: hidden;
    }

    .seo-ai-refresh-case__canvas {
        grid-template-rows: 509px 209px;
        width: 1720px;
        max-width: none;
        margin: 0 0 0 calc((100% - 1200px) / 2 + 36px);
        transform: translateX(-110px) scale(0.789);
        transform-origin: top left;
    }

    .seo-ai-refresh-card--client {
        min-height: 738px;
    }

    .seo-ai-refresh-case__positions {
        margin-top: 10px;
        gap: 8px;
    }

    .seo-ai-refresh-card--done {
        padding: 35px 40px;
    }

    .seo-ai-refresh-card--done h3 {
        font-size: 32px;
    }

    .seo-ai-refresh-card--done ul {
        gap: 7px;
        margin-top: 14px;
    }

    .seo-ai-refresh-card--done li {
        padding-left: 0;
        font-size: 13px;
        line-height: 1.15;
    }

    .seo-ai-refresh-card--done li::before {
        left: -14px;
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 767px) {
    .seo-ai-refresh-case__canvas {
        grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.35fr);
        grid-template-rows: auto auto auto;
    }

    .seo-ai-refresh-case__metrics {
        grid-column: 1 / 3;
        grid-row: 3;
        grid-template-columns: repeat(4, 1fr);
        padding-top: 0;
    }

    .seo-ai-refresh-case__metric {
        min-height: 130px;
        padding: 0 24px;
    }

    .seo-ai-refresh-case__metric strong {
        font-size: 34px;
    }

    .seo-ai-refresh-case__metric span {
        font-size: 19px;
    }
}

@media (min-width: 768px) and (max-width: 999px) {
    .seo-ai-refresh-case {
        height: 550px;
        padding: 0;
        overflow: hidden;
    }

    .seo-ai-refresh-case__canvas {
        grid-template-columns: 496px 854px 330px;
        grid-template-rows: 509px 209px;
        gap: 20px;
        width: 1720px;
        min-height: 738px;
        max-width: none;
        margin: 0 0 0 30px;
        transform: translateX(-110px) scale(0.745);
        transform-origin: top left;
    }
}

@media (min-width: 1000px) and (max-width: 1180px) {
    .seo-ai-refresh-case {
        height: 634px;
        padding: 0;
        overflow: hidden;
    }

    .seo-ai-refresh-case__canvas {
        grid-template-columns: 496px 854px 330px;
        grid-template-rows: 509px 209px;
        gap: 20px;
        width: 1720px;
        min-height: 738px;
        max-width: none;
        margin: 0 0 0 30px;
        transform: translateX(-110px) scale(0.859);
        transform-origin: top left;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    .seo-ai-refresh-card--client {
        grid-row: 1 / 3;
        min-height: 738px;
    }

    .seo-ai-refresh-case__metrics {
        grid-column: 3;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0;
        height: 100%;
        padding: 0;
        margin: 0;
    }

    .seo-ai-refresh-card--done {
        grid-column: 2;
        grid-row: 2;
        padding: 35px 40px;
    }

    .seo-ai-refresh-card--done h3 {
        font-size: 32px;
    }

    .seo-ai-refresh-card--done ul {
        gap: 7px;
        margin-top: 14px;
    }

    .seo-ai-refresh-card--done li {
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.15;
    }

    .seo-ai-refresh-card--done li::before {
        width: 8px;
        height: 8px;
    }

    .seo-ai-refresh-case__metric {
        min-height: 166px;
        padding: 0 42px;
    }

    .seo-ai-refresh-case__metric strong {
        font-size: 45px;
    }

    .seo-ai-refresh-case__metric span {
        font-size: 27px;
    }

    .seo-ai-refresh-case__positions {
        margin-top: 10px;
        gap: 8px;
    }
}

@media (max-width: 767px) {
    .seo-ai-refresh-case {
        padding: 36px 0;
    }

    .seo-ai-refresh-case__canvas {
        display: flex;
        flex-direction: column;
        width: min(100% - 24px, 420px);
        min-height: 0;
        gap: 14px;
    }

    .seo-ai-refresh-card,
    .seo-ai-refresh-case__metric {
        border-radius: 22px;
    }

    .seo-ai-refresh-card--client {
        min-height: 650px;
        padding: 18px;
    }

    .seo-ai-refresh-case__eyebrow {
        grid-template-columns: 88px 1fr;
        gap: 12px;
        font-size: 16px;
    }

    .seo-ai-refresh-case__badge {
        width: 88px;
        height: 48px;
        font-size: 13px;
    }

    .seo-ai-refresh-card--client h2 {
        max-width: 260px;
        margin-top: 34px;
        font-size: 33px;
    }

    .seo-ai-refresh-case__facts {
        gap: 12px;
        margin-top: 24px;
    }

    .seo-ai-refresh-case__facts div {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .seo-ai-refresh-case__facts dt,
    .seo-ai-refresh-case__facts dt img {
        width: 42px;
        height: 42px;
    }

    .seo-ai-refresh-case__facts dd {
        font-size: 14px;
    }

    .seo-ai-refresh-case__vending {
        right: -82px;
        bottom: 38px;
        width: 390px;
    }

    .seo-ai-refresh-case__tray {
        left: -18px;
        bottom: -10px;
        width: 230px;
    }

    .seo-ai-refresh-card--growth {
        padding: 24px 16px;
    }

    .seo-ai-refresh-card--growth h3,
    .seo-ai-refresh-card--done h3 {
        font-size: 28px;
    }

    .seo-ai-refresh-case__month-table {
        margin-top: 24px;
        gap: 8px;
    }

    .seo-ai-refresh-case__month-row {
        grid-template-columns: 1.25fr 0.8fr 0.8fr 0.8fr;
        gap: 7px;
    }

    .seo-ai-refresh-case__month-row span {
        min-height: 32px;
        padding: 0 8px;
        font-size: 10px;
        border-radius: 10px;
    }

    .seo-ai-refresh-case__month-row--head span {
        padding: 0 8px;
        font-size: 11px;
    }

    .seo-ai-refresh-case__monitoring {
        position: static;
        width: 150px;
        margin: 0 0 4px;
        padding: 10px 12px 8px;
    }

    .seo-ai-refresh-case__monitoring-row--head span {
        font-size: 8px;
    }

    .seo-ai-refresh-case__monitoring-row:not(.seo-ai-refresh-case__monitoring-row--head) span {
        font-size: 10px;
    }

    .seo-ai-refresh-case__position-row {
        grid-template-columns: 58px 1fr 54px 16px;
        gap: 6px;
        min-height: 34px;
        margin-left: 0;
        padding: 0 10px;
        font-size: 9px;
    }

    .seo-ai-refresh-case__position-row i {
        width: 15px;
        height: 15px;
    }

    .seo-ai-refresh-case__metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-top: 0;
    }

    .seo-ai-refresh-case__metric {
        min-height: 98px;
        padding: 0 18px;
    }

    .seo-ai-refresh-case__metric strong {
        font-size: 28px;
    }

    .seo-ai-refresh-case__metric span {
        font-size: 15px;
    }

    .seo-ai-refresh-card--done {
        padding: 28px 18px;
    }

    .seo-ai-refresh-card--done ul {
        gap: 10px;
    }

    .seo-ai-refresh-card--done li {
        font-size: 13px;
    }

    .seo-ai-refresh-card--done .seo-ai-refresh-case__cup {
        top: 22px;
        right: 18px;
        width: 58px;
        height: 58px;
    }
}

/* Shared Tilda header: evenly aligned nav injected by tilda-wp-init.js */
#t-header .tn-elem[data-field-top-value="32"]:not(.seo-ai-partners-nav) {
    width: auto !important;
    height: auto !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

#t-header .tn-elem.seo-ai-partners-nav {
    left: calc(50% - 600px + 593px) !important;
    top: 32px !important;
    width: 75px !important;
    min-width: 75px !important;
    height: auto !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

/* Same typography/color as native Tilda header links (opacity on .tn-atom, not on <a>). */
#t-header .tn-elem[data-field-top-value="32"] .tn-atom,
#t-header .tn-elem.seo-ai-partners-nav .tn-atom {
    vertical-align: middle;
    color: #ffffff;
    font-size: 14px;
    font-family: var(--t-text-font, Arial);
    line-height: 1.55;
    font-weight: 400;
    opacity: 0.6;
    white-space: nowrap !important;
}

#t-header .tn-elem[data-field-top-value="32"]:hover .tn-atom,
#t-header .tn-elem.seo-ai-partners-nav:hover .tn-atom {
    opacity: 1;
}

#t-header .tn-elem.seo-ai-partners-nav .tn-atom {
    width: 75px !important;
    min-width: 75px !important;
    text-align: center !important;
}

#t-header .tn-elem[data-field-top-value="32"] .tn-atom a,
#t-header .tn-elem.seo-ai-partners-nav .tn-atom a {
    pointer-events: auto !important;
    cursor: pointer;
    color: inherit;
    opacity: 1;
}

#t-header .tn-elem[data-elem-id="1779121338071"] {
    z-index: 4 !important;
}

/* "О нас" dropdown — desktop header, mobile burger, partners nav */
.seo-ai-about-nav {
    position: relative;
}

.seo-ai-about-nav__trigger {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    opacity: 1;
    text-align: left;
}

#t-header .tn-elem.seo-ai-about-nav .tn-atom {
    position: relative;
    opacity: 0.6;
}

#t-header .tn-elem.seo-ai-about-nav:hover .tn-atom,
#t-header .tn-elem.seo-ai-about-nav.is-open .tn-atom,
#t-header .tn-elem.seo-ai-about-nav:focus-within .tn-atom {
    opacity: 1;
}

.seo-ai-about-nav__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 196px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: rgba(10, 10, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 120;
}

.seo-ai-about-nav.is-open .seo-ai-about-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.seo-ai-about-nav__panel a {
    display: block;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
    white-space: nowrap;
}

.seo-ai-about-nav__panel a:hover,
.seo-ai-about-nav__panel a:focus-visible {
    color: #ffffff;
    background: rgba(160, 131, 247, 0.14);
    outline: none;
}

.seo-ai-about-nav--mobile .seo-ai-about-nav__mobile-panel {
    display: none;
    list-style: none;
    margin: 0;
    padding: 6px 0 4px 18px;
}

.seo-ai-about-nav--mobile.is-open .seo-ai-about-nav__mobile-panel {
    display: block;
}

.seo-ai-about-nav__mobile-item a {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.seo-ai-about-nav__mobile-item a:hover,
.seo-ai-about-nav__mobile-item a:focus-visible {
    color: #a083f7;
    outline: none;
}

.partners-pk109__nav-item.seo-ai-about-nav,
.partners-pk121__nav-item.seo-ai-about-nav {
    position: relative;
}

.partners-pk109__nav-item.seo-ai-about-nav .partners-pk109__nav-link,
.partners-pk121__nav-item.seo-ai-about-nav .partners-pk121__nav-link {
    cursor: pointer;
}

.partners-pk109__nav-item.seo-ai-about-nav.is-open .partners-pk109__nav-link,
.partners-pk121__nav-item.seo-ai-about-nav.is-open .partners-pk121__nav-link {
    opacity: 1;
}

.partners-pk109__nav-item.seo-ai-about-nav .seo-ai-about-nav__panel,
.partners-pk121__nav-item.seo-ai-about-nav .seo-ai-about-nav__panel {
    top: calc(100% + 10px);
    left: 0;
    transform: none;
}

/* Global mobile hygiene — all Tilda shell pages */
@media screen and (max-width: 1199px) {
    /* Desktop nav row must stay hidden on mobile; JS alignHeaderNav used to override Tilda top:-87 */
    #t-header .tn-elem[data-field-top-value="32"],
    #t-header .tn-elem.seo-ai-partners-nav,
    #t-header .tn-elem[data-elem-id="1779121338071"] {
        display: none !important;
    }

    #t-header .tn-elem[data-elem-id="1779121038852"] .tn-atom,
    #t-header .documents-header-logo {
        width: auto !important;
        max-width: 120px !important;
    }

    #t-header .tn-elem[data-elem-id="1779121978443"] {
        display: table !important;
        z-index: 30 !important;
        pointer-events: auto !important;
    }

    #t-header .tn-elem[data-elem-id="1779121978443"] .tn-atom,
    #t-header .tn-elem[data-elem-id="1779121978443"] .tn-atom img {
        pointer-events: auto !important;
        cursor: pointer;
    }

    #rec2383132161 .t450.t450__menu_show {
        z-index: 99999 !important;
    }

    #rec2383132161 .t450__overlay.t450__menu_show {
        z-index: 99998 !important;
    }

    body.t-body:not(.partners-page):not(.documents-page) {
        overflow-x: clip;
        overflow-x: hidden;
    }

    body.t-body:not(.partners-page):not(.documents-page) #allrecords {
        max-width: 100vw;
    }

    body.t-body:not(.partners-page):not(.documents-page) .t396__artboard {
        max-width: 100vw;
    }

    body.t-body:not(.partners-page):not(.documents-page) a.tn-atom:not([href="#menuopen"]),
    body.t-body:not(.partners-page):not(.documents-page) button.t-submit,
    body.t-body:not(.partners-page):not(.documents-page) .t-btnflex,
    body.t-body:not(.partners-page):not(.documents-page) .t-input {
        min-height: 44px;
    }

    body.t-body:not(.partners-page):not(.documents-page) input.t-input,
    body.t-body:not(.partners-page):not(.documents-page) textarea.t-input,
    body.t-body:not(.partners-page):not(.documents-page) select.t-input {
        font-size: 16px;
    }
}
