.counter-main-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
@media only screen and (min-width: 992px) {
    .counter-main-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}
.counter-main-wrapper .counter-single {
    padding: 30px 20px;
    position: relative;
    text-align: center;
    z-index: 2;
}
@media only screen and (min-width: 768px) {
    .counter-main-wrapper .counter-single {
        padding: 50px 20px;
    }
}
@media only screen and (min-width: 1200px) {
    .counter-main-wrapper .counter-single {
        padding: 70px 40px 60px;
    }
}
.counter-main-wrapper .counter-single::before {
    position: absolute;
    content: "";
    height: 4px;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #121212;
    transition: 0.45s;
    z-index: -1;
}
.counter-main-wrapper .counter-single:not(:last-child) {
    border-right: 1px solid #DDDDDD;
}
.counter-main-wrapper .counter-single:nth-child(2n+1)::before {
    bottom: 0;
    top: inherit;
}
.counter-main-wrapper .counter-single:nth-child(2) {
    border-right: 0;
}
@media only screen and (min-width: 992px) {
    .counter-main-wrapper .counter-single:nth-child(2) {
        border-right: 1px solid #DDDDDD;
    }
}
.counter-main-wrapper .counter-single:hover::before {
    height: 100%;
}
.counter-main-wrapper .counter-single:hover h3 {
    color: #FFFFFF;
}
.counter-main-wrapper .counter-single:hover p {
    color: #DDDDDD;
}
.counter-main-wrapper .counter-single h3 {
    font: 400 40px "Space Grotesk", serif;
    color: #aaa;
    margin-bottom: 30px;
}
@media only screen and (min-width: 768px) {
    .counter-main-wrapper .counter-single h3 {
        font-size: 70px;
    }
}
@media only screen and (min-width: 992px) {
    .counter-main-wrapper .counter-single h3 {
        margin-bottom: 50px;
    }
}
@media only screen and (min-width: 1200px) {
    .counter-main-wrapper .counter-single h3 {
        font-size: 80px;
        margin-bottom: 100px;
    }
}
@media only screen and (min-width: 1400px) {
    .counter-main-wrapper .counter-single h3 {
        font-size: 100px;
    }
}
@media only screen and (min-width: 1600px) {
    .counter-main-wrapper .counter-single h3 {
        font-size: 120px;
        margin-bottom: 150px;
    }
}
.counter-main-wrapper .counter-single p {
    font: 400 20px "DM Sans", sans-serif;
    color: #121212;
    margin-bottom: 0;
}
@media (max-width: 575px) {
    .counter-main-wrapper .counter-single p {
        font-size: 18px;
    }
}
