/* Flat Stats Block */

.fs-stats {
    width: 100%;
    padding: 0;
    font-family: var(--wp--preset--font-family--archivo);
}

.fs-container {
    max-width: var(--wp--style--global--wide-size);
    margin: 0 auto;
}

.fs-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
}

.grid-5 .fs-stats__grid {
	grid-template-columns: repeat(5, 1fr);
}

.fs-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    border-right: 2px solid #4C4C4C;
    box-sizing: border-box;
}

.fs-stats__item:first-child {
    padding-left: 0;
}

.fs-stats__item:last-child {
    border-right: none;
    padding-right: 0;
}

.fs-stats__value {
    font-family: var(--wp--preset--font-family--gilroy);
    font-size: var(--wp--preset--font-size--heading-2);
    line-height: 1.2;
    color: var(--wp--preset--color--orange);
    margin-bottom: 8px;
}

.fs-stats__label {
    font-family: var(--wp--preset--font-family--archivo);
    font-size: var(--wp--preset--font-size--text);
    color: var(--wp--preset--color--white);
    line-height: 1.5;
}

/* Align wide/full */
.fs-stats.alignwide .fs-container,
.fs-stats.alignfull .fs-container {
    max-width: 100%;
    padding: 0;
}

/* === RESPONSYWNOŚĆ === */

@media (max-width: 992px) {
	
	.grid-5 .fs-stats__grid,
    .fs-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 0;
    }

    .fs-stats__item {
        padding: 0 20px;
        border-right: 2px solid #4C4C4C;
		
    }

    /* Usuń border z 2. i 4. elementu (koniec rzędu) */
    .fs-stats__item:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .fs-stats__item:nth-child(2n+1) {
        padding-left: 0;
    }

    .fs-stats__value {
        font-size: var(--wp--preset--font-size--heading-3);
    }
}

@media (max-width: 600px) {
	.grid-5 .fs-stats__grid,
    .fs-stats__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fs-stats__item {
        padding: 20px 0;
        border-right: none;
		align-items: center;
    	text-align: center;
    }

    .fs-stats__item:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .fs-stats__item::after {
        content: "";
        display: block;
        width: 20%;
        height: 2px;
        background-color: #4C4C4C;
        margin-top: 20px;
    }

    .fs-stats__item:last-child::after {
        display: none;
    }

    .fs-stats__value {
        font-size: var(--wp--preset--font-size--heading-3);
    }
}

/* SENT */
@media (max-width: 720px) {
	.custom-grid-2 {
			grid-template-columns: repeat(2, 1fr) !important;
	}
	.align-center div{
		align-items: center;
	}
	.align-center hr{
			margin-right: auto !important;
	}
}