/* ========================================
   КОМПОНЕНТ: error-page (404)
   Описание: Страница ошибки 404
   ======================================== */

.error-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    padding: clamp(12px, 3vh, 24px);
    overflow: hidden;
    
    background: radial-gradient(closest-side at 50% 50%, rgba(174, 95, 52, 0.84) -50%, rgba(29, 15, 7, 0.04) 100%);
    background-size: 90% 95%;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========================================
   RAYS - Фоновые лучи
   ======================================== */

.error-page__rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1920px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.error-page__rays-img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.error-page__container {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 8vh, 83px);
    padding: clamp(20px, 4vh, 40px) 0;
}

/* ========================================
   LOGO - Логотип
   ======================================== */

.error-page__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.error-page__logo-img {
    width: auto;
    height: auto;
    max-width: min(200px, 15vw);
    max-height: min(60px, 8vh);
    object-fit: contain;
}

.error-page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vh, 24px);
    text-align: center;
    width: 100%;
}

/* ========================================
   SLOT - Изображение слота 404
   ======================================== */

.error-page__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(400px, 30vw);
    max-height: min(300px, 25vh);
}

.error-page__slot-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========================================
   TITLE - Заголовок
   ======================================== */

.error-page__title {
    margin: 0;
    
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 68px);
    line-height: 1.23;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}

/* ========================================
   DESCRIPTION - Описание
   ======================================== */

.error-page__description {
    margin: 0;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.33;
    letter-spacing: -0.005em;
    color: rgba(255, 255, 255, 0.64);
    max-width: min(770px, 90vw);
}

/* ========================================
   BUTTON - Кнопка перехода на главную (будет заменена на кнопку из common components)
   ======================================== */

.error-page__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 1.5vh, 12px) clamp(20px, 2.5vw, 24px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, rgba(23, 114, 242, 1) 0%, rgba(81, 149, 246, 1) 100%);
    color: #FFFFFF;
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.33;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 16px 0px rgba(13, 104, 232, 0.24);
    white-space: nowrap;
}

.error-page__button:hover {
    background: linear-gradient(180deg, rgba(81, 149, 246, 1) 0%, rgba(23, 114, 242, 1) 100%);
    box-shadow: 0px 4px 20px 0px rgba(13, 104, 232, 0.32);
}

.error-page__button:active {
    transform: scale(0.98);
}

/* ========================================
   MEDIA QUERIES - Адаптивность (Desktop-first)
   ======================================== */

/* ≤959 */
@media (max-width: 959px) {
    .error-page {
        padding: clamp(12px, 2vh, 16px);
    }
    
    .error-page__container {
        gap: clamp(32px, 6vh, 64px);
    }
}

/* ≤599 */
@media (max-width: 599px) {
    .error-page {
        padding: clamp(8px, 1.5vh, 12px);
    }
    
    .error-page__container {
        gap: clamp(24px, 4vh, 32px);
    }
    
    .error-page__content {
        gap: clamp(12px, 2.5vh, 20px);
    }

    .error-page__slot {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        max-height: auto;
    }
}

