/* Единый контейнер для всех крупных секций */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 px; /* Единый отступ как у product-blocks */
    box-sizing: border-box;
}
    /* --- ЛОКАЛЬНЫЕ ПЕРЕМЕННЫЕ НА БАЗЕ ТВОИХ --- */
    /* Мы не переопределяем root, а создаем удобные алиасы для этого блока */
    .product-blocks, .ma-price-calc, .details-strip, .wide-row, .collection-link-block {
        --card: #ffffff; /* Чистый белый фон карточек */
        --line: rgba(60, 56, 63, 0.15); /* Граница в тон тексту, полупрозрачная */
        --text: var(--theme-base-accent-color, #3c383f); /* Темно-серый текст */
        --muted: rgba(60, 56, 63, 0.55); /* Приглушенный серый для подсказок */
        --accent: var(--theme-base-color, #f92d1f); /* Ярко-красный акцент */
        --soft: #f9f9f9; /* Очень светлый фон для иконок */
    }

    .product-blocks {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 25px auto;
        max-width: 1200px;
        padding: 0px;
    }

    .content-card {
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 20px;
        display: flex;
        flex-direction: column;
    }

    .content-card.scheme {
        text-align: left;
    }

    .content-card.scheme img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
        margin: 15px auto;
        background: var(--soft);
    }

    .content-card h2 {
        margin-top: 0;
        color: var(--text);
        font-size: 18px;
        font-weight: 600;
    }

    .check-list {
        list-style: none;
        padding: 0;
        margin: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .check-list li {
        font-size: 15px;
        color: var(--muted);
        position: relative;
        padding-left: 20px;
    }

    .check-list li::before {
        content: "●";
        color: var(--accent);
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    /* --- Блок расчёта стоимости --- */
    .ma-price-calc {
        display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
width: 100%;
max-width: 1200px;
margin: 25px auto;
padding: 24px;
background: var(--card);
border: 1px solid var(--line);
border-radius: 14px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
box-sizing: border-box;

    }

    .ma-price-calc__left {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .ma-price-calc__icon {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent);
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .ma-price-calc__content {
        min-width: 0;
    }

    .ma-price-calc__label {
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 1.35;
        color: var(--muted);
    }

    .ma-price-calc__price {
        margin-bottom: 6px;
        font-size: 30px;
        line-height: 1.15;
        font-weight: 700;
        color: var(--text);
    }

    .ma-price-calc__note {
        max-width: 540px;
        font-size: 13px;
        line-height: 1.45;
        color: var(--muted);
    }

    .ma-price-calc__btn-container {
       display: flex;
    flex-direction: column;
    align-items: flex-end; /* <-- ГЛАВНОЕ ИЗМЕНЕНИЕ: прижимает кнопку и текст к ПРАВОМУ краю */
    gap: 8px;               /* Отступ между кнопкой и текстом */
    width: 100%;            /* Занимает всю ширину правой части калькулятора */
    }

    .ma-price-calc__btn {
        display: block;
    width: auto;            /* Кнопка имеет свою ширину, а не растягивается */
    max-width: 320px;       /* Ограничение, чтобы не была слишком широкой */
    height: 44px;
    padding: 0 24px;        /* Чуть больше отступов внутри кнопки для красоты */
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: var(--accent);
    border-radius: 6px;
    border: none;
    transition: background-color 0.2s ease;
    }

    .ma-price-calc__btn:hover {
        /* Чуть темнее основного цвета при наведении */
        background-color: var(--theme-base-active-color, #B41F14); 
    }

    .ma-price-calc__hint {
        margin-top: 0;
        font-size: 12px;
        color: var(--muted);
    }

    /* --- Секция деталей и особенностей --- */
    .details-strip {
        margin: 34px auto;
        max-width: 1200px;
        padding: 0px;
    }

    .detail-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 20px;
    }

    .detail {
        text-align: center;
    }

    .detail img {
        width: 100%;
        aspect-ratio: 1.35/1;
        object-fit: cover;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: #f5f5f3;
        margin-bottom: 10px;
    }

    .detail strong {
        display: block;
        font-size: 14px;
        margin-bottom: 2px;
        color: var(--text);
    }

    .detail span {
        display: block;
        color: var(--muted);
        font-size: 13px;
    }

    /* --- Широкие карточки --- */
    .wide-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin: 34px auto;
        max-width: 1200px;
        padding: 0 px;
    }

    .wide-card {
        padding: 24px;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .wide-card img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .preorder-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на ПК */
    gap: 32px; /* Увеличили отступ, так как иконки стали большими */
    text-align: center;
    margin-top: 20px;
    }

.icon-wrapper {
    width: 96px; 
    height: 96px;
    border-radius: 50%;
    background: var(--soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Чуть больше отступ до текста */
    flex-shrink: 0;
}
    .preorder-icons div {
    display: flex;
    flex-direction: column;
    align-items: center;
    }

.icon-wrapper img, .icon-wrapper svg {
    width: 48px; 
    height: 48px;
    display: block;
    margin: 0;
    filter: brightness(0) invert(0.4) contrast(1.2); 
    opacity: 0.95;
}

.preorder-icons span {
    display: block;
    color: var(--text);
    font-size: 15px; /* Чуть крупнее шрифт под большие иконки */
    line-height: 1.4;

}

/* --- НОВЫЙ БЛОК: Коллекция --- */
.collection-link-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 40px;
    margin: 40px auto; /* Отступ сверху/снизу побольше, чтобы отделить от калькулятора и деталей */
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    gap: 40px;
}

.collection-link-block__content {
    flex: 1;
    min-width: 0; /* Важно для корректного сжатия текста при конфликте с кнопкой */
}

.collection-link-block__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);

    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.collection-link-block__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 15px 0;
}

.collection-link-block__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.collection-link-block__side {
    flex: 0 0 auto;
}

.collection-link-block__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.collection-link-block__button:hover {
    background: var(--accent);
    color: #fff;
}

.collection-link-block__arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.collection-link-block__button:hover .collection-link-block__arrow {
    transform: translateX(4px); /* Стрелка уезжает вправо при наведении */
}

    /* --- Адаптивность --- */
    @media (max-width: 768px) {
        .product-blocks,
        .wide-row {
            grid-template-columns: 1fr !important;
            flex-direction: column; /* На мобильных блок коллекции становится вертикальным */
            text-align: left;

        }
        .collection-link-block {
        flex-direction: column;       /* Теперь это колонка: сначала контент, потом side */
        align-items: stretch;         /* Растягиваем оба блока на всю ширину контейнера */
        padding: 24px;
        gap: 20px;                    /* Отступ между заголовком и кнопкой */
    }
        
        .collection-link-block__side {
            width: 100%;                  /* Контейнер кнопки занимает всю ширину, чтобы центрировать содержимое */
        display: flex;
        justify-content: center;       /* Центрируем кнопку внутри этого контейнера */
    }

        .collection-link-block__button {
            width: auto;                  /* Не 100%, а по контенту */
        box-sizing: border-box;
    }

        .detail-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .preorder-icons {
            grid-template-columns: repeat(3, 1fr); /* 3 колонки на мобильных */
        gap: 16px; /* Чуть меньший отступ, чтобы 3 иконки влезли красиво */
        }

        .ma-price-calc {
            flex-direction: column;
            text-align: left;
            gap: 18px;
            padding: 18px;
            margin-top: 25px;
        }

        .ma-price-calc__price {
            font-size: 26px;
        }

        .ma-price-calc__btn-container {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .ma-price-calc {
            padding: 16px;
        }

        .ma-price-calc__price {
            font-size: 22px;
        }

        .ma-price-calc__icon {
            width: 40px;
            height: 40px;
        }
        
        .collection-link-block__title {
          font-size: 24px;              /* Чуть меньше шрифт на мобильном */
        margin: 0 0 8px 0;            /* Чуть меньший отступ снизу */
    }
        }
    }
/* custom-kitchen.css */
.icon-wrapper svg {
    color: inherit; /* Или укажите конкретный цвет */
    transition: color 0.3s ease;
}

.icon-wrapper svg:hover {
    /* Изменение цвета при наведении, например */
    color: #0056b3;
}

/* Для тултипов */
.tooltip-wrap {
    display: inline-block;
    cursor: pointer;
}
