/*
 * Mateuszkafara.pl - sekcja usług v20.7
 * 4 kolumny desktop / 2 tablet / 1 mobile
 * Korzysta z fontu już obecnego na stronie: Inter Display / Inter.
 * Brak zewnętrznych bibliotek ikon - SVG inline.
 */

.mk-services-v207,
.mk-services-v207 * {
    box-sizing: border-box;
}

.mk-services-v207 {
    --mk-pink: #FF4B8A;
    --mk-pink-soft: #fff2f7;
    --mk-pink-line: #ffd0e1;
    --mk-ink: #0c1628;
    --mk-text: #526176;
    --mk-line: #e4e9f0;
    --mk-surface: #ffffff;
    --mk-bg: #f5f7fb;
    --mk-shadow: 0 10px 28px rgba(18, 32, 52, .055);
    --mk-shadow-hover: 0 16px 34px rgba(18, 32, 52, .095);

    position: relative;
    padding: clamp(52px, 5vw, 76px) 20px;
    background: var(--mk-bg);
    border-top: 1px solid rgba(12, 22, 40, .04);
    border-bottom: 1px solid rgba(12, 22, 40, .04);
    font-family: "Inter Display", "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--mk-ink);
}

.mk-services-v207__inner {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.mk-services-v207__header {
    max-width: 720px;
    margin: 0 auto 28px;
    text-align: center;
}

.mk-services-v207__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    margin-bottom: 10px;
    border: 1px solid var(--mk-pink-line);
    border-radius: 7px;
    background: #fff;
    color: #db2868;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mk-services-v207__header h2 {
    margin: 0;
    color: var(--mk-ink);
    font-size: clamp(24px, 2.35vw, 32px);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.mk-services-v207__header p {
    max-width: 620px;
    margin: 10px auto 0;
    color: var(--mk-text);
    font-size: 14px;
    font-weight: 430;
    line-height: 1.6;
}

.mk-services-v207__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mk-service-v207 {
    position: relative;
    display: flex;
    gap: 14px;
    min-width: 0;
    min-height: 190px;
    padding: 19px 18px 17px;
    overflow: hidden;

    color: inherit;
    text-decoration: none;
    background: var(--mk-surface);
    border: 1px solid var(--mk-line);
    border-radius: 11px;
    box-shadow: var(--mk-shadow);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.mk-service-v207::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: transparent;
    transition: background-color .18s ease;
}

.mk-service-v207:hover {
    transform: translateY(-2px);
    border-color: #f6a3c1;
    box-shadow: var(--mk-shadow-hover);
}

.mk-service-v207:hover::before,
.mk-service-v207.is-featured::before {
    background: var(--mk-pink);
}

.mk-service-v207.is-featured {
    background: #fffafd;
    border-color: #f7a5c2;
    box-shadow: 0 12px 30px rgba(255, 75, 138, .08);
}

.mk-service-v207:focus-visible {
    outline: 3px solid rgba(255, 75, 138, .24);
    outline-offset: 3px;
    border-color: var(--mk-pink);
}

.mk-service-v207__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    margin-top: 1px;
    color: var(--mk-pink);
    background: var(--mk-pink-soft);
    border: 1px solid #ffe0eb;
    border-radius: 9px;
}

.mk-service-v207__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mk-service-v207__content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mk-service-v207 h3 {
    margin: 2px 0 8px;
    color: var(--mk-ink);
    font-size: 15.5px;
    font-weight: 730;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.mk-service-v207 p {
    margin: 0;
    color: var(--mk-text);
    font-size: 13px;
    font-weight: 420;
    line-height: 1.53;
}

.mk-service-v207__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin-top: auto;
    padding-top: 15px;

    color: #d92667;
    font-size: 12.5px;
    font-weight: 720;
    line-height: 1.2;
}

.mk-service-v207__cta > span {
    font-size: 16px;
    line-height: 1;
    transform: translateX(0);
    transition: transform .18s ease;
}

.mk-service-v207:hover .mk-service-v207__cta > span {
    transform: translateX(3px);
}

@media (max-width: 1120px) {
    .mk-services-v207__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-service-v207 {
        min-height: 176px;
    }
}

@media (max-width: 680px) {
    .mk-services-v207 {
        padding: 42px 14px;
    }

    .mk-services-v207__header {
        margin-bottom: 21px;
        text-align: left;
    }

    .mk-services-v207__header h2 {
        font-size: 24px;
    }

    .mk-services-v207__header p {
        margin-left: 0;
        font-size: 13.5px;
    }

    .mk-services-v207__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mk-service-v207 {
        min-height: 0;
        padding: 16px 15px 15px;
        border-radius: 10px;
    }

    .mk-service-v207__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .mk-service-v207 h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .mk-service-v207 p {
        font-size: 12.75px;
        line-height: 1.5;
    }

    .mk-service-v207__cta {
        padding-top: 12px;
        font-size: 12.25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-service-v207,
    .mk-service-v207__cta > span {
        transition: none;
    }

    .mk-service-v207:hover {
        transform: none;
    }
}
