/* Оформление способа приготовления */

.recipe-cooking-steps {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.recipe-cooking-steps p {
    margin: 0 0 22px;
    line-height: inherit;
}

.recipe-cooking-steps p:last-child {
    margin-bottom: 0;
}

/* Смартфоны */
@media (max-width: 767px) {
    .recipe-cooking-steps {
        font-size: 16px;
        line-height: 1.7;
        padding: 12px 14px;
        border-radius: 12px;
        background: rgba(128, 128, 128, 0.045);
    }

    .recipe-cooking-steps p {
        margin-bottom: 20px;
    }

    .recipe-cooking-steps h3,
    .recipe-cooking-steps h4 {
        line-height: 1.4;
        margin-bottom: 12px;
    }
}

/* Карточки этапов приготовления */

.recipe-cooking-steps {
    background: transparent;
    padding: 0;
    hyphens: none;
    overflow-wrap: break-word;
}

.cooking-step {
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #eee4da;
    border-radius: 14px;
    background: #fffaf5;
}

.cooking-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #34302b;
    font-size: 18px;
    line-height: 1.4;
}

.cooking-step-number {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e67e22;
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.cooking-step p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #383838;
    hyphens: none;
    word-break: normal;
}

@media (max-width: 767px) {
    .cooking-step {
        padding: 16px;
        margin-bottom: 14px;
    }

    .cooking-step-heading {
        font-size: 17px;
    }

    .cooking-step p {
        font-size: 16px;
        line-height: 1.7;
    }
}


/* Ингредиенты: удобное отображение на смартфонах */

.recipe-ingredients-list {
    white-space: pre-line;
    font-size: 16px;
    line-height: 2;
    color: #343434;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

@media (max-width: 767px) {
    .recipe-ingredients-list {
        font-size: 16px;
        line-height: 2.15;
    }

    #servingsCount {
        font-size: 17px;
    }

    #ingredientsText {
        padding-top: 8px;
    }
}


/* Отдельные строки ингредиентов */

.recipe-ingredients-list {
    white-space: normal;
    padding: 0;
}

.recipe-ingredient-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #e6e9ec;
    line-height: 1.6;
}

.recipe-ingredient-row:last-child {
    border-bottom: none;
}

.recipe-ingredient-icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #e8f5e9;
    color: #25854b;
    font-size: 15px;
    font-weight: bold;
}

.recipe-ingredient-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .recipe-ingredient-row {
        gap: 10px;
        padding: 12px 0;
        font-size: 16px;
    }
}
