/* Стили блока "Текстовые карточки" для фронтенда */
.text-cards {
    margin: 0;
    padding: 0;
}

.text-cards__container {
    max-width: 1170px;
    margin: 0 auto;
}

.text-cards__header {
    margin-bottom: 30px;
}

.text-cards__title {
    margin: 0 0 12px 0;
}

.text-cards__subtitle {
    color: var(--color-text-green);
}

.text-cards__grid {
    display: grid;
    gap: 10px;
    align-items: stretch;
}

.text-cards__grid.text-cards__grid--cols-1 {
    grid-template-columns: 1fr;
}

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

.text-cards__grid.text-cards__grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.text-cards__card {
    border-radius: 12px;
    padding: 20px 10px;
    background: #e8e6d4;
    display: flex;
    flex-direction: column;
}

.text-cards__card.highlighted {
    background: #76824A;
}

.text-cards__card-image {
    margin-bottom: 20px;
}

.text-cards__card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.text-cards__card-title {
    margin: 0 0 10px 0;
    color: var(--color-text-green);
}

.text-cards__card-title--align-center {
    text-align: center;
}

.text-cards__card-title--align-left {
    text-align: left;
}

.text-cards__card-subtitle {
    margin: 0 0 20px 0;
    color: #18383C;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.text-cards__card-subtitle--align-center {
    text-align: center;
}

.text-cards__card-subtitle--align-left {
    text-align: left;
}

.text-cards__card.highlighted .text-cards__card-title,
.text-cards__card.highlighted .text-cards__card-subtitle {
    color: #E8E6D4;
}

.text-cards__card-text {
    color: #18383C;
    line-height: 1.4;
    flex: 1;
}

.text-cards__card.highlighted .text-cards__card-text {
    color: #E8E6D4;
}

.text-cards__card-text em {
    color: #77824a;
    font-size: 16px;
    font-weight: 600;
}

.text-cards__card-text ul {
    padding: 0;
    margin: 10px 0 0 0;
    list-style: none;
}

.text-cards__card-text li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.text-cards__card-text li:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-text-green);
    border-radius: 50%;
    margin-top: 10px;
}

/* Стили для пунктов с иконками в карточках */
.text-cards__card-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    align-self: stretch;
    flex: 1;
}

.text-cards__card-point {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.text-cards__card-point-icon {
    display: flex;
    width: 16px;
    height: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.text-cards__card-point-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.text-cards__card-point-text {
    color: #18383C;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.text-cards__card.highlighted .text-cards__card-point-text {
    color: #E8E6D4;
}

.text-cards__card-button-section {
    display: flex;
    align-items: center;
    align-self: stretch;
    width: 100%;
    margin: 20px 0 0 0;
    flex-shrink: 0;
}

.text-cards__card-button-section--right {
    flex-direction: row;
    justify-content: space-between;
}

.text-cards__card-button-section--left {
    flex-direction: row;
    justify-content: space-between;
}

.text-cards__card-button-section--left .text-cards__card-promo-text {
    order: 2;
    text-align: right;
}

.text-cards__card-button-section--left .btn {
    order: 1;
}

.text-cards__card-promo-text {
    color: #18383C;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
}

.text-cards__card.highlighted .text-cards__card-promo-text {
    color: #E8E6D4;
}

.points-control {
    margin-top: 15px;
}

.point-item {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.point-icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-point-icon-button,
.remove-point-icon-button {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-point-icon-button {
    background: #0073aa;
    color: white;
    border: none;
}

.upload-point-icon-button:hover {
    background: #005a87;
}

.remove-point-icon-button {
    background: #dc3232;
    color: white;
    border: none;
}

.remove-point-icon-button:hover {
    background: #a00;
}

@media (max-width: 1024px) {
    .text-cards__grid.text-cards__grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .text-cards__card-button-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .text-cards__card-button-section--right,
    .text-cards__card-button-section--left {
        flex-direction: column;
        justify-content: flex-start;
    }

    .text-cards__card-button-section--left .text-cards__card-promo-text {
        order: 1;
        text-align: center;
    }

    .text-cards__card-button-section--left .btn {
        order: 2;
    }
}

@media (max-width: 640px) {

    .text-cards__grid.text-cards__grid--cols-2,
    .text-cards__grid.text-cards__grid--cols-3 {
        grid-template-columns: 1fr;
    }
}