.recipe-header {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.recipe-left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-left-column h2 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin: 30px 0 10px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b6b;
    font-weight: 600;
}

.recipe-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.recipe-ingredients {
    width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.recipe-steps {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.step-title {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #333; 
}

.step-title:first-child {
    margin-top: 0;
}

.step-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.ingredients-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.nutrition-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nutrition-info h4 {
    color: #333;
    margin-bottom: 10px;
}

.info-title {
    font-size: 20px;
    margin: 40px 0 15px 0;
    color: #333;
    padding-top: 30px;
    /* border-top: 2px solid #f0f0f0; */
}

.info-title:first-of-type {
    margin-top: 40px;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.cooking-time-top {
    font-size: 18px;
    color: #666;
}



.recipe-gallery {
    margin-bottom: 20px;
}

.main-image-container {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recipe-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: #ff6b6b;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





/* Модальное окно */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ff6b6b;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Делаем основную картинку кликабельной */
.recipe-main-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.recipe-main-image:hover {
    transform: scale(1.02);
}