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

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

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

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

.text-page__body {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-text);
}

.text-page__body h1,
.text-page__body h2,
.text-page__body h3,
.text-page__body h4,
.text-page__body h5,
.text-page__body h6 {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 20px;
}

.text-page__body h1 { font-size: 44px; line-height: 52px; }
.text-page__body h2 { font-size: 32px; line-height: 40px; }
.text-page__body h3,
.text-page__body h4,
.text-page__body h5,
.text-page__body h6 { font-size: 24px; line-height: 32px; }

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

.text-page__body ul,
.text-page__body ol { margin: 0 0 20px 24px; 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(--primary); text-decoration: underline; }
.text-page__body a:hover { text-decoration: none; }
.text-page__body strong { font-weight: 600; }

.text-page__body > * + h2,
.text-page__body > * + h3,
.text-page__body > * + h4,
.text-page__body > * + h5,
.text-page__body > * + h6 {
    padding-top: 20px;
}

.text-page__body > *:last-child {
    margin-bottom: 0;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    min-height: 800px;
    padding: 140px 0 80px;
}

.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: right center;
}

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

.page-hero__inner { max-width: 560px; }

.page-hero__num {
    font-family: 'EdgeLine', var(--font);
    font-size: 300PX;
    line-height: 0.9;
    color: var(--secondary);
    margin-bottom: 12px;
    letter-spacing: -2px;
}

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

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

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

.text-page__body blockquote {
    position: relative;
    padding: 29px 20px 33px calc(47px + 39px);
    color: var(--color-text);
    border: 1px solid var(--accent);
    min-height: 120px;
    margin-bottom: 20px;
}

.text-page__body blockquote > *:last-child {
    margin-bottom: 0;
}

.text-page__body blockquote::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 47px;
    min-height: calc(100% + 6px);
    background: var(--secondary);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 60% 100%, 0 100%);
}

.text-page__body blockquote::after {
    display: block;
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    height: calc(100% - 12px);
    width: calc(47px - 10px);
    border-left: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
}


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

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

    .text-page__body { font-size: 15px; line-height: 24px; }
    .text-page__body h1 { font-size: 30px; line-height: 38px; }
    .text-page__body h2 { font-size: 24px; line-height: 32px; }
    .text-page__body h3,
    .text-page__body h4,
    .text-page__body h5,
    .text-page__body h6 { font-size: 20px; line-height: 28px; }
}

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

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

    /* На мобайле изображение уходит вниз, текст — поверх белого верха */
    .page-hero__bg::after {
        background: linear-gradient(180deg, var(--bg) 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; }

    .text-page__body blockquote {
        padding: 10px 10px 10px calc(47px + 32px);
        min-height: 100px;
        margin-bottom: 10px;
    }

    .text-page__body h1,
    .text-page__body h2,
    .text-page__body h3,
    .text-page__body h4,
    .text-page__body h5,
    .text-page__body h6 {
    margin-bottom: 10px;
    }


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

    .text-page__body ul,
    .text-page__body ol { margin: 0 0 10px 24px; padding: 0; }

    .text-page__body > * + h2,
    .text-page__body > * + h3,
    .text-page__body > * + h4,
    .text-page__body > * + h5,
    .text-page__body > * + h6 {
        padding-top: 10px;
    }
}

