/* =====================================================
   korme-single.css — одиночная запись korme
   ===================================================== */

.korme-single-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 60px;
    color: #333;
}

/* ---- Заголовок + мета ---- */
.korme-single-header {
    margin-bottom: 28px;
}

.korme-single-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin: 0 0 14px 0;
}

.korme-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.korme-single-filial {
    font-size: 14px;
    color: #666;
    padding: 4px 12px;
    background: #f2f2f2;
    border-radius: 20px;
    white-space: nowrap;
}

.korme-single-date {
    font-size: 14px;
    color: #999;
}

/* ---- Главное изображение ---- */
.korme-single-image-wrap {
    margin-bottom: 36px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.korme-single-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* ---- Описание ---- */
.korme-single-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 48px;
}

.korme-single-description p {
    margin: 0 0 1.2em 0;
}

.korme-single-description p:last-child {
    margin-bottom: 0;
}

/* ---- Заголовок раздела ---- */
.korme-single-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* ---- Галерея ---- */
.korme-single-gallery {
    margin-top: 40px;
}

.korme-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.korme-gallery-item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.korme-gallery-item:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.korme-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   Адаптивность
   ===================================================== */
@media (max-width: 900px) {
    .korme-single-title {
        font-size: 26px;
    }

    .korme-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .korme-single-title {
        font-size: 22px;
    }

    .korme-single-image {
        max-height: 280px;
    }

    .korme-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .korme-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
