/* Machina Sprzedażowa: osobna oferta MediaSwipe */

.sales-offer-page {
    --mso-green: #35d39a;
    --mso-green-soft: rgba(53, 211, 154, 0.1);
}

.mso-hero {
    position: relative;
    min-height: 0;
    padding: 132px 0 52px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(53, 211, 154, 0.09), transparent 28%),
        radial-gradient(circle at 15% 72%, rgba(230, 57, 70, 0.15), transparent 34%),
        var(--bg-primary);
}

.mso-hero::before {
    content: '';
    position: absolute;
    width: 680px;
    height: 680px;
    right: -310px;
    top: -320px;
    border: 1px solid rgba(53, 211, 154, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 100px rgba(53, 211, 154, 0.018), 0 0 0 210px rgba(255, 255, 255, 0.012);
}

.mso-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.mso-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
}

.mso-hero-copy h1 {
    max-width: none;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.mso-hero-copy h1 span {
    display: block;
    color: #ff4655;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(230, 57, 70, 0.22);
}

.mso-hero-copy > p {
    max-width: 980px;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.72;
}

.mso-hero-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
    margin-top: 24px;
}

.mso-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mso-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.mso-hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(240,240,245,0.68);
    font-size: 0.82rem;
}

.mso-hero-facts i {
    color: var(--mso-green);
}

.mso-hero-visual {
    position: relative;
    width: 100%;
    padding: 26px 30px 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018)), rgba(8,8,13,0.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 32px 90px rgba(0,0,0,0.32);
    backdrop-filter: blur(22px);
}

.mso-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.mso-visual-top,
.mso-hero-route,
.mso-visual-result {
    position: relative;
    z-index: 1;
}

.mso-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mso-visual-top span,
.mso-visual-top b {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mso-visual-top span { color: var(--text-secondary); }
.mso-visual-top b { color: var(--mso-green); }

.mso-hero-route {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 28px 20px;
}

.mso-route-node {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 108px;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid rgba(53,211,154,0.17);
    border-radius: 12px;
    background: rgba(53,211,154,0.045);
    animation: msoNodePulse 5s ease-in-out infinite;
}

.mso-route-node:nth-of-type(3) { animation-delay: 0.7s; }
.mso-route-node:nth-of-type(5) { animation-delay: 1.4s; }
.mso-route-node:nth-of-type(7) { animation-delay: 2.1s; }
.mso-route-node:nth-of-type(9) { animation-delay: 2.8s; }

.mso-route-node > i {
    margin-bottom: 7px;
    color: var(--mso-green);
    font-size: 1.35rem;
}

.mso-route-node strong { font-size: 0.76rem; line-height: 1.25; }
.mso-route-node small { margin-top: 4px; color: var(--text-secondary); font-size: 0.62rem; line-height: 1.35; }

.mso-route-link {
    position: relative;
    width: 42px;
    height: 2px;
    flex: 0 0 42px;
    background: rgba(53,211,154,0.22);
}

.mso-route-link::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid rgba(53,211,154,0.55);
    border-right: 1px solid rgba(53,211,154,0.55);
    transform: rotate(45deg);
}

.mso-route-link i {
    position: absolute;
    top: -2px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mso-green);
    box-shadow: 0 0 12px var(--mso-green);
    animation: msoPacket 5s linear infinite;
}

.mso-route-link:nth-of-type(4) i { animation-delay: 0.7s; }
.mso-route-link:nth-of-type(6) i { animation-delay: 1.4s; }
.mso-route-link:nth-of-type(8) i { animation-delay: 2.1s; }

.mso-visual-result {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 15px;
    border-left: 2px solid var(--mso-green);
    border-radius: 0 10px 10px 0;
    background: rgba(53,211,154,0.055);
}

.mso-visual-result > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--mso-green);
    font-size: 1.35rem;
    border-radius: 10px;
    background: rgba(53,211,154,0.09);
}

.mso-visual-result div { display: flex; flex-direction: column; gap: 3px; }
.mso-visual-result span { color: var(--mso-green); font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; }
.mso-visual-result strong { font-size: 0.78rem; line-height: 1.4; }

.mso-offer-context {
    position: relative;
    z-index: 2;
    left: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(calc(100% - 48px), var(--container-max));
    margin: 28px auto 0;
    padding: 0 24px;
    transform: none;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.mso-offer-context a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 700;
}

.mso-section-heading {
    max-width: 950px;
    margin-bottom: 54px;
}

.mso-section-heading > p {
    max-width: 760px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.mso-definition,
.mso-examples,
.mso-impact,
.mso-transformation,
.mso-fit,
.mso-warning {
    position: relative;
    padding: var(--section-padding);
}

.mso-definition::before,
.mso-examples::before,
.mso-impact::before,
.mso-transformation::before,
.mso-fit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.mso-definition-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 20px;
    padding: 32px;
    border-color: rgba(230,57,70,0.18);
    background: linear-gradient(135deg, rgba(230,57,70,0.07), rgba(255,255,255,0.02));
}

.mso-definition-main {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
}

.mso-definition-main > i {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--accent);
    font-size: 1.8rem;
    border-radius: 15px;
    background: rgba(230,57,70,0.1);
}

.mso-definition-main span,
.mso-card-label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mso-definition-main h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.3;
}

.mso-not-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mso-not-list > span {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.mso-not-list b {
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 8px;
    background: rgba(255,255,255,0.025);
}

.mso-before-after,
.mso-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mso-state-card,
.mso-impact-card {
    padding: 32px;
}

.mso-state-card--before,
.mso-impact-card--risk { border-color: rgba(230,57,70,0.16); }
.mso-state-card--after,
.mso-impact-card--effect { border-color: rgba(53,211,154,0.16); }
.mso-state-card--after .mso-card-label,
.mso-impact-card--effect .mso-card-label { color: var(--mso-green); }

.mso-state-card h3,
.mso-impact-card h3 {
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.25;
}

.mso-state-card ul,
.mso-impact-card ul,
.mso-fit-card ul {
    list-style: none;
}

.mso-state-card li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,0.065);
}

.mso-state-card li b { font-size: 0.78rem; }
.mso-state-card li span { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.55; }

.mso-examples,
.mso-transformation,
.mso-warning {
    background: var(--bg-secondary);
}

.mso-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mso-example-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 28px;
    overflow: hidden;
}

.mso-example-card > span {
    position: absolute;
    top: 22px;
    right: 24px;
    color: rgba(230,57,70,0.46);
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
}

.mso-example-card > i {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 1.5rem;
    border-radius: 14px;
    background: rgba(230,57,70,0.09);
}

.mso-example-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.3;
}

.mso-example-card > p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.mso-example-card > div {
    margin-top: auto;
    padding: 16px;
    border-left: 2px solid var(--mso-green);
    border-radius: 0 9px 9px 0;
    background: rgba(53,211,154,0.055);
}

.mso-example-card > div b {
    display: block;
    margin-bottom: 5px;
    color: var(--mso-green);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.mso-example-card > div p {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.6;
}

.mso-impact-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.55;
    border-top: 1px solid rgba(255,255,255,0.065);
}

.mso-impact-card--risk li i { color: var(--accent); }
.mso-impact-card--effect li i { color: var(--mso-green); }

.mso-transformation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    counter-reset: none;
}

.mso-transformation-list li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    min-height: 138px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}

.mso-transformation-list li:last-child {
    grid-column: 1 / -1;
}

.mso-transformation-list li > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(230,57,70,0.22);
    border-radius: 12px;
    background: rgba(230,57,70,0.06);
}

.mso-transformation-list h3 {
    margin-bottom: 7px;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.mso-transformation-list p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.mso-fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mso-fit-card,
.mso-delivery-card {
    padding: 30px;
}

.mso-fit-card > i {
    margin-bottom: 16px;
    color: var(--mso-green);
    font-size: 2rem;
}

.mso-fit-card:nth-child(2) > i { color: #f0b44c; }

.mso-fit-card h3,
.mso-delivery-card h3 {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.3;
}

.mso-fit-card li {
    position: relative;
    padding: 9px 0 9px 18px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mso-fit-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mso-green);
}

.mso-fit-card:nth-child(2) li::before { background: #f0b44c; }

.mso-delivery-card {
    grid-column: 1 / -1;
    border-color: rgba(230,57,70,0.15);
}

.mso-delivery-card > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mso-delivery-card > div span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 13px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    border-radius: 9px;
    background: rgba(255,255,255,0.025);
}

.mso-delivery-card i { color: var(--mso-green); }

.mso-warning {
    padding-top: 70px;
    padding-bottom: 70px;
}

.mso-warning-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 30px;
    border-color: rgba(240,180,76,0.2);
    background: linear-gradient(90deg, rgba(240,180,76,0.075), rgba(255,255,255,0.02));
}

.mso-warning-card > i {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #f0b44c;
    font-size: 1.8rem;
    border-radius: 15px;
    background: rgba(240,180,76,0.1);
}

.mso-warning-card > div > span {
    color: #f0b44c;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.mso-warning-card h2 {
    margin: 4px 0 7px;
    font-family: var(--font-display);
    font-size: 1.55rem;
}

.mso-warning-card p {
    max-width: 800px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.65;
}

.mso-contact {
    background: var(--bg-primary);
}

@keyframes msoPacket {
    0% { left: 0; opacity: 0; }
    12% { opacity: 1; }
    55% { opacity: 1; }
    72%, 100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes msoNodePulse {
    0%, 14%, 100% { border-color: rgba(53,211,154,0.17); background: rgba(53,211,154,0.045); box-shadow: none; }
    24%, 38% { border-color: rgba(53,211,154,0.52); background: rgba(53,211,154,0.11); box-shadow: 0 0 24px rgba(53,211,154,0.12); }
}

@media (max-width: 1100px) {
    .mso-hero { padding-top: 124px; }
    .mso-hero-support { justify-content: flex-start; }
    .mso-definition-card { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .mso-before-after,
    .mso-impact-grid,
    .mso-fit-grid,
    .mso-transformation-list,
    .mso-example-grid {
        grid-template-columns: 1fr;
    }

    .mso-transformation-list li:last-child,
    .mso-delivery-card {
        grid-column: auto;
    }

    .mso-example-card { min-height: 0; }
    .mso-example-card > div { margin-top: 24px; }
    .mso-delivery-card > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mso-warning-card { grid-template-columns: 58px 1fr; align-items: start; }
    .mso-warning-card .btn { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .mso-hero { min-height: 0; padding: 120px 0 100px; }
    .mso-hero-copy h1 { font-size: 2.65rem; }
    .mso-hero-copy > p { font-size: 0.98rem; }
    .mso-hero-support { align-items: flex-start; flex-direction: column; }
    .mso-hero-actions { flex-direction: column; }
    .mso-hero-actions .btn { width: 100%; justify-content: center; }
    .mso-hero-facts { gap: 10px 14px; }
    .mso-hero-visual { padding: 18px; }
    .mso-hero-route { flex-direction: column; min-height: 0; padding: 22px 0; }
    .mso-route-node { width: min(100%, 240px); min-height: 76px; flex: 0 0 auto; }
    .mso-route-link { width: 2px; height: 22px; flex: 0 0 22px; }
    .mso-route-link::after { top: auto; right: -3px; bottom: -1px; transform: rotate(135deg); }
    .mso-route-link i { top: 0; left: -2px; animation-name: msoPacketVertical; }
    .mso-offer-context { flex-direction: column; align-items: flex-start; width: auto; margin: 30px 24px 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
    .mso-definition-card,
    .mso-state-card,
    .mso-impact-card,
    .mso-fit-card,
    .mso-delivery-card { padding: 22px; }
    .mso-definition-main { grid-template-columns: 1fr; }
    .mso-not-list { grid-template-columns: 1fr; }
    .mso-state-card li { grid-template-columns: 1fr; gap: 4px; }
    .mso-delivery-card > div { grid-template-columns: 1fr; }
    .mso-transformation-list li { grid-template-columns: 42px 1fr; padding: 18px; }
    .mso-transformation-list li > span { width: 40px; height: 40px; }
    .mso-warning-card { grid-template-columns: 1fr; padding: 22px; }
}

@keyframes msoPacketVertical {
    0% { top: 0; left: -2px; opacity: 0; }
    12% { opacity: 1; }
    55% { opacity: 1; }
    72%, 100% { top: calc(100% - 5px); left: -2px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .mso-route-node,
    .mso-route-link i {
        animation: none !important;
    }

    .mso-route-link i {
        opacity: 1;
    }
}
