.article {
    width: 100%;
    padding: 40px 0;
    /*background: rgba(254, 255, 255, 0.78); !* Светло-мокро-серый фон *!*/
    color: white; /* Белый текст по умолчанию */
}

.article__title {
    font-size: 47px;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Верхний блок */
.article__intro {
    display: flex;
    gap: 32px;
    align-items: flex-start; /* Меняем на stretch для растягивания */
    margin-bottom: 40px;
    height: auto; /* Позволяем высоте определяться содержимым */
}

.article__image {
    width: 34%; /* Фиксированная ширина картинки */
    flex-shrink: 0;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    height: 469px; /* Фиксируем высоту как у картинки */
}

.article__intro-text {
    flex: 1; /* Занимает оставшееся пространство */
    display: flex;
    flex-direction: column;
    height: 469px; /* Фиксируем такую же высоту как у картинки */
    min-height: 469px; /* Гарантируем минимальную высоту */
}

.article__lead {
    font-size: 20px;
    margin-bottom: 30px;
    color: white;
    line-height: 1.6;
    flex-shrink: 0; /* Не сжимается */
}

.article__lead strong {
    color: #ffe066; /* Акцентный цвет для выделения */
}

/* Карточки типов красок - теперь заполняют оставшуюся высоту */
.article__intro .article__cards-grid {
    flex: 1; /* Растягивается на всю оставшуюся высоту */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    grid-template-rows: repeat(2, 1fr); /* 2 строки равной высоты */
    gap: 16px;
    min-height: 0; /* Важно для работы flex в контейнере */
}

/* Остальные сетки карточек (для нижней части) */
.article__content .article__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Карточки типов красок */
.paint-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 224, 102, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(5px);
    height: 100%; /* Занимает всю высоту ячейки сетки */
}

.paint-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 224, 102, 0.4);
    border-color: #ffe066;
    background: rgba(255, 255, 255, 0.25);
}

.paint-card__icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.paint-card__title {
    font-size: 18px;
    margin-bottom: 8px;
    color: white;
}

.paint-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Основной контент */
.article__content {
    width: 100%;
    margin-top: 40px;
}

.article__subtitle {
    margin: 48px 0 24px;
    font-size: 26px;
    color: white;
    position: relative;
    padding-bottom: 12px;
}

.article__subtitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffe066;
    border-radius: 2px;
}

/* Блок с особым преимуществом */
.article__highlight {
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.18), rgba(255, 224, 102, 0.08));
    border-left: 4px solid #ffe066;
    padding: 24px;
    margin: 40px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 224, 102, 0.3);
    color: white;
}

.article__highlight h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article__highlight p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.article__highlight strong {
    color: #ffe066;
}

/* Карточки преимуществ */
.advantage-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #ffe066;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(255, 224, 102, 0.3);
}

.advantage-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.advantage-card__icon {
    font-size: 24px;
}

.advantage-card__title {
    font-size: 16px;
    color: white;
    margin: 0;
}

.advantage-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Карточки мастер-класса */
.master-class-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 224, 102, 0.3);
    backdrop-filter: blur(5px);
}

.master-class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 224, 102, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.master-class-card__number {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #ffe066;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #222;
}

.master-class-card__title {
    font-size: 17px;
    margin-bottom: 8px;
    color: white;
    padding-right: 40px;
}

.master-class-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Карточки помещений */
.room-card {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 224, 102, 0.3);
    backdrop-filter: blur(5px);
}

.room-card:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(255, 224, 102, 0.3);
    border-color: #ffe066;
}

.room-card__content {
    flex: 1;
}

.room-card__title {
    font-size: 18px;
    margin-bottom: 6px;
    color: white;
}

.room-card__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.room-card__icon {
    font-size: 40px;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Призыв к действию */
.article__cta {
    margin-top: 60px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 224, 102, 0.15), rgba(255, 224, 102, 0.08));
    border-radius: 16px;
    border: 2px dashed #ffe066;
    color: white;
}

.article__cta strong {
    color: #ffe066;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 992px) {
    .article__intro {
        flex-direction: column;
        align-items: center;
    }

    .article__image {
        width: 100%;
        max-width: 469px; /* Сохраняем пропорции */
        height: auto; /* Высота определяется содержимым */
        margin-bottom: 20px;
    }

    .article__intro-text {
        width: 100%;
        height: auto; /* Высота определяется содержимым */
        min-height: auto;
    }

    .article__intro .article__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        grid-template-rows: auto; /* Автоматическая высота строк */
    }

    .article__content .article__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .paint-card {
        height: auto; /* На мобильных карточки не растягиваем */
    }
}

@media (max-width: 768px) {
    .article__title {
        font-size: 36px;
    }

    .article__intro .article__cards-grid {
        grid-template-columns: 1fr;
    }

    .article__content .article__cards-grid {
        grid-template-columns: 1fr;
    }

    .room-card {
        flex-direction: column;
        text-align: center;
    }

    .room-card__icon {
        order: -1;
    }
}

/* Для очень высоких картинок - альтернативное решение */
@media (min-width: 993px) {
    /* Альтернативный подход: выравнивание по высоте картинки */
    .article__intro {
        align-items: stretch; /* Растягиваем оба элемента */
    }

    .article__image {
        height: auto; /* Высота определяется содержимым */
        max-height: 600px;
        align-self: flex-start; /* Выравниваем по верху */
    }

    .article__intro-text {
        align-self: stretch; /* Растягиваем на всю доступную высоту */
    }
}