/* Главная страница: цифры, услуги, калькулятор, этапы, проекты, вопросы, статьи */
.home-section { padding: 50px 0; }
.home-section--grey { background: #f3f3f3; }
.home-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 28px;
    line-height: 1.3;
    color: #2f7829;
    text-align: center;
    margin: 0 0 30px;
}
.home-lead { text-align: center; max-width: 760px; margin: -15px auto 30px; color: #555; font-size: 16px; line-height: 1.6; }
.home-center { text-align: center; margin: 20px 0 0; }

.home-btn {
    display: inline-block;
    background: #2f7829;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background .3s;
}
.home-btn:hover { background: #303030; }
.home-btn--outline { background: none; color: #2f7829 !important; border: 2px solid #2f7829; padding: 12px 28px; }
.home-btn--outline:hover { background: #2f7829; color: #fff !important; }

/* цифры под hero: светлая полоса с разделителями */
.home-facts { background: #fff; border-bottom: 1px solid #e5e5e5; padding: 22px 0; }
.home-facts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; text-align: center; }
.home-facts__list li { flex: 1 1 25%; padding: 4px 10px; border-right: 1px solid #e5e5e5; }
.home-facts__list li:last-child { border-right: 0; }
.home-facts__list strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 30px; line-height: 1.2; color: #2f7829; }
.home-facts__list span { display: block; font-size: 14px; color: #666; }

/* карточки услуг */
.home-cards > div { margin-bottom: 20px; }
.home-card { height: 100%; border: 1px solid #e5e5e5; border-top: 4px solid #2f7829; border-radius: 6px; padding: 22px 22px 18px; background: #fff; }
.home-card h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: bold; margin: 0 0 8px; }
.home-card h3 a { color: #303030; }
.home-card h3 a:hover { color: #2f7829; text-decoration: none; }
.home-card__price { color: #2f7829; font-weight: bold; font-size: 17px; margin: 0 0 10px; }
.home-card p { font-size: 15px; line-height: 1.55; color: #444; }
.home-card__more { font-weight: bold; color: #2f7829; }
@media (min-width: 768px) {
    .home-cards { display: flex; flex-wrap: wrap; }
    .home-cards::before, .home-cards::after { display: none; }
}

/* калькулятор */
.home-calc { background: #272f38 url('../images/workWithUs.webp') no-repeat center / cover; color: #fff; text-align: center; padding: 55px 0; }
.home-calc h2 { font-family: 'Montserrat', sans-serif; font-weight: bold; font-size: 28px; margin: 0 0 12px; color: #fff; }
.home-calc p { max-width: 640px; margin: 0 auto 25px; font-size: 17px; line-height: 1.6; }

/* этапы работы */
.home-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.home-steps li { counter-increment: step; flex: 1 1 180px; background: #fff; border-radius: 6px; padding: 20px 18px; position: relative; }
.home-steps li::before {
    content: counter(step);
    display: block; width: 36px; height: 36px; line-height: 36px; border-radius: 50%;
    background: #2f7829; color: #fff; text-align: center; font-weight: bold; margin-bottom: 10px;
}
.home-steps strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 16px; margin-bottom: 6px; color: #303030; }
.home-steps span { display: block; font-size: 14px; line-height: 1.5; color: #555; }

/* проекты: карточки из project_card() */
.home-projects .project { min-height: 0; justify-content: flex-start; cursor: auto; margin-bottom: 20px; }
.home-projects .project img.post_thumbnail { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; }
.home-projects .projectTitle { margin-top: 10px; font-weight: bold; text-align: center; }

/* «Почему мы»: заголовки колонок теперь h3 (были h4) */
#whyChoose .stolbindex h3 { font-size: 1.5rem; color: #2f7829; font-family: 'Montserrat', sans-serif; font-weight: bold; text-align: center; margin: 10px 0; }
#whyChoose .sectionTitle .home-title { font-family: 'Montserrat', sans-serif; font-size: 28px; line-height: 1.3; color: #2f7829; margin: 50px 0 20px; }
#whyChoose .home-about { clear: both; text-align: center; max-width: none; padding: 10px 0 40px; }
#partners { padding-top: 40px; }
#partners .home-title { margin-bottom: 10px; }

/* вопросы */
.home-faq { max-width: 860px; margin: 0 auto; }
.home-faq details { border-bottom: 1px solid #e5e5e5; padding: 14px 0; }
.home-faq summary { cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: bold; font-size: 17px; color: #303030; list-style: none; position: relative; padding-right: 30px; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 22px; color: #2f7829; }
.home-faq details[open] summary::after { content: '−'; }
.home-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #444; }

/* статьи */
.home-articles > div { margin-bottom: 20px; }
.home-article { display: block; background: #fff; border-radius: 6px; overflow: hidden; color: #303030; height: 100%; }
.home-article:hover { color: #2f7829; text-decoration: none; }
.home-article img { width: 100%; height: 180px; object-fit: cover; display: block; }
.home-article span { display: block; padding: 14px 16px; font-weight: bold; line-height: 1.4; }

@media (max-width: 767px) {
    .home-section { padding: 35px 0; }
    .home-title, .home-calc h2, #whyChoose .sectionTitle .home-title { font-size: 22px; }
    .home-facts__list li { flex-basis: 50%; padding: 8px 6px; }
    .home-facts__list li:nth-child(2n) { border-right: 0; }
    .home-facts__list li:nth-child(-n+2) { border-bottom: 1px solid #e5e5e5; }
    .home-facts__list strong { font-size: 24px; }
}
