.quick-access__blocks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 40px;
    margin-top: 70px;
}

.quick-access__blocks .quick-access__block {
    min-width: 0;
    aspect-ratio: 1;
    padding: 15% 10% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(0, 128, 128, 0.3);
    text-decoration: none;
}

.quick-access__picture {
    width: 70%;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.quick-access__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-access__block .quick-access__title {
    width: 100%;
    min-height: 2.4em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--second-primary, #cc0000);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(12px, 1.3vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.quick-access__block:focus-visible {
    outline: 3px solid var(--primary-color, #008080);
    outline-offset: 5px;
}

@media (max-width: 767px) {
    .quick-access__blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 40px;
    }

    .quick-access__block .quick-access__title {
        font-size: clamp(12px, 2.5vw, 16px);
    }
}

.error-page__content {
    width: 100%;
    max-width: 720px;
    text-align: center;
    height: 55vh;
}

.error-page__code {
    color: var(--primary-color);
    font-size: clamp(112px, 24vw, 200px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

.error-page__title {
    margin-top: 24px;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
}

.error-page__title::before {
    content: "";
    display: block;
    width: 32px;
    height: 4px;
    margin: 0 auto 24px;
    background: var(--second-primary);
}

.error-page__text {
    max-width: 440px;
    margin: 20px auto 32px;
    color: #526565;
    font-size: 16px;
    line-height: 1.7;
}

.error-page .error-page__home {
    display: inline-block;
    max-width: 100%;
    color: var(--text-primary);
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
}

.error-page a:focus-visible {
    outline: 3px solid var(--second-primary);
    outline-offset: 6px;
}

.error-page .error-page__home:focus-visible {
    outline-color: var(--primary-color);
}

@media (max-width: 480px) {
    .error-page__header {
        padding: 20px 24px;
    }

    .error-page__logo img {
        width: 130px;
    }

    .error-page__main {
        padding: 40px 24px;
    }
}
