/* ============================================
   СТИЛИ ДЛЯ БЛОКОВ ГЛАВНОЙ СТРАНИЦЫ
   home-blocks.css — Премиум Минимализм
   ============================================ */

/* ============================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */
.advantages,
.child-pages,
.catalog_items,
.gallery_items,
.testimonials,
.news,
.faq,
.process {
    padding: 80px 0;
}

.advantages .container,
.child-pages .container,
.catalog_items .container,
.gallery_items .container,
.testimonials .container,
.news .container,
.faq .container,
.process .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.section-header {
    text-align: left;
    margin-bottom: 56px;
    max-width: 700px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subhead {
    font-size: 17px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   2. БЛОК ПРЕИМУЩЕСТВ (4 колонки)
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.advantage-card {
    background: white;
    padding: 36px 28px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    text-align: left;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: transparent;
    transition: background 0.3s ease;
}

.advantage-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.advantage-card:hover::before {
    background: #94a3b8;
}

/* Иконка */
.advantage-icon {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    color: #0f172a;
    transition: all 0.25s ease;
}

.advantage-card:hover .advantage-icon {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.advantage-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   3. БЛОК ДОЧЕРНИХ СТРАНИЦ
   ============================================ */
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.child-page-card {
    position: relative;
    background: #0f172a;
    border-radius: 8px;
    padding: 44px 36px;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    border: 1px solid rgba(255,255,255,0.06);
}

.child-page-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Уголок */
.child-page-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.03) 50%);
    border-radius: 0 8px 0 0;
}

/* Фоновое изображение */
.child-page-bg-image {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 240px;
    height: 240px;
    opacity: 0.1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    transition: all 0.35s ease;
}

.child-page-card:hover .child-page-bg-image {
    opacity: 0.18;
    transform: scale(1.05);
}

.child-page-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.child-page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.child-page-title a {
    color: white;
    text-decoration: none;
}

.child-page-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.child-page-excerpt {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 28px;
    flex: 1;
}

.child-page-property {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.property-label {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.property-value {
    font-size: 28px;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
}

.child-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    transition: all 0.25s ease;
    width: fit-content;
    font-size: 15px;
}

.child-page-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    gap: 12px;
}

/* ============================================
   4. БЛОК КАТАЛОГА
   ============================================ */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.catalog-card-link {
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.catalog-card-link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.catalog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-image {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    background: #f8fafc;
}

.catalog-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-card-link:hover .catalog-image img {
    transform: scale(1.04);
}

.catalog-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
}

.catalog-content {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-title {
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.catalog-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.catalog-price-block {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-old {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-current {
    font-size: 22px;
    font-weight: 600;
    color: #0f172a;
}

.catalog-footer {
    text-align: left;
}

.hb-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.hb-btn-link::after {
    /*content: '→';*/
    transition: transform 0.25s ease;
}

.hb-btn-link:hover {
    border-color: #0f172a;
    background: #f9fafb;
    gap: 12px;
}

.hb-btn-link:hover::after {
    transform: translateX(3px);
}

/* ============================================
   5. БЛОК ГАЛЕРЕИ
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.gallery-item {
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.gallery-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-img {
    height: 260px;
    overflow: hidden;
    background: #f8fafc;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.04);
}

.gallery-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
}

.gallery-content {
    padding: 22px 28px;
}

.gallery-category {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.gallery-title {
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.gallery-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.gallery-footer {
    text-align: left;
}

/* ============================================
   6. БЛОК ОТЗЫВОВ
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.testimonial-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 3px;
}

.author-info p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.rating {
    display: flex;
    gap: 4px;
}

.rating i {
    color: #f59e0b;
    font-size: 14px;
}

.rating i.fa-star-o {
    color: #d1d5db;
}

.testimonials-actions {
    text-align: left;
}

/* ============================================
   7. БЛОК НОВОСТЕЙ
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.news-card-link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-link:hover .news-card-image img {
    transform: scale(1.04);
}

.news-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2.5rem;
}

.news-date {
    position: absolute;
    bottom: 14px;
    left: 16px;
    font-size: 12px;
    color: white;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.news-card-content {
    padding: 22px 28px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.news-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 16px;
}

.news-read-more {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 3px;
    transition: all 0.2s ease;
}

.news-card-link:hover .news-read-more {
    border-color: #0f172a;
}

.news-footer {
    text-align: left;
}

/* ============================================
   8. БЛОК FAQ
   ============================================ */
.faq-grid {
    max-width: 800px;
    margin: 0;
}

.faq-item {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item.open {
    border-color: #94a3b8;
    box-shadow: 0 2px 16px rgba(0,0,0,0.03);
}

.faq-question {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.question-icon {
    display: none;
}

.question-text {
    flex: 1;
}

.question-text h4 {
    font-size: 17px;
    font-weight: 500;
    color: #334155;
    margin: 0;
    transition: color 0.2s ease;
}

.faq-item.open .question-text h4 {
    color: #0f172a;
    font-weight: 600;
}

.question-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border: 1px solid #e8ecf1;
    border-radius: 4px;
}

.faq-item.open .question-toggle {
    transform: rotate(45deg);
    color: #0f172a;
    border-color: #94a3b8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.answer-content {
    padding: 0 28px 24px;
}

.answer-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   9. БЛОК ПРОЦЕССА
   ============================================ */
/* ============================================
   9. БЛОК ПРОЦЕССА
   ============================================ */

/* Сетка шагов — 2 колонки */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.step-card {
    display: flex;
    gap: 18px;
    padding: 32px 28px;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.step-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

/* Маркер */
.step-marker {
    flex-shrink: 0;
}

.step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.step-card:hover .step-badge {
    border-color: #0f172a;
    color: #0f172a;
    background: #f9fafb;
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.04);
}

/* Тело шага */
.step-body {
    flex: 1;
}

.step-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.step-body p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.step-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
}

.step-time svg {
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .step-card {
        padding: 24px 22px;
        gap: 14px;
    }
    
    .step-badge {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .step-body h4 {
        font-size: 16px;
    }
    
    .step-body p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .step-card {
        padding: 20px 18px;
        gap: 12px;
    }
    
    .step-badge {
        width: 36px;
        height: 36px;
        font-size: 12px;
        border-width: 1.5px;
    }
    
    .step-body h4 {
        font-size: 15px;
    }
}

/* ============================================
   10. АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 1100px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .child-pages-grid,
    .catalog-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages,
    .child-pages,
    .catalog_items,
    .gallery_items,
    .testimonials,
    .news,
    .faq,
    .process {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-subhead {
        font-size: 16px;
    }

    .advantages-grid,
    .child-pages-grid,
    .catalog-grid,
    .gallery-grid,
    .testimonials-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .child-page-card {
        min-height: auto;
        padding: 32px 28px;
    }

    .child-page-title {
        font-size: 20px;
    }

    .child-page-bg-image {
        width: 180px;
        height: 180px;
    }

    .catalog-title {
        font-size: 18px;
    }

    .gallery-title {
        font-size: 18px;
    }

    .news-card-title {
        font-size: 17px;
    }

    .faq-question {
        padding: 18px 22px;
    }

    .question-text h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .child-page-card {
        padding: 26px 22px;
    }

    .child-page-title {
        font-size: 19px;
    }

    .property-value {
        font-size: 24px;
    }

    .catalog-content,
    .gallery-content,
    .news-card-content {
        padding: 20px 22px;
    }

    .gallery-img {
        height: 220px;
    }

    .hb-btn-link {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
}