/* Блоки главной: «С какими запросами», «Как работает сервис», FAQ. */
.home-queries, .home-steps, .home-faq { margin: 0 0 46px; }
/* FAQ — отделяем от предыдущего блока, чтобы не сливался */
.home-faq { margin-top: 52px; padding-top: 44px; border-top: 1px solid #eceff3; }
.home-queries__title, .home-steps__title, .home-faq__title {
    font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.01em;
    margin: 0 0 22px; color: #1a1a1a;
}
/* Единый стиль заголовков блоков главной (Новости/Статьи/Мероприятия/Курсы) */
.home-newspaper .acards__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; color: #1a1a1a;
}

/* ---- 1. С какими запросами помогают наши коучи (мозаика) ---- */
.home-queries__lead { margin: -12px 0 22px; max-width: 760px; font-size: 1.08rem; line-height: 1.55; color: #5a626b; }
.home-queries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-queries__card {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 190px; padding: 26px; border-radius: 20px; overflow: hidden;
    text-decoration: none; color: #2a2320; font-weight: 700; font-size: 1.28rem; line-height: 1.25;
    transition: transform .18s ease, box-shadow .18s ease;
}
.home-queries__card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,20,10,.14); color: #2a2320; }
.home-queries__card--peach    { background: #ffe9db; }
.home-queries__card--mint     { background: #dcf5e6; }
.home-queries__card--sky      { background: #e2eefb; }
.home-queries__card--lavender { background: #ece8fb; }
.home-queries__card--sun      { background: #fff2cc; }
.home-queries__img { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.home-queries__img img { width: 100%; height: 100%; object-fit: cover; }
.home-queries__card:has(.home-queries__img) { color: #fff; }
.home-queries__card:has(.home-queries__img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.05), rgba(20,15,10,.6)); z-index: 0; }
.home-queries__text, .home-queries__go { position: relative; z-index: 1; }
.home-queries__go { margin-top: 12px; color: #ff6b35; font-size: .95rem; }
.home-queries__card:has(.home-queries__img) .home-queries__go { color: #fff; }

/* ---- 2. Как работает сервис (шаги) ---- */
.home-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-steps__card {
    overflow: hidden;
    background: #fff; border: 1px solid #eef1f4; border-radius: 18px;
    box-shadow: 0 6px 20px rgba(30,40,60,.05); text-align: center;
    display: flex; flex-direction: column;
}
/* Верхняя часть — картинка с полной заливкой (до краёв) */
.home-steps__media { width: 100%; aspect-ratio: 3 / 2; background: #f2f5f8; }
.home-steps__media picture, .home-steps__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Без картинки — кружок с номером */
.home-steps__num {
    margin: 26px auto 4px; flex: none;
    width: 52px; height: 52px; border-radius: 50%; background: #ff6b35; color: #fff;
    font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
/* Нижняя часть — текст на белом фоне */
.home-steps__body { padding: 18px 22px 24px; }
.home-steps__card-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: #1a1a1a; }
.home-steps__text { margin: 0; color: #5a626b; line-height: 1.55; }

/* ---- 3. FAQ (аккордеон, оранжевый шеврон) ---- */
.home-faq__inner { max-width: 860px; margin: 0 auto; }
.home-faq__title { text-align: center; }
.home-faq__cat { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: #ff6b35; text-align: center; }
.home-faq__group { margin-bottom: 22px; }
.home-faq__list { list-style: none; margin: 0; padding: 0; }
.home-faq__item { border-bottom: 1px solid #e8ecf0; }
.home-faq__details { padding: 0; }
.home-faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    cursor: pointer; list-style: none; padding: 18px 2px;
}
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__q-text { margin: 0; font-size: 1.08rem; font-weight: 600; color: #1a1a1a; }
.home-faq__chevron { flex: none; display: inline-flex; transition: transform .2s ease; }
.home-faq__details[open] .home-faq__chevron { transform: rotate(180deg); }
.home-faq__a { padding: 0 2px 18px; color: #4a525b; line-height: 1.65; }
.home-faq__a p { margin: 0 0 10px; }

/* ---- 4. Баннер «Если остались вопросы» (Telegram) ---- */
.home-support {
    display: flex; align-items: center; gap: 22px;
    background: #eef4fb; border: 1px solid #e0e9f4; border-radius: 20px;
    padding: 24px 28px; margin: 8px 0 46px;
}
.home-support__icon {
    flex: none; width: 60px; height: 60px; border-radius: 16px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    color: #ff6b35; font-size: 1.6rem; box-shadow: 0 6px 16px rgba(30,40,60,.08);
}
.home-support__text { flex: 1; min-width: 0; }
.home-support__title { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; color: #1a1a1a; }
.home-support__caption { margin: 0; color: #5a626b; line-height: 1.5; }
.home-support__btn {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    background: #fff; color: #229ed9; border: 2px solid #229ed9; font-weight: 700;
    text-decoration: none; transition: background .15s ease, color .15s ease;
}
.home-support__btn:hover { background: #229ed9; color: #fff; }

/* ---- Адаптив ---- */
@media (max-width: 860px) {
    .home-steps__grid { grid-template-columns: 1fr; }
    .home-queries__grid { grid-template-columns: repeat(2, 1fr); }
    .home-support { flex-direction: column; text-align: center; }
    .home-support__btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
    .home-queries__grid { grid-template-columns: 1fr; }
}
/* На мобильном все заголовки блоков главной — по центру */
@media (max-width: 700px) {
    .home-queries__title, .home-steps__title, .home-faq__title { text-align: center; }
    .home-queries__lead { text-align: center; margin-left: auto; margin-right: auto; }
    .home-newspaper .acards__head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-queries__card, .home-faq__chevron { transition: none; }
}
