/* NBC Network — галерея заведений в ЛК */

.nbc-network {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nbc-network-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.nbc-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.nbc-network-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.nbc-network-item:hover {
    border-color: #ff9c11;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nbc-network-logo {
    width: 100%;
    min-height: 72px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nbc-network-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    width: var(--nbc-net-w, auto);
}

.nbc-network-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff9c11;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
}

.nbc-network-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #444;
    word-break: break-word;
}

@media (max-width: 768px) {
    .nbc-network-logo { min-height: 0; }
    /* Если в админке задана отдельная мобильная ширина — используем её */
    .nbc-network-logo img { width: var(--nbc-net-w-mob, var(--nbc-net-w, auto)); }
}
@media (max-width: 480px) {
    .nbc-network { padding: 16px; }
    .nbc-network-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
    .nbc-network-logo { width: 56px; height: 56px; min-height: 0; }
    .nbc-network-name { font-size: 11px; }
}

/* Gastrosystem heading: the same logo mark on every site. */
.nbc-network .nbc-network-title { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.nbc-network-title__star { display: block; width: 46px; height: 24px; flex: 0 0 46px; }
@media (max-width: 480px) { .nbc-network .nbc-network-title { gap: 9px; font-size: 18px; } .nbc-network-title__star { width: 36px; height: 20px; flex-basis: 36px; } }
