/* =========================================================
   MOBILE HOMEPAGE – MOBILNY-RANKING.PL
========================================================= */

.mr-mobile-home {
    --mobile-bg: #0d172c;
    --mobile-card: #101d35;
    --mobile-text: #ffffff;
    --mobile-muted: #aeb8cc;

    --mobile-pink: #ff0871;
    --mobile-blue: #1884ff;
    --mobile-green: #10d794;

    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 48px;

    box-sizing: border-box;
}

.mr-mobile-home *,
.mr-mobile-home *::before,
.mr-mobile-home *::after {
    box-sizing: border-box;
}

.mr-home {
    background: var(--mobile-bg);
}


/* =========================================================
   HERO
========================================================= */

.mr-mobile-hero {
    position: relative;
    padding-top: 42px;
}

.mr-mobile-hero-content {
    position: relative;
    z-index: 2;
}

.mr-mobile-hero h1 {
    max-width: 650px;
    margin: 0;

    color: var(--mobile-text);

    font-size: clamp(30px, 7vw, 52px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.mr-gradient-text {
    display: inline;

    background: linear-gradient(
        90deg,
        #ff0871 0%,
        #d927e9 42%,
        #1884ff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mr-mobile-hero p {
    max-width: 580px;
    margin: 24px 0 0;

    color: var(--mobile-muted);

    font-size: 16px;
    line-height: 1.65;
    font-weight: 500;
}


/* =========================================================
   KROKI
========================================================= */

.mr-steps-section {
    margin: 32px 0 22px;
}

.mr-steps-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mr-step-card {
    --step-color: #ff0871;
    --step-color-rgb: 255, 8, 113;

    position: relative;

    display: grid;
    grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) 58px;
    align-items: center;
    gap: 18px;

    min-height: 230px;
    padding: 24px;

    overflow: hidden;

    border: 1px solid rgba(var(--step-color-rgb), 0.72);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 20% 72%,
            rgba(var(--step-color-rgb), 0.22),
            transparent 38%
        ),
        linear-gradient(
            110deg,
            rgba(12, 25, 50, 0.99),
            rgba(5, 15, 34, 0.99)
        );

    color: #ffffff;
    text-decoration: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 45px rgba(0, 0, 0, 0.2);

    isolation: isolate;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.mr-step-card::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    opacity: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(var(--step-color-rgb), 0.05)
    );

    transition: opacity 0.25s ease;
}

.mr-step-card--pink {
    --step-color: #ff0871;
    --step-color-rgb: 255, 8, 113;
}

.mr-step-card--purple {
    --step-color: #1884ff;
    --step-color-rgb: 24, 132, 255;
}

.mr-step-card--green {
    --step-color: #10d794;
    --step-color-rgb: 16, 215, 148;
}

.mr-step-card:hover {
    transform: translateY(-4px);

    border-color: var(--step-color);

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.3),
        0 0 32px rgba(var(--step-color-rgb), 0.1);
}

.mr-step-card:hover::after {
    opacity: 1;
}


/* =========================================================
   GRAFIKA KROKU
========================================================= */

.mr-step-visual {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: 190px;
}

.mr-step-visual::before {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 14px;

    width: 150px;
    height: 95px;

    border-radius: 50%;

    background: rgba(var(--step-color-rgb), 0.24);
    filter: blur(32px);

    transform: translateX(-50%);
}

.mr-step-visual img {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    max-width: 190px;
    max-height: 190px;

    object-fit: contain;
    object-position: center bottom;

    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.44));

    transition: transform 0.3s ease;
}

.mr-step-card:hover .mr-step-visual img {
    transform: translateY(-4px) scale(1.025);
}


/* =========================================================
   TREŚĆ KROKU
========================================================= */

.mr-step-content {
    position: relative;
    z-index: 3;

    min-width: 0;
}

.mr-step-content h3 {
    max-width: 430px;
    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.mr-step-content p {
    max-width: 430px;
    margin: 0;

    color: rgba(222, 230, 244, 0.76);

    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
}


/* =========================================================
   STRZAŁKA
========================================================= */

.mr-step-arrow {
    position: relative;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--step-color);
    color: #ffffff;

    font-size: 22px;

    box-shadow: 0 12px 28px rgba(var(--step-color-rgb), 0.28);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mr-step-card:hover .mr-step-arrow {
    transform: translateX(4px);

    box-shadow:
        0 16px 34px rgba(var(--step-color-rgb), 0.4);
}


/* =========================================================
   KARTA RANKINGU
========================================================= */

.mr-mobile-ranking-card {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(230px, 1.4fr) minmax(130px, 0.7fr);
    align-items: center;
    gap: 24px;

    width: 100%;
    margin-top: 20px;
    padding: 30px 26px;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(119, 60, 255, 0.13),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            rgba(7, 18, 41, 0.99),
            rgba(3, 12, 29, 0.99)
        );

    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.mr-mobile-speed {
    min-width: 0;
    padding-right: 22px;

    border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.mr-mobile-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    margin-bottom: 18px;

    border: 2px solid var(--mobile-pink);
    border-radius: 50%;

    color: #ffffff;
    font-size: 22px;
}

.mr-mobile-speed > span {
    display: block;

    color: #c5cedd;

    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.mr-mobile-speed > strong {
    display: block;
    margin-top: 18px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 58px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.mr-mobile-speed > strong small {
    display: block;
    margin-top: 10px;

    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.02em;
}


/* ranking operatorów */

.mr-mobile-ranking {
    min-width: 0;
}

.mr-mobile-ranking-title {
    display: block;
    margin-bottom: 18px;

    color: #c7cedd;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.mr-mobile-ranking-row {
    display: grid;
    grid-template-columns: 78px minmax(50px, 1fr) 32px;
    align-items: center;
    gap: 10px;

    width: 100%;
    margin-bottom: 13px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.mr-mobile-ranking-row:last-child {
    margin-bottom: 0;
}

.mr-mobile-ranking-row > span {
    min-width: 0;
    white-space: nowrap;
}

.mr-mobile-ranking-row > div {
    width: 100%;
    height: 9px;

    overflow: hidden;

    border-radius: 999px;
    background: #25304a;
}

.mr-mobile-ranking-row > div i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #ff0871,
        #d422e9
    );
}

.mr-mobile-ranking-row:nth-child(3) > div i {
    background: linear-gradient(
        90deg,
        #773cff,
        #a451ff
    );
}

.mr-mobile-ranking-row:nth-child(4) > div i {
    background: linear-gradient(
        90deg,
        #ff0871,
        #f31385
    );
}

.mr-mobile-ranking-row:nth-child(5) > div i {
    background: linear-gradient(
        90deg,
        #02b778,
        #18d996
    );
}

.mr-mobile-ranking-row strong {
    text-align: right;
}


/* AI score */

.mr-mobile-ai-score {
    min-width: 0;
    padding-left: 22px;

    border-left: 1px solid rgba(255, 255, 255, 0.11);

    text-align: center;
}

.mr-mobile-score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 112px;
    margin: 0 auto 12px;

    border: 4px solid var(--mobile-pink);
    border-bottom-color: rgba(255, 8, 113, 0.12);
    border-radius: 50%;

    box-shadow:
        0 0 30px rgba(255, 8, 113, 0.14),
        inset 0 0 25px rgba(255, 8, 113, 0.06);
}

.mr-mobile-score-ring strong {
    color: var(--mobile-pink);

    font-size: 42px;
    line-height: 0.9;
    font-weight: 900;
}

.mr-mobile-score-ring span {
    margin-top: 4px;

    color: #d1d7e5;

    font-size: 14px;
    font-weight: 800;
}

.mr-mobile-ai-score p {
    margin: 0;

    color: #b9c1d2;

    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}


/* =========================================================
   GŁÓWNE CTA
========================================================= */

.mr-mobile-main-cta {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 14px;

    width: 100%;
    min-height: 84px;
    margin-top: 20px;
    padding: 14px 26px;

    border-radius: 22px;

    background: linear-gradient(
        90deg,
        #ff0072 0%,
        #ff0967 55%,
        #ff205e 100%
    );

    color: #ffffff;

    text-decoration: none;
    text-transform: uppercase;

    box-shadow:
        0 18px 40px rgba(255, 0, 114, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mr-mobile-main-cta span {
    text-align: center;

    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.mr-mobile-main-cta i:first-child {
    font-size: 25px;
}

.mr-mobile-main-cta i:last-child {
    justify-self: end;

    font-size: 25px;
}

.mr-mobile-main-cta:hover {
    transform: translateY(-3px);

    box-shadow:
        0 24px 52px rgba(255, 0, 114, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 760px) {
    .mr-mobile-home {
        padding-inline: 18px;
    }

    .mr-mobile-hero {
        padding-top: 34px;
    }

    .mr-step-card {
        grid-template-columns: 150px minmax(0, 1fr) 48px;
        gap: 14px;

        min-height: 210px;
        padding: 20px;
    }

    .mr-step-visual {
        height: 170px;
    }

    .mr-step-visual img {
        max-width: 165px;
        max-height: 170px;
    }

    .mr-step-content h3 {
        font-size: 26px;
    }

    .mr-step-content p {
        font-size: 15px;
    }

    .mr-step-arrow {
        width: 48px;
        height: 48px;

        font-size: 19px;
    }

    .mr-mobile-ranking-card {
        grid-template-columns: minmax(120px, 0.75fr) minmax(200px, 1.25fr);
    }

    .mr-mobile-ai-score {
        grid-column: 1 / -1;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;

        padding: 22px 0 0;

        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .mr-mobile-score-ring {
        width: 92px;
        height: 92px;
        margin: 0;
    }

    .mr-mobile-score-ring strong {
        font-size: 34px;
    }

    .mr-mobile-ai-score p {
        text-align: left;
    }
}


/* =========================================================
   TELEFON
========================================================= */

@media (max-width: 560px) {
    .mr-mobile-home {
        padding: 0 20px 38px;
    }

    .mr-mobile-hero {
        padding-top: 24px;
    }

    .mr-mobile-hero h1 {
        font-size: clamp(28px, 9vw, 36px);
        line-height: 1.02;
    }

    .mr-mobile-hero p {
        margin-top: 22px;

        font-size: 14px;
        line-height: 1.6;
    }

    .mr-steps-section {
        margin-top: 28px;
    }

    .mr-steps-list {
        gap: 14px;
    }

    .mr-step-card {
        grid-template-columns: 72px minmax(0, 1fr) 42px;
        gap: 12px;

        min-height: 60px !important;
        padding: 18px 14px;

        border-radius: 23px;
    }

    .mr-step-visual {
        align-self: end;
        height: 50px !important;
    }

    .mr-step-visual::before {
        bottom: 8px;

        width: 85px;
        height: 60px;

        filter: blur(22px);
    }

    .mr-step-visual img {
        width: 92px;
        max-width: 92px;
        max-height: 55px;
    }

    .mr-step-content h3 {
        margin-bottom: 11px;

        font-size: 20px;
        line-height: 1.04;
        letter-spacing: -0.035em;
    }

    .mr-step-content p {
        display: -webkit-box;

        overflow: hidden;

        color: rgba(222, 230, 244, 0.72);

        font-size: 13px;
        line-height: 1.42;

        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .mr-step-arrow {
        width: 42px;
        height: 42px;

        font-size: 17px;
    }

    .mr-mobile-ranking-card {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 18px;

        margin-top: 16px;
        padding: 22px 18px;

        border-radius: 23px;
    }

    .mr-mobile-speed {
        padding-right: 16px;
    }

    .mr-mobile-stat-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;

        font-size: 18px;
    }

    .mr-mobile-speed > span {
        font-size: 13px;
        line-height: 1.4;
    }

    .mr-mobile-speed > strong {
        margin-top: 16px;

        font-size: 42px;
    }

    .mr-mobile-speed > strong small {
        font-size: 19px;
    }

    .mr-mobile-ranking-title {
        margin-bottom: 14px;

        font-size: 12px;
    }

    .mr-mobile-ranking-row {
        grid-template-columns: 59px minmax(28px, 1fr) 25px;
        gap: 6px;

        margin-bottom: 11px;

        font-size: 11px;
    }

    .mr-mobile-ranking-row > div {
        height: 7px;
    }

    .mr-mobile-ai-score {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        justify-content: start;
        gap: 16px;

        padding-top: 18px;

        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mr-mobile-score-ring {
        width: 82px;
        height: 82px;
    }

    .mr-mobile-score-ring strong {
        font-size: 30px;
    }

    .mr-mobile-score-ring span {
        font-size: 12px;
    }

    .mr-mobile-ai-score p {
        align-self: center;

        font-size: 13px;
        text-align: left;
    }

    .mr-mobile-main-cta {
        grid-template-columns: 30px minmax(0, 1fr) 22px;
        gap: 10px;

        min-height: 76px;
        padding: 12px 18px;

        border-radius: 20px;
    }

    .mr-mobile-main-cta span {
        font-size: 19px;
    }

    .mr-mobile-main-cta i:first-child {
        font-size: 21px;
    }

    .mr-mobile-main-cta i:last-child {
        font-size: 22px;
    }
}


/* =========================================================
   BARDZO MAŁE TELEFONY
========================================================= */

@media (max-width: 390px) {
    .mr-mobile-home {
        padding-inline: 14px;
    }

    .mr-mobile-hero h1 {
        font-size: 29px;
    }

    .mr-step-card {
        grid-template-columns: 58px minmax(0, 1fr) 38px;
        gap: 10px;
        padding: 15px 12px;
        min-height: 40px;
    }

    .mr-step-visual {
        height: 40px !important;
        min-height: 40px !important;
    }

    .mr-step-visual img {
        width: 52px;
        max-width: 52px;
        max-height: 68px;
    }

    .mr-step-content h3 {
        font-size: 14px;
    }

    .mr-step-content p {
        font-size: 10px;

        -webkit-line-clamp: 3;
    }

    .mr-step-arrow {
        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    .mr-mobile-ranking-card {
        grid-template-columns: 1fr;
    }

    .mr-mobile-speed {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;

        padding: 0 0 18px;

        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mr-mobile-stat-icon {
        margin: 0;
    }

    .mr-mobile-speed > strong {
        margin: 0;

        font-size: 32px;
        text-align: right;
    }

    .mr-mobile-speed > strong small {
        margin-top: 5px;

        font-size: 14px;
    }

    .mr-mobile-ai-score {
        grid-column: auto;
    }
}


