/* Sekcja tła i odstępy */
.gr-offer {
    padding: 80px 0;
    background: #f9fafb; /* podobne do bg-gray-50 */
}

.gr-offer__container {
    max-width: 1200px; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 16px;
}

/* Nagłówek sekcji */
.gr-offer__head {
    text-align: center;
    margin-bottom: 64px;
}

.gr-offer__badge {
    display: inline-block;
    padding: 8px 16px;
    background: #dcfce7;   /* green-100 */
    color: #15803d;        /* green-700 */
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 16px;
}

.gr-offer__title {
    margin: 0 0 12px 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #111827;
}

.gr-offer__subtitle {
    margin: 0 auto;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
}

/* Siatka 3 kolumny */
.gr-offer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .gr-offer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Kafelek */
.gr-offer__card {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 1;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
    transform: translateZ(0);
    transition: transform 250ms ease, box-shadow 250ms ease;
    text-decoration: none !important;
}

.gr-offer__card:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

/* Media */
.gr-offer__media {
    position: absolute;
    inset: 0;
}

.gr-offer__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 500ms ease;
}

.gr-offer__card:hover .gr-offer__img {
    transform: scale(1.1);
}

.gr-offer__img--placeholder {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.gr-offer__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.45) 55%,
            rgba(0,0,0,0.05) 100%
    );
}

/* Content na dole */
.gr-offer__content {
    position: relative;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 12px;
}

/* Zielony klocek na ikonę */
.gr-offer__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #16a34a; /* green-600 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease;
}

.gr-offer__card:hover .gr-offer__icon {
    background: #15803d; /* green-700 */
}

/* SVG */
.gr-offer__svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

/* Tytuł w kafelku */
.gr-offer__cardTitle {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* ===== MODAL ===== */
.gr-offer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gr-offer-modal.is-open {
    display: block;
}

.gr-offer-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
}

.gr-offer-modal__dialog {
    position: relative;
    width: min(980px, calc(100% - 32px));
    margin: 6vh auto;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.gr-offer-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(17,24,39,0.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.gr-offer-modal__hero {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.gr-offer-modal__heroOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.60), rgba(0,0,0,0.15));
}

.gr-offer-modal__heroContent {
    position: absolute;
    left: 28px;
    bottom: 22px;
    right: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gr-offer-modal__iconBox {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.gr-offer-modal__title {
    margin: 0;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.gr-offer-modal__body {
    padding: 28px;
}

.gr-offer-modal__text {
    margin: 0;
    line-height: 1.75;
}

.gr-offer-modal__text p {
    color: #4a5565;
}

.gr-offer-modal__actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 14px;
    align-items: center;
}

@media (max-width: 900px) {
    .gr-offer-modal__actions {
        grid-template-columns: 1fr;
    }
}

.gr-offer-modal__btn {
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
}

.gr-offer-modal__btn--primary {
    background: #16a34a;
    color: #fff;
}

.gr-offer-modal__btn--secondary {
    background: #8b7350; /* podobny brąz jak na screenie */
    color: #fff;
}

.gr-offer-modal__btn--ghost {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}

.gr-offer-modal-open {
    overflow: hidden;
}

.gr-offer-modal__text ul,
.gr-offer-modal__text ol {
    margin: 14px 0 0 0;
    padding: 0;
}

.gr-offer-modal__text ul {
    list-style: none;
}

.gr-offer-modal__text li {
    position: relative;
    padding-left: 28px;
    color: #4a5565;

}

.gr-offer-modal__text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 18px;
    height: 18px;
    background-color: #16a34a; /* green-600 */

    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M9%2016.2%204.8%2012%203.4%2013.4%209%2019%2021%207%2019.6%205.6z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20fill%3D'%23000'%20d%3D'M9%2016.2%204.8%2012%203.4%2013.4%209%2019%2021%207%2019.6%205.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.gr-offer-modal__text ol {
    padding-left: 22px;
}


.gr-offer-modal__actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 220px;
    gap: 14px;
    align-items: center;
}


/* ===== MOBILE MODAL SCROLL + FOOTER FIX ===== */
@media (max-width: 768px) {

    .gr-offer-modal__dialog{
        width: calc(100% - 16px);
        margin: 8px auto;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .gr-offer-modal__hero{
        height: 170px;
        flex: 0 0 auto;
    }

    .gr-offer-modal__body{
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px;
    }

    .gr-offer-modal__actions{
        flex: 0 0 auto;
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e5e7eb;

        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 0;
    }

    .gr-offer-modal__btn{
        width: 100%;
        height: 52px;
        white-space: normal;
        line-height: 1.1;
        padding: 10px 14px;
    }

}


