.error-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 150px auto 100px;
}
.error_text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.error_image {
    flex: 1;
    background-image: url("/assets/img/error-page/error-page-image.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 350px;
    width: 100%;
}

.error-page-title {
    color: #0B1F35;
    line-height: 1.2;
}
.error-page-title span {
    display: block;
}

.error-page-btn {
    width: fit-content;
    background-color: #243659;
    padding: 14px 40px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
}
.error-page-btn:hover {
    transform: scale(1.05);
    background-color: #1a2944;
}

.error-page-btn:active {
    transform: scale(0.98);
}

@media(max-width: 1300px) {
    .error-page-container {
        margin: 100px auto;
        padding: 0 60px;
        gap: 40px;
    }
}
@media(max-width: 992px) {
    .error-page-container {
        flex-direction: column;
        margin: 80px auto;
        gap: 16px;
        text-align: center;
        padding: 0 20px;
    }

    .error_text {
        display: contents;
    }

    .error-page-title {
        order: 1;
        width: 100%;
        margin-bottom: 0;
    }

    .error_image {
        order: 2;
        display: block;
        flex: none;
        height: 220px;
        min-height: 220px;
        width: 100%;
        margin: 10px 0;
    }

    .error-page-desc{
        order: 3;
        margin: 0 auto;
        max-width: 450px;
    }
    .error-page-btn {
        order: 4;
    }
}
@media(max-width: 475px) {
    .error-page-container {
        text-align: left;
    }
    .error-page-title{
        font-size: 22px;
    }
    .error_image {
        order: 2;
        display: block;
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: auto;
        margin: 10px 0;
    }
}
.error-page-catalog .container{
    padding: 0;
}
.error-page-catalog {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
    width: 100%;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.col-custom-5 {
    min-width: 0;
}

.error-page-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E6EEF2;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    height: 100%;
    min-height: 70px;
    box-sizing: border-box;
    transition: 0.3s;
    gap: 10px;
}

.error-page-cat-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.error-page-cat-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.error-page-cat-title {
    color: #0B1F35;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
}

.error-page-cat-arrow {
    color: #0B1F35;
    font-size: 18px;
    flex-shrink: 0;
}

.error-page-cat-item:hover {
    background-color: #DCE7ED;
}
@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media(max-width: 1300px) {
    .error-page-container {
        margin: 100px auto;
        padding: 0 60px;
        gap: 40px;
    }
    .error-page-catalog {
        padding: 0 60px;
    }
}
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 992px) {
    .error-page-container {
        flex-direction: column;
        margin: 80px auto;
        gap: 16px;
        text-align: center;
        padding: 0 20px;
    }
    .error-page-catalog {
        padding: 0 20px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}