/* ============================================
   Anatomy Page Styles
   ============================================ */

.hero-anatomy {
    min-height: 60vh;
}

/* Anatomy Section */
.anatomy-section {
    padding: var(--section-gap) var(--container-padding);
    position: relative;
}

.anatomy-section-alt {
    background: var(--surface);
}

.anatomy-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gradient-blue) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.15;
}

/* Anatomy Grid - Основные элементы */
/* ============================================
   Сетки страницы «Из чего состоит памятник»:
   строго по 2 блока в ряд
   ============================================ */
.anatomy-grid,
.cost-grid,
.savings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ровно 2 колонки */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* карточки в ряду одной высоты */
}

/* чуть плотнее на средних экранах */
@media (max-width: 1200px) {
    .anatomy-grid,
    .cost-grid,
    .savings-grid {
        gap: 20px;
    }
}

/* планшет в портрете и мобильные — одна колонка */
@media (max-width: 768px) {
    .anatomy-grid,
    .cost-grid,
    .savings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.anatomy-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anatomy-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
}

.anatomy-card__visual {
    margin-bottom: 24px;
}

.anatomy-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(135deg, rgba(56, 189, 248, 0.20) 0%, rgba(192, 132, 252, 0.20) 100%);*/
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.anatomy-icon .material-symbols-outlined {
    font-size: 32px;
    color: var(--tertiary);
}

.anatomy-card__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 16px;
}

.anatomy-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.anatomy-card__text:last-child {
    margin-bottom: 0;
}

/* Cost Grid - Факторы стоимости */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cost-item {
    padding: 28px;
    transition: transform 0.3s ease;
}

.cost-item:hover {
    /*transform: translateY(-2px);*/
}

.cost-item__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.cost-item__number {
    font-size: 32px;
    font-weight: 100;
    color: var(--tertiary);
    opacity: 0.6;
    line-height: 1;
}

.cost-item__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--on-surface);
}

.cost-item__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.cost-item__text:last-child {
    margin-bottom: 0;
}

/* Savings Grid - Советы по экономии */
.savings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.savings-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    transition: transform 0.3s ease;
}

.savings-item:hover {
    /*transform: translateY(-2px);*/
}

.savings-item-warning {
    border-left: 3px solid var(--primary);
    background: var(--glass-bg);
}

.savings-item-success {
    border-left: 3px solid var(--secondary);
    background: rgba(39, 201, 63, 0.20);
}

.savings-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.savings-item-warning .savings-item__icon {
    /*background: rgba(255, 94, 58, 0.15);*/
}

.savings-item-success .savings-item__icon {
    /*background: rgba(163, 230, 53, 0.15);*/
}

.savings-item-warning .savings-item__icon .material-symbols-outlined {
    color: var(--primary);
    font-size: 28px;
}

.savings-item-success .savings-item__icon .material-symbols-outlined {
    color: var(--secondary);
    font-size: 28px;
}

.savings-item__content {
    flex: 1;
}

.savings-item__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 12px;
}

.savings-item__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 12px;
}

.savings-item__text:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .anatomy-grid,
    .cost-grid,
    .savings-grid {
        grid-template-columns: 1fr;
    }

    .anatomy-card {
        padding: 24px;
    }

    .cost-item {
        padding: 24px;
    }

    .savings-item {
        padding: 20px;
        flex-direction: column;
    }

    .savings-item__icon {
        width: 40px;
        height: 40px;
    }

    .savings-item__icon .material-symbols-outlined {
        font-size: 24px;
    }

    .anatomy-card__title {
        font-size: 20px;
    }

    .cost-item__title {
        font-size: 18px;
    }

    .savings-item__title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .anatomy-section {
        padding: 40px 16px;
    }

    .anatomy-icon {
        width: 56px;
        height: 56px;
    }

    .anatomy-icon .material-symbols-outlined {
        font-size: 28px;
    }
}
