﻿/* ==========================================================================
   СТИЛИ СТРАНИЦ СТАТЕЙ И НОВОСТЕЙ
   (article-concrete-choice.html, formwork-comparison.html,
    foundation-moscow.html, news-*.html)
   ========================================================================== */

/* ---------- Hero-блок статьи ---------- */
.hero-article {
    padding: 120px 0;
}

.hero-article .hero-heading {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.hero-article .hero-description {
    text-align: center;
    margin: 0 auto;
    max-width: 900px;
}

/* ---------- Хлебные крошки (используются в статьях и новостях) ---------- */
.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs--news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.breadcrumbs--news a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.breadcrumbs--news a:hover { color: #fbbf24; }
.breadcrumbs--news a i { font-size: 0.85rem; }

.breadcrumbs-sep { color: #94a3b8; user-select: none; }
.breadcrumbs-current { color: #cbd5e1; }

/* ---------- Секция статьи / новости ---------- */
.article-section {
    padding: 60px 0 80px;
    background-color: #f8fafc;
}

.article-card-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* ---------- Фото ---------- */
.photo-container {
    width: 100%;
    overflow: hidden;
    background: #e2e8f0;
}

.article-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ---------- Основной контент статьи ---------- */
.article-content {
    padding: 45px;
}

.article-lead {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.7;
}

.article-content h2 {
    font-size: 1.6rem;
    color: var(--secondary);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 30px 0 15px;
}

.article-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ---------- Ссылки в тексте статьи (кроме кнопок!) ---------- */
.article-content a:not(.btn) {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.article-content a:not(.btn):hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* ---------- Списки в статье ---------- */
.article-list {
    margin: 15px 0 20px 20px;
    color: var(--dark-gray);
    list-style: none;
}

.article-list li {
    margin-bottom: 10px;
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
}

.article-list li::before {
    content: '\2022';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Нумерованный список */
.article-ordered {
    margin: 15px 0 20px 25px;
    color: var(--dark-gray);
    counter-reset: step;
    list-style: none;
}

.article-ordered li {
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 35px;
    position: relative;
    counter-increment: step;
}

.article-ordered li::before {
    content: counter(step);
    color: var(--white);
    background: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Info-боксы ---------- */
.info-box {
    margin: 30px 0;
    padding: 22px 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.info-box-primary {
    border-left-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.info-box-accent {
    border-left-color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
}

.info-box h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box-accent h4 { color: var(--accent); }

.info-box p {
    margin: 0 0 10px;
    color: var(--dark-gray);
    line-height: 1.65;
}

.info-box p:last-child { margin-bottom: 0; }

.info-box a {
    color: var(--primary);
    font-weight: 500;
}

.info-box-accent a { color: var(--accent); }

/* ---------- Финальный блок-заметка ---------- */
.article-note {
    margin: 35px 0;
    padding: 22px 25px;
    background-color: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.article-note p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.7;
}

.article-note a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

/* ---------- Тёмный блок «Ключевая мысль» ---------- */
.important-note {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent);
}

.important-note h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-note h4 i { color: var(--accent); }

.important-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.important-note strong { color: #fbbf24; }

/* ---------- Карточка типа опалубки / грунта ---------- */
.formwork-type-card {
    margin: 25px 0;
    padding: 25px 30px;
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formwork-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.formwork-type-card--accent { border-top-color: var(--accent); }
.formwork-type-card--green  { border-top-color: #10b981; }
.formwork-type-card--amber  { border-top-color: #f59e0b; }

/* Шапка карточки типа */
.formwork-type-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.formwork-type-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.formwork-type-icon--accent { background: var(--accent); }
.formwork-type-icon--green  { background: #10b981; }
.formwork-type-icon--amber  { background: #f59e0b; }

.formwork-type-header h3 {
    margin: 0 0 5px;
    color: var(--secondary);
    font-size: 1.25rem;
}

.formwork-type-header p {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
}

/* Заголовки внутри карточки */
.formwork-type-card h4 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.05rem;
}

.formwork-type-card--amber h4 {
    color: #d97706;
}

/* ---------- Список «Когда нужна» / «Рекомендации» ---------- */
.application-list {
    margin: 15px 0 20px 20px;
    color: var(--dark-gray);
    list-style: none;
}

.application-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.application-list li::before {
    content: '\2713';
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* ---------- Блок «Наши рекомендации» ---------- */
.recommendation-box {
    background: #f8fafc;
    padding: 15px 18px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 3px solid var(--accent);
}

.recommendation-box p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.recommendation-box i {
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.recommendation-box strong { color: var(--secondary); }

/* ---------- Блок features внутри статьи ---------- */
.article-features {
    margin: 40px 0;
}

.article-features .features-grid {
    margin-top: 0;
}

/* ---------- Список инструментов (калькуляторы) ---------- */
.tools-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 0;
    padding: 0;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.tool-link:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* ---------- Кнопки действий внизу статьи ---------- */
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 768px) {
    .hero-article {
        padding: 110px 0 40px;
    }

    .hero-article .hero-heading {
        font-size: 1.8rem;
    }

    .breadcrumbs--news {
        font-size: 0.88rem;
        gap: 6px;
    }

    .article-section {
        padding: 30px 0 50px;
    }

    .article-content {
        padding: 25px 20px;
    }

    .article-lead {
        font-size: 1.02rem;
    }

    .article-content h2 {
        font-size: 1.35rem;
        margin: 30px 0 15px;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .info-box {
        padding: 18px 20px;
    }

    .important-note {
        padding: 20px;
    }

    .important-note h4 {
        font-size: 1.1rem;
    }

    .formwork-type-card {
        padding: 20px;
    }

    .formwork-type-header {
        gap: 14px;
    }

    .formwork-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .formwork-type-header h3 {
        font-size: 1.1rem;
    }

    .application-list {
        margin-left: 15px;
    }

    .tools-list {
        flex-direction: column;
        align-items: stretch;
    }

    .tool-link {
        width: 100%;
        justify-content: flex-start;
    }

    .article-actions {
        flex-direction: column;
        align-items: center;
    }

    .article-actions .btn {
        width: 100%;
        max-width: 320px;
    }
}
/* ==================== ВИДЕО ИНСТРУКЦИИ ==================== */
.video-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.video-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 15px;
}

.video-note i {
    color: var(--accent);
    margin-right: 5px;
}

/* ==================== ФОТО В ИНСТРУКЦИИ ==================== */
.instruction-photo {
    margin: 25px 0;
    text-align: center;
}

.instruction-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.instruction-photo figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}
/* Блок-призыв как ссылка */
.info-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box-link:hover {
    transform: translateY(-3px);
}

.info-box-link:hover .info-box {
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.info-box-link .info-box {
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}