.test-3 {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.test-3::before {
    position: absolute;
    top: 18%;
    right: -12%;
    width: 440px;
    height: 440px;
    content: "";
    opacity: .34;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
}

.test-3-grid {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(390px, 1.08fr) minmax(420px, .92fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
}

.test-3-copy h2 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.7rem);
    letter-spacing: -.065em;
    line-height: .95;
}

.test-3-copy > p:not(.eyebrow):not(.test-3-hint) {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.why-us-boxes {
    display: grid;
    margin-top: 34px;
    gap: 12px;
}

.why-us-box {
    position: relative;
    min-width: 0;
    padding: 22px 24px 21px 92px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .027);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.why-us-box:hover {
    border-color: rgba(79, 140, 255, .46);
    background: rgba(79, 140, 255, .055);
    transform: translateX(5px);
}

.why-us-box::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    content: "";
    opacity: 0;
    background: radial-gradient(circle at 100% 0, rgba(255, 79, 135, .2), transparent 68%);
    transition: opacity 180ms ease;
    pointer-events: none;
}

.why-us-box:hover::after {
    opacity: 1;
}

.why-us-box-top {
    position: absolute;
    top: 22px;
    left: 22px;
    display: grid;
    width: 50px;
    gap: 5px;
}

.why-us-box-top span {
    color: #6f6f6f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .1em;
}

.why-us-box-top strong {
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: 1;
}

.why-us-box h3 {
    margin: 0;
    font-size: 18px;
}

.why-us-box p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
}

.why-us-box small {
    display: block;
    margin-top: 11px;
    color: var(--accent-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.test-3-sequence {
    display: grid;
    margin-top: 34px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.test-3-sequence-item {
    display: grid;
    min-width: 0;
    padding: 17px;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.test-3-sequence-item.is-primary {
    border-color: rgba(79, 140, 255, .45);
    background: rgba(79, 140, 255, .08);
}

.test-3-sequence-item span {
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.test-3-sequence-item strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.test-3-sequence-item small {
    color: #777;
    font-size: 10px;
}

.test-3-sequence-arrow {
    color: var(--accent-secondary);
    font-size: 19px;
}

.test-3-hint {
    margin: 20px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.6;
}

.test-3-viewer {
    position: relative;
    min-height: 640px;
    overflow: visible;
}

.test-3-viewer::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 390px;
    height: 390px;
    content: "";
    opacity: .45;
    background: linear-gradient(135deg, rgba(79, 140, 255, .7), rgba(255, 79, 135, .36));
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.test-3-viewer canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    filter: drop-shadow(0 34px 30px rgba(0, 0, 0, .34));
}

.test-3-loader,
.test-3-error {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    margin: 0;
    color: #aebbd3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.test-3-loader {
    display: grid;
    min-width: 190px;
    justify-items: center;
    gap: 15px;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.test-3-loader i {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: test-3-spin .8s linear infinite;
}

.test-3-loader b {
    color: #fff;
}

[data-test-3].is-loaded .test-3-loader {
    visibility: hidden;
    opacity: 0;
}

[data-test-3].is-error .test-3-loader {
    display: none;
}

.test-3-status {
    position: absolute;
    z-index: 3;
    right: 8px;
    bottom: 10px;
    display: grid;
    min-width: 0;
    padding: 10px 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: transparent;
}

.test-3-status i {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--accent);
}

[data-test-3].is-special .test-3-status i {
    background: var(--accent-secondary);
    box-shadow: 0 0 14px var(--accent-secondary);
}

.test-3-status span {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.test-3-status strong {
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes test-3-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .test-3-grid {
        grid-template-columns: 1fr;
    }

    .test-3-copy {
        max-width: 680px;
    }

    .test-3-viewer {
        width: min(100%, 680px);
        margin-inline: auto;
    }
}

@media (max-width: 680px) {
    .why-us-box {
        padding: 20px 18px 19px 76px;
    }

    .why-us-box-top {
        top: 21px;
        left: 18px;
        width: 42px;
    }

    .why-us-box-top strong {
        font-size: 21px;
    }

    .test-3-sequence {
        grid-template-columns: 1fr;
    }

    .test-3-sequence-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .test-3-viewer {
        min-height: 480px;
    }

    .test-3-status {
        right: 4px;
        bottom: 4px;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .test-3-status strong {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-3-loader i { animation-duration: 1.8s; }
}

/* Docelowa sekcja wyróżników. */
.why-us {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.why-us::before {
    position: absolute;
    top: 5%;
    right: -14%;
    width: 440px;
    height: 440px;
    content: "";
    opacity: .2;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
}

.why-us-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 42px;
}

.why-us-boxes {
    position: relative;
    z-index: 1;
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.why-us-box {
    display: flex;
    min-height: 330px;
    padding: 25px;
    flex-direction: column;
}

.why-us-box:hover {
    transform: translateY(-5px);
}

.why-us-box-top {
    position: static;
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

.why-us-box-top strong {
    font-size: 29px;
}

.why-us-box h3 {
    margin-top: 34px;
    font-size: 19px;
}

.why-us-box p {
    font-size: 13px;
    line-height: 1.68;
}

.why-us-box small,
.why-us-box-link {
    display: block;
    margin-top: auto;
    padding-top: 18px;
    color: var(--accent-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.5;
    text-transform: uppercase;
}

.why-us-box-link {
    position: relative;
    z-index: 1;
    transition: color 160ms ease;
}

.why-us-box-link:hover {
    color: #fff;
}

/* CTA wykorzystujące zachowanie robota wypracowane w Teście 3. */
.cta-robot-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(26px, 4vw, 56px);
}

.cta-robot-panel::after {
    display: none;
}

.cta-robot-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: center;
}

.cta-robot-copy > p:not(.eyebrow) {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(0, 0, 0, .68);
    font-size: 17px;
    line-height: 1.7;
}

.cta-robot-viewer {
    z-index: 1;
    width: 100%;
    min-height: 560px;
}

.cta-robot-viewer::before {
    z-index: 0;
    width: 360px;
    height: 360px;
    opacity: .2;
    background: rgba(255, 255, 255, .34);
    filter: blur(90px);
}

.cta-robot-viewer .test-3-loader,
.cta-robot-viewer .test-3-error {
    color: #aebbd3;
}

.cta-robot-viewer .test-3-loader i {
    border-color: rgba(255, 255, 255, .12);
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
}

.cta-robot-viewer .test-3-loader b {
    color: #fff;
}

.cta-robot-panel .eyebrow {
    color: rgba(0, 0, 0, .68);
}

.cta-robot-panel .button-light {
    color: #fff;
    background: #141414;
}

/* Oferta na stronie głównej. */
.offer-showcase {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.offer-showcase::before {
    position: absolute;
    top: 18%;
    left: -16%;
    width: 450px;
    height: 450px;
    content: "";
    opacity: .2;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(145px);
    pointer-events: none;
}

.offer-showcase-grid {
    display: grid;
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(34px, 5vw, 64px);
}

.offer-robot-viewer {
    z-index: 1;
    min-height: 650px;
}

.offer-robot-viewer::before {
    z-index: 0;
    width: 410px;
    height: 410px;
    opacity: .36;
}

.offer-showcase-content h2 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.7rem);
    letter-spacing: -.065em;
    line-height: .95;
}

.offer-showcase-intro {
    max-width: 650px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

.offer-showcase-list {
    display: grid;
    margin-top: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.offer-showcase-service {
    position: relative;
    min-height: 164px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.offer-showcase-service:hover {
    border-color: rgba(79, 140, 255, .48);
    background: rgba(79, 140, 255, .055);
    transform: translateY(-4px);
}

.offer-showcase-number {
    display: block;
    margin-bottom: 20px;
    color: #696969;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: .1em;
}

.offer-showcase-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.offer-showcase-title > span {
    color: var(--accent);
}

.offer-showcase-links {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 7px;
}

.offer-showcase-links a {
    padding: 8px 13px;
    color: #969696;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.2;
    transition: color 160ms ease, border-color 160ms ease;
}

.offer-showcase-links a:hover {
    color: #fff;
    border-color: var(--accent);
}

.offer-showcase-service-single {
    min-height: 118px;
}

.offer-showcase-button {
    margin-top: 28px;
}

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

    .why-us-box {
        min-height: 285px;
    }

    .offer-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }
}

@media (max-width: 980px) {
    .offer-showcase-grid {
        grid-template-columns: 1fr;
    }

    .offer-robot-viewer {
        width: min(100%, 650px);
        min-height: 560px;
        margin-inline: auto;
    }

    .offer-showcase-content {
        max-width: 760px;
    }

    .cta-robot-panel {
        grid-template-columns: 1fr;
    }

    .cta-robot-copy {
        max-width: 680px;
    }

    .cta-robot-viewer {
        min-height: 500px;
    }
}

@media (max-width: 680px) {
    .why-us-heading {
        margin-bottom: 30px;
    }

    .why-us-boxes {
        grid-template-columns: 1fr;
    }

    .why-us-box {
        min-height: 0;
        padding: 22px;
    }

    .why-us-box h3 {
        margin-top: 25px;
    }

    .offer-robot-viewer {
        min-height: 450px;
    }

    .offer-showcase-list {
        grid-template-columns: 1fr;
    }

    .offer-showcase-service,
    .offer-showcase-service-single {
        min-height: 0;
        padding: 22px;
        border-color: rgba(255, 255, 255, .14);
        background: rgba(255, 255, 255, .038);
    }

    .offer-showcase-number {
        margin-bottom: 18px;
        color: #8eb4ff;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .14em;
    }

    .offer-showcase-title {
        align-items: center;
        font-size: 18px;
        line-height: 1.35;
    }

    .offer-showcase-title > span {
        display: grid;
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid rgba(79, 140, 255, .38);
        border-radius: 50%;
        background: rgba(79, 140, 255, .08);
        font-size: 14px;
    }

    .offer-showcase-links {
        margin-top: 17px;
        gap: 8px;
    }

    .offer-showcase-links a {
        padding: 9px 13px;
        color: #c2c2c2;
        border-color: rgba(255, 255, 255, .15);
        background: rgba(255, 255, 255, .025);
        font-size: 11px;
    }

    .offer-showcase-button {
        width: 100%;
    }

    .cta-robot-panel {
        gap: 14px;
    }

    .cta-robot-copy {
        min-height: 0;
        padding: 36px 24px;
        border-radius: 24px;
    }

    .cta-robot-viewer {
        min-height: 410px;
    }
}
