.product-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0 calc((100vw - 4 * var(--pn-box-width)) / 8);
    --pn-box-width: 300px;
    --pn-box-height: 450px;
    padding: 50px;
    padding: 50px max(50px, (100vw - 4 * var(--pn-box-width)) / 3.5);
    background: #ececec;
}

.product-navigation__tile {
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-decoration: none;
    color: black;
    width: var(--pn-box-width);
    height: var(--pn-box-height);
    border-radius: 25px;
    background-size: 105%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-size 500ms ease-in-out, background-image 500ms ease-in-out;
    cursor: pointer;
    /* To preload hover bg images */
}
.product-navigation__tile > * {
    pointer-events: none;
    opacity: 1;
    transition: opacity 200ms ease-in-out;
}
.product-navigation__tile:hover {
    background-size: 120%;
}
.product-navigation__tile:hover label {
    text-shadow: 1px 1px 2px rgb(0, 0, 0), 0 0 5px rgba(0, 0, 0, 0.5);
}
.product-navigation__tile:hover > span, .product-navigation__tile:hover > i {
    opacity: 0;
}
.product-navigation__tile::before {
    content: "";
    display: block;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}
.product-navigation__tile > * {
    flex: 1;
    overflow: hidden;
}
.product-navigation__tile > label {
    color: white;
    font-size: 30px;
    font-family: "Poppins", Arial, Verdana, sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: text-shadow 500ms ease-in-out;
}
.product-navigation__tile i {
    display: block;
    width: 100%;
    background-position: center;
    background-size: 180px;
    background-repeat: no-repeat;
}
.product-navigation__tile > span {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
.product-navigation__tile > span > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 25px;
}
.product-navigation__tile > span > span > span {
    border-radius: 500px;
    border: 1px solid white;
    padding: 2px 15px;
    color: white;
    display: inline-block;
    margin: 5px;
}

@media (max-width: 1380px) {
    .product-navigation {
        grid-template-columns: 1fr 1fr;
        gap: 0 calc((100vw - 2 * var(--pn-box-width)) / 5);
        padding-left: calc((100vw - 2 * var(--pn-box-width)) / 2.5);
        padding-right: calc((100vw - 2 * var(--pn-box-width)) / 2.5);
    }
}
@media (max-width: 768px) {
    .product-navigation {
        --pn-box-height: 250px;
        --pn-box-width: 350px;
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 90px;
        padding-bottom: 30px;
        padding-left: 0;
        padding-right: 0;
    }
    .product-navigation__tile > i {
        background-size: 120px;
    }
    .product-navigation__tile > span > span {
        padding-bottom: 5px;
    }
    .product-navigation__tile > span > span > span {
        padding: 2px 12px;
        margin: 4px 3px;
        font-size: 14px;
    }
}
.product-navigation__tile--airport-cx {
    background-image: url("/storage/navigation/1_1.jpg");
}
.product-navigation__tile--airport-cx::before, .product-navigation__tile--airport-cx:hover {
    background-image: url("/storage/navigation/1.jpg");
}
.product-navigation__tile--airport-cx i {
    background-image: url("/storage/navigation/ikona_1.svg");
}
.product-navigation__tile--airport-cx > span > span > span {
    background-color: rgba(111, 184, 209, 0.85);
}

.product-navigation__tile--transit-cx {
    background-image: url("/storage/navigation/2_2.jpg");
}
.product-navigation__tile--transit-cx::before, .product-navigation__tile--transit-cx:hover {
    background-image: url("/storage/navigation/2.jpg");
}
.product-navigation__tile--transit-cx i {
    background-image: url("/storage/navigation/ikona_2.svg");
}
.product-navigation__tile--transit-cx > span > span > span {
    background-color: rgba(50, 112, 90, 0.85);
}

.product-navigation__tile--enterprise-cx {
    background-image: url("/storage/navigation/3_3.jpg");
}
.product-navigation__tile--enterprise-cx::before, .product-navigation__tile--enterprise-cx:hover {
    background-image: url("/storage/navigation/3.jpg");
}
.product-navigation__tile--enterprise-cx i {
    background-image: url("/storage/navigation/ikona_3.svg");
}
.product-navigation__tile--enterprise-cx > span > span > span {
    background-color: rgba(140, 69, 62, 0.85);
}

.product-navigation__tile--nnounce {
    background-image: url("/storage/navigation/4_4.jpg");
    position: relative;
}
.product-navigation__tile--nnounce::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transform: translate(34px, 34px);
    background-image: url("/storage/navigation/micnode.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    pointer-events: none;
}
.product-navigation__tile--nnounce::before, .product-navigation__tile--nnounce:hover {
    background-image: url("/storage/navigation/4.jpg");
}
.product-navigation__tile--nnounce label {
    background-image: url("/storage/navigation/nnounce.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px;
    width: 100%;
}
.product-navigation__tile--nnounce i {
    background-image: url("/storage/navigation/ikona_4.svg");
}

.product-navigation__label {
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: 20px 15px 15px 15px;
    margin-top: 25px;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: bold;
    color: #1d232b;
    position: relative;
}
.product-navigation__label::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 15px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSItNTAwIC00IDEwNTAgNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGxpbmUgeDE9IjAiIHkxPSI0MyIgeDI9IjEwMCIgeTI9IjQzIiBzdHJva2U9IiNlY2VjZWMiIHN0cm9rZS13aWR0aD0iNiIgLz4KICA8bGluZSB4MT0iLTUwMCIgeTE9IjQyIiB4Mj0iLTIyIiB5Mj0iNDIiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iNCIgLz4KICA8bGluZSB4MT0iNjYiIHkxPSI0MiIgeDI9IjEwMDAiIHkyPSI0MiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI0IiAvPgogIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yNywgMCkiPgogICAgPHBhdGggc3R5bGU9ImZpbGw6ICNlY2VjZWM7IHN0cm9rZTogcmdiKDAsIDAsIDApOyBzdHJva2Utd2lkdGg6IDQiIGQ9Ik0gNDkuMzk1IDE2Ni44MzUgQyA0OS4zOTUgMTY2LjgzNSA1NS43NzggMTY2LjE5OCA1OC45NzIgMTY2LjMzMSBDIDcyLjg4OCAxNjYuOTEzIDg0LjE3NCAxMjMuOTkyIDEwNC4zMzUgMTI0LjQ5NiBDIDEyNC40OTYgMTI1IDEyOS4xNzUgMTY1Ljc4NSAxNDEuNjMzIDE2Ni4zMzEgQyAxNTEuMzA4IDE2Ni43NTUgMTU0LjczOCAxNjYuODM1IDE1NC43MzggMTY2LjgzNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQ5LjM5NSAtMTI0LjQ5NikiLz4KICA8L2c+Cjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 350px;
}

.product-navigation__label--pis {
    grid-column: span 2;
}
.product-navigation__label--pis::before {
    transform: translateX(-50%) translateX(-5px);
}

@media (max-width: 1380px) {
    .product-navigation__label--pis {
        grid-row: 2;
        margin-bottom: 50px;
    }
}
@media (max-width: 768px) {
    .product-navigation__label {
        width: var(--pn-box-width);
        margin: auto;
    }
    .product-navigation__label--pis {
        grid-column: 1;
        grid-row: 3;
        margin-bottom: 0;
    }
    .product-navigation__label--dsas {
        grid-row: 5;
    }
    .product-navigation__tile--transit-cx {
        background-position: center 75%;
    }
    .product-navigation__tile--airport-cx {
        background-position: center 40%;
    }
    .product-navigation__tile--nnounce > i {
        opacity: 0;
    }
    .product-navigation__tile--nnounce {
        background-position: bottom center;
    }
    .product-navigation__tile--nnounce::after {
        transform: translate(34px, 10px);
    }
    :hover .product-navigation__tile--nnounce > span {
        opacity: 1;
    }
    .product-navigation__tile--nnounce > span::before {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-image: url("/storage/navigation/ikona_4.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}
