/* ============================================
   About Coaching Page - SEO Optimized
   ============================================ */

.coaching-page {
    background: #ffffff;
}

/* Hero Section */
.coaching-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.coaching-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/site/images/pages/about-coaching/coaching-hero.31fabd001cac.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.coaching-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(58, 90, 124, 0.85) 0%,
        rgba(44, 62, 80, 0.9) 100%
    );
    z-index: 1;
}

.coaching-hero__container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 80px 20px;
}

.coaching-hero__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.coaching-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 0 24px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.coaching-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* SEO Article Section */
.coaching-article {
    padding: 64px 20px 28px;
    background: #ffffff;
}

.coaching-article__container {
    max-width: 900px;
    margin: 0 auto;
}

.coaching-article__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3a5a7c;
    margin: 0 0 12px;
}

.coaching-article__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.coaching-article__content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #444;
}

.coaching-article__content p {
    margin: 0 0 18px;
}

.coaching-article__content p:last-child {
    margin-bottom: 0;
}

.coaching-article__content a {
    color: #3a5a7c;
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 90, 124, 0.35);
}

.coaching-article__content a:hover {
    color: #2c4a68;
    border-bottom-color: rgba(44, 74, 104, 0.6);
}

/* Applications Section */
.coaching-applications {
    padding: 60px 20px;
    background: #f8f8f8;
}

.coaching-applications__container {
    max-width: 1100px;
    margin: 0 auto;
}

.coaching-applications__header {
    text-align: center;
    margin-bottom: 50px;
}

.coaching-applications__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #3a5a7c;
    margin-bottom: 12px;
}

.coaching-applications__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.coaching-applications__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.application-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.application-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.application-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3a5a7c 0%, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: #ffffff;
}

.application-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

/* Links Section */
.coaching-links {
    padding: 60px 20px;
    background: #1a1a1a;
    color: #ffffff;
}

.coaching-links__container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.coaching-link-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.coaching-link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.coaching-link-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.8;
}

.coaching-link-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.coaching-link-card__text {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .coaching-applications__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .coaching-hero {
        min-height: 350px;
    }

    .coaching-hero__container {
        padding: 60px 20px;
    }

    .coaching-hero__title {
        font-size: 2rem;
    }

    .coaching-hero__subtitle {
        font-size: 1.0625rem;
    }

    .coaching-article {
        padding: 44px 20px 20px;
    }

    .coaching-article__title {
        font-size: 1.7rem;
    }

    .coaching-applications {
        padding: 40px 20px;
    }

    .coaching-applications__title {
        font-size: 1.75rem;
    }

    .coaching-applications__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .application-card {
        padding: 24px 16px;
    }

    .coaching-links__container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .coaching-applications__grid {
        grid-template-columns: 1fr;
    }

    .application-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }

    .application-card__icon {
        margin: 0;
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* TL;DR-блок (краткая выжимка в начале гайдов и страниц применения) */
.tldr {
    background: #f4f7fa;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3a5a7c;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 32px;
}
.tldr__title {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3a5a7c;
}
.tldr__list {
    margin: 0;
    padding-left: 1.25em;
}
.tldr__list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #2d3748;
}
.tldr__list li:last-child {
    margin-bottom: 0;
}

/* «Обновлено» в hero страниц применения */
.coaching-hero__updated {
    margin: 12px 0 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
}
.detail-meta__item--updated { opacity: 0.85; }

/* Редакция: карточки авторов */
.editorial-authors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.editorial-author {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.editorial-author__photo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #f1f5f9;
}
.editorial-author__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editorial-author__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 2rem;
}
.editorial-author__body { flex: 1; min-width: 0; }
.editorial-author__name { margin: 0 0 4px; font-size: 1.125rem; }
.editorial-author__name a { color: #1a1a1a; text-decoration: none; }
.editorial-author__name a:hover { color: #3a5a7c; }
.editorial-author__role {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #3a5a7c;
    font-weight: 600;
}
.editorial-author__bio { margin: 0 0 10px; font-size: 0.9375rem; color: #555; line-height: 1.55; }
.editorial-author__meta { margin: 0; font-size: 0.8125rem; color: #94a3b8; }
.editorial-author__meta a { color: #3a5a7c; text-decoration: none; }

/* ============================================================
   Блок «Что дальше?» (редизайн coaching-links) — светлая полоса,
   карточки из CMS-модели CoachingPromoCard. Выровнен по 1100px.
   ============================================================ */
.coaching-next { background: #f6f8fb; border-top: 1px solid #eef2f7; padding: 56px 20px; }
.coaching-next__container { max-width: 1100px; margin: 0 auto; }
.coaching-next__title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; font-weight: 600; color: #1a1a1a; margin: 0 0 26px; text-align: center; }
.coaching-next__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.next-card { position: relative; display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid #e8edf2; border-radius: 14px; padding: 26px 24px;
    text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.next-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(20,40,70,.1); border-color: #d8e0ea; }
.next-card__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 12px; background: rgba(58,90,124,.1); color: #3a5a7c; font-size: 1.25rem; margin-bottom: 16px; }
.next-card__title { font-size: 1.0625rem; font-weight: 600; color: #1a1a1a; margin: 0 0 6px; }
.next-card__text { font-size: .875rem; color: #64748b; line-height: 1.5; margin: 0 0 16px; }
.next-card__arrow { margin-top: auto; color: #3a5a7c; font-size: .9375rem; transition: transform .2s ease; }
.next-card:hover .next-card__arrow { transform: translateX(4px); }

@media (max-width: 768px) {
    .coaching-next { padding: 40px 16px; }
    .coaching-next__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   Цвет заголовка шапки вида коучинга (CoachingType.hero_text_color)
   ============================================================ */
/* Светлый (по умолчанию): белый заголовок на тёмной обложке */
.coaching-hero--text-light { color: #ffffff; }
.coaching-hero--text-light .coaching-hero__title { color: #ffffff; }

/* Тёмный: для светлой обложки — осветляем оверлей и делаем текст тёмным */
.coaching-hero--text-dark { color: #1a1a1a; }
.coaching-hero--text-dark::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.86) 100%);
}
.coaching-hero--text-dark .coaching-hero__title { color: #1a1a1a; text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
.coaching-hero--text-dark .coaching-hero__subtitle { color: #1a1a1a; opacity: 0.9; }
.coaching-hero--text-dark .coaching-hero__label { background: rgba(26,26,26,0.12); color: #1a1a1a; }

/* ============================================================
   Отступы заголовков в тексте статьи (UX: «воздух» сверху больше, чем снизу —
   принцип близости: заголовок ближе к своему абзацу, дальше от предыдущего).
   Сверху ≈1.6–2em, снизу ≈0.5em (~3:1).
   ============================================================ */
.coaching-article__content h1,
.coaching-article__content h2,
.coaching-article__content h3,
.coaching-article__content h4 {
    font-family: "Playfair Display", Georgia, serif;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 600;
}
.coaching-article__content h1 { font-size: 2rem;    margin: 1.4em 0 0.6em; }
.coaching-article__content h2 { font-size: 1.7rem;  margin: 2em 0 0.6em; }
.coaching-article__content h3 { font-size: 1.35rem; margin: 1.7em 0 0.5em; }
.coaching-article__content h4 { font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.coaching-article__content h1:first-child,
.coaching-article__content h2:first-child,
.coaching-article__content h3:first-child { margin-top: 0; }

/* Редакция (editorial-макет): светлые карточки-ссылки «Дальше» */
.ed-linkcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 8px 0 8px;
}
.ed-linkcard {
    display: flex; flex-direction: column; gap: 6px;
    background: #fff; border: 1px solid #e4e2db; border-radius: 14px;
    padding: 20px 20px 22px; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ed-linkcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,20,10,.08); border-color: #e0d5cd; }
.ed-linkcard__icon { color: #e85520; font-size: 1.35rem; }
.ed-linkcard__title { font-weight: 700; font-size: 1.05rem; color: #1a1a1a; }
.ed-linkcard__role { color: #e85520; font-size: .8rem; font-weight: 600; }
.ed-linkcard__text { color: #6b6660; font-size: .92rem; line-height: 1.45; }

/* Внутри editorial-страницы блок авторов — небольшие отступы */
.ed-body .editorial-authors { margin: 6px 0 8px; }
