/* =============================================
   СЛУЖЕБНЫЕ СТРАНИЦЫ (текст, 404, спасибо)
   ============================================= */

/* ---- Текстовая страница ---- */

.text-page { padding: 80px 0; color: var(--deep-navy); }

.text-page__title { color: var(--deep-navy); margin-bottom: 28px; margin-top: 24px; }

.text-page__body { font-size: 15px; line-height: 26px; color: var(--deep-navy); }

.text-page__body h2,
.text-page__body h3,
.text-page__body h4 { color: var(--deep-navy); margin: 32px 0 12px; font-weight: 600; }

.text-page__body h2 { font-size: 24px; line-height: 32px; }
.text-page__body h3 { font-size: 20px; line-height: 28px; }
.text-page__body h4 { font-size: 17px; line-height: 26px; }

.text-page__body p { margin-bottom: 14px; }

.text-page__body ul,
.text-page__body ol { margin: 0 0 14px 22px; padding: 0; }

.text-page__body ul li { list-style: disc; margin-bottom: 6px; }
.text-page__body ol li { list-style: decimal; margin-bottom: 6px; }

.text-page__body a { color: var(--corporate-blue); text-decoration: underline; }
.text-page__body a:hover { text-decoration: none; }
.text-page__body strong { font-weight: 600; }

/* =============================================
   404 + Спасибо (.page-hero — светлый, как hero)
   ============================================= */

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--warm-ivory);
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 60px 0;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}


.page-hero__bg picture { display: block; width: 100%; height: 100%; }

.page-hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero__inner { max-width: 620px;
display: flex;
flex-direction: column;
align-items: center; margin: 0 auto; }

.page-hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.page-hero__num {
    font-family: var(--font-heading);
    font-size: 300px;
    font-weight: 500;
    line-height: 0.9;
    color: var(--deep-navy);
    letter-spacing: -0.07em;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--deep-navy);
    margin-bottom: 16px;
}

.page-hero__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--graphite);
    margin-bottom: 36px;
}

.page-hero__btn { height: 52px; padding: 0 38px; font-size: 16px; }

/* ============================================
   ПЛАНШЕТ ≤ 1080px
   ============================================ */

@media (max-width: 1080px) {
    .page-hero__num   { font-size: 130px; }
    .page-hero__title { font-size: 34px; }
}

/* ============================================
   МОБАЙЛ ≤ 768px
   ============================================ */

@media (max-width: 768px) {
    .page-hero { min-height: 0; padding: 40px 0 240px; }

    /* На мобайле изображение уходит вниз, текст — поверх белого верха */
    .page-hero__bg::after {
        background: linear-gradient(180deg, var(--warm-ivory) 0%, rgba(245, 243, 239, 0.75) 38%, rgba(245, 243, 239, 0) 100%);
    }
    .page-hero__bg img { object-position: center bottom; }

    .page-hero__num   { font-size: 96px; margin-bottom: 8px; }
    .page-hero__title { font-size: 28px; }
    .page-hero__text  { margin-bottom: 28px; }
    .page-hero__btn   { width: 100%; justify-content: center; }
    .page-hero__inner { max-width: none; }

    .page-hero__actions {
        grid-template-columns: 1fr;
    }
}
